Summary Files Commits Branches @commit @diff @stats
path: root / dist
diff options
context:
space:
mode:
Commit21aaa73dbcd839ea8061f3e2a05b6aa19cb77be6 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-04-04 14:54:24 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-04-04 14:54:24 +0800
Filesf9272f1bfea4c96c7706d2a7edd141447a8b53aa /dist
Spectre-Dark-Gruvbox-21aaa73dbcd839ea8061f3e2a05b6aa19cb77be6.tar
Spectre-Dark-Gruvbox-21aaa73dbcd839ea8061f3e2a05b6aa19cb77be6.tar.gz
Spectre-Dark-Gruvbox-21aaa73dbcd839ea8061f3e2a05b6aa19cb77be6.zip
Parent5f8ef36411b678e2f503bbf1d2b406196747d3e0 (diff)
add avatars code
1 files changed, 130 insertions, 90 deletions
-rw-r--r--dist/spectre.css220
diff --git a/dist/spectre.css b/dist/spectre.css
index 0d20d3f..18bf8ad 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -391,7 +391,7 @@ body {
background-color: #fff;
}
a {
- color: #5764C6;
+ color: #5764c6;
text-decoration: underline;
}
a:hover,
@@ -632,10 +632,10 @@ button {
display: inline-block;
height: 3.2rem;
padding: .7rem 1.5rem;
- border: 0.1rem solid #5764C6;
+ border: 0.1rem solid #5764c6;
background-color: transparent;
border-radius: 3px;
- color: #5764C6;
+ color: #5764c6;
font-size: 1.4rem;
line-height: 1.6rem;
text-align: center;
@@ -655,7 +655,7 @@ button:hover,
.btn:focus,
button:focus {
color: #fff;
- background-color: #5764C6;
+ background-color: #5764c6;
}
.btn:active,
button:active,
@@ -672,7 +672,7 @@ button.loading {
}
.btn.loading::after,
button.loading::after {
- border: 2px solid #5764C6;
+ border: 2px solid #5764c6;
border-right-color: transparent;
border-top-color: transparent;
border-radius: 8px;
@@ -697,7 +697,7 @@ button[disabled] {
button.btn-primary {
color: #fff;
border-color: #4452c0;
- background-color: #5764C6;
+ background-color: #5764c6;
}
.btn.btn-primary:hover,
button.btn-primary:hover,
@@ -723,7 +723,7 @@ button.btn-primary.loading::after {
}
.btn.btn-link,
button.btn-link {
- color: #5764C6;
+ color: #5764c6;
border-color: transparent;
background-color: transparent;
}
@@ -879,7 +879,7 @@ button.btn-clear::after {
outline: 0;
}
.form-input:focus {
- border-color: #5764C6;
+ border-color: #5764c6;
}
.form-input[disabled] {
opacity: .75;
@@ -909,11 +909,11 @@ textarea.form-input {
}
.has-success .form-input,
.form-input.input-success {
- border-color: #32B643;
+ border-color: #32b643;
}
.has-danger .form-input,
.form-input.input-danger {
- border-color: #E85600;
+ border-color: #e85600;
}
.form-label {
display: block;
@@ -931,7 +931,7 @@ textarea.form-input {
outline: 0;
}
.form-select:focus {
- border-color: #5764C6;
+ border-color: #5764c6;
}
.form-select.select-sm {
height: 2.4rem;
@@ -971,8 +971,8 @@ textarea.form-input {
}
.form-checkbox input:checked,
.form-radio input:checked {
- background-color: #5764C6;
- border-color: #5764C6;
+ background-color: #5764c6;
+ border-color: #5764c6;
}
.form-checkbox input {
border-radius: .2rem;
@@ -1045,50 +1045,52 @@ textarea.form-input {
transition: left .15s ease;
}
.form-switch input:checked {
- background-color: #5764C6;
- border-color: #5764C6;
+ background-color: #5764c6;
+ border-color: #5764c6;
}
.form-switch input:checked::after {
left: 1.2rem;
background-color: #fff;
}
-.label {
+.avatar {
display: inline-block;
- padding: .3rem .5rem;
- font-size: 80%;
+ width: 3.2rem;
+ height: 3.2rem;
+ font-size: 1.4rem;
+ font-weight: 300;
line-height: 1;
- color: #666;
- background-color: #efefef;
- text-align: center;
- white-space: nowrap;
+ border-radius: 50%;
vertical-align: middle;
- margin: -0.3rem 0.5rem 0 0.5rem;
- border-radius: .2rem;
-}
-.label.label-primary {
- color: #fff;
- background-color: #5764C6;
+ position: relative;
}
-.label.label-success {
+.avatar::after {
+ content: attr(data-initial);
+ position: absolute;
+ top: 50%;
+ left: 50%;
color: #fff;
- background-color: #32B643;
+ -webkit-transform: translate(-50%, -50%);
+ transform: translate(-50%, -50%);
}
-.label.label-info {
- color: #fff;
- background-color: #0193eb;
+.avatar.avatar-xs {
+ width: 1.6rem;
+ height: 1.6rem;
+ font-size: .8rem;
}
-.label.label-warning {
- color: #fff;
- background-color: #ffb700;
+.avatar.avatar-sm {
+ width: 2.4rem;
+ height: 2.4rem;
+ font-size: 1rem;
}
-.label.label-danger {
- color: #fff;
- background-color: #E85600;
+.avatar.avatar-lg {
+ width: 4.8rem;
+ height: 4.8rem;
+ font-size: 2rem;
}
-.label.label-lg {
- font-size: 100%;
- line-height: 1.2;
- padding: .3rem .8rem;
+.avatar.avatar-xl {
+ width: 6.4rem;
+ height: 6.4rem;
+ font-size: 2.6rem;
}
.badge {
position: relative;
@@ -1100,7 +1102,7 @@ textarea.form-input {
font-size: 1.2rem;
text-align: center;
line-height: 1.4rem;
- background-color: #5764C6;
+ background-color: #5764c6;
display: block;
width: 2rem;
height: 2rem;
@@ -1113,39 +1115,43 @@ textarea.form-input {
overflow: hidden;
text-overflow: ellipsis;
}
-.toast {
- display: block;
- width: 100%;
- padding: 1.4rem;
+.label {
+ display: inline-block;
+ padding: .3rem .5rem;
+ font-size: 80%;
+ line-height: 1;
color: #666;
- border: 0.1rem solid #eaeaea;
- border-radius: .3rem;
background-color: #efefef;
+ text-align: center;
+ white-space: nowrap;
+ vertical-align: middle;
+ margin: -0.3rem 0.5rem 0 0.5rem;
+ border-radius: .2rem;
}
-.toast.toast-primary {
+.label.label-primary {
color: #fff;
- background-color: #5764C6;
- border-color: #4f5dc3;
+ background-color: #5764c6;
}
-.toast.toast-success {
+.label.label-success {
color: #fff;
- background-color: #32B643;
- border-color: #30ae40;
+ background-color: #32b643;
}
-.toast.toast-info {
+.label.label-info {
color: #fff;
background-color: #0193eb;
- border-color: #018de1;
}
-.toast.toast-warning {
+.label.label-warning {
color: #fff;
background-color: #ffb700;
- border-color: #f5b000;
}
-.toast.toast-danger {
+.label.label-danger {
color: #fff;
- background-color: #E85600;
- border-color: #de5200;
+ background-color: #e85600;
+}
+.label.label-lg {
+ font-size: 100%;
+ line-height: 1.2;
+ padding: .3rem .8rem;
}
.menu {
display: block;
@@ -1212,6 +1218,37 @@ textarea.form-input {
border-bottom: 0.1rem solid #efefef;
margin: .5rem;
}
+.modal {
+ width: 50vw;
+ text-align: left;
+ margin: 0;
+ padding: 0;
+ border-radius: .3rem;
+ background-color: #fff;
+ z-index: 999;
+ box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.3);
+ display: block;
+ float: none;
+ margin-left: auto;
+ margin-right: auto;
+}
+.modal .modal-header {
+ padding: 1.5rem;
+ border-bottom: 1px solid #efefef;
+}
+.modal .modal-header .modal-title {
+ margin: 0;
+}
+.modal .modal-body {
+ position: relative;
+ padding: 1.5rem;
+ max-height: 50vh;
+ overflow-y: auto;
+}
+.modal .modal-footer {
+ padding: 1.5rem;
+ text-align: right;
+}
.breadcrumb {
list-style: none;
margin: .5rem 0;
@@ -1263,11 +1300,11 @@ textarea.form-input {
}
.tab .tab-item:hover,
.tab .tab-item:focus {
- border-bottom-color: #5764C6;
+ border-bottom-color: #5764c6;
}
.tab .tab-item:hover a,
.tab .tab-item:focus a {
- color: #5764C6;
+ color: #5764c6;
}
.tab .tab-item.active {
border-bottom-color: #3b49af;
@@ -1289,36 +1326,39 @@ textarea.form-input {
flex: 1;
text-align: center;
}
-.modal {
- width: 50vw;
- text-align: left;
- margin: 0;
- padding: 0;
- border-radius: .3rem;
- background-color: #fff;
- z-index: 999;
- box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.3);
+.toast {
display: block;
- float: none;
- margin-left: auto;
- margin-right: auto;
+ width: 100%;
+ padding: 1.4rem;
+ color: #666;
+ border: 0.1rem solid #eaeaea;
+ border-radius: .3rem;
+ background-color: #efefef;
}
-.modal .modal-header {
- padding: 1.5rem;
- border-bottom: 1px solid #efefef;
+.toast.toast-primary {
+ color: #fff;
+ background-color: #5764c6;
+ border-color: #4f5dc3;
}
-.modal .modal-header .modal-title {
- margin: 0;
+.toast.toast-success {
+ color: #fff;
+ background-color: #32b643;
+ border-color: #30ae40;
}
-.modal .modal-body {
- position: relative;
- padding: 1.5rem;
- max-height: 50vh;
- overflow-y: auto;
+.toast.toast-info {
+ color: #fff;
+ background-color: #0193eb;
+ border-color: #018de1;
}
-.modal .modal-footer {
- padding: 1.5rem;
- text-align: right;
+.toast.toast-warning {
+ color: #fff;
+ background-color: #ffb700;
+ border-color: #f5b000;
+}
+.toast.toast-danger {
+ color: #fff;
+ background-color: #e85600;
+ border-color: #de5200;
}
.tooltip {
position: relative;