|
|
@ -17,7 +17,7 @@ $topbar-bg-color: $oil !default; |
|
|
|
$topbar-bg: $topbar-bg-color !default; |
|
|
|
$topbar-bg: $topbar-bg-color !default; |
|
|
|
|
|
|
|
|
|
|
|
// Height and margin |
|
|
|
// Height and margin |
|
|
|
$topbar-height: 45px !default; |
|
|
|
$topbar-height: rem-calc(45) !default; |
|
|
|
$topbar-margin-bottom: 0 !default; |
|
|
|
$topbar-margin-bottom: 0 !default; |
|
|
|
|
|
|
|
|
|
|
|
// Controlling the styles for the title in the top bar |
|
|
|
// Controlling the styles for the title in the top bar |
|
|
@ -33,15 +33,15 @@ $topbar-link-weight: $font-weight-normal !default; |
|
|
|
$topbar-link-font-size: rem-calc(13) !default; |
|
|
|
$topbar-link-font-size: rem-calc(13) !default; |
|
|
|
$topbar-link-hover-lightness: -10% !default; // Darken by 10% |
|
|
|
$topbar-link-hover-lightness: -10% !default; // Darken by 10% |
|
|
|
$topbar-link-bg: $topbar-bg !default; |
|
|
|
$topbar-link-bg: $topbar-bg !default; |
|
|
|
$topbar-link-bg-hover: #272727 !default; |
|
|
|
$topbar-link-bg-hover: $oil !default; |
|
|
|
$topbar-link-bg-color-hover: $charcoal !default; |
|
|
|
$topbar-link-bg-color-hover: $charcoal !default; |
|
|
|
$topbar-link-bg-active: $primary-color !default; |
|
|
|
$topbar-link-bg-active: $primary-color !default; |
|
|
|
$topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default; |
|
|
|
$topbar-link-bg-active-hover: scale-color($primary-color, $lightness: -14%) !default; |
|
|
|
$topbar-link-font-family: $body-font-family !default; |
|
|
|
$topbar-link-font-family: $body-font-family !default; |
|
|
|
$topbar-link-text-transform: none !default; |
|
|
|
$topbar-link-text-transform: none !default; |
|
|
|
$topbar-link-padding: $topbar-height / 3 !default; |
|
|
|
$topbar-link-padding: ($topbar-height / 3) !default; |
|
|
|
$topbar-back-link-size: rem-calc(18) !default; |
|
|
|
$topbar-back-link-size: rem-calc(18) !default; |
|
|
|
$topbar-link-dropdown-padding: 20px !default; |
|
|
|
$topbar-link-dropdown-padding: rem-calc(20) !default; |
|
|
|
$topbar-button-font-size: 0.75rem !default; |
|
|
|
$topbar-button-font-size: 0.75rem !default; |
|
|
|
$topbar-button-top: 7px !default; |
|
|
|
$topbar-button-top: 7px !default; |
|
|
|
|
|
|
|
|
|
|
@ -50,6 +50,7 @@ $topbar-dropdown-bg: $oil !default; |
|
|
|
$topbar-dropdown-link-color: $white !default; |
|
|
|
$topbar-dropdown-link-color: $white !default; |
|
|
|
$topbar-dropdown-link-color-hover: $topbar-link-color-hover !default; |
|
|
|
$topbar-dropdown-link-color-hover: $topbar-link-color-hover !default; |
|
|
|
$topbar-dropdown-link-bg: $oil !default; |
|
|
|
$topbar-dropdown-link-bg: $oil !default; |
|
|
|
|
|
|
|
$topbar-dropdown-link-bg-hover: $oil !default; |
|
|
|
$topbar-dropdown-link-weight: $font-weight-normal !default; |
|
|
|
$topbar-dropdown-link-weight: $font-weight-normal !default; |
|
|
|
$topbar-dropdown-toggle-size: 5px !default; |
|
|
|
$topbar-dropdown-toggle-size: 5px !default; |
|
|
|
$topbar-dropdown-toggle-color: $white !default; |
|
|
|
$topbar-dropdown-toggle-color: $white !default; |
|
|
@ -76,6 +77,9 @@ $topbar-transition-speed: 300ms !default; |
|
|
|
$topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout |
|
|
|
$topbar-breakpoint: #{lower-bound($medium-range)} !default; // Change to 9999px for always mobile layout |
|
|
|
$topbar-media-query: $medium-up !default; |
|
|
|
$topbar-media-query: $medium-up !default; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Top-bar input styles |
|
|
|
|
|
|
|
$topbar-input-height: rem-calc(28) !default; |
|
|
|
|
|
|
|
|
|
|
|
// Divider Styles |
|
|
|
// Divider Styles |
|
|
|
$topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%) !default; |
|
|
|
$topbar-divider-border-bottom: solid 1px scale-color($topbar-bg-color, $lightness: 13%) !default; |
|
|
|
$topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%) !default; |
|
|
|
$topbar-divider-border-top: solid 1px scale-color($topbar-bg-color, $lightness: -50%) !default; |
|
|
@ -164,7 +168,12 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
form, |
|
|
|
form, |
|
|
|
input { margin-bottom: 0; } |
|
|
|
input { margin-bottom: 0; } |
|
|
|
|
|
|
|
|
|
|
|
input { height: 1.8rem; padding-top: .35rem; padding-bottom: .35rem; font-size: $topbar-button-font-size; } |
|
|
|
input { |
|
|
|
|
|
|
|
height: $topbar-input-height; |
|
|
|
|
|
|
|
padding-top: .35rem; |
|
|
|
|
|
|
|
padding-bottom: .35rem; |
|
|
|
|
|
|
|
font-size: $topbar-button-font-size; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.button, button { |
|
|
|
.button, button { |
|
|
|
padding-top: .35rem + rem-calc(1); |
|
|
|
padding-top: .35rem + rem-calc(1); |
|
|
@ -192,7 +201,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
margin: 0; |
|
|
|
margin: 0; |
|
|
|
font-size: $rem-base; |
|
|
|
font-size: $rem-base; |
|
|
|
|
|
|
|
|
|
|
|
h1 { |
|
|
|
h1, h2, h3, h4, p, span { |
|
|
|
line-height: $topbar-height; |
|
|
|
line-height: $topbar-height; |
|
|
|
font-size: $topbar-title-font-size; |
|
|
|
font-size: $topbar-title-font-size; |
|
|
|
margin: 0; |
|
|
|
margin: 0; |
|
|
@ -235,7 +244,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
} |
|
|
|
} |
|
|
|
height: 34px; |
|
|
|
height: 34px; |
|
|
|
line-height: 33px; |
|
|
|
line-height: 33px; |
|
|
|
padding: 0 $topbar-link-padding+25 0 $topbar-link-padding; |
|
|
|
padding: 0 $topbar-link-padding+rem-calc(25) 0 $topbar-link-padding; |
|
|
|
color: $topbar-menu-link-color; |
|
|
|
color: $topbar-menu-link-color; |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
|
|
|
|
|
|
|
@ -269,7 +278,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
span::after { |
|
|
|
span::after { |
|
|
|
// Shh, don't tell, but box-shadows create the menu icon :) |
|
|
|
// Shh, don't tell, but box-shadows create the menu icon :) |
|
|
|
// Change the color of the bars when the menu is expanded, using given thickness from hamburger() above |
|
|
|
// Change the color of the bars when the menu is expanded, using given thickness from hamburger() above |
|
|
|
box-shadow: 0 0px 0 1px $topbar-menu-icon-color-toggled, |
|
|
|
box-shadow: 0 0 0 1px $topbar-menu-icon-color-toggled, |
|
|
|
0 7px 0 1px $topbar-menu-icon-color-toggled, |
|
|
|
0 7px 0 1px $topbar-menu-icon-color-toggled, |
|
|
|
0 14px 0 1px $topbar-menu-icon-color-toggled; |
|
|
|
0 14px 0 1px $topbar-menu-icon-color-toggled; |
|
|
|
} |
|
|
|
} |
|
|
@ -315,7 +324,6 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
font-weight: $topbar-link-weight; |
|
|
|
font-weight: $topbar-link-weight; |
|
|
|
text-transform: $topbar-link-text-transform; |
|
|
|
text-transform: $topbar-link-text-transform; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&.button { |
|
|
|
&.button { |
|
|
|
font-size: $topbar-link-font-size; |
|
|
|
font-size: $topbar-link-font-size; |
|
|
|
padding-#{$opposite-direction}: $topbar-link-padding; |
|
|
|
padding-#{$opposite-direction}: $topbar-link-padding; |
|
|
@ -347,7 +355,6 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
background: $topbar-link-bg-hover; |
|
|
|
background: $topbar-link-bg-hover; |
|
|
|
} |
|
|
|
} |
|
|
|
color: $topbar-link-color-hover; |
|
|
|
color: $topbar-link-color-hover; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Apply the active link color when it has that class |
|
|
|
// Apply the active link color when it has that class |
|
|
@ -420,7 +427,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
font-size: $topbar-back-link-size; |
|
|
|
font-size: $topbar-back-link-size; |
|
|
|
a { |
|
|
|
a { |
|
|
|
color: $topbar-link-color; |
|
|
|
color: $topbar-link-color; |
|
|
|
// line-height: $topbar-height / 2; |
|
|
|
// line-height: ($topbar-height / 2); |
|
|
|
display: block; |
|
|
|
display: block; |
|
|
|
&:hover { background:none; } |
|
|
|
&:hover { background:none; } |
|
|
|
} |
|
|
|
} |
|
|
@ -460,7 +467,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
button { |
|
|
|
button { |
|
|
|
font-size: rem-calc(14); |
|
|
|
font-size: rem-calc(14); |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
top: $topbar-button-top; |
|
|
|
height: $topbar-input-height; |
|
|
|
|
|
|
|
top: (($topbar-height - $topbar-input-height) / 2); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&.expanded { background: $topbar-bg; } |
|
|
|
&.expanded { background: $topbar-bg; } |
|
|
@ -525,18 +533,15 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.has-dropdown { |
|
|
|
.has-dropdown { |
|
|
|
|
|
|
|
|
|
|
|
@if($topbar-arrows){ |
|
|
|
@if($topbar-arrows){ |
|
|
|
|
|
|
|
|
|
|
|
& > a { |
|
|
|
& > a { |
|
|
|
padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important; |
|
|
|
padding-#{$opposite-direction}: $topbar-link-padding + $topbar-link-dropdown-padding !important; |
|
|
|
&:after { |
|
|
|
&:after { |
|
|
|
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top); |
|
|
|
@include css-triangle($topbar-dropdown-toggle-size, rgba($topbar-dropdown-toggle-color, $topbar-dropdown-toggle-alpha), top); |
|
|
|
margin-top: -($topbar-dropdown-toggle-size / 2); |
|
|
|
margin-top: -($topbar-dropdown-toggle-size / 2); |
|
|
|
top: $topbar-height / 2; |
|
|
|
top: ($topbar-height / 2); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&.moved { position: relative; |
|
|
|
&.moved { position: relative; |
|
|
@ -568,7 +573,6 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.dropdown { |
|
|
|
.dropdown { |
|
|
@ -595,8 +599,8 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
&:hover > a:not(.button) { |
|
|
|
&:hover > a:not(.button) { |
|
|
|
color: $topbar-dropdown-link-color-hover; |
|
|
|
color: $topbar-dropdown-link-color-hover; |
|
|
|
background-color: $topbar-link-bg-color-hover; |
|
|
|
background-color: $topbar-link-bg-color-hover; |
|
|
|
@if ($topbar-link-bg-hover) { |
|
|
|
@if ($topbar-dropdown-link-bg-hover) { |
|
|
|
background: $topbar-link-bg-hover; |
|
|
|
background: $topbar-dropdown-link-bg-hover; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -626,7 +630,7 @@ $topbar-dropdown-arrows: true !default; //Set false to remove the \00bb >> text |
|
|
|
|
|
|
|
|
|
|
|
.has-form { |
|
|
|
.has-form { |
|
|
|
background: $topbar-link-bg; |
|
|
|
background: $topbar-link-bg; |
|
|
|
padding: 0 $topbar-height / 3; |
|
|
|
padding: 0 ($topbar-height / 3); |
|
|
|
height: $topbar-height; |
|
|
|
height: $topbar-height; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|