Adding Skeleventy-based site sources.
This commit is contained in:
parent
ac7f2e6002
commit
28a89401ff
79 changed files with 2183 additions and 0 deletions
7
sources/resources/scss/04-layout/_footer.scss
Normal file
7
sources/resources/scss/04-layout/_footer.scss
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
//========== Footer ==========//
|
||||
|
||||
.footer-inner {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
31
sources/resources/scss/04-layout/_header.scss
Normal file
31
sources/resources/scss/04-layout/_header.scss
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
//========== Header ==========//
|
||||
|
||||
// logo
|
||||
.logo {
|
||||
--logo-size: #{get-size('500')};
|
||||
font-size: v(logo-size);
|
||||
margin: 0 auto;
|
||||
|
||||
&:hover {
|
||||
@include apply-utility('color', 'secondary');
|
||||
}
|
||||
}
|
||||
|
||||
@include media-query('mobileXL') {
|
||||
|
||||
.logo {
|
||||
--logo-size: #{get-size('600')};
|
||||
margin: 0 auto 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
@include media-query('mobileXL') {
|
||||
|
||||
.header-inner {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
2
sources/resources/scss/04-layout/_hero.scss
Normal file
2
sources/resources/scss/04-layout/_hero.scss
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
//========== Hero ==========//
|
||||
8
sources/resources/scss/04-layout/_index.scss
Normal file
8
sources/resources/scss/04-layout/_index.scss
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
|
||||
@import 'site';
|
||||
@import 'header';
|
||||
@import 'nav';
|
||||
@import 'mobile-nav';
|
||||
@import 'hero';
|
||||
@import 'main';
|
||||
@import 'footer';
|
||||
25
sources/resources/scss/04-layout/_main.scss
Normal file
25
sources/resources/scss/04-layout/_main.scss
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
//========== Main ==========//
|
||||
|
||||
.main {
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
|
||||
&:focus {
|
||||
outline: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// page header
|
||||
.page-header {
|
||||
--gap: #{get-size('800')};
|
||||
margin-bottom: v(gap);
|
||||
}
|
||||
|
||||
@include media-query('tablet') {
|
||||
|
||||
.page-header {
|
||||
--gap: #{get-size('900')};
|
||||
}
|
||||
}
|
||||
|
||||
78
sources/resources/scss/04-layout/_mobile-nav.scss
Normal file
78
sources/resources/scss/04-layout/_mobile-nav.scss
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
|
||||
//========== Mobile Nav ==========//
|
||||
|
||||
.mobile-nav {
|
||||
--transition-duration: .3s;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
overflow-y: auto;
|
||||
transform: translate3d(-100%, 0, 0);
|
||||
transition: transform v(transition-duration) cubic-bezier(.77, 0, .175, 1);
|
||||
transition-delay: .1s;
|
||||
will-change: transform;
|
||||
|
||||
// when menu is visible
|
||||
&.menu-visible {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
.link {
|
||||
--gap: .25rem;
|
||||
padding: v(gap) 0;
|
||||
|
||||
&.active,
|
||||
&:hover {
|
||||
color: get-color('secondary');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Mobile menu
|
||||
.mobile-nav-toggle {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
height: get-size('900');
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border: 0;
|
||||
outline: none;
|
||||
|
||||
.mobile-nav-icon {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.icon-line {
|
||||
--transition-duration: .2s;
|
||||
--transition-timing: cubic-bezier(0, 0, .2, 1);
|
||||
height: 2px;
|
||||
width: get-size('500');
|
||||
transform-origin: 7px 1px;
|
||||
transition: transform v(transition-duration) v(transition-timing),
|
||||
opacity v(transition-duration) v(transition-timing);
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-bottom: .25rem;
|
||||
}
|
||||
}
|
||||
|
||||
// when menu toggle is clicked
|
||||
&.expanded {
|
||||
|
||||
.icon-line {
|
||||
margin: 0;
|
||||
|
||||
&:first-child {
|
||||
transform: rotate(45deg);
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
25
sources/resources/scss/04-layout/_nav.scss
Normal file
25
sources/resources/scss/04-layout/_nav.scss
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
//========== Nav ==========//
|
||||
|
||||
.nav {
|
||||
|
||||
.link {
|
||||
height: get-size('900');
|
||||
line-height: get-size('900');
|
||||
|
||||
&.active,
|
||||
&:hover {
|
||||
@include apply-utility('color', 'secondary');
|
||||
}
|
||||
|
||||
&-get-started {
|
||||
border-radius: v(border-radius);
|
||||
transition: background-color v(transition-duration) v(transition-timing);
|
||||
|
||||
&:hover {
|
||||
@include apply-utility('bg', 'white');
|
||||
@include apply-utility('color', 'primary');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
16
sources/resources/scss/04-layout/_site.scss
Normal file
16
sources/resources/scss/04-layout/_site.scss
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
|
||||
//========== Site ==========//
|
||||
|
||||
// wrapper
|
||||
.wrapper {
|
||||
min-height: 100vh;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@include media-query('mobileXL') {
|
||||
|
||||
.wrapper {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue