diff options
Merge pull request #35 from picturepan2/hotfix/badge-on-tabs
Hotfix/badge on tabs
1 files changed, 16 insertions, 5 deletions
| -rw-r--r-- | dist/spectre.css | 21 |
diff --git a/dist/spectre.css b/dist/spectre.css index 58dee17..89ae1d7 100644 --- a/dist/spectre.css +++ b/dist/spectre.css @@ -1117,6 +1117,7 @@ textarea.form-input { padding: 0; position: absolute; top: .5rem; + transition: all .15s ease; vertical-align: top; width: 1.4rem; } @@ -1133,6 +1134,7 @@ textarea.form-input { border-radius: .2rem; } .form-checkbox input:checked + .form-icon::after { + background-clip: padding-box; border: .2rem solid #fff; border-left-width: 0; border-top-width: 0; @@ -1171,6 +1173,7 @@ textarea.form-input { } .form-switch .form-icon { background: #c5c5c5; + background-clip: padding-box; border: .1rem solid #c5c5c5; border-radius: .9rem; display: inline-block; @@ -1401,17 +1404,18 @@ textarea.form-input { .badge { position: relative; } -.badge::after { +.badge[data-badge]::after { background: #5764c6; + background-clip: padding-box; border: .1rem solid #fff; border-radius: 1rem; color: #fff; content: attr(data-badge); display: inline-block; - font-size: 1.2rem; - height: 2rem; - line-height: 1.4rem; - min-width: 2rem; + font-size: 1.1rem; + height: 1.8rem; + line-height: 1.2rem; + min-width: 1.8rem; padding: .2rem .5rem; text-align: center; -webkit-transform: translate(-.2rem, -.8rem); @@ -1765,6 +1769,13 @@ textarea.form-input { flex: 1 0 auto; text-align: center; } +.tab.tab-block .tab-item .badge[data-badge]::after { + position: absolute; + right: 1.5rem; + top: .5rem; + -webkit-transform: translate(50%, -.8rem); + transform: translate(50%, -.8rem); +} .pagination { display: inline-block; padding: 1.2rem; |