Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify new nav for old IE styling #15874

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Next Next commit
Simplify new nav for IE9-
janbrasna committed Jan 15, 2025
commit 0eb6b1a6a4064d0edab194d85e1ce6f0e818f783
4 changes: 2 additions & 2 deletions media/css/protocol/common-old-ie.scss
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

// This style sheet is served exclusively to Internet Explorer 8 and older.
// Old versions get this minimal style while IE9 and up recieve more advanced styling.
// This style sheet is served exclusively to Internet Explorer 9 and older.
// Old versions get this minimal style while IE10 and up recieve more advanced styling.

$font-path: '/media/protocol/fonts';
$image-path: '/media/protocol/img';
53 changes: 49 additions & 4 deletions media/css/protocol/components/_navigation-ie.scss
Original file line number Diff line number Diff line change
@@ -2,9 +2,6 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

$font-path: '/media/protocol/fonts';
$image-path: '/media/protocol/img';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';

// * -------------------------------------------------------------------------- */
@@ -80,7 +77,7 @@ $image-path: '/media/protocol/img';
zoom: 1;
}

// only display primary navigation links to IE visitors.
// only display primary navigation links to IE visitors
.c-menu-panel {
display: none !important; /* stylelint-disable-line declaration-no-important */
}
@@ -106,3 +103,51 @@ $image-path: '/media/protocol/img';
}
}
}

// * -------------------------------------------------------------------------- */
// Redesigned header

.m24-c-navigation-logo-link {
@include image-replaced;
background: transparent url('/media/img/logos/m24/lockup-black-on-white.png') center center no-repeat;
display: block;
height: 48px;
width: 160px;

.m24-c-navigation-logo-image {
display: none;
}
}

// only show top-level menu items
.m24-c-menu {
.m24-c-menu-panel,
.m24-c-menu-title-icon {
display: none;
}

.m24-c-menu-title,
ul,
li {
@include bidi(((margin-right, $spacing-md, margin-left, 0),));
display: inline-block;
*display: inline;
font-weight: bold;
margin-top: $spacing-sm;
zoom: 1;
}
}

// hide JS-dependent interaction from IE visitors
.m24-c-navigation-menu-button,
.m24-c-flag {
display: none;
}

.m24-pencil-banner {
float: right;

button {
display: none;
}
}