-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updated package.json * Make more arrow a div background * Removed debugging code. Made div accessible. * Upload to CDN * CDN build * CDN build * Remove page margin
- Loading branch information
1 parent
f1795f7
commit b0b827b
Showing
16 changed files
with
11,663 additions
and
2,699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,168 +1,171 @@ | ||
@import "../shared-styles/colors.scss"; | ||
@import "../shared-styles/settings.scss"; | ||
@import "../shared-styles/nav.scss"; | ||
|
||
@mixin menuGeneral() { | ||
display: flex; | ||
justify-content: center; | ||
width: 100%; | ||
height: auto; | ||
background: #fff; | ||
// opacity used to be set here, but now it is an option. | ||
} | ||
|
||
@mixin bgTransparent() { | ||
//background: rgba(255,255,255,0.8); | ||
opacity: 0.88; | ||
} | ||
|
||
@mixin outerNav() { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
align-items: center; | ||
justify-content: flex-start; | ||
box-sizing: border-box; | ||
height: 35px; | ||
position: relative; | ||
flex: 1; | ||
flex-basis: 100%; | ||
} | ||
|
||
@mixin navItemSlotted() { | ||
@include navItem(); | ||
flex: 1; | ||
} | ||
|
||
@mixin navItemsSlottedSetWidth() { | ||
min-width: 200px; | ||
flex: 0; | ||
padding: 0 16px; | ||
} | ||
|
||
@mixin moreMenu() { | ||
display: none; | ||
position: relative; | ||
height: 35px; | ||
width: 16.66%; | ||
overflow: visible !important; | ||
} | ||
|
||
@mixin moreMenuVisible() { | ||
display: block; | ||
} | ||
|
||
@mixin menuMoreExpanded() { | ||
background: $menuActive; | ||
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.75); | ||
} | ||
|
||
@mixin menuMoreItems() { | ||
display: block; | ||
} | ||
|
||
@mixin menuFixedOverlay() { | ||
position: fixed; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
z-index: 1; | ||
} | ||
|
||
@mixin moreLink() { | ||
@include navItem(); | ||
position: relative; | ||
flex: 1; | ||
display: block; | ||
} | ||
|
||
@mixin moreLinkSvg() { | ||
height: 13px; | ||
width: 13px; | ||
//transition: transform 0.5s ease; | ||
//transform: rotate(0); | ||
//transform-origin: center; | ||
} | ||
|
||
@mixin moreItems() { | ||
display: none; | ||
position: absolute; | ||
top: 35px; | ||
right: 0; | ||
min-width: 100%; | ||
max-width: 250px; | ||
z-index: 2; | ||
background: white; | ||
box-shadow: 0 0 2px 0 rgba(0,0,0,0.75); | ||
} | ||
|
||
@mixin moreItemsSlotted() { | ||
width: 100%; | ||
@include navItem(); | ||
display: block; | ||
text-align: left !important; | ||
padding-left: 12px !important; | ||
padding-right: 12px !important; | ||
} | ||
|
||
/* MOBILE */ | ||
|
||
@mixin mobileOuterNav() { | ||
display: block; | ||
height: auto; | ||
} | ||
|
||
@mixin mobileMenuMore() { | ||
display: none !important; | ||
} | ||
|
||
@mixin mobileMenuSlotted() { | ||
display: block !important; | ||
text-align: left !important; | ||
padding: 18px 18px 18px 50px !important; | ||
height: auto !important; | ||
width: 100%; | ||
max-width: 100%; | ||
position: static; | ||
box-sizing: border-box; | ||
line-height: 12px !important; | ||
} | ||
|
||
@mixin mobileMenuMoreMenuSlotted() { | ||
padding: 0 !important; | ||
} | ||
|
||
@mixin mobileMenuMoreMenu() { | ||
display: block; | ||
width: 100%; | ||
box-shadow: none; | ||
position: static; | ||
height: auto; | ||
} | ||
|
||
@mixin mobileMenuMoreItems() { | ||
display: block; | ||
box-shadow: none; | ||
padding: 0; | ||
position: static !important; | ||
} | ||
|
||
@mixin mobileMenuMoreItemsSlotted() { | ||
display: block !important; | ||
text-align: left !important; | ||
padding: 18px 50px !important; | ||
height: auto !important; | ||
width: 100%; | ||
position: static; | ||
box-sizing: border-box; | ||
line-height: 12px !important; | ||
} | ||
|
||
@mixin mobileMenuMoreExpanded() { | ||
box-shadow: none; | ||
} | ||
|
||
@mixin mobileMenuFixedOverlay() { | ||
display: none !important; | ||
@import "../shared-styles/colors.scss"; | ||
@import "../shared-styles/settings.scss"; | ||
@import "../shared-styles/nav.scss"; | ||
|
||
@mixin menuGeneral() { | ||
display: flex; | ||
justify-content: center; | ||
width: 100%; | ||
height: auto; | ||
background: #fff; | ||
// opacity used to be set here, but now it is an option. | ||
} | ||
|
||
@mixin bgTransparent() { | ||
//background: rgba(255,255,255,0.8); | ||
opacity: 0.88; | ||
} | ||
|
||
@mixin outerNav() { | ||
display: flex; | ||
flex-direction: row; | ||
flex-wrap: nowrap; | ||
align-items: center; | ||
justify-content: flex-start; | ||
box-sizing: border-box; | ||
height: 35px; | ||
position: relative; | ||
flex: 1; | ||
flex-basis: 100%; | ||
} | ||
|
||
@mixin navItemSlotted() { | ||
@include navItem(); | ||
flex: 1; | ||
} | ||
|
||
@mixin navItemsSlottedSetWidth() { | ||
min-width: 200px; | ||
flex: 0; | ||
padding: 0 16px; | ||
} | ||
|
||
@mixin moreMenu() { | ||
display: none; | ||
position: relative; | ||
height: 35px; | ||
width: 16.66%; | ||
overflow: visible !important; | ||
} | ||
|
||
@mixin moreMenuVisible() { | ||
display: block; | ||
} | ||
|
||
@mixin menuMoreExpanded() { | ||
background: $menuActive; | ||
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.75); | ||
} | ||
|
||
@mixin menuMoreItems() { | ||
display: block; | ||
} | ||
|
||
@mixin menuFixedOverlay() { | ||
position: fixed; | ||
top: 0; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
z-index: 1; | ||
} | ||
|
||
@mixin moreLink() { | ||
@include navItem(); | ||
position: relative; | ||
flex: 1; | ||
display: block; | ||
} | ||
|
||
@mixin moreLinkSvg() { | ||
background-image: url('https://cdn.byu.edu/shared-icons/latest/fontawesome/down-open-navy.svg'); | ||
height: 13px; | ||
width: 13px; | ||
display: inline-block; | ||
background-size: 100%; | ||
//transition: transform 0.5s ease; | ||
//transform: rotate(0); | ||
//transform-origin: center; | ||
} | ||
|
||
@mixin moreItems() { | ||
display: none; | ||
position: absolute; | ||
top: 35px; | ||
right: 0; | ||
min-width: 100%; | ||
max-width: 250px; | ||
z-index: 2; | ||
background: white; | ||
box-shadow: 0 0 2px 0 rgba(0,0,0,0.75); | ||
} | ||
|
||
@mixin moreItemsSlotted() { | ||
width: 100%; | ||
@include navItem(); | ||
display: block; | ||
text-align: left !important; | ||
padding-left: 12px !important; | ||
padding-right: 12px !important; | ||
} | ||
|
||
/* MOBILE */ | ||
|
||
@mixin mobileOuterNav() { | ||
display: block; | ||
height: auto; | ||
} | ||
|
||
@mixin mobileMenuMore() { | ||
display: none !important; | ||
} | ||
|
||
@mixin mobileMenuSlotted() { | ||
display: block !important; | ||
text-align: left !important; | ||
padding: 18px 18px 18px 50px !important; | ||
height: auto !important; | ||
width: 100%; | ||
max-width: 100%; | ||
position: static; | ||
box-sizing: border-box; | ||
line-height: 12px !important; | ||
} | ||
|
||
@mixin mobileMenuMoreMenuSlotted() { | ||
padding: 0 !important; | ||
} | ||
|
||
@mixin mobileMenuMoreMenu() { | ||
display: block; | ||
width: 100%; | ||
box-shadow: none; | ||
position: static; | ||
height: auto; | ||
} | ||
|
||
@mixin mobileMenuMoreItems() { | ||
display: block; | ||
box-shadow: none; | ||
padding: 0; | ||
position: static !important; | ||
} | ||
|
||
@mixin mobileMenuMoreItemsSlotted() { | ||
display: block !important; | ||
text-align: left !important; | ||
padding: 18px 50px !important; | ||
height: auto !important; | ||
width: 100%; | ||
position: static; | ||
box-sizing: border-box; | ||
line-height: 12px !important; | ||
} | ||
|
||
@mixin mobileMenuMoreExpanded() { | ||
box-shadow: none; | ||
} | ||
|
||
@mixin mobileMenuFixedOverlay() { | ||
display: none !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
<style> | ||
${require('./byu-menu.scss')} | ||
</style> | ||
<link type="text/css" rel="stylesheet" href="https://cloud.typography.com/75214/6517752/css/fonts.css" media="all" /> | ||
|
||
<nav class="outer-nav slot-container needs-width-setting"> | ||
<slot class="byu-menu-items"></slot> | ||
<div class="byu-menu-more-menu"> | ||
<a href="javascript: void 0" class="byu-menu-more"> | ||
More | ||
<img class="more-open-button" src="https://cdn.byu.edu/shared-icons/latest/fontawesome/down-open-navy.svg" alt="Open"/> | ||
</a> | ||
<div class="byu-menu-more-items slot-container"> | ||
<slot class="byu-menu-more-slot" name="more"></slot> | ||
</div> | ||
</div> | ||
<style> | ||
${require('./byu-menu.scss')} | ||
</style> | ||
<link type="text/css" rel="stylesheet" href="https://cloud.typography.com/75214/6517752/css/fonts.css" media="all" /> | ||
|
||
<nav class="outer-nav slot-container needs-width-setting"> | ||
<slot class="byu-menu-items"></slot> | ||
<div class="byu-menu-more-menu"> | ||
<a href="javascript: void 0" class="byu-menu-more"> | ||
More | ||
<div class="more-open-button" aria-label="More"> | ||
<!-- More Arrow SVG is the div background. --> | ||
</div> | ||
</a> | ||
<div class="byu-menu-more-items slot-container"> | ||
<slot class="byu-menu-more-slot" name="more"></slot> | ||
</div> | ||
</div> | ||
</nav> |
Oops, something went wrong.