mirror of
https://github.com/jgthms/bulma
synced 2026-03-18 11:24:29 -07:00
Add CSS class name prefix
This commit is contained in:
@@ -9,7 +9,7 @@ $breadcrumb-item-padding-horizontal: 0.75em !default;
|
||||
|
||||
$breadcrumb-item-separator-color: $border-hover !default;
|
||||
|
||||
.breadcrumb {
|
||||
.#{$class-prefix}breadcrumb {
|
||||
@extend %block;
|
||||
|
||||
@extend %unselectable;
|
||||
@@ -22,7 +22,8 @@ $breadcrumb-item-separator-color: $border-hover !default;
|
||||
color: $breadcrumb-item-color;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: $breadcrumb-item-padding-vertical $breadcrumb-item-padding-horizontal;
|
||||
padding: $breadcrumb-item-padding-vertical
|
||||
$breadcrumb-item-padding-horizontal;
|
||||
|
||||
&:hover {
|
||||
color: $breadcrumb-item-hover-color;
|
||||
@@ -59,7 +60,7 @@ $breadcrumb-item-separator-color: $border-hover !default;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.icon {
|
||||
.#{$class-prefix}icon {
|
||||
&:first-child {
|
||||
@include ltr-property("margin", 0.5em);
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ $card-footer-padding: 0.75rem !default;
|
||||
|
||||
$card-media-margin: $block-spacing !default;
|
||||
|
||||
.card {
|
||||
.#{$class-prefix}card {
|
||||
background-color: $card-background-color;
|
||||
border-radius: $card-radius;
|
||||
box-shadow: $card-shadow;
|
||||
@@ -41,7 +41,7 @@ $card-media-margin: $block-spacing !default;
|
||||
}
|
||||
}
|
||||
|
||||
.card-header {
|
||||
.#{$class-prefix}card-header {
|
||||
@extend %card-item;
|
||||
|
||||
background-color: $card-header-background-color;
|
||||
@@ -50,7 +50,7 @@ $card-media-margin: $block-spacing !default;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.card-header-title {
|
||||
.#{$class-prefix}card-header-title {
|
||||
align-items: center;
|
||||
color: $card-header-color;
|
||||
display: flex;
|
||||
@@ -63,7 +63,7 @@ $card-media-margin: $block-spacing !default;
|
||||
}
|
||||
}
|
||||
|
||||
.card-header-icon {
|
||||
.#{$class-prefix}card-header-icon {
|
||||
@include reset;
|
||||
|
||||
align-items: center;
|
||||
@@ -73,7 +73,7 @@ $card-media-margin: $block-spacing !default;
|
||||
padding: $card-header-padding;
|
||||
}
|
||||
|
||||
.card-image {
|
||||
.#{$class-prefix}card-image {
|
||||
display: block;
|
||||
position: relative;
|
||||
|
||||
@@ -92,14 +92,14 @@ $card-media-margin: $block-spacing !default;
|
||||
}
|
||||
}
|
||||
|
||||
.card-content {
|
||||
.#{$class-prefix}card-content {
|
||||
@extend %card-item;
|
||||
|
||||
background-color: $card-content-background-color;
|
||||
padding: $card-content-padding;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
.#{$class-prefix}card-footer {
|
||||
@extend %card-item;
|
||||
|
||||
background-color: $card-footer-background-color;
|
||||
@@ -108,7 +108,7 @@ $card-media-margin: $block-spacing !default;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.card-footer-item {
|
||||
.#{$class-prefix}card-footer-item {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-basis: 0;
|
||||
@@ -124,8 +124,8 @@ $card-media-margin: $block-spacing !default;
|
||||
|
||||
// Combinations
|
||||
|
||||
.card {
|
||||
.media:not(:last-child) {
|
||||
.#{$class-prefix}card {
|
||||
.#{$class-prefix}media:not(:last-child) {
|
||||
margin-bottom: $card-media-margin;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,27 +19,27 @@ $dropdown-item-active-background-color: $link !default;
|
||||
|
||||
$dropdown-divider-background-color: $border-light !default;
|
||||
|
||||
.dropdown {
|
||||
.#{$class-prefix}dropdown {
|
||||
display: inline-flex;
|
||||
position: relative;
|
||||
vertical-align: top;
|
||||
|
||||
&.is-active,
|
||||
&.is-hoverable:hover {
|
||||
.dropdown-menu {
|
||||
.#{$class-prefix}dropdown-menu {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-right {
|
||||
.dropdown-menu {
|
||||
.#{$class-prefix}dropdown-menu {
|
||||
left: auto;
|
||||
right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-up {
|
||||
.dropdown-menu {
|
||||
.#{$class-prefix}dropdown-menu {
|
||||
bottom: 100%;
|
||||
padding-bottom: $dropdown-content-offset;
|
||||
padding-top: initial;
|
||||
@@ -48,7 +48,7 @@ $dropdown-divider-background-color: $border-light !default;
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-menu {
|
||||
.#{$class-prefix}dropdown-menu {
|
||||
display: none;
|
||||
|
||||
@include ltr-position(0, false);
|
||||
@@ -60,7 +60,7 @@ $dropdown-divider-background-color: $border-light !default;
|
||||
z-index: $dropdown-content-z;
|
||||
}
|
||||
|
||||
.dropdown-content {
|
||||
.#{$class-prefix}dropdown-content {
|
||||
background-color: $dropdown-content-background-color;
|
||||
border-radius: $dropdown-content-radius;
|
||||
box-shadow: $dropdown-content-shadow;
|
||||
@@ -68,7 +68,7 @@ $dropdown-divider-background-color: $border-light !default;
|
||||
padding-top: $dropdown-content-padding-top;
|
||||
}
|
||||
|
||||
.dropdown-item {
|
||||
.#{$class-prefix}dropdown-item {
|
||||
color: $dropdown-item-color;
|
||||
display: block;
|
||||
font-size: 0.875rem;
|
||||
@@ -77,8 +77,8 @@ $dropdown-divider-background-color: $border-light !default;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
a.dropdown-item,
|
||||
button.dropdown-item {
|
||||
a.#{$class-prefix}dropdown-item,
|
||||
button.#{$class-prefix}dropdown-item {
|
||||
@include ltr-property("padding", 3rem);
|
||||
|
||||
text-align: inherit;
|
||||
@@ -96,7 +96,7 @@ button.dropdown-item {
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown-divider {
|
||||
.#{$class-prefix}dropdown-divider {
|
||||
background-color: $dropdown-divider-background-color;
|
||||
border: none;
|
||||
display: block;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
$level-item-spacing: $block-spacing * 0.5 !default;
|
||||
|
||||
.level {
|
||||
.#{$class-prefix}level {
|
||||
@extend %block;
|
||||
|
||||
align-items: center;
|
||||
@@ -21,16 +21,16 @@ $level-item-spacing: $block-spacing * 0.5 !default;
|
||||
&.is-mobile {
|
||||
display: flex;
|
||||
|
||||
.level-left,
|
||||
.level-right {
|
||||
.#{$class-prefix}level-left,
|
||||
.#{$class-prefix}level-right {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.level-left + .level-right {
|
||||
.#{$class-prefix}level-left + .#{$class-prefix}level-right {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.level-item {
|
||||
.#{$class-prefix}level-item {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 0;
|
||||
|
||||
@@ -47,7 +47,7 @@ $level-item-spacing: $block-spacing * 0.5 !default;
|
||||
@include tablet {
|
||||
display: flex;
|
||||
|
||||
& > .level-item {
|
||||
& > .#{$class-prefix}level-item {
|
||||
&:not(.is-narrow) {
|
||||
flex-grow: 1;
|
||||
}
|
||||
@@ -55,7 +55,7 @@ $level-item-spacing: $block-spacing * 0.5 !default;
|
||||
}
|
||||
}
|
||||
|
||||
.level-item {
|
||||
.#{$class-prefix}level-item {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
flex-basis: auto;
|
||||
@@ -63,8 +63,8 @@ $level-item-spacing: $block-spacing * 0.5 !default;
|
||||
flex-shrink: 0;
|
||||
justify-content: center;
|
||||
|
||||
.title,
|
||||
.subtitle {
|
||||
.#{$class-prefix}title,
|
||||
.#{$class-prefix}subtitle {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
@@ -76,13 +76,13 @@ $level-item-spacing: $block-spacing * 0.5 !default;
|
||||
}
|
||||
}
|
||||
|
||||
.level-left,
|
||||
.level-right {
|
||||
.#{$class-prefix}level-left,
|
||||
.#{$class-prefix}level-right {
|
||||
flex-basis: auto;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
|
||||
.level-item {
|
||||
.#{$class-prefix}level-item {
|
||||
// Modifiers
|
||||
&.is-flexible {
|
||||
flex-grow: 1;
|
||||
@@ -97,24 +97,23 @@ $level-item-spacing: $block-spacing * 0.5 !default;
|
||||
}
|
||||
}
|
||||
|
||||
.level-left {
|
||||
.#{$class-prefix}level-left {
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
|
||||
// Responsiveness
|
||||
@include mobile {
|
||||
& + .level-right {
|
||||
& + .#{$class-prefix}level-right {
|
||||
margin-top: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@include tablet {
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.level-right {
|
||||
.#{$class-prefix}level-right {
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
|
||||
|
||||
@@ -9,35 +9,35 @@ $media-level-1-spacing: 0.75rem !default;
|
||||
$media-level-1-content-spacing: 0.5rem !default;
|
||||
$media-level-2-spacing: 0.5rem !default;
|
||||
|
||||
.media {
|
||||
.#{$class-prefix}media {
|
||||
align-items: flex-start;
|
||||
display: flex;
|
||||
text-align: inherit;
|
||||
|
||||
.content:not(:last-child) {
|
||||
.#{$class-prefix}content:not(:last-child) {
|
||||
margin-bottom: $media-content-spacing;
|
||||
}
|
||||
|
||||
.media {
|
||||
.#{$class-prefix}media {
|
||||
border-top: $media-border-size solid $media-border-color;
|
||||
display: flex;
|
||||
padding-top: $media-level-1-spacing;
|
||||
|
||||
.content:not(:last-child),
|
||||
.control:not(:last-child) {
|
||||
.#{$class-prefix}content:not(:last-child),
|
||||
.#{$class-prefix}control:not(:last-child) {
|
||||
margin-bottom: $media-level-1-content-spacing;
|
||||
}
|
||||
|
||||
.media {
|
||||
.#{$class-prefix}media {
|
||||
padding-top: $media-level-2-spacing;
|
||||
|
||||
& + .media {
|
||||
& + .#{$class-prefix}media {
|
||||
margin-top: $media-level-2-spacing;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& + .media {
|
||||
& + .#{$class-prefix}media {
|
||||
border-top: $media-border-size solid $media-border-color;
|
||||
margin-top: $media-spacing;
|
||||
padding-top: $media-spacing;
|
||||
@@ -45,29 +45,29 @@ $media-level-2-spacing: 0.5rem !default;
|
||||
|
||||
// Sizes
|
||||
&.is-large {
|
||||
& + .media {
|
||||
& + .#{$class-prefix}media {
|
||||
margin-top: $media-spacing-large;
|
||||
padding-top: $media-spacing-large;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.media-left,
|
||||
.media-right {
|
||||
.#{$class-prefix}media-left,
|
||||
.#{$class-prefix}media-right {
|
||||
flex-basis: auto;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.media-left {
|
||||
.#{$class-prefix}media-left {
|
||||
@include ltr-property("margin", $media-spacing);
|
||||
}
|
||||
|
||||
.media-right {
|
||||
.#{$class-prefix}media-right {
|
||||
@include ltr-property("margin", $media-spacing, false);
|
||||
}
|
||||
|
||||
.media-content {
|
||||
.#{$class-prefix}media-content {
|
||||
flex-basis: auto;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
@@ -75,7 +75,7 @@ $media-level-2-spacing: 0.5rem !default;
|
||||
}
|
||||
|
||||
@include mobile {
|
||||
.media-content {
|
||||
.#{$class-prefix}media-content {
|
||||
overflow-x: auto;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ $menu-label-font-size: 0.75em !default;
|
||||
$menu-label-letter-spacing: 0.1em !default;
|
||||
$menu-label-spacing: 1em !default;
|
||||
|
||||
.menu {
|
||||
.#{$class-prefix}menu {
|
||||
font-size: $size-normal;
|
||||
|
||||
// Sizes
|
||||
@@ -35,7 +35,7 @@ $menu-label-spacing: 1em !default;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-list {
|
||||
.#{$class-prefix}menu-list {
|
||||
line-height: $menu-list-line-height;
|
||||
|
||||
a {
|
||||
@@ -67,7 +67,7 @@ $menu-label-spacing: 1em !default;
|
||||
}
|
||||
}
|
||||
|
||||
.menu-label {
|
||||
.#{$class-prefix}menu-label {
|
||||
color: $menu-label-color;
|
||||
font-size: $menu-label-font-size;
|
||||
letter-spacing: $menu-label-letter-spacing;
|
||||
|
||||
@@ -21,7 +21,7 @@ $message-body-pre-code-background-color: transparent !default;
|
||||
$message-header-body-border-width: 0 !default;
|
||||
$message-colors: $colors !default;
|
||||
|
||||
.message {
|
||||
.#{$class-prefix}message {
|
||||
@extend %block;
|
||||
|
||||
background-color: $message-background-color;
|
||||
@@ -32,7 +32,7 @@ $message-colors: $colors !default;
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
a:not(.button):not(.tag):not(.dropdown-item) {
|
||||
a:not(.#{$class-prefix}button):not(.#{$class-prefix}tag):not(.#{$class-prefix}dropdown-item) {
|
||||
color: currentColor;
|
||||
text-decoration: underline;
|
||||
}
|
||||
@@ -62,15 +62,16 @@ $message-colors: $colors !default;
|
||||
|
||||
@if length($components) >= 4 {
|
||||
$color-dark: nth($components, 4);
|
||||
}
|
||||
@else {
|
||||
} @else {
|
||||
$color-luminance: colorLuminance($color);
|
||||
$darken-percentage: $color-luminance * 70%;
|
||||
$desaturate-percentage: $color-luminance * 30%;
|
||||
$color-dark: desaturate(darken($color, $darken-percentage), $desaturate-percentage);
|
||||
$color-dark: desaturate(
|
||||
darken($color, $darken-percentage),
|
||||
$desaturate-percentage
|
||||
);
|
||||
}
|
||||
}
|
||||
@else {
|
||||
} @else {
|
||||
$color-lightning: max(100% - lightness($color) - 2%, 0%);
|
||||
$color-light: lighten($color, $color-lightning);
|
||||
}
|
||||
@@ -78,12 +79,12 @@ $message-colors: $colors !default;
|
||||
&.is-#{$name} {
|
||||
background-color: $color-light;
|
||||
|
||||
.message-header {
|
||||
.#{$class-prefix}message-header {
|
||||
background-color: $color;
|
||||
color: $color-invert;
|
||||
}
|
||||
|
||||
.message-body {
|
||||
.#{$class-prefix}message-body {
|
||||
border-color: $color;
|
||||
color: $color-dark;
|
||||
}
|
||||
@@ -91,7 +92,7 @@ $message-colors: $colors !default;
|
||||
}
|
||||
}
|
||||
|
||||
.message-header {
|
||||
.#{$class-prefix}message-header {
|
||||
align-items: center;
|
||||
background-color: $message-header-background-color;
|
||||
border-radius: $message-header-radius $message-header-radius 0 0;
|
||||
@@ -103,21 +104,21 @@ $message-colors: $colors !default;
|
||||
padding: $message-header-padding;
|
||||
position: relative;
|
||||
|
||||
.delete {
|
||||
.#{$class-prefix}delete {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
|
||||
@include ltr-property("margin", 0.75em, false);
|
||||
}
|
||||
|
||||
& + .message-body {
|
||||
& + .#{$class-prefix}message-body {
|
||||
border-width: $message-header-body-border-width;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.message-body {
|
||||
.#{$class-prefix}message-body {
|
||||
border-color: $message-body-border-color;
|
||||
border-radius: $message-body-radius;
|
||||
border-style: solid;
|
||||
|
||||
@@ -32,7 +32,7 @@ $modal-card-body-padding: 20px !default;
|
||||
|
||||
$modal-breakpoint: $tablet !default;
|
||||
|
||||
.modal {
|
||||
.#{$class-prefix}modal {
|
||||
@extend %overlay;
|
||||
|
||||
align-items: center;
|
||||
@@ -49,14 +49,14 @@ $modal-breakpoint: $tablet !default;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-background {
|
||||
.#{$class-prefix}modal-background {
|
||||
@extend %overlay;
|
||||
|
||||
background-color: $modal-background-background-color;
|
||||
}
|
||||
|
||||
.modal-content,
|
||||
.modal-card {
|
||||
.#{$class-prefix}modal-content,
|
||||
.#{$class-prefix}modal-card {
|
||||
margin: 0 $modal-content-margin-mobile;
|
||||
max-height: calc(100vh - #{$modal-content-spacing-mobile});
|
||||
overflow: auto;
|
||||
@@ -71,7 +71,7 @@ $modal-breakpoint: $tablet !default;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
.#{$class-prefix}modal-close {
|
||||
@extend %delete;
|
||||
|
||||
background: none;
|
||||
@@ -84,7 +84,7 @@ $modal-breakpoint: $tablet !default;
|
||||
width: $modal-close-dimensions;
|
||||
}
|
||||
|
||||
.modal-card {
|
||||
.#{$class-prefix}modal-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - #{$modal-card-spacing});
|
||||
@@ -92,8 +92,8 @@ $modal-breakpoint: $tablet !default;
|
||||
-ms-overflow-y: visible;
|
||||
}
|
||||
|
||||
.modal-card-head,
|
||||
.modal-card-foot {
|
||||
.#{$class-prefix}modal-card-head,
|
||||
.#{$class-prefix}modal-card-foot {
|
||||
align-items: center;
|
||||
background-color: $modal-card-head-background-color;
|
||||
display: flex;
|
||||
@@ -103,13 +103,13 @@ $modal-breakpoint: $tablet !default;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.modal-card-head {
|
||||
.#{$class-prefix}modal-card-head {
|
||||
border-bottom: $modal-card-head-border-bottom;
|
||||
border-top-left-radius: $modal-card-head-radius;
|
||||
border-top-right-radius: $modal-card-head-radius;
|
||||
}
|
||||
|
||||
.modal-card-title {
|
||||
.#{$class-prefix}modal-card-title {
|
||||
color: $modal-card-title-color;
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
@@ -117,19 +117,19 @@ $modal-breakpoint: $tablet !default;
|
||||
line-height: $modal-card-title-line-height;
|
||||
}
|
||||
|
||||
.modal-card-foot {
|
||||
.#{$class-prefix}modal-card-foot {
|
||||
border-bottom-left-radius: $modal-card-foot-radius;
|
||||
border-bottom-right-radius: $modal-card-foot-radius;
|
||||
border-top: $modal-card-foot-border-top;
|
||||
|
||||
.button {
|
||||
.#{$class-prefix}button {
|
||||
&:not(:last-child) {
|
||||
@include ltr-property("margin", 0.5em);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.modal-card-body {
|
||||
.#{$class-prefix}modal-card-body {
|
||||
@include overflow-touch;
|
||||
|
||||
background-color: $modal-card-body-background-color;
|
||||
|
||||
@@ -34,7 +34,8 @@ $navbar-dropdown-radius: $radius-large !default;
|
||||
$navbar-dropdown-z: 20 !default;
|
||||
|
||||
$navbar-dropdown-boxed-radius: $radius-large !default;
|
||||
$navbar-dropdown-boxed-shadow: 0 8px 8px bulmaRgba($scheme-invert, 0.1), 0 0 0 1px bulmaRgba($scheme-invert, 0.1) !default;
|
||||
$navbar-dropdown-boxed-shadow: 0 8px 8px bulmaRgba($scheme-invert, 0.1),
|
||||
0 0 0 1px bulmaRgba($scheme-invert, 0.1) !default;
|
||||
|
||||
$navbar-dropdown-item-hover-color: $scheme-invert !default;
|
||||
$navbar-dropdown-item-hover-background-color: $background !default;
|
||||
@@ -57,7 +58,7 @@ $navbar-colors: $colors !default;
|
||||
z-index: $navbar-fixed-z;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
.#{$class-prefix}navbar {
|
||||
background-color: $navbar-background-color;
|
||||
min-height: $navbar-height;
|
||||
position: relative;
|
||||
@@ -71,14 +72,14 @@ $navbar-colors: $colors !default;
|
||||
background-color: $color;
|
||||
color: $color-invert;
|
||||
|
||||
.navbar-brand {
|
||||
& > .navbar-item,
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-brand {
|
||||
& > .#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
color: $color-invert;
|
||||
}
|
||||
|
||||
& > a.navbar-item,
|
||||
.navbar-link {
|
||||
& > a.#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
&:focus,
|
||||
&:hover,
|
||||
&.is-active {
|
||||
@@ -87,27 +88,27 @@ $navbar-colors: $colors !default;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-link {
|
||||
&::after {
|
||||
border-color: $color-invert;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-burger {
|
||||
.#{$class-prefix}navbar-burger {
|
||||
color: $color-invert;
|
||||
}
|
||||
|
||||
@include from($navbar-breakpoint) {
|
||||
.navbar-start,
|
||||
.navbar-end {
|
||||
& > .navbar-item,
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-start,
|
||||
.#{$class-prefix}navbar-end {
|
||||
& > .#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
color: $color-invert;
|
||||
}
|
||||
|
||||
& > a.navbar-item,
|
||||
.navbar-link {
|
||||
& > a.#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
&:focus,
|
||||
&:hover,
|
||||
&.is-active {
|
||||
@@ -116,22 +117,25 @@ $navbar-colors: $colors !default;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-link {
|
||||
&::after {
|
||||
border-color: $color-invert;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item.has-dropdown:focus .navbar-link,
|
||||
.navbar-item.has-dropdown:hover .navbar-link,
|
||||
.navbar-item.has-dropdown.is-active .navbar-link {
|
||||
.#{$class-prefix}navbar-item.has-dropdown:focus
|
||||
.#{$class-prefix}navbar-link,
|
||||
.#{$class-prefix}navbar-item.has-dropdown:hover
|
||||
.#{$class-prefix}navbar-link,
|
||||
.#{$class-prefix}navbar-item.has-dropdown.is-active
|
||||
.#{$class-prefix}navbar-link {
|
||||
background-color: bulmaDarken($color, 5%);
|
||||
color: $color-invert;
|
||||
}
|
||||
|
||||
.navbar-dropdown {
|
||||
a.navbar-item {
|
||||
.#{$class-prefix}navbar-dropdown {
|
||||
a.#{$class-prefix}navbar-item {
|
||||
&.is-active {
|
||||
background-color: $color;
|
||||
color: $color-invert;
|
||||
@@ -142,7 +146,7 @@ $navbar-colors: $colors !default;
|
||||
}
|
||||
}
|
||||
|
||||
& > .container {
|
||||
& > .#{$class-prefix}container {
|
||||
align-items: stretch;
|
||||
display: flex;
|
||||
min-height: $navbar-height;
|
||||
@@ -182,16 +186,16 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-brand,
|
||||
.navbar-tabs {
|
||||
.#{$class-prefix}navbar-brand,
|
||||
.#{$class-prefix}navbar-tabs {
|
||||
align-items: stretch;
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
min-height: $navbar-height;
|
||||
}
|
||||
|
||||
.navbar-brand {
|
||||
a.navbar-item {
|
||||
.#{$class-prefix}navbar-brand {
|
||||
a.#{$class-prefix}navbar-item {
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: transparent;
|
||||
@@ -199,7 +203,7 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-tabs {
|
||||
.#{$class-prefix}navbar-tabs {
|
||||
@include overflow-touch;
|
||||
|
||||
max-width: 100vw;
|
||||
@@ -207,7 +211,7 @@ body {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.navbar-burger {
|
||||
.#{$class-prefix}navbar-burger {
|
||||
@extend %reset;
|
||||
|
||||
color: $navbar-burger-color;
|
||||
@@ -216,19 +220,19 @@ body {
|
||||
@include ltr-property("margin", auto, false);
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
.#{$class-prefix}navbar-menu {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.navbar-item,
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
color: $navbar-item-color;
|
||||
display: block;
|
||||
line-height: 1.5;
|
||||
padding: 0.5rem 0.75rem;
|
||||
position: relative;
|
||||
|
||||
.icon {
|
||||
.#{$class-prefix}icon {
|
||||
&:only-child {
|
||||
margin-left: -0.25rem;
|
||||
margin-right: -0.25rem;
|
||||
@@ -236,8 +240,8 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
a.navbar-item,
|
||||
.navbar-link {
|
||||
a.#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
cursor: pointer;
|
||||
|
||||
&:focus,
|
||||
@@ -249,7 +253,7 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item {
|
||||
.#{$class-prefix}navbar-item {
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
|
||||
@@ -288,12 +292,12 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-content {
|
||||
.#{$class-prefix}navbar-content {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.navbar-link:not(.is-arrowless) {
|
||||
.#{$class-prefix}navbar-link:not(.is-arrowless) {
|
||||
@include ltr-property("padding", 2.5em);
|
||||
|
||||
&::after {
|
||||
@@ -306,18 +310,18 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-dropdown {
|
||||
.#{$class-prefix}navbar-dropdown {
|
||||
font-size: 0.875rem;
|
||||
padding-bottom: 0.5rem;
|
||||
padding-top: 0.5rem;
|
||||
|
||||
.navbar-item {
|
||||
.#{$class-prefix}navbar-item {
|
||||
padding-left: 1.5rem;
|
||||
padding-right: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-divider {
|
||||
.#{$class-prefix}navbar-divider {
|
||||
background-color: $navbar-divider-background-color;
|
||||
border: none;
|
||||
display: none;
|
||||
@@ -326,25 +330,25 @@ a.navbar-item,
|
||||
}
|
||||
|
||||
@include until($navbar-breakpoint) {
|
||||
.navbar > .container {
|
||||
.#{$class-prefix}navbar > .#{$class-prefix}container {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.navbar-brand,
|
||||
.navbar-tabs {
|
||||
.navbar-item {
|
||||
.#{$class-prefix}navbar-brand,
|
||||
.#{$class-prefix}navbar-tabs {
|
||||
.#{$class-prefix}navbar-item {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-link {
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
.#{$class-prefix}navbar-menu {
|
||||
background-color: $navbar-background-color;
|
||||
box-shadow: 0 8px 16px bulmaRgba($scheme-invert, 0.1);
|
||||
padding: 0.5rem 0;
|
||||
@@ -355,7 +359,7 @@ a.navbar-item,
|
||||
}
|
||||
|
||||
// Fixed navbar
|
||||
.navbar {
|
||||
.#{$class-prefix}navbar {
|
||||
&.is-fixed-bottom-touch,
|
||||
&.is-fixed-top-touch {
|
||||
@include navbar-fixed;
|
||||
@@ -375,7 +379,7 @@ a.navbar-item,
|
||||
|
||||
&.is-fixed-top,
|
||||
&.is-fixed-top-touch {
|
||||
.navbar-menu {
|
||||
.#{$class-prefix}navbar-menu {
|
||||
@include overflow-touch;
|
||||
|
||||
max-height: calc(100vh - #{$navbar-height});
|
||||
@@ -396,36 +400,35 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@include from($navbar-breakpoint) {
|
||||
.navbar,
|
||||
.navbar-menu,
|
||||
.navbar-start,
|
||||
.navbar-end {
|
||||
.#{$class-prefix}navbar,
|
||||
.#{$class-prefix}navbar-menu,
|
||||
.#{$class-prefix}navbar-start,
|
||||
.#{$class-prefix}navbar-end {
|
||||
align-items: stretch;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
.#{$class-prefix}navbar {
|
||||
min-height: $navbar-height;
|
||||
|
||||
&.is-spaced {
|
||||
padding: $navbar-padding-vertical $navbar-padding-horizontal;
|
||||
|
||||
.navbar-start,
|
||||
.navbar-end {
|
||||
.#{$class-prefix}navbar-start,
|
||||
.#{$class-prefix}navbar-end {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
a.navbar-item,
|
||||
.navbar-link {
|
||||
a.#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
border-radius: $radius;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-transparent {
|
||||
a.navbar-item,
|
||||
.navbar-link {
|
||||
a.#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
&:focus,
|
||||
&:hover,
|
||||
&.is-active {
|
||||
@@ -433,19 +436,19 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item.has-dropdown {
|
||||
.#{$class-prefix}navbar-item.has-dropdown {
|
||||
&.is-active,
|
||||
&.is-hoverable:focus,
|
||||
&.is-hoverable:focus-within,
|
||||
&.is-hoverable:hover {
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-link {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-dropdown {
|
||||
a.navbar-item {
|
||||
.#{$class-prefix}navbar-dropdown {
|
||||
a.#{$class-prefix}navbar-item {
|
||||
&:focus,
|
||||
&:hover {
|
||||
background-color: $navbar-dropdown-item-hover-background-color;
|
||||
@@ -461,27 +464,27 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-burger {
|
||||
.#{$class-prefix}navbar-burger {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.navbar-item,
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.navbar-item {
|
||||
.#{$class-prefix}navbar-item {
|
||||
&.has-dropdown {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
&.has-dropdown-up {
|
||||
.navbar-link::after {
|
||||
.#{$class-prefix}navbar-link::after {
|
||||
transform: rotate(135deg) translate(0.25em, -0.25em);
|
||||
}
|
||||
|
||||
.navbar-dropdown {
|
||||
.#{$class-prefix}navbar-dropdown {
|
||||
border-bottom: $navbar-dropdown-border-top;
|
||||
border-radius: $navbar-dropdown-radius $navbar-dropdown-radius 0 0;
|
||||
border-top: none;
|
||||
@@ -495,10 +498,10 @@ a.navbar-item,
|
||||
&.is-hoverable:focus,
|
||||
&.is-hoverable:focus-within,
|
||||
&.is-hoverable:hover {
|
||||
.navbar-dropdown {
|
||||
.#{$class-prefix}navbar-dropdown {
|
||||
display: block;
|
||||
|
||||
.navbar.is-spaced &,
|
||||
.#{$class-prefix}navbar.is-spaced &,
|
||||
&.is-boxed {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
@@ -508,24 +511,24 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
.#{$class-prefix}navbar-menu {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.navbar-start {
|
||||
.#{$class-prefix}navbar-start {
|
||||
justify-content: flex-start;
|
||||
|
||||
@include ltr-property("margin", auto);
|
||||
}
|
||||
|
||||
.navbar-end {
|
||||
.#{$class-prefix}navbar-end {
|
||||
justify-content: flex-end;
|
||||
|
||||
@include ltr-property("margin", auto, false);
|
||||
}
|
||||
|
||||
.navbar-dropdown {
|
||||
.#{$class-prefix}navbar-dropdown {
|
||||
background-color: $navbar-dropdown-background-color;
|
||||
border-bottom-left-radius: $navbar-dropdown-radius;
|
||||
border-bottom-right-radius: $navbar-dropdown-radius;
|
||||
@@ -541,12 +544,12 @@ a.navbar-item,
|
||||
top: 100%;
|
||||
z-index: $navbar-dropdown-z;
|
||||
|
||||
.navbar-item {
|
||||
.#{$class-prefix}navbar-item {
|
||||
padding: 0.375rem 1rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
a.navbar-item {
|
||||
a.#{$class-prefix}navbar-item {
|
||||
@include ltr-property("padding", 3rem);
|
||||
|
||||
&:focus,
|
||||
@@ -561,7 +564,7 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar.is-spaced &,
|
||||
.#{$class-prefix}navbar.is-spaced &,
|
||||
&.is-boxed {
|
||||
border-radius: $navbar-dropdown-boxed-radius;
|
||||
border-top: none;
|
||||
@@ -581,23 +584,23 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-divider {
|
||||
.#{$class-prefix}navbar-divider {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.navbar > .container,
|
||||
.container > .navbar {
|
||||
.navbar-brand {
|
||||
.#{$class-prefix}navbar > .#{$class-prefix}container,
|
||||
.#{$class-prefix}container > .#{$class-prefix}navbar {
|
||||
.#{$class-prefix}navbar-brand {
|
||||
@include ltr-property("margin", -0.75rem, false);
|
||||
}
|
||||
|
||||
.navbar-menu {
|
||||
.#{$class-prefix}navbar-menu {
|
||||
@include ltr-property("margin", -0.75rem);
|
||||
}
|
||||
}
|
||||
|
||||
// Fixed navbar
|
||||
.navbar {
|
||||
.#{$class-prefix}navbar {
|
||||
&.is-fixed-bottom-desktop,
|
||||
&.is-fixed-top-desktop {
|
||||
@include navbar-fixed;
|
||||
@@ -636,8 +639,8 @@ a.navbar-item,
|
||||
}
|
||||
|
||||
// Hover/Active states
|
||||
a.navbar-item,
|
||||
.navbar-link {
|
||||
a.#{$class-prefix}navbar-item,
|
||||
.#{$class-prefix}navbar-link {
|
||||
&.is-active {
|
||||
color: $navbar-item-active-color;
|
||||
}
|
||||
@@ -647,21 +650,20 @@ a.navbar-item,
|
||||
}
|
||||
}
|
||||
|
||||
.navbar-item.has-dropdown {
|
||||
.#{$class-prefix}navbar-item.has-dropdown {
|
||||
&:focus,
|
||||
&:hover,
|
||||
&.is-active {
|
||||
.navbar-link {
|
||||
.#{$class-prefix}navbar-link {
|
||||
background-color: $navbar-item-hover-background-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Combination
|
||||
|
||||
.hero {
|
||||
.#{$class-prefix}hero {
|
||||
&.is-fullheight-with-navbar {
|
||||
min-height: calc(100vh - #{$navbar-height});
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ $pagination-ellipsis-color: $grey-light !default;
|
||||
|
||||
$pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
|
||||
|
||||
.pagination {
|
||||
.#{$class-prefix}pagination {
|
||||
@extend %block;
|
||||
|
||||
font-size: $size-normal;
|
||||
@@ -55,31 +55,31 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
|
||||
}
|
||||
|
||||
&.is-rounded {
|
||||
.pagination-previous,
|
||||
.pagination-next {
|
||||
.#{$class-prefix}pagination-previous,
|
||||
.#{$class-prefix}pagination-next {
|
||||
padding-left: 1em;
|
||||
padding-right: 1em;
|
||||
border-radius: $radius-rounded;
|
||||
}
|
||||
|
||||
.pagination-link {
|
||||
.#{$class-prefix}pagination-link {
|
||||
border-radius: $radius-rounded;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pagination,
|
||||
.pagination-list {
|
||||
.#{$class-prefix}pagination,
|
||||
.#{$class-prefix}pagination-list {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pagination-previous,
|
||||
.pagination-next,
|
||||
.pagination-link,
|
||||
.pagination-ellipsis {
|
||||
.#{$class-prefix}pagination-previous,
|
||||
.#{$class-prefix}pagination-next,
|
||||
.#{$class-prefix}pagination-link,
|
||||
.#{$class-prefix}pagination-ellipsis {
|
||||
@extend %control;
|
||||
|
||||
@extend %unselectable;
|
||||
@@ -92,9 +92,9 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.pagination-previous,
|
||||
.pagination-next,
|
||||
.pagination-link {
|
||||
.#{$class-prefix}pagination-previous,
|
||||
.#{$class-prefix}pagination-next,
|
||||
.#{$class-prefix}pagination-link {
|
||||
border-color: $pagination-border-color;
|
||||
color: $pagination-color;
|
||||
min-width: $pagination-min-width;
|
||||
@@ -122,14 +122,14 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination-previous,
|
||||
.pagination-next {
|
||||
.#{$class-prefix}pagination-previous,
|
||||
.#{$class-prefix}pagination-next {
|
||||
padding-left: $pagination-nav-padding-left;
|
||||
padding-right: $pagination-nav-padding-right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pagination-link {
|
||||
.#{$class-prefix}pagination-link {
|
||||
&.is-current {
|
||||
background-color: $pagination-current-background-color;
|
||||
border-color: $pagination-current-border-color;
|
||||
@@ -137,12 +137,12 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
|
||||
}
|
||||
}
|
||||
|
||||
.pagination-ellipsis {
|
||||
.#{$class-prefix}pagination-ellipsis {
|
||||
color: $pagination-ellipsis-color;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.pagination-list {
|
||||
.#{$class-prefix}pagination-list {
|
||||
flex-wrap: wrap;
|
||||
|
||||
li {
|
||||
@@ -151,17 +151,17 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
|
||||
}
|
||||
|
||||
@include mobile {
|
||||
.pagination {
|
||||
.#{$class-prefix}pagination {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.pagination-previous,
|
||||
.pagination-next {
|
||||
.#{$class-prefix}pagination-previous,
|
||||
.#{$class-prefix}pagination-next {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
}
|
||||
|
||||
.pagination-list {
|
||||
.#{$class-prefix}pagination-list {
|
||||
li {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
@@ -169,61 +169,60 @@ $pagination-shadow-inset: inset 0 1px 2px rgba($scheme-invert, 0.2) !default;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@include tablet {
|
||||
.pagination-list {
|
||||
.#{$class-prefix}pagination-list {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
justify-content: flex-start;
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.pagination-previous,
|
||||
.pagination-next,
|
||||
.pagination-link,
|
||||
.pagination-ellipsis {
|
||||
.#{$class-prefix}pagination-previous,
|
||||
.#{$class-prefix}pagination-next,
|
||||
.#{$class-prefix}pagination-link,
|
||||
.#{$class-prefix}pagination-ellipsis {
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.pagination-previous {
|
||||
.#{$class-prefix}pagination-previous {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.pagination-next {
|
||||
.#{$class-prefix}pagination-next {
|
||||
order: 3;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
.#{$class-prefix}pagination {
|
||||
justify-content: space-between;
|
||||
margin-bottom: 0;
|
||||
margin-top: 0;
|
||||
|
||||
&.is-centered {
|
||||
.pagination-previous {
|
||||
.#{$class-prefix}pagination-previous {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.pagination-list {
|
||||
.#{$class-prefix}pagination-list {
|
||||
justify-content: center;
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.pagination-next {
|
||||
.#{$class-prefix}pagination-next {
|
||||
order: 3;
|
||||
}
|
||||
}
|
||||
|
||||
&.is-right {
|
||||
.pagination-previous {
|
||||
.#{$class-prefix}pagination-previous {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
.pagination-next {
|
||||
.#{$class-prefix}pagination-next {
|
||||
order: 2;
|
||||
}
|
||||
|
||||
.pagination-list {
|
||||
.#{$class-prefix}pagination-list {
|
||||
justify-content: flex-end;
|
||||
order: 3;
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ $panel-block-active-icon-color: $link !default;
|
||||
$panel-icon-color: $text-light !default;
|
||||
$panel-colors: $colors !default;
|
||||
|
||||
.panel {
|
||||
.#{$class-prefix}panel {
|
||||
border-radius: $panel-radius;
|
||||
box-shadow: $panel-shadow;
|
||||
font-size: $size-normal;
|
||||
@@ -45,30 +45,30 @@ $panel-colors: $colors !default;
|
||||
$color-invert: nth($components, 2);
|
||||
|
||||
&.is-#{$name} {
|
||||
.panel-heading {
|
||||
.#{$class-prefix}panel-heading {
|
||||
background-color: $color;
|
||||
color: $color-invert;
|
||||
}
|
||||
|
||||
.panel-tabs a.is-active {
|
||||
.#{$class-prefix}panel-tabs a.is-active {
|
||||
border-bottom-color: $color;
|
||||
}
|
||||
|
||||
.panel-block.is-active .panel-icon {
|
||||
.#{$class-prefix}panel-block.is-active .#{$class-prefix}panel-icon {
|
||||
color: $color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.panel-tabs,
|
||||
.panel-block {
|
||||
.#{$class-prefix}panel-tabs,
|
||||
.#{$class-prefix}panel-block {
|
||||
&:not(:last-child) {
|
||||
border-bottom: $panel-item-border;
|
||||
}
|
||||
}
|
||||
|
||||
.panel-heading {
|
||||
.#{$class-prefix}panel-heading {
|
||||
background-color: $panel-heading-background-color;
|
||||
border-radius: $panel-radius $panel-radius 0 0;
|
||||
color: $panel-heading-color;
|
||||
@@ -78,7 +78,7 @@ $panel-colors: $colors !default;
|
||||
padding: $panel-heading-padding;
|
||||
}
|
||||
|
||||
.panel-tabs {
|
||||
.#{$class-prefix}panel-tabs {
|
||||
align-items: flex-end;
|
||||
display: flex;
|
||||
font-size: $panel-tabs-font-size;
|
||||
@@ -97,7 +97,7 @@ $panel-colors: $colors !default;
|
||||
}
|
||||
}
|
||||
|
||||
.panel-list {
|
||||
.#{$class-prefix}panel-list {
|
||||
a {
|
||||
color: $panel-list-item-color;
|
||||
|
||||
@@ -107,7 +107,7 @@ $panel-colors: $colors !default;
|
||||
}
|
||||
}
|
||||
|
||||
.panel-block {
|
||||
.#{$class-prefix}panel-block {
|
||||
align-items: center;
|
||||
color: $panel-block-color;
|
||||
display: flex;
|
||||
@@ -118,7 +118,7 @@ $panel-colors: $colors !default;
|
||||
@include ltr-property("margin", 0.75em);
|
||||
}
|
||||
|
||||
& > .control {
|
||||
& > .#{$class-prefix}control {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
width: 100%;
|
||||
@@ -132,7 +132,7 @@ $panel-colors: $colors !default;
|
||||
border-left-color: $panel-block-active-border-left-color;
|
||||
color: $panel-block-active-color;
|
||||
|
||||
.panel-icon {
|
||||
.#{$class-prefix}panel-icon {
|
||||
color: $panel-block-active-icon-color;
|
||||
}
|
||||
}
|
||||
@@ -143,8 +143,8 @@ $panel-colors: $colors !default;
|
||||
}
|
||||
}
|
||||
|
||||
a.panel-block,
|
||||
label.panel-block {
|
||||
a.#{$class-prefix}panel-block,
|
||||
label.#{$class-prefix}panel-block {
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
@@ -152,7 +152,7 @@ label.panel-block {
|
||||
}
|
||||
}
|
||||
|
||||
.panel-icon {
|
||||
.#{$class-prefix}panel-icon {
|
||||
@include fa(14px, 1em);
|
||||
|
||||
color: $panel-icon-color;
|
||||
|
||||
@@ -28,7 +28,7 @@ $tabs-toggle-link-active-background-color: $link !default;
|
||||
$tabs-toggle-link-active-border-color: $link !default;
|
||||
$tabs-toggle-link-active-color: $link-invert !default;
|
||||
|
||||
.tabs {
|
||||
.#{$class-prefix}tabs {
|
||||
@extend %block;
|
||||
|
||||
@include overflow-touch;
|
||||
@@ -99,7 +99,7 @@ $tabs-toggle-link-active-color: $link-invert !default;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
.#{$class-prefix}icon {
|
||||
&:first-child {
|
||||
@include ltr-property("margin", 0.5em);
|
||||
}
|
||||
@@ -131,12 +131,10 @@ $tabs-toggle-link-active-color: $link-invert !default;
|
||||
border-radius: $tabs-boxed-link-radius $tabs-boxed-link-radius 0 0;
|
||||
}
|
||||
|
||||
|
||||
@include rtl {
|
||||
border-radius: 0 0 $tabs-boxed-link-radius $tabs-boxed-link-radius;
|
||||
}
|
||||
|
||||
|
||||
&:hover {
|
||||
background-color: $tabs-boxed-link-hover-background-color;
|
||||
border-bottom-color: $tabs-boxed-link-hover-border-bottom-color;
|
||||
@@ -178,7 +176,11 @@ $tabs-toggle-link-active-color: $link-invert !default;
|
||||
|
||||
li {
|
||||
& + li {
|
||||
@include ltr-property("margin", -#{$tabs-toggle-link-border-width}, false);
|
||||
@include ltr-property(
|
||||
"margin",
|
||||
-#{$tabs-toggle-link-border-width},
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
&:first-child a {
|
||||
@@ -187,7 +189,6 @@ $tabs-toggle-link-active-color: $link-invert !default;
|
||||
border-bottom-left-radius: $tabs-toggle-link-radius;
|
||||
}
|
||||
|
||||
|
||||
@include rtl {
|
||||
border-top-right-radius: $tabs-toggle-link-radius;
|
||||
border-bottom-right-radius: $tabs-toggle-link-radius;
|
||||
@@ -200,7 +201,6 @@ $tabs-toggle-link-active-color: $link-invert !default;
|
||||
border-bottom-right-radius: $tabs-toggle-link-radius;
|
||||
}
|
||||
|
||||
|
||||
@include rtl {
|
||||
border-top-left-radius: $tabs-toggle-link-radius;
|
||||
border-bottom-left-radius: $tabs-toggle-link-radius;
|
||||
@@ -230,7 +230,6 @@ $tabs-toggle-link-active-color: $link-invert !default;
|
||||
padding-left: 1.25em;
|
||||
}
|
||||
|
||||
|
||||
@include rtl {
|
||||
border-bottom-right-radius: $radius-rounded;
|
||||
border-top-right-radius: $radius-rounded;
|
||||
@@ -245,7 +244,6 @@ $tabs-toggle-link-active-color: $link-invert !default;
|
||||
padding-right: 1.25em;
|
||||
}
|
||||
|
||||
|
||||
@include rtl {
|
||||
border-bottom-left-radius: $radius-rounded;
|
||||
border-top-left-radius: $radius-rounded;
|
||||
|
||||
Reference in New Issue
Block a user