}
@include clearfix;
- &>li {
+ > li {
display: block;
height: auto;
float: $default-float;
}
@if $per-row {
- &>li {
+ > li {
width: 100%/$per-row;
@if $include-spacing {
padding: 0 ($spacing/2) $spacing;
@include crumb-container;
@include radius($crumb-radius);
- &>* {
+ > * {
@include crumbs;
}
}
// We use these to control left and right radius on first/last buttons in the group.
@if $radius == true {
&,
- & > a,
- & > button,
- & > .button { @include radius(0); }
+ > a,
+ > button,
+ > .button { @include radius(0); }
&:first-child,
&:first-child > a,
&:first-child > button,
}
@else if $radius {
&,
- & > a,
- & > button,
- & > .button { @include radius(0); }
+ > a,
+ > button,
+ > .button { @include radius(0); }
&:first-child,
&:first-child > a,
&:first-child > button,
&.even-#{$i} li { @include button-group-style($even:$i, $float:null); }
}
- & > li { @include button-group-style(); }
+ > li { @include button-group-style(); }
&.stack {
- & > li { @include button-group-style($orientation:vertical); float: none; }
+ > li { @include button-group-style($orientation:vertical); float: none; }
}
&.stack-for-small {
- & > li {
+ > li {
@include button-group-style($orientation:horizontal);
@media #{$small-only} {
@include button-group-style($orientation:vertical);
height: 100%;
width: 40px;
top: 0;
- & > span {
+ > span {
position: absolute;
top: 50%;
display: block;
}
.clearing-main-prev {
#{$default-float}: 0;
- & > span {
+ > span {
#{$default-float}: 5px;
border-color: transparent;
border-#{$opposite-direction}-color: $clearing-arrow-color;
}
.clearing-main-next {
#{$opposite-direction}: 0;
- & > span {
+ > span {
border-color: transparent;
border-#{$default-float}-color: $clearing-arrow-color;
}
margin-top: 10px;
text-align: center;
- & > ul {
+ > ul {
display: inline-block;
z-index: 999;
height: 100%;
font-size: 0;
display: inline-block;
- & > * {
+ > * {
text-align: center;
font-size: $icon-bar-font-size;
width: 25%;
$image-width: $icon-bar-image-width,
$image-height: $icon-bar-image-height) {
- & > * {
+ > * {
font-size: $font-size;
padding: $padding;
background: $bar-bg;
- & > * {
+ > * {
label { color: $bar-font-color; }
i { color: $bar-icon-color; }
}
- & > a:hover {
+ > a:hover {
background: $bar-hover-color;
i { color: $bar-icon-color-hover; }
}
- & > a.active {
+ > a.active {
background: $bar-active-color;
list-style: none;
overflow: $inline-list-overflow;
- & > li {
+ > li {
list-style: none;
float: $default-float;
margin-#{$default-float}: $inline-list-default-float-list-margin;
display: $inline-list-display;
- &>* { display: $inline-list-children-display; }
+ > * { display: $inline-list-children-display; }
}
}
img { display: block; max-width: 100%; }
- &>* {
+ > * {
position: absolute;
top: 0;
width: 100%;
@else { color: $panel-font-color-alt; }
// Respect the padding, fool.
- &>:first-child { margin-top: 0; }
- &>:last-child { margin-bottom: 0; }
+ > :first-child { margin-top: 0; }
+ > :last-child { margin-bottom: 0; }
@if $adjust {
// We set the font color based on the darkness of the bg.
.column, .columns { min-width: 0; }
// Get rid of margin from first and last element inside modal
- & > :first-child { margin-top: 0; }
+ > :first-child { margin-top: 0; }
- & > :last-child { margin-bottom: 0; }
+ > :last-child { margin-bottom: 0; }
}
@if $width {
max-width: none !important;
margin-left: 0 !important;
}
-
+
// Modals pushed to back
&.toback {
z-index: $z-index-base - 2;
color: $tooltip-font-color;
background: $tooltip-bg;
- &>.nub {
+ > .nub {
display: block;
#{$default-float}: $tooltip-pip-size;
position: absolute;
}
&.round {
@include radius($tooltip-rounded);
- &>.nub {
+ > .nub {
left: 2rem;
}
}
@media #{$small} {
.tooltip {
- &>.nub {
+ > .nub {
border-color: transparent transparent $tooltip-bg transparent;
top: -($tooltip-pip-size * 2);
}
ul li {
background: $topbar-dropdown-bg;
- & > a {
+ > a {
display: block;
width: 100%;
color: $topbar-link-color;
.has-dropdown {
position: relative;
- & > a {
+ > a {
&:after {
@if ($topbar-arrows) {
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), $default-float);
}
&.moved { position: static;
- & > .dropdown {
+ > .dropdown {
@include topbar-show-dropdown();
width: 100%;
}
- & > a:after {
+ > a:after {
display: none;
}
}
.has-dropdown {
@if($topbar-arrows) {
- & > a {
+ > a {
padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important;
&:after {
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top);
}
&.moved { position: relative;
- & > .dropdown {
+ > .dropdown {
@include topbar-hide-dropdown();
}
}
&.hover, &.not-click:hover {
- & > .dropdown {
+ > .dropdown {
@include topbar-show-dropdown();
}
}
}
.dropdown li.has-dropdown {
- & > a {
+ > a {
@if ($topbar-dropdown-arrows) {
&:after {
border: none;
}
&:not(.has-form):not(.active) {
- & > a:not(.button) {
+ > a:not(.button) {
color: $topbar-dropdown-link-color;
background: $topbar-dropdown-link-bg;
}
}
}
- & > ul > .divider,
- & > ul > [role="separator"] {
+ > ul > .divider,
+ > ul > [role="separator"] {
border-bottom: none;
border-top: none;
border-#{$opposite-direction}: $topbar-divider-border-bottom;
.has-dropdown {
&:hover {
- & > .dropdown {
+ > .dropdown {
@include topbar-show-dropdown();
}
}