123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- $color_primary_default: #{map-deep-get($config-global, "color", "primary", "default")};
- $color_primary_hover: #{map-deep-get($config-global, "color", "primary", "hover")};
- /**
- * Main Menu
- */
- #site-navigation {
- background-color: $color_primary_default;
- order: 2;
- text-align: center;
- width: 100%;
- &.main-navigation {
- ul > li:hover > a,
- ul > li.focus > a,
- ul > li.current-menu-item > a {
- background-color: $color_primary_hover;
- }
- ul {
- text-align: inherit;
- li {
- text-align: left;
- &:first-of-type {
- > a {
- padding-left: map-deep-get($config-global, "spacing", "unit");
- }
- }
- &:last-of-type {
- > a {
- padding-right: map-deep-get($config-global, "spacing", "unit");
- }
- }
- a {
- padding: map-deep-get($config-global, "spacing", "unit");
- text-decoration: none;
- &:before,
- &:after {
- margin: 0;
- }
- }
- }
- @include media(mobile) {
- li {
- padding: 0;
- }
- &.main-menu > li:after {
- color: $color_primary_hover;
- content: "\2022";
- display: inline;
- font-size: map-deep-get($config-global, "font", "size", "sm");
- line-height: 1;
- padding: #{map-deep-get($config-global, "spacing", "unit")} #{0.5 * map-deep-get($config-global, "spacing", "unit")};
- }
- &.main-menu > li:last-child:after {
- display: none;
- }
- }
- ul {
- background-color: $color_primary_default;
- box-shadow: none;
- }
- }
- .main-menu {
- margin-left: 0;
- margin-right: 0;
- }
- }
- }
- /**
- * Mobile Menu
- */
- .main-navigation #toggle:focus + #toggle-menu,
- #toggle-menu {
- background: map-deep-get($config-global, "color", "primary", "default");
- color: map-deep-get($config-global, "color", "background", "default");
- border-radius: 0;
- text-align: center;
- text-decoration: none;
- width: 100%;
- &:active,
- &:focus,
- &:hover {
- background: map-deep-get($config-global, "color", "primary", "hover");
- color: map-deep-get($config-global, "color", "background", "default");
- }
- }
- .main-navigation #toggle:checked ~ div {
- border-top: 2px solid map-deep-get($config-global, "color", "background", "default");
- @include media(mobile) {
- border-top: 0;
- }
- }
|