-
Brian Canini authored
asc_bootstrap - adding function to .theme for creating var of content type that can be used by paragraph temps, updating mobile menu styles, updating paragraph temps that are used for landing pages so they're positioned appropriately on both land and basic pages
Brian Canini authoredasc_bootstrap - adding function to .theme for creating var of content type that can be used by paragraph temps, updating mobile menu styles, updating paragraph temps that are used for landing pages so they're positioned appropriately on both land and basic pages
_menu.scss 5.10 KiB
@import "helpers/mixins";
@import "helpers/variables";
@import "helpers/functions";
#main-nav {
background-color: #373535;
position: relative;
z-index: 50;
}
.dropdown-submenu {
@include backgcolor(#47a3da);
position: relative;
}
.dropdown-submenu > .dropdown-menu {
@include backgcolor(#47a3da);
top: 0;
left: 100%;
padding: 0px;
}
.dropdown-submenu:hover > .dropdown-menu {
@include backgcolor(#47a3da);
display: block;
}
.dropdown-submenu > a:after {
@include backgcolor(#47a3da);
content: "\e080";
display: inline-block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-size: 10px;
float: right;
margin-top: 5px;
}
.dropdown-submenu:hover > a:after {
@include backgcolor(#47a3da);
border-left-color: #fff;
}
.dropdown-submenu.pull-left {
float: none;
}
.dropdown-submenu.pull-left > .dropdown-menu {
left: -100%;
margin-left: 10px;
@include border-radius(6px 0 6px 6px)
}
.navbar-nav li:last-child > .dropdown-menu {
@include backgcolor(#47a3da);
left: auto;
right: 0px;
}
.navbar-nav li:last-child > .dropdown-menu a {
@include backgcolor(#47a3da);
text-align: right !important;
}
.navbar-nav li:last-child > .dropdown-menu .dropdown-submenu > a:after {
float: left;
content: "\e079";
}
.navbar-nav li:last-child > .dropdown-menu .dropdown-submenu > .dropdown-menu {
left: -100%;
}
#superfish-main.sf-style-white {
margin-bottom: 0;
a {
text-transform: uppercase;
color: $white;
text-decoration: none;
font-weight: 400;
&:hover {
background: rgba(#D8D8D8, .25);
}
}
li {
background: transparent;
ul {
background: $menu-gray;
a {
color: $brand-gray;
text-transform: capitalize;
&:hover {
background: $brand-red;
color: $white;
}
}
}
}
.sfHover a.sf-depth-1:after {
content: '';
position: absolute;
left: 50%;
bottom: 0;
margin: 0 0 0 -8px;
border-bottom: 7px solid $menu-gray;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
z-index: 400;
}
a.sf-depth-1 {
svg, i {
display: none;
}
}
a.sf-with-ul {
padding: 0.75em 1em;
}
svg, i {
float: right;
}
}
.search-box{
background: #E8E8E4;
position: absolute;
top: 54px;
right: 28.7%;
width: 350px;
height: 60px;
line-height: 60px;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
border-top:4px solid #D80B15;
display: none;
&:before{
content: "";
position: absolute;
top: -32px;
right: 13px;
border-left: 12px solid transparent;
border-right: 12px solid transparent;
border-top: 14px solid transparent;
border-bottom: 14px solid #D80B15;
}
input[type="text"]{
width: 200px;
padding: 5px 10px;
margin-left: 23px;
border: 1px solid #D80B15;
outline: none;
}
input[type="button"]{
width: 80px;
padding: 5px 0;
background: #D80B15;
color: #fff;
margin-left: -6px;
border: 1px solid #D80B15;
outline: none;
cursor: $point;
}
}
#superfish-main {
width: 100%;
}
// --------------------------------------------------
//## Mobile styles.
@media (max-width: 768px) {
#main-nav .container {
padding-left: 0;
padding-right: 0;
&:after {
content: "";
display: none;
}
.clearfix:after {
content: "";
display: none;
}
}
div.sf-accordion-toggle.sf-style-white > a:after {
content: "";
display: none;
}
ul.sf-menu.sf-accordion.sf-accordion-with-buttons li.sf-expanded > .sf-accordion-button:after {
content: "";
display: none;
}
#block-dummyheader img {
width: 100%;
}
div.sf-accordion-toggle.sf-style-white a {
background: transparent;
border: none;
font-size: 30px;
span {
display: none;
}
}
div.sf-accordion-toggle.sf-style-white a.sf-expanded {
background: transparent;
}
ul.sf-menu.sf-accordion.sf-accordion-with-buttons .sf-accordion-button:after {
content: "";
margin: 0;
}
ul.sf-menu.sf-style-white.sf-accordion li.sf-expanded {
background: $brand-lgray;
}
ul.sf-menu.sf-style-white li, ul.sf-menu.sf-style-white.sf-navbar {
border: solid 1px #979797;
}
ul.sf-menu.sf-style-white.sf-accordion li li a, ul.sf-menu.sf-style-white.sf-accordion li li span.nolink {
background: $menu-gray;
}
ul.sf-menu.sf-style-white a, ul.sf-menu.sf-style-white a:visited, ul.sf-menu.sf-style-white span.nolink {
color: #373735;
}
.sf-menu {
.sf-depth-1 a {
text-transform: uppercase;
font-weight: 600;
font-size: 18px;
}
.sf-depth-2 a {
text-transform: capitalize;
font-weight: 400;
}
.hidetxt {
position: absolute;
left: -99999999px;
width: 0;
height: 0;
}
.sf-accordion-button {
padding: 5px 15px 0;
border-left: solid 1px #979797 !important;
background: $menu-gray !important;
svg, i {
font-size: 18px;
color: #BB0000;
}
}
}
div.sf-accordion-toggle.sf-style-white a {
padding: .05em .5em;
}
}