1
0
mirror of https://github.com/Chalarangelo/mini.css.git synced 2025-08-30 17:19:46 +02:00

Updated tab selectors

More updates on the tab selectors, making them lighter and easier to work with. Browser parsing should be a lot faster now.
This commit is contained in:
Angelos Chalaris
2017-06-05 17:00:43 +03:00
parent 8e77b43c3a
commit 826dab1ecd
4 changed files with 21 additions and 20 deletions

16
dist/mini-default.css vendored
View File

@@ -1598,12 +1598,12 @@ table.striped tr:nth-of-type(2n) > td {
background: rgba(230, 230, 230, 0.8);
}
.tabs > [type="radio"], .tabs.stacked > [type="checkbox"] {
.tabs > [type="radio"], .tabs > [type="checkbox"] {
display: none;
visibility: hidden;
}
.tabs > [type="radio"] + label + div, .tabs.stacked > [type="checkbox"] + label + div {
.tabs > label + div {
-webkit-flex-basis: auto;
flex-basis: auto;
-webkit-order: 2;
@@ -1627,15 +1627,15 @@ table.striped tr:nth-of-type(2n) > td {
.tabs > label:not(:first-of-type) {
border-left: 0;
}
.tabs > :checked + label {
background: #eeeeee;
}
.tabs > :checked + label:hover, .tabs > :checked + label:focus {
background: rgba(238, 238, 238, 0.8);
}
.tabs > :checked + label + div {
box-sizing: border-box;
position: relative;
@@ -1664,7 +1664,7 @@ table.striped tr:nth-of-type(2n) > td {
-webkit-order: initial;
order: initial;
}
.tabs.stacked > label + div {
-webkit-order: initial;
order: initial;
@@ -1676,7 +1676,7 @@ table.striped tr:nth-of-type(2n) > td {
border: 1px solid #bdbdbd;
border-top: 0;
}
.tabs.stacked > :checked + label + div {
height: auto;
}
@@ -1690,7 +1690,7 @@ table.striped tr:nth-of-type(2n) > td {
.tabs > label {
-webkit-order: initial;
order: initial;
}
}
.tabs > label + div {
-webkit-order: initial;
order: initial;

File diff suppressed because one or more lines are too long