diff options
cleanup code & sort CSS properties alphabetically
1 files changed, 347 insertions, 348 deletions
| -rw-r--r-- | dist/spectre.css | 695 |
diff --git a/dist/spectre.css b/dist/spectre.css index 6e9f6c7..1d1a94d 100644 --- a/dist/spectre.css +++ b/dist/spectre.css @@ -6,10 +6,10 @@ html { font-family: sans-serif; /* 1 */ - -ms-text-size-adjust: 100%; - /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ + -ms-text-size-adjust: 100%; + /* 2 */ } /** * Remove the margin in all browsers (opinionated). @@ -93,9 +93,9 @@ a:hover { */ abbr[title] { border-bottom: none; - /* 1 */ - text-decoration: underline; /* 2 */ + text-decoration: underline; + /* 1 */ text-decoration: underline dotted; /* 2 */ } @@ -360,22 +360,21 @@ textarea { [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } -* { - box-sizing: border-box; -} +*, *::before, *::after { - box-sizing: border-box; + box-sizing: inherit; } html { + box-sizing: border-box; font-size: 10px; -webkit-tap-highlight-color: transparent; } body { + background-color: #fff; color: #333; font-family: "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Hiragino Kaku Gothic Pro", Meiryo, "Malgun Gothic", sans-serif; font-size: 1.4rem; - background-color: #fff; } a { color: #5764c6; @@ -387,16 +386,16 @@ a:focus { } [disabled], .disabled { - opacity: .5; cursor: default; + opacity: .5; pointer-events: none; } .btn .icon, .toast .icon, .menu .icon { - margin-right: .2rem; font-size: 1.3333em; line-height: .8em; + margin-right: .2rem; vertical-align: -20%; } h1, @@ -405,11 +404,11 @@ h3, h4, h5, h6 { + color: inherit; font-weight: 300; line-height: 1.1; - margin-top: 2.5rem; margin-bottom: 1.5rem; - color: inherit; + margin-top: 2.5rem; } h1 { font-size: 5rem; @@ -434,9 +433,9 @@ p { margin: 0 0 1rem; } blockquote { - padding: 1rem 2rem; border-left: .2rem solid #ddd; margin-left: 0; + padding: 1rem 2rem; } blockquote p:last-child { margin-bottom: 0; @@ -446,8 +445,8 @@ blockquote cite { } ul, ol { - padding: 0; margin: 2rem 0 2rem 2rem; + padding: 0; } ul ul, ol ul, @@ -475,57 +474,57 @@ ol ol { font-size: 120%; } .highlight { - padding: .2rem; - line-height: 1.6rem; - border-radius: .2rem; background-color: #ffe5a3; + border-radius: .2rem; + line-height: 1.6rem; + padding: .2rem; } pre { - margin-top: 1em; - margin-bottom: 1em; - padding: 1.5rem; + background-color: #f9f9f9; border-left: .2rem solid #5764c6; line-height: 1.8rem; - background-color: #f9f9f9; + margin-bottom: 1em; + margin-top: 1em; overflow: auto; + padding: 1.5rem; } code { - padding: .2rem .4rem; - margin: -.2rem .1em 0 .1em; - border-radius: .2rem; background-color: #efefef; + border-radius: .2rem; font-size: .9em; line-height: 1em; + margin: -.2rem .1em 0 .1em; + padding: .2rem .4rem; vertical-align: baseline; white-space: nowrap; } pre code { - margin-top: 0; - margin-bottom: 0; - border-left: 0; background-color: transparent; + border-left: 0; line-height: 1.8rem; + margin-bottom: 0; + margin-top: 0; } .container { - width: 100%; - overflow-x: hidden; margin-left: auto; margin-right: auto; + overflow-x: hidden; padding-left: 1rem; padding-right: 1rem; + width: 100%; } @media screen and (min-width: 981px) { .grid-960 { - width: 96rem; margin-left: auto; margin-right: auto; + width: 96rem; } } @media screen and (min-width: 481px) { .grid-480 { - width: 48rem; margin-left: auto; margin-right: auto; + width: 48rem; } } .columns { @@ -557,9 +556,9 @@ pre code { } @media screen and (min-width: 841px) { .columns { - display: -webkit-flex; - display: -ms-flexbox; display: flex; + display: -ms-flexbox; + display: -webkit-flex; } .col-12 { width: 100%; @@ -600,9 +599,9 @@ pre code { } @media screen and (min-width: 481px) and (max-width: 840px) { .columns { - display: -webkit-flex; - display: -ms-flexbox; display: flex; + display: -ms-flexbox; + display: -webkit-flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; @@ -651,41 +650,41 @@ pre code { } .img-responsive { display: block; - max-width: 100%; height: auto; + max-width: 100%; } .video-responsive { - position: relative; height: 0; - padding-top: 3rem; + overflow: hidden; padding-bottom: 56.25%; /* 16:9 */ - overflow: hidden; + padding-top: 3rem; + position: relative; } .video-responsive iframe, .video-responsive object, .video-responsive embed { + height: 100%; + left: 0; position: absolute; top: 0; - left: 0; width: 100%; - height: 100%; } .video-responsive video { - width: 100%; - max-width: 100%; height: auto; + max-width: 100%; + width: 100%; } .table { - width: 100%; border-collapse: collapse; border-spacing: 0; + width: 100%; } .table th, .table td { - text-align: left; - padding: 1.5rem 1rem; border-bottom: .1rem solid #efefef; + padding: 1.5rem 1rem; + text-align: left; } .table th { border-color: #c9c9c9; @@ -694,55 +693,55 @@ pre code { background-color: #f4f4f4; } .btn { - display: inline-block; - height: 3.2rem; - padding: .7rem 1.5rem; - border: .1rem solid #5764c6; + -webkit-appearance: none; background-color: transparent; + border: .1rem solid #5764c6; border-radius: .3rem; color: #5764c6; + cursor: pointer; + display: inline-block; font-size: 1.4rem; + height: 3.2rem; line-height: 1.6rem; + outline: 0; + padding: .7rem 1.5rem; text-align: center; text-decoration: none; - vertical-align: middle; - white-space: nowrap; - cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; - -webkit-appearance: none; - outline: 0; + vertical-align: middle; + white-space: nowrap; } .btn:hover, .btn:focus { - color: #fff; - border-color: #4452c0; background-color: #5764c6; + border-color: #4452c0; + color: #fff; } .btn:active, .btn.active { - color: #fff; - border-color: #3b49af; background-color: #4452c0; + border-color: #3b49af; + color: #fff; } .btn.btn-primary { - color: #fff; - border-color: #4452c0; background-color: #5764c6; + border-color: #4452c0; + color: #fff; } .btn.btn-primary:hover, .btn.btn-primary:focus { - color: #fff; - border-color: #3b49af; background-color: #4452c0; + border-color: #3b49af; + color: #fff; } .btn.btn-primary:active, .btn.btn-primary.active { - color: #fff; - border-color: #35419c; background-color: #3b49af; + border-color: #35419c; + color: #fff; } .btn.btn-primary.loading::after { border-color: #fff; @@ -750,9 +749,9 @@ pre code { border-top-color: transparent; } .btn.btn-link { - color: #5764c6; - border-color: transparent; background-color: transparent; + border-color: transparent; + color: #5764c6; } .btn.btn-link:hover, .btn.btn-link:focus { @@ -763,65 +762,65 @@ pre code { color: #283176; } .btn.btn-sm { - height: 2.4rem; border-radius: .2rem; font-size: 1.2rem; + height: 2.4rem; line-height: 1.4rem; padding: .4rem 1rem; } .btn.btn-lg { - height: 4.2rem; border-radius: .4rem; font-size: 1.8rem; + height: 4.2rem; line-height: 2rem; padding: 1rem 1.8rem; } .btn.btn-block { - width: 100%; display: block; + width: 100%; } .btn.btn-clear { - width: 1.4rem; - height: 1.4rem; - padding: 0; - margin: .1rem -.2rem .1rem .2rem; + background-color: transparent; border: 0; border-radius: .7rem; - vertical-align: top; - position: relative; - background-color: transparent; + height: 1.4rem; + margin: .1rem -.2rem .1rem .2rem; opacity: .35; + padding: 0; + position: relative; + vertical-align: top; + width: 1.4rem; } .btn.btn-clear:hover { opacity: .75; } .btn.btn-clear::before, .btn.btn-clear::after { + background-color: #333; content: ""; display: block; + left: 50%; position: absolute; top: 50%; - left: 50%; - background-color: #333; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } .btn.btn-clear::before { - width: 1rem; height: .2rem; margin-left: -.5rem; margin-top: -.1rem; + width: 1rem; } .btn.btn-clear::after { - width: .2rem; height: 1rem; margin-left: -.1rem; margin-top: -.5rem; + width: .2rem; } .btn-group { - display: -webkit-inline-flex; - display: -ms-inline-flexbox; display: inline-flex; + display: -ms-inline-flexbox; + display: -webkit-inline-flex; -webkit-flex-wrap: wrap; -ms-flex-wrap: wrap; flex-wrap: wrap; @@ -832,26 +831,26 @@ pre code { flex: 1 0 auto; } .btn-group .btn:first-child:not(:last-child) { - border-top-right-radius: 0; border-bottom-right-radius: 0; + border-top-right-radius: 0; } .btn-group .btn:not(:first-child):not(:last-child) { - margin-left: -.1rem; border-radius: 0; + margin-left: -.1rem; } .btn-group .btn:last-child:not(:first-child) { - margin-left: -.1rem; - border-top-left-radius: 0; border-bottom-left-radius: 0; + border-top-left-radius: 0; + margin-left: -.1rem; } .btn-group .btn:hover, .btn-group .btn:focus { z-index: 99; } .btn-group.btn-group-block { - display: -webkit-flex; - display: -ms-flexbox; display: flex; + display: -ms-flexbox; + display: -webkit-flex; } .form-group:not(:last-child) { margin-bottom: 1rem; @@ -861,9 +860,9 @@ pre code { padding: 1rem; } .form-horizontal .form-group { - display: -webkit-flex; - display: -ms-flexbox; display: flex; + display: -ms-flexbox; + display: -webkit-flex; } .form-horizontal .form-label { padding: .8rem .4rem; @@ -890,21 +889,21 @@ pre code { } } .form-input { - position: relative; - display: block; - width: 100%; - max-width: 100%; - height: 3.2rem; + -webkit-appearance: none; background-color: #fff; background-image: none; border: .1rem solid #c5c5c5; border-radius: .3rem; color: #333; + display: block; font-size: 1.4rem; + height: 3.2rem; line-height: 1.6rem; - padding: .5rem .8rem; - -webkit-appearance: none; + max-width: 100%; outline: 0; + padding: .5rem .8rem; + position: relative; + width: 100%; } .form-input:focus { border-color: #5764c6; @@ -913,20 +912,20 @@ pre code { background-color: #eeeff2; } .form-input.input-sm { - height: 2.4rem; border-radius: .2rem; font-size: 1.2rem; + height: 2.4rem; padding: .4rem .6rem; } .form-input.input-lg { - height: 4.2rem; border-radius: .4rem; font-size: 1.6rem; + height: 4.2rem; padding: 1rem 1.2rem; } .form-input.input-inline { - width: auto; display: inline-block; + width: auto; } textarea.form-input { height: auto; @@ -942,8 +941,8 @@ textarea.form-input { } .form-label { display: block; - margin-bottom: .5rem; line-height: 1.6rem; + margin-bottom: .5rem; } .form-select { -webkit-appearance: none; @@ -951,25 +950,25 @@ textarea.form-input { appearance: none; } .form-select:not([multiple]) { - height: 3.2rem; - font-size: 1.4rem; - vertical-align: middle; - padding: .5rem 2.4rem .5rem .8rem; + background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center / .8rem 1rem; border: .1rem solid #c5c5c5; border-radius: .3rem; + font-size: 1.4rem; + height: 3.2rem; outline: 0; - background: #fff url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAUCAMAAACzvE1FAAAADFBMVEUzMzMzMzMzMzMzMzMKAG/3AAAAA3RSTlMAf4C/aSLHAAAAPElEQVR42q3NMQ4AIAgEQTn//2cLdRKppSGzBYwzVXvznNWs8C58CiussPJj8h6NwgorrKRdTvuV9v16Afn0AYFOB7aYAAAAAElFTkSuQmCC) no-repeat right .75rem center / .8rem 1rem; + padding: .5rem 2.4rem .5rem .8rem; + vertical-align: middle; } .form-select:focus { border-color: #5764c6; } -.form-select select::-ms-expand { +.form-select::-ms-expand { display: none; } .form-select.select-sm { - height: 2.4rem; border-radius: .2rem; font-size: 1.2rem; + height: 2.4rem; padding: .4rem .6rem; } .form-checkbox input, @@ -979,26 +978,26 @@ textarea.form-input { } .form-checkbox, .form-radio { - line-height: 1.8rem; - padding: .3rem 2rem; cursor: pointer; display: inline-block; + line-height: 1.8rem; + padding: .3rem 2rem; position: relative; } .form-checkbox .form-icon, .form-radio .form-icon { - font-size: 1.4rem; - line-height: 2.4rem; - vertical-align: top; border: .1rem solid #c5c5c5; display: inline-block; - width: 1.4rem; + font-size: 1.4rem; height: 1.4rem; + left: 0; + line-height: 2.4rem; + outline: none; padding: 0; position: absolute; top: .5rem; - left: 0; - outline: none; + vertical-align: top; + width: 1.4rem; } .form-checkbox:hover .form-icon, .form-radio:hover .form-icon { @@ -1013,68 +1012,68 @@ textarea.form-input { border-radius: .2rem; } .form-checkbox input:checked + .form-icon::after { - width: .6rem; - height: 1rem; + border: .2rem solid #fff; + border-left-width: 0; + border-top-width: 0; content: ""; - position: absolute; - top: 50%; + height: 1rem; left: 50%; - margin-top: -.6rem; margin-left: -.3rem; - border: .2rem solid #fff; - border-top-width: 0; - border-left-width: 0; + margin-top: -.6rem; + position: absolute; + top: 50%; -webkit-transform: rotate(45deg); transform: rotate(45deg); + width: .6rem; } .form-radio .form-icon { border-radius: .7rem; } .form-radio input:checked + .form-icon::after { - width: .4rem; - height: .4rem; + background-color: #fff; + border-radius: .2rem; content: ""; - position: absolute; - top: 50%; + height: .4rem; left: 50%; - margin-top: -.2rem; margin-left: -.2rem; - border-radius: .2rem; - background-color: #fff; + margin-top: -.2rem; + position: absolute; + top: 50%; + width: .4rem; } .form-switch { - line-height: 1.8rem; - padding: .3rem 2rem .3rem 3.6rem; cursor: pointer; display: inline-block; + line-height: 1.8rem; + padding: .3rem 2rem .3rem 3.6rem; position: relative; } .form-switch .form-icon { - line-height: 2.4rem; - vertical-align: top; - border: .1rem solid #c5c5c5; background-color: #c5c5c5; + border: .1rem solid #c5c5c5; + border-radius: .9rem; display: inline-block; - width: 3rem; height: 1.8rem; + left: 0; + line-height: 2.4rem; + outline: none; padding: 0; - border-radius: .9rem; position: absolute; top: .3rem; - left: 0; - outline: none; + vertical-align: top; + width: 3rem; } .form-switch .form-icon::after { + background-color: #fff; + border-radius: .8rem; content: ""; display: block; - width: 1.6rem; height: 1.6rem; - border-radius: .8rem; + left: 0; position: absolute; top: 0; - left: 0; - background-color: #fff; transition: left .15s ease; + width: 1.6rem; } .form-switch input:checked + .form-icon { background-color: #5764c6; @@ -1084,16 +1083,16 @@ textarea.form-input { left: 1.2rem; } .input-group { - display: -webkit-flex; - display: -ms-flexbox; display: flex; + display: -ms-flexbox; + display: -webkit-flex; } .input-group .input-group-addon { - line-height: 1.6rem; - padding: .7rem .8rem; + background-color: #efefef; border: .1rem solid #c5c5c5; border-radius: .3rem; - background-color: #efefef; + line-height: 1.6rem; + padding: .7rem .8rem; } .input-group .input-group-addon, .input-group .input-group-btn { @@ -1104,21 +1103,21 @@ textarea.form-input { .input-group .form-input:first-child:not(:last-child), .input-group .input-group-addon:first-child:not(:last-child), .input-group .input-group-btn:first-child:not(:last-child) { - border-top-right-radius: 0; border-bottom-right-radius: 0; + border-top-right-radius: 0; } .input-group .form-input:not(:first-child):not(:last-child), .input-group .input-group-addon:not(:first-child):not(:last-child), .input-group .input-group-btn:not(:first-child):not(:last-child) { - margin-left: -.1rem; border-radius: 0; + margin-left: -.1rem; } .input-group .form-input:last-child:not(:first-child), .input-group .input-group-addon:last-child:not(:first-child), .input-group .input-group-btn:last-child:not(:first-child) { - margin-left: -.1rem; - border-top-left-radius: 0; border-bottom-left-radius: 0; + border-top-left-radius: 0; + margin-left: -.1rem; } .input-group .form-input:focus, .input-group .input-group-addon:focus, @@ -1126,57 +1125,57 @@ textarea.form-input { z-index: 99; } .avatar { + border-radius: 50%; display: inline-block; - width: 3.2rem; - height: 3.2rem; font-size: 1.4rem; font-weight: 300; + height: 3.2rem; line-height: 1; margin: 0; - border-radius: 50%; - vertical-align: middle; position: relative; + vertical-align: middle; + width: 3.2rem; } .avatar.avatar-xs { - width: 1.6rem; - height: 1.6rem; font-size: .8rem; + height: 1.6rem; + width: 1.6rem; } .avatar.avatar-sm { - width: 2.4rem; - height: 2.4rem; font-size: 1rem; + height: 2.4rem; + width: 2.4rem; } .avatar.avatar-lg { - width: 4.8rem; - height: 4.8rem; font-size: 2rem; + height: 4.8rem; + width: 4.8rem; } .avatar.avatar-xl { - width: 6.4rem; - height: 6.4rem; font-size: 2.6rem; + height: 6.4rem; + width: 6.4rem; } .avatar img { - width: 100%; - height: 100%; border-radius: 50%; + height: 100%; + width: 100%; } .avatar .avatar-icon { - width: 50%; + background-color: #fff; + bottom: -.2em; height: 50%; padding: 5%; position: absolute; right: -.2em; - bottom: -.2em; - background-color: #fff; + width: 50%; } .avatar[data-initial]::after { + color: #fff; content: attr(data-initial); + left: 50%; position: absolute; top: 50%; - left: 50%; - color: #fff; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); } @@ -1224,46 +1223,46 @@ textarea.form-input { position: relative; } .form-autocomplete .form-autocomplete-input { - display: block; - width: 100%; - max-width: 100%; - min-height: 3.2rem; background-color: #fff; - padding: .3rem .5rem 0 .5rem; border: .1rem solid #c5c5c5; border-radius: .3rem; color: #333; + display: block; font-size: 1.4rem; line-height: 1.6rem; + max-width: 100%; + min-height: 3.2rem; outline: 0; + padding: .3rem .5rem 0 .5rem; + width: 100%; } .form-autocomplete .form-autocomplete-input .chip-sm { margin-bottom: .3rem; } .form-autocomplete .form-autocomplete-input .form-input { - display: inline-block; - border-color: transparent; background-color: #fff; - width: auto; + border-color: transparent; + display: inline-block; height: 2.4rem; - padding: .3rem; margin-bottom: .3rem; + padding: .3rem; vertical-align: top; + width: auto; } .form-autocomplete .form-autocomplete-list { - position: absolute; - top: 100%; - left: 0; - z-index: 1988; - display: block; - width: 100%; - height: auto; - padding: .5rem; - margin: .3rem 0 0 0; + background-color: #fff; border: .1rem solid #d2d2d2; border-radius: .3rem; - background-color: #fff; box-shadow: 0 .1rem .2rem rgba(0, 0, 0, .15); + display: block; + height: auto; + left: 0; + margin: .3rem 0 0 0; + padding: .5rem; + position: absolute; + top: 100%; + width: 100%; + z-index: 1988; } .form-autocomplete .form-autocomplete-list .chip { background-color: transparent; @@ -1276,31 +1275,31 @@ textarea.form-input { position: relative; } .badge::after { - content: attr(data-badge); + background-color: #5764c6; + border: .1rem solid #fff; + border-radius: 1rem; color: #fff; + content: attr(data-badge); + display: inline-block; font-size: 1.2rem; - text-align: center; + height: 2rem; line-height: 1.4rem; - background-color: #5764c6; - display: inline-block; min-width: 2rem; - height: 2rem; padding: .2rem .5rem; - border: .1rem solid #fff; - border-radius: 1rem; - white-space: nowrap; + text-align: center; -webkit-transform: translate(-.2rem, -.8rem); transform: translate(-.2rem, -.8rem); + white-space: nowrap; } .card { + background-color: #fff; + border-radius: .3rem; + box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3); display: block; - text-align: left; margin: 0; padding: 0; - border-radius: .3rem; - background-color: #fff; + text-align: left; z-index: 999; - box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3); } .card .card-header, .card .card-image, @@ -1326,33 +1325,33 @@ textarea.form-input { border-top-right-radius: .3rem; } .card .card-title { - margin-top: 0; - margin-bottom: .5rem; font-size: 1.6em; line-height: 1; + margin-bottom: .5rem; + margin-top: 0; } .card .card-meta { - margin-top: 0; - margin-bottom: 0; - font-size: 1em; color: #b3b3b3; + font-size: 1em; + margin-bottom: 0; + margin-top: 0; } .chip { - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - padding: .3rem .8rem; + -webkit-align-content: space-around; + align-content: space-around; + -webkit-align-items: center; + align-items: center; border: .1rem solid transparent; border-radius: .3rem; - margin: 0; - list-style: none; - -webkit-align-items: center; + color: #666; + display: flex; + display: -ms-flexbox; + display: -webkit-flex; -ms-flex-align: center; - align-items: center; - -webkit-align-content: space-around; -ms-flex-line-pack: distribute; - align-content: space-around; - color: #666; + list-style: none; + margin: 0; + padding: .3rem .8rem; } .chip .chip-icon { -webkit-flex: 0 0 auto; @@ -1363,10 +1362,10 @@ textarea.form-input { -webkit-flex: 1 1 auto; -ms-flex: 1 1 auto; flex: 1 1 auto; - padding: 0 1rem; - white-space: nowrap; overflow: hidden; + padding: 0 1rem; text-overflow: ellipsis; + white-space: nowrap; } .chip .chip-action { -webkit-flex: 0 0 auto; @@ -1374,38 +1373,38 @@ textarea.form-input { flex: 0 0 auto; } .chip .chip-action .btn { - padding: .7rem .5rem; border-color: transparent; color: #c5c5c5; + padding: .7rem .5rem; } .chip .chip-action .btn:hover, .chip .chip-action .btn:focus { - color: #5764c6; - border-color: transparent; background-color: transparent; + border-color: transparent; + color: #5764c6; } .chip .chip-action .btn:active, .chip .chip-action .btn.active { - color: #4452c0; - border-color: transparent; background-color: transparent; + border-color: transparent; + color: #4452c0; } .chip-sm { - display: -webkit-inline-flex; + -webkit-align-items: center; + align-items: center; + background-color: #eff1fa; + border-radius: .3rem; + color: #666; display: -ms-inline-flexbox; display: inline-flex; - -webkit-align-items: center; + display: -webkit-inline-flex; -ms-flex-align: center; - align-items: center; - vertical-align: middle; - max-width: 100%; + font-size: 1.2rem; height: 2.4rem; + max-width: 100%; padding: .3rem .6rem; - border-radius: .3rem; - font-size: 1.2rem; - background-color: #eff1fa; - color: #666; text-decoration: none; + vertical-align: middle; } .chip-sm:hover, .chip-sm:focus { @@ -1425,70 +1424,70 @@ textarea.form-input { } .chip-sm .chip-name { margin-left: .4rem; - white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + white-space: nowrap; } .chip-sm .avatar { - width: 1.6rem; - height: 1.6rem; font-size: .8rem; + height: 1.6rem; + width: 1.6rem; } .label { + background-color: #efefef; + border-radius: .2rem; + color: #666; display: inline-block; - padding: .2rem .4rem; font-size: .9em; line-height: 1em; - color: #666; - background-color: #efefef; + margin: -.2rem .1em 0 .1em; + padding: .2rem .4rem; text-align: center; - white-space: nowrap; vertical-align: baseline; - margin: -.2rem .1em 0 .1em; - border-radius: .2rem; + white-space: nowrap; } .label.label-primary { - color: #fff; background-color: #5764c6; border-color: #4f5dc3; + color: #fff; } .label.label-success { - color: #fff; background-color: #32b643; border-color: #30ae40; + color: #fff; } .label.label-info { - color: #fff; background-color: #0193eb; border-color: #018de1; + color: #fff; } .label.label-warning { - color: #fff; background-color: #ffb700; border-color: #f5b000; + color: #fff; } .label.label-danger { - color: #fff; background-color: #e85600; border-color: #de5200; + color: #fff; } .menu { + background-color: #fff; + border-radius: .3rem; + box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3); display: block; - text-align: left; margin: 0; padding: .5rem; - border-radius: .3rem; - background-color: #fff; + text-align: left; z-index: 999; - box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3); } .menu .menu-item { - display: block; - padding: .2rem 1rem; - margin-top: .1rem; border-radius: .3rem; color: #333; + display: block; line-height: 2.4rem; + margin-top: .1rem; + padding: .2rem 1rem; text-decoration: none; -webkit-user-select: none; -moz-user-select: none; @@ -1496,11 +1495,11 @@ textarea.form-input { user-select: none; } .menu .menu-item a { + border-radius: .3rem; + color: inherit; display: block; margin: -.2rem -1rem; padding: .2rem 1rem; - border-radius: .3rem; - color: inherit; text-decoration: none; } .menu .menu-item a:hover, @@ -1509,100 +1508,100 @@ textarea.form-input { } .menu .menu-item a:active, .menu .menu-item a.active { - color: #4452c0; background-color: #eff1fa; + color: #4452c0; } .menu .menu-header { + color: #ccc; display: block; - padding: .2rem 1rem; - margin-top: 0; font-size: 1.2rem; line-height: 1.8rem; - color: #ccc; + margin-top: 0; + padding: .2rem 1rem; } .menu .menu-header .menu-header-text { + background-color: #fff; display: inline-block; - padding: 0 .6rem; margin-left: -.6rem; - background-color: #fff; + padding: 0 .6rem; position: relative; z-index: 99; } .menu .menu-header::after { + border-bottom: .1rem solid #efefef; content: ""; display: block; - width: 100%; height: .1rem; -webkit-transform: translateY(-1rem); transform: translateY(-1rem); - border-bottom: .1rem solid #efefef; + width: 100%; } .menu .divider { - display: block; border-bottom: .1rem solid #efefef; + display: block; margin: .5rem; } .modal { - display: none; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; -webkit-align-items: center; + align-items: center; + bottom: 0; + display: none; -ms-flex-align: center; + -ms-flex-pack: center; -ms-grid-row-align: center; - align-items: center; -webkit-justify-content: center; - -ms-flex-pack: center; justify-content: center; - overflow: hidden; + left: 0; opacity: 0; + overflow: hidden; + position: fixed; + right: 0; + top: 0; } .modal.active { - display: -webkit-flex; - display: -ms-flexbox; display: flex; - z-index: 1988; + display: -ms-flexbox; + display: -webkit-flex; opacity: 1; + z-index: 1988; } .modal.active .modal-overlay { + background-color: rgba(0, 0, 0, .75); + bottom: 0; display: block; + left: 0; position: absolute; - top: 0; right: 0; - bottom: 0; - left: 0; - background-color: rgba(0, 0, 0, .75); + top: 0; } .modal.active .modal-container { -webkit-animation: slide-down .216s; animation: slide-down .216s; } .modal-container { + -webkit-animation: slide-up .216s; + animation: slide-up .216s; + background-color: #fff; + border-radius: .3rem; + box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3); display: block; - text-align: left; margin: 0 auto; padding: 0; - border-radius: .3rem; - background-color: #fff; + text-align: left; z-index: 1988; - -webkit-animation: slide-up .216s; - animation: slide-up .216s; - box-shadow: 0 .1rem .4rem rgba(0, 0, 0, .3); } .modal-container .modal-header { padding: 1.5rem; } .modal-container .modal-header .modal-title { - margin: 0; font-size: 1.5rem; + margin: 0; } .modal-container .modal-body { - position: relative; - padding: 1.5rem; max-height: 50vh; overflow-y: auto; + padding: 1.5rem; + position: relative; } .modal-container .modal-footer { padding: 1.5rem; @@ -1640,23 +1639,23 @@ textarea.form-input { pointer-events: none; } .breadcrumb .breadcrumb-item:not(:last-child)::after { + color: #c5c5c5; content: "/"; padding: 0 .4rem; - color: #c5c5c5; } .tab { - display: block; border-bottom: .1rem solid #c5c5c5; + display: block; } .tab .tab-item { display: inline-block; margin-bottom: -.1rem; } .tab .tab-item a { - display: block; - padding: .5rem 1.5rem; border-bottom: .2rem solid transparent; color: #333; + display: block; + padding: .5rem 1.5rem; text-decoration: none; } .tab .tab-item a:hover, @@ -1669,9 +1668,9 @@ textarea.form-input { color: #3b49af; } .tab.tab-block { - display: -webkit-flex; - display: -ms-flexbox; display: flex; + display: -ms-flexbox; + display: -webkit-flex; } .tab.tab-block .tab-item { -webkit-flex: 1 0 auto; @@ -1691,10 +1690,10 @@ textarea.form-input { padding: .6rem .5rem; } .pagination .page-item a { + border-radius: .3rem; display: inline-block; - padding: .6rem 1.2rem; margin: 0 .1rem; - border-radius: .3rem; + padding: .6rem 1.2rem; text-decoration: none; } .pagination .page-item a:hover, @@ -1702,42 +1701,42 @@ textarea.form-input { background-color: #eff1fa; } .pagination .page-item.active a { - color: #fff; background-color: #5764c6; + color: #fff; } .toast { - display: block; - width: 100%; - padding: 1.4rem; - color: #666; + background-color: #efefef; border: .1rem solid #eaeaea; border-radius: .3rem; - background-color: #efefef; + color: #666; + display: block; + padding: 1.4rem; + width: 100%; } .toast.toast-primary { - color: #fff; background-color: #5764c6; border-color: #4f5dc3; + color: #fff; } .toast.toast-success { - color: #fff; background-color: #32b643; border-color: #30ae40; + color: #fff; } .toast.toast-info { - color: #fff; background-color: #0193eb; border-color: #018de1; + color: #fff; } .toast.toast-warning { - color: #fff; background-color: #ffb700; border-color: #f5b000; + color: #fff; } .toast.toast-danger { - color: #fff; background-color: #e85600; border-color: #de5200; + color: #fff; } .toast:first-child:not(:last-child) { border-bottom-left-radius: 0; @@ -1756,26 +1755,26 @@ textarea.form-input { position: relative; } .tooltip::after { - content: attr(data-tooltip); - display: block; - max-width: 32rem; - padding: .6rem 1rem; - border-radius: .3rem; background-color: rgba(51, 51, 51, .9); - opacity: 0; + border-radius: .3rem; + bottom: 100%; color: #fff; + content: attr(data-tooltip); + display: block; font-size: 1.2rem; + left: 50%; line-height: 1.6rem; - text-overflow: ellipsis; + max-width: 32rem; + opacity: 0; + overflow: hidden; + padding: .6rem 1rem; + pointer-events: none; position: absolute; - bottom: 100%; - left: 50%; + text-overflow: ellipsis; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); - overflow: hidden; - z-index: 99; - pointer-events: none; transition: all .216s ease; + z-index: 99; } .tooltip:hover::after, .tooltip:focus::after { @@ -1795,8 +1794,8 @@ textarea.form-input { transform: translate(.5rem, 50%); } .tooltip.tooltip-bottom::after { - top: 100%; bottom: auto; + top: 100%; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); } @@ -1806,9 +1805,9 @@ textarea.form-input { transform: translate(-50%, .5rem); } .tooltip.tooltip-left::after { - right: 100%; bottom: 50%; left: auto; + right: 100%; -webkit-transform: translate(0, 50%); transform: translate(0, 50%); } @@ -1820,9 +1819,9 @@ textarea.form-input { .clearfix::after, .container::after, .columns::after { + clear: both; content: ""; display: table; - clear: both; } .float-left { float: left !important; @@ -1903,14 +1902,14 @@ textarea.form-input { display: inline-block; } .flex { - display: -webkit-flex; - display: -ms-flexbox; display: flex; + display: -ms-flexbox; + display: -webkit-flex; } .inline-flex { - display: -webkit-inline-flex; - display: -ms-inline-flexbox; display: inline-flex; + display: -ms-inline-flexbox; + display: -webkit-inline-flex; } .hide { display: none !important; @@ -1922,11 +1921,11 @@ textarea.form-input { visibility: hidden; } .text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; background-color: transparent; border: 0; + color: transparent; + font: 0/0 a; + text-shadow: none; } .text-left { text-align: left; @@ -1959,21 +1958,21 @@ textarea.form-input { font-style: italic; } .text-ellipsis { - white-space: nowrap; overflow: hidden; text-overflow: ellipsis; + white-space: nowrap; } .text-clip { - white-space: nowrap; overflow: hidden; text-overflow: clip; + white-space: nowrap; } .text-break { - word-break: break-word; - word-wrap: break-word; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; + word-break: break-word; + word-wrap: break-word; } .hand { cursor: pointer; @@ -1991,25 +1990,25 @@ textarea.form-input { border-radius: 50%; } .loading { + color: transparent !important; min-height: 1.6rem; - position: relative; pointer-events: none; - color: transparent !important; + position: relative; } .loading::after { + -webkit-animation: loading 500ms infinite linear; + animation: loading 500ms infinite linear; border: .2rem solid #5764c6; + border-radius: .8rem; border-right-color: transparent; border-top-color: transparent; - border-radius: .8rem; content: ""; - position: absolute; + display: block; + height: 1.6rem; left: 50%; - top: 50%; margin-left: -.8rem; margin-top: -.8rem; - display: block; + position: absolute; + top: 50%; width: 1.6rem; - height: 1.6rem; - -webkit-animation: loading 500ms infinite linear; - animation: loading 500ms infinite linear; } |