mirror of
https://github.com/Chalarangelo/mini.css.git
synced 2025-08-09 15:26:29 +02:00
Minor bug fix in tabs module
This commit is contained in:
@@ -361,3 +361,5 @@
|
||||
- Tested on mobile, found some presentational problems.
|
||||
- Minor change to the way `transition`s work for `tabs`, they will now all utilize the `transform` implementation.
|
||||
- Deployed updated live demo page.
|
||||
- Tested on mobile, works better.
|
||||
- Minor `tabs` update for `:first-of-type` and `:last-of-type` selectors. This update should fix square top-right corners for single collapses.
|
||||
|
@@ -908,12 +908,12 @@ progress {
|
||||
.tabs.stacked > label {
|
||||
-webkit-order: initial;
|
||||
order: initial; }
|
||||
.tabs.stacked > label:first-of-type {
|
||||
border-top-right-radius: 2px; }
|
||||
.tabs.stacked > label:last-of-type {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-left-radius: 2px;
|
||||
border-bottom-right-radius: 2px; }
|
||||
.tabs.stacked > label:first-of-type {
|
||||
border-top-right-radius: 2px; }
|
||||
.tabs.stacked > [type="radio"]:checked + label, .tabs.stacked > [type="checkbox"]:checked + label {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0; }
|
||||
|
2
flavors/v2/mini-default.min.css
vendored
2
flavors/v2/mini-default.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -153,13 +153,13 @@ $tab-stacked-name: 'stacked' !default; // Class name for stacked tabs
|
||||
-webkit-order: initial; // Reset order to show stacked tabs properly
|
||||
order: initial;
|
||||
@if $tab-border-radius != 0 { // Style first and last tabs' labels' corners as needed
|
||||
&:first-of-type {
|
||||
border-top-right-radius: $tab-border-radius;
|
||||
}
|
||||
&:last-of-type {
|
||||
border-top-right-radius: 0;
|
||||
border-bottom-left-radius: $tab-border-radius;
|
||||
border-bottom-right-radius: $tab-border-radius;
|
||||
} // Keep :first-of-type below :last-of-type to make sure that single collapses get proper radiuses
|
||||
&:first-of-type {
|
||||
border-top-right-radius: $tab-border-radius;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user