Converted some objects to components.
This commit is contained in:
@ -1,17 +0,0 @@
|
||||
/*
|
||||
* App
|
||||
* App styles for the app container.
|
||||
*
|
||||
* Dependencies:
|
||||
* styles/tools/flex.scss
|
||||
*
|
||||
* Version:
|
||||
* 1.0.0 - 2018/05/03
|
||||
*/
|
||||
.o-app {
|
||||
position: relative;
|
||||
height: 100vh;
|
||||
width: 100%;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Hamburger Menu
|
||||
* Mobile-Centric openable menu with a hamburger icon to toggle.
|
||||
*
|
||||
* Dependencies:
|
||||
* styles/settings/animation.scss
|
||||
* styles/settings/colors.scss
|
||||
* styles/settings/z.scss
|
||||
*
|
||||
* Version:
|
||||
* 1.0.0 - 2018/06/12
|
||||
*/
|
||||
$o-hamburger-menu--max: 200%;
|
||||
$o-hamburger-menu--pos-x: 100%;
|
||||
$o-hamburger-menu--pos-y: 0%;
|
||||
@include t-keyframes(o-hamburger-menu--open) {
|
||||
from { clip-path: circle(0% at $o-hamburger-menu--pos-x $o-hamburger-menu--pos-y); }
|
||||
to { clip-path: circle($o-hamburger-menu--max at $o-hamburger-menu--pos-x $o-hamburger-menu--pos-y); }
|
||||
}
|
||||
|
||||
@include t-keyframes(o-hamburger-menu--close) {
|
||||
from { clip-path: circle($o-hamburger-menu--max at $o-hamburger-menu--pos-x $o-hamburger-menu--pos-y); }
|
||||
to { clip-path: circle(0% at $o-hamburger-menu--pos-x $o-hamburger-menu--pos-y); }
|
||||
}
|
||||
|
||||
.o-hamburger-menu {
|
||||
|
||||
&__menu {
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: $s-color--menu__background;
|
||||
transition: all 1s $s-animation--ease-out;
|
||||
|
||||
z-index: $s-z--menu;
|
||||
|
||||
@include t-animation-fill-mode(forwards);
|
||||
@include t-animation-timing-function($s-animation--ease-out);
|
||||
@include t-animation-duration(0.4s);
|
||||
}
|
||||
|
||||
&__links {
|
||||
@extend %t-list-blank;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
&__link {
|
||||
@extend %t-list-litem-blank;
|
||||
display: block;
|
||||
font-size: 1.25em;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
border: 1px solid red;
|
||||
|
||||
&-link {
|
||||
position: relative;
|
||||
display: block;
|
||||
padding: 1.5em 0;
|
||||
}
|
||||
|
||||
&:hover:before {
|
||||
//@include t-translate-x(5%); Disabled due to not being needed on mobile
|
||||
}
|
||||
}
|
||||
|
||||
&__button {
|
||||
position: relative;//Helps us win the Z-Fight
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0.5em;
|
||||
cursor: pointer;
|
||||
z-index: $s-z--menu-button;
|
||||
}
|
||||
|
||||
&__icon {
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
||||
&.is-open {
|
||||
.o-hamburger-menu__menu {
|
||||
display: block;
|
||||
@include t-animation-name(o-hamburger-menu--open);
|
||||
}
|
||||
}
|
||||
|
||||
&.is-closing {
|
||||
.o-hamburger-menu__menu {
|
||||
display: block;
|
||||
@include t-animation-name(o-hamburger-menu--close);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,112 +0,0 @@
|
||||
/*
|
||||
* Navbar
|
||||
* Navigation bar at the top of the screen.
|
||||
*
|
||||
* Dependencies:
|
||||
* styles/settings/colors.scss
|
||||
* styles/settings/typography.scss
|
||||
* styles/settings/z.scss
|
||||
* styles/tools/flex.scss
|
||||
* styles/tool/list.scss
|
||||
*
|
||||
* Version:
|
||||
* 1.0.0 - 2018/05/03
|
||||
*/
|
||||
$o-navbar--link-thickness: 5px;
|
||||
|
||||
.o-navbar {
|
||||
z-index: $s-z--navbar;
|
||||
|
||||
&.is-stuck {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
|
||||
&__nav {
|
||||
@extend %t-flexbox;
|
||||
@include t-align-items(stretch);
|
||||
@extend %t-dp--shadow;
|
||||
background: $s-color--navbar;
|
||||
color: white;
|
||||
}
|
||||
|
||||
//Logo
|
||||
&__logo-container {
|
||||
width: 100%;
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
&__logo {
|
||||
width: 7em;
|
||||
}
|
||||
|
||||
//Links
|
||||
&__link {
|
||||
@include t-align-items(center);
|
||||
@extend %s-font--style-button;
|
||||
display: none;
|
||||
position: relative;
|
||||
padding: 1em;
|
||||
color: $s-color--navbar__text;
|
||||
|
||||
&:after {
|
||||
@extend %t-dp--shadow;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 0px;
|
||||
left: 0;
|
||||
bottom: 0px;
|
||||
@include t-translate-y(100%)
|
||||
transition: height 0.2s $s-animation--ease-out;
|
||||
|
||||
content: " ";
|
||||
}
|
||||
|
||||
&.is-active:after {
|
||||
background: $s-color--navbar__bar-hover;
|
||||
height: $o-navbar--link-thickness;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: $s-color--navbar__text-hover;
|
||||
|
||||
&:after {
|
||||
background: $s-color--navbar__bar-hover;
|
||||
height: $o-navbar--link-thickness;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__hamburger {
|
||||
}
|
||||
|
||||
@include t-media-query($s-xsmall-up) {
|
||||
&__hamburger {
|
||||
display: none;
|
||||
}
|
||||
|
||||
&__logo {
|
||||
width: 10em;
|
||||
}
|
||||
|
||||
&__link {
|
||||
@include t-flexbox();
|
||||
}
|
||||
}
|
||||
|
||||
@include t-media-query($s-small-up) {
|
||||
|
||||
&__logo {
|
||||
width: 12em;
|
||||
}
|
||||
}
|
||||
|
||||
@include t-media-query($s-medium-up) {
|
||||
&.is-stuck {
|
||||
top: 5%;
|
||||
}
|
||||
}
|
||||
}
|
@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Main
|
||||
* Styles for the main container
|
||||
*
|
||||
* Version:
|
||||
* 1.0.0 - 2018/05/07
|
||||
*/
|
||||
.o-main {
|
||||
position: relative;
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
|
||||
@extend %t-flexbox;
|
||||
@include t-flex-direction(column);
|
||||
}
|
Reference in New Issue
Block a user