Summary Files Commits Branches @commit @diff @stats
path: root / docs / css / spectre.css
diff options
context:
space:
mode:
Commitcae547e62d611b68b7054d0e20d0abd6974fafb4 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-02-27 15:59:33 +0800
Committer
 GitHub <noreply@github.com>
2017-02-27 15:59:33 +0800
Filesc934074200f923006f1ca5df36368ed527a39bdf /docs/css/spectre.css
Spectre-Dark-Gruvbox-cae547e62d611b68b7054d0e20d0abd6974fafb4.tar
Spectre-Dark-Gruvbox-cae547e62d611b68b7054d0e20d0abd6974fafb4.tar.gz
Spectre-Dark-Gruvbox-cae547e62d611b68b7054d0e20d0abd6974fafb4.zip
Parentad9056c4a9df16a778886a3bfb41b0e973d65e1b (diff)
Parentf2aec69fc002a7730bae77691747b558cef1e40a (diff)
Merge pull request #144 from picturepan2/hotfix/a-number-of-fixes
Hotfix/a number of fixes
1 files changed, 173 insertions, 66 deletions
-rw-r--r--docs/css/spectre.css239
diff --git a/docs/css/spectre.css b/docs/css/spectre.css
index 2599d85..b7a3105 100644
--- a/docs/css/spectre.css
+++ b/docs/css/spectre.css
@@ -429,7 +429,7 @@ a:hover {
border-top: .4rem solid currentColor;
display: inline-block;
height: 0;
- margin: 0 .2rem;
+ margin: 0;
vertical-align: middle;
width: 0;
}
@@ -514,14 +514,18 @@ dl dd {
mark {
background: #ffe9b3;
border-radius: .2rem;
- padding: .1em .3em;
+ display: inline-block;
+ line-height: 1;
+ padding: .3rem;
vertical-align: baseline;
}
kbd {
background: #333;
border-radius: .2rem;
color: #fff;
- padding: .1em .3em;
+ display: inline-block;
+ line-height: 1;
+ padding: .3rem;
vertical-align: baseline;
}
abbr[title] {
@@ -530,15 +534,17 @@ abbr[title] {
text-decoration: none;
}
code {
- background: #efefef;
+ background: #f8f8f8;
border-radius: .2rem;
color: #666;
- padding: .1em .3em;
+ display: inline-block;
+ line-height: 1;
+ padding: .3rem;
vertical-align: baseline;
}
pre {
background: #f9f9f9;
- line-height: 1.8rem;
+ line-height: 2rem;
margin-bottom: 1em;
margin-top: 1em;
overflow: auto;
@@ -547,8 +553,7 @@ pre {
}
pre > code {
background: transparent;
- border-left: 0;
- line-height: 1.8rem;
+ line-height: 2rem;
padding: 0;
}
pre > code::before {
@@ -634,11 +639,11 @@ pre > code::before {
display: inline-block;
font-size: 1.4rem;
height: 3.2rem;
- line-height: 1.6rem;
- padding: .7rem 1.2rem;
+ line-height: 2rem;
+ padding: .5rem 1.2rem;
text-align: center;
text-decoration: none;
- transition: all .15s ease;
+ transition: all .2s ease;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
@@ -704,14 +709,12 @@ pre > code::before {
.btn.btn-sm {
font-size: 1.2rem;
height: 2.4rem;
- line-height: 1.4rem;
- padding: .4rem .8rem;
+ padding: .1rem .8rem;
}
.btn.btn-lg {
font-size: 1.8rem;
- height: 4.2rem;
- line-height: 2rem;
- padding: 1rem 1.5rem;
+ height: 4rem;
+ padding: .9rem 1.5rem;
}
.btn.btn-block {
display: block;
@@ -732,9 +735,7 @@ pre > code::before {
background: transparent;
border: 0;
color: currentColor;
- font-family: sans-serif;
height: 2rem;
- line-height: 1.8rem;
margin-left: .2rem;
margin-right: -.4rem;
opacity: .45;
@@ -747,15 +748,20 @@ pre > code::before {
}
.btn.btn-clear::before {
content: "\00d7";
+ display: inline-block;
+ font-family: sans-serif;
font-size: 2rem;
}
.btn-group {
display: inline-flex;
display: -ms-inline-flexbox;
+ display: -webkit-inline-flex;
+ -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
.btn-group .btn {
+ -webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}
@@ -781,6 +787,7 @@ pre > code::before {
.btn-group.btn-group-block {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
}
.form-group:not(:last-child) {
margin-bottom: 1rem;
@@ -802,7 +809,7 @@ pre > code::before {
outline: 0;
padding: .6rem .8rem;
position: relative;
- transition: all .15s ease;
+ transition: all .2s ease;
width: 100%;
}
.form-input:focus {
@@ -941,7 +948,7 @@ textarea.form-input {
padding: 0;
position: absolute;
top: .5rem;
- transition: all .15s ease;
+ transition: all .2s ease;
vertical-align: top;
width: 1.4rem;
}
@@ -973,6 +980,7 @@ textarea.form-input {
margin-top: -.6rem;
position: absolute;
top: 50%;
+ -webkit-transform: rotate(45deg);
-ms-transform: rotate(45deg);
transform: rotate(45deg);
width: .6rem;
@@ -1039,7 +1047,7 @@ textarea.form-input {
left: 0;
position: absolute;
top: 0;
- transition: left .15s ease;
+ transition: left .2s ease;
width: 1.6rem;
}
.form-switch input:checked + .form-icon {
@@ -1055,6 +1063,7 @@ textarea.form-input {
.input-group {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
}
.input-group .input-group-addon {
background: #f9f9f9;
@@ -1074,6 +1083,7 @@ textarea.form-input {
}
.input-group .input-group-addon,
.input-group .input-group-btn {
+ -webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}
@@ -1104,12 +1114,15 @@ textarea.form-input {
.input-group.input-inline {
display: inline-flex;
display: -ms-inline-flexbox;
+ display: -webkit-inline-flex;
}
.label {
- background: #efefef;
+ background: #f8f8f8;
border-radius: .2rem;
color: #888;
- padding: .1em .3em;
+ display: inline-block;
+ line-height: 1;
+ padding: .3rem;
vertical-align: baseline;
}
.label.label-primary {
@@ -1214,6 +1227,8 @@ textarea.form-input {
.columns {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
+ -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
margin-left: -1rem;
@@ -1228,11 +1243,13 @@ textarea.form-input {
padding-right: 0;
}
.columns.col-oneline {
+ -webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
overflow-x: auto;
}
.column {
+ -webkit-flex: 1;
-ms-flex: 1;
flex: 1;
padding: 1rem;
@@ -1249,6 +1266,7 @@ textarea.form-input {
.column.col-3,
.column.col-2,
.column.col-1 {
+ -webkit-flex: none;
-ms-flex: none;
flex: none;
}
@@ -1301,6 +1319,7 @@ textarea.form-input {
.col-xl-3,
.col-xl-2,
.col-xl-1 {
+ -webkit-flex: none;
-ms-flex: none;
flex: none;
}
@@ -1354,6 +1373,7 @@ textarea.form-input {
.col-lg-3,
.col-lg-2,
.col-lg-1 {
+ -webkit-flex: none;
-ms-flex: none;
flex: none;
}
@@ -1407,6 +1427,7 @@ textarea.form-input {
.col-md-3,
.col-md-2,
.col-md-1 {
+ -webkit-flex: none;
-ms-flex: none;
flex: none;
}
@@ -1460,6 +1481,7 @@ textarea.form-input {
.col-sm-3,
.col-sm-2,
.col-sm-1 {
+ -webkit-flex: none;
-ms-flex: none;
flex: none;
}
@@ -1513,6 +1535,7 @@ textarea.form-input {
.col-xs-3,
.col-xs-2,
.col-xs-1 {
+ -webkit-flex: none;
-ms-flex: none;
flex: none;
}
@@ -1559,6 +1582,7 @@ textarea.form-input {
.form-horizontal .form-group {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
}
.form-horizontal .form-label {
margin-bottom: 0;
@@ -1594,26 +1618,32 @@ textarea.form-input {
}
}
.navbar {
+ -webkit-align-items: center;
align-items: center;
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
-ms-flex-align: center;
-ms-flex-pack: justify;
+ -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
+ -webkit-justify-content: space-between;
justify-content: space-between;
}
.navbar .navbar-section {
+ -webkit-align-items: center;
align-items: center;
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
-ms-flex-align: center;
padding: 1rem 0;
}
.navbar .navbar-brand {
font-size: 1.6rem;
font-weight: 500;
- padding-right: 2rem;
+ margin-right: 2rem;
text-decoration: none;
vertical-align: middle;
}
@@ -1637,6 +1667,7 @@ textarea.form-input {
position: relative;
}
.form-autocomplete .form-autocomplete-input {
+ -webkit-align-content: flex-start;
align-content: flex-start;
background: #fff;
border: .1rem solid #c5c5c5;
@@ -1644,7 +1675,9 @@ textarea.form-input {
color: #333;
display: -ms-flexbox;
display: flex;
+ display: -webkit-flex;
-ms-flex-line-pack: start;
+ -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
min-height: 3.6rem;
@@ -1660,6 +1693,7 @@ textarea.form-input {
border-color: transparent;
box-shadow: none;
display: inline-block;
+ -webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
padding: .3rem;
@@ -1683,12 +1717,12 @@ textarea.form-input {
width: 3.2rem;
}
.avatar.avatar-xs {
- font-size: .8rem;
+ font-size: 1.2rem;
height: 1.6rem;
width: 1.6rem;
}
.avatar.avatar-sm {
- font-size: 1rem;
+ font-size: 1.2rem;
height: 2.4rem;
width: 2.4rem;
}
@@ -1698,7 +1732,7 @@ textarea.form-input {
width: 4.8rem;
}
.avatar.avatar-xl {
- font-size: 2.6rem;
+ font-size: 2.8rem;
height: 6.4rem;
width: 6.4rem;
}
@@ -1718,22 +1752,27 @@ textarea.form-input {
right: -.2em;
width: 50%;
}
-.avatar[data-initial]::after {
+.avatar[data-initial]::before {
color: currentColor;
content: attr(data-initial);
left: 50%;
position: absolute;
top: 50%;
+ -webkit-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
- z-index: 0;
+ z-index: 1;
+}
+.avatar.avatar-xs[data-initial]::before {
+ -webkit-transform: translate(-50%, -50%) scale(.65);
+ -ms-transform: translate(-50%, -50%) scale(.65);
+ transform: translate(-50%, -50%) scale(.65);
}
.badge {
position: relative;
}
.badge[data-badge]::after,
-.badge:not([data-badge])::after,
-.badge[data-badge=""]::after {
+.badge:not([data-badge])::after {
background: #5764c6;
background-clip: padding-box;
border: .1rem solid #fff;
@@ -1741,15 +1780,19 @@ textarea.form-input {
color: #fff;
content: attr(data-badge);
display: inline-block;
- -ms-transform: translate(-.2rem, -.8rem);
- transform: translate(-.2rem, -.8rem);
+ position: absolute;
+ right: 0;
+ top: 0;
+ -webkit-transform: translate(100%, -50%);
+ -ms-transform: translate(100%, -50%);
+ transform: translate(100%, -50%);
}
.badge[data-badge]::after {
- font-size: 1.1rem;
- height: 1.8rem;
- line-height: 1.2rem;
- min-width: 1.8rem;
- padding: .2rem .4rem;
+ font-size: 1.2rem;
+ height: 2rem;
+ line-height: 1.4rem;
+ min-width: 2rem;
+ padding: .2rem .5rem;
text-align: center;
white-space: nowrap;
}
@@ -1802,17 +1845,19 @@ textarea.form-input {
font-size: 1.3rem;
}
.chip {
+ -webkit-align-items: center;
align-items: center;
background: #efefef;
border-radius: .2rem;
color: #666;
display: -ms-inline-flexbox;
display: inline-flex;
+ display: -webkit-inline-flex;
-ms-flex-align: center;
height: 3rem;
margin: .1rem .2rem .1rem 0;
max-width: 100%;
- padding: .5rem .8rem;
+ padding: .3rem .8rem;
text-decoration: none;
vertical-align: middle;
}
@@ -1821,34 +1866,24 @@ textarea.form-input {
color: #fff;
}
.chip .avatar {
- font-size: 1rem;
- height: 2rem;
margin-right: .4rem;
- width: 2rem;
-}
-.chip .chip-meta {
- background: rgba(0, 0, 0, .1);
- font-size: 80%;
- height: 3rem;
- line-height: 2rem;
- margin-left: .8rem;
- margin-right: -.8rem;
- opacity: .75;
- padding: .5rem .8rem;
-}
-.chip .btn-clear::before {
- font-size: 1.6rem;
}
.dropdown {
+ display: inline-block;
position: relative;
}
.dropdown .menu {
- animation: slide-down .216s;
+ -webkit-animation: slide-down .2s;
+ animation: slide-down .2s;
display: none;
left: 0;
position: absolute;
top: 100%;
}
+.dropdown.dropdown-right .menu {
+ left: auto;
+ right: 0;
+}
.dropdown.active .menu,
.dropdown .dropdown-toggle:focus + .menu,
.dropdown .menu:hover {
@@ -1863,6 +1898,7 @@ textarea.form-input {
min-width: 18rem;
padding: .8rem;
text-align: left;
+ -webkit-transform: translateY(.5rem);
-ms-transform: translateY(.5rem);
transform: translateY(.5rem);
z-index: 999;
@@ -1909,6 +1945,7 @@ textarea.form-input {
content: "";
display: block;
height: .1rem;
+ -webkit-transform: translateY(-1rem);
-ms-transform: translateY(-1rem);
transform: translateY(-1rem);
width: 100%;
@@ -1922,11 +1959,13 @@ textarea.form-input {
z-index: 99;
}
.modal {
+ -webkit-align-items: center;
align-items: center;
bottom: 0;
display: none;
-ms-flex-align: center;
-ms-flex-pack: center;
+ -webkit-justify-content: center;
justify-content: center;
left: 0;
opacity: 0;
@@ -1940,6 +1979,7 @@ textarea.form-input {
.modal.active {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
opacity: 1;
z-index: 1988;
}
@@ -1955,7 +1995,8 @@ textarea.form-input {
}
.modal:target .modal-container,
.modal.active .modal-container {
- animation: slide-down .216s;
+ -webkit-animation: slide-down .2s;
+ animation: slide-down .2s;
max-width: 64rem;
}
.modal.modal-sm .modal-container {
@@ -2011,11 +2052,14 @@ textarea.form-input {
padding: 0 .4rem;
}
.tab {
+ -webkit-align-items: center;
align-items: center;
border-bottom: .1rem solid #efefef;
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
-ms-flex-align: center;
+ -webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
}
@@ -2023,6 +2067,7 @@ textarea.form-input {
margin-top: 0;
}
.tab .tab-item.tab-action {
+ -webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
text-align: right;
@@ -2033,36 +2078,45 @@ textarea.form-input {
display: block;
margin-bottom: -.1rem;
margin-top: 0;
- padding: .6rem .8rem;
+ padding: .6rem 1.2rem;
text-decoration: none;
}
.tab .tab-item a:focus,
.tab .tab-item a:hover {
color: #5764c6;
}
-.tab .tab-item a.badge {
- padding-right: 0;
-}
.tab .tab-item.active a,
.tab .tab-item a.active {
border-bottom-color: #5764c6;
color: #5764c6;
}
.tab.tab-block .tab-item {
+ -webkit-flex: 1 0 auto;
-ms-flex: 1 0 auto;
flex: 1 0 auto;
text-align: center;
}
.tab.tab-block .tab-item .badge[data-badge]::after {
position: absolute;
- right: -1.4rem;
- top: 1rem;
- -ms-transform: translate(-50%, -1rem);
- transform: translate(-50%, -1rem);
+ right: -.4rem;
+ top: -.4rem;
+ -webkit-transform: translate(0, 0);
+ -ms-transform: translate(0, 0);
+ transform: translate(0, 0);
+}
+.tab:not(.tab-block) a.badge {
+ padding-right: 0;
+}
+.tab:not(.tab-block) a.badge::after {
+ position: static;
+ -webkit-transform: translate(-.2rem, -1rem);
+ -ms-transform: translate(-.2rem, -1rem);
+ transform: translate(-.2rem, -1rem);
}
.pagination {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
}
.pagination .page-item {
margin: 1rem .1rem;
@@ -2088,6 +2142,7 @@ textarea.form-input {
}
.pagination .page-item.page-prev,
.pagination .page-item.page-next {
+ -webkit-flex: 1 0 50%;
-ms-flex: 1 0 50%;
flex: 1 0 50%;
}
@@ -2104,6 +2159,8 @@ textarea.form-input {
.nav {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
+ -webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
@@ -2134,6 +2191,8 @@ textarea.form-input {
.step {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
+ -webkit-flex-wrap: nowrap;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
list-style: none;
@@ -2141,6 +2200,7 @@ textarea.form-input {
width: 100%;
}
.step .step-item {
+ -webkit-flex: 1 1 0;
-ms-flex: 1 1 0;
flex: 1 1 0;
margin-top: 0;
@@ -2173,6 +2233,7 @@ textarea.form-input {
left: 50%;
position: absolute;
top: .4rem;
+ -webkit-transform: translateX(-50%);
-ms-transform: translateX(-50%);
transform: translateX(-50%);
width: 1.2rem;
@@ -2189,20 +2250,25 @@ textarea.form-input {
background: #c5c5c5;
}
.tile {
+ -webkit-align-content: space-between;
align-content: space-between;
+ -webkit-align-items: flex-start;
align-items: flex-start;
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
-ms-flex-align: start;
-ms-flex-line-pack: justify;
margin: 0;
padding: .5rem 0;
}
.tile .tile-icon {
+ -webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
}
.tile .tile-content {
+ -webkit-flex: 1 1 auto;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
}
@@ -2213,6 +2279,7 @@ textarea.form-input {
padding-right: 1rem;
}
.tile .tile-action {
+ -webkit-flex: 0 0 auto;
-ms-flex: 0 0 auto;
flex: 0 0 auto;
}
@@ -2225,6 +2292,7 @@ textarea.form-input {
font-size: 1.3rem;
}
.tile.tile-centered {
+ -webkit-align-items: center;
align-items: center;
-ms-flex-align: center;
}
@@ -2282,15 +2350,19 @@ textarea.form-input {
pointer-events: none;
position: absolute;
text-overflow: ellipsis;
+ -webkit-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
transform: translate(-50%, 0);
- transition: all .216s ease;
+ transition: transform .2s ease, -webkit-transform .2s ease;
+ transition: transform .2s ease;
+ transition: -webkit-transform .2s ease;
white-space: nowrap;
z-index: 99;
}
.tooltip:focus::after,
.tooltip:hover::after {
opacity: 1;
+ -webkit-transform: translate(-50%, -.5rem);
-ms-transform: translate(-50%, -.5rem);
transform: translate(-50%, -.5rem);
}
@@ -2301,22 +2373,26 @@ textarea.form-input {
.tooltip.tooltip-right::after {
bottom: 50%;
left: 100%;
+ -webkit-transform: translate(0, 50%);
-ms-transform: translate(0, 50%);
transform: translate(0, 50%);
}
.tooltip.tooltip-right:focus::after,
.tooltip.tooltip-right:hover::after {
+ -webkit-transform: translate(.5rem, 50%);
-ms-transform: translate(.5rem, 50%);
transform: translate(.5rem, 50%);
}
.tooltip.tooltip-bottom::after {
bottom: auto;
top: 100%;
+ -webkit-transform: translate(-50%, 0);
-ms-transform: translate(-50%, 0);
transform: translate(-50%, 0);
}
.tooltip.tooltip-bottom:focus::after,
.tooltip.tooltip-bottom:hover::after {
+ -webkit-transform: translate(-50%, .5rem);
-ms-transform: translate(-50%, .5rem);
transform: translate(-50%, .5rem);
}
@@ -2324,29 +2400,57 @@ textarea.form-input {
bottom: 50%;
left: auto;
right: 100%;
+ -webkit-transform: translate(0, 50%);
-ms-transform: translate(0, 50%);
transform: translate(0, 50%);
}
.tooltip.tooltip-left:focus::after,
.tooltip.tooltip-left:hover::after {
+ -webkit-transform: translate(-.5rem, 50%);
-ms-transform: translate(-.5rem, 50%);
transform: translate(-.5rem, 50%);
}
+@-webkit-keyframes loading {
+ 0% {
+ -webkit-transform: rotate(0deg);
+ transform: rotate(0deg);
+ }
+ 100% {
+ -webkit-transform: rotate(360deg);
+ transform: rotate(360deg);
+ }
+}
@keyframes loading {
0% {
+ -webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
+ -webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
+@-webkit-keyframes slide-down {
+ 0% {
+ opacity: 0;
+ -webkit-transform: translateY(-3rem);
+ transform: translateY(-3rem);
+ }
+ 100% {
+ opacity: 1;
+ -webkit-transform: translateY(0);
+ transform: translateY(0);
+ }
+}
@keyframes slide-down {
0% {
opacity: 0;
+ -webkit-transform: translateY(-3rem);
transform: translateY(-3rem);
}
100% {
opacity: 1;
+ -webkit-transform: translateY(0);
transform: translateY(0);
}
}
@@ -2362,6 +2466,7 @@ textarea.form-input {
position: relative;
}
.loading::after {
+ -webkit-animation: loading 500ms infinite linear;
animation: loading 500ms infinite linear;
border: .2rem solid #5764c6;
border-radius: .8rem;
@@ -2464,10 +2569,12 @@ textarea.form-input {
.flex {
display: flex;
display: -ms-flexbox;
+ display: -webkit-flex;
}
.inline-flex {
display: inline-flex;
display: -ms-inline-flexbox;
+ display: -webkit-inline-flex;
}
.hide {
display: none !important;