Move files
This commit is contained in:
75
assets/sass/layout/_banner.scss
Normal file
75
assets/sass/layout/_banner.scss
Normal file
@ -0,0 +1,75 @@
|
||||
///
|
||||
/// Editorial by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Banner */
|
||||
|
||||
#banner {
|
||||
@include padding(6em, 0);
|
||||
@include vendor('display', 'flex');
|
||||
|
||||
h1 {
|
||||
margin-top: -0.125em;
|
||||
}
|
||||
|
||||
.content {
|
||||
@include vendor('flex-grow', '1');
|
||||
@include vendor('flex-shrink', '1');
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.image {
|
||||
@include vendor('flex-grow', '0');
|
||||
@include vendor('flex-shrink', '0');
|
||||
display: block;
|
||||
margin: 0 0 _size(element-margin) (_size(element-margin) * 2);
|
||||
width: 50%;
|
||||
|
||||
img {
|
||||
height: 100%;
|
||||
-moz-object-fit: cover;
|
||||
-webkit-object-fit: cover;
|
||||
-ms-object-fit: cover;
|
||||
object-fit: cover;
|
||||
-moz-object-position: center;
|
||||
-webkit-object-position: center;
|
||||
-ms-object-position: center;
|
||||
object-position: center;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@include orientation(portrait) {
|
||||
@include vendor('flex-direction', 'column-reverse');
|
||||
|
||||
h1 {
|
||||
br {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
@include vendor('flex-grow', '0');
|
||||
@include vendor('flex-shrink', '0');
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.image {
|
||||
@include vendor('flex-grow', '0');
|
||||
@include vendor('flex-shrink', '0');
|
||||
margin: 0 0 (_size(element-margin) * 2) 0;
|
||||
height: 25em;
|
||||
max-height: 50vh;
|
||||
min-height: 18em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@include breakpoint('<=xsmall') {
|
||||
.image {
|
||||
max-height: 35vh;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
assets/sass/layout/_footer.scss
Normal file
18
assets/sass/layout/_footer.scss
Normal file
@ -0,0 +1,18 @@
|
||||
///
|
||||
/// Editorial by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Footer */
|
||||
|
||||
#footer {
|
||||
.copyright {
|
||||
color: _palette(fg-light);
|
||||
font-size: 0.9em;
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
}
|
||||
}
|
51
assets/sass/layout/_header.scss
Normal file
51
assets/sass/layout/_header.scss
Normal file
@ -0,0 +1,51 @@
|
||||
///
|
||||
/// Editorial by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Header */
|
||||
|
||||
#header {
|
||||
@include vendor('display', 'flex');
|
||||
border-bottom: solid 5px _palette(accent);
|
||||
padding: 6em 0 1em 0;
|
||||
position: relative;
|
||||
|
||||
> * {
|
||||
@include vendor('flex', '1');
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.logo {
|
||||
border-bottom: 0;
|
||||
color: inherit;
|
||||
font-family: _font(family-heading);
|
||||
font-size: 1.125em;
|
||||
}
|
||||
|
||||
.icons {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
padding-top: 5em;
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
padding-top: 6.5em;
|
||||
|
||||
.logo {
|
||||
font-size: 1.25em;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.icons {
|
||||
height: (6.25em / 1.25);
|
||||
line-height: (6.25em / 1.25);
|
||||
position: absolute;
|
||||
right: (-0.625em / 1.25);
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
}
|
58
assets/sass/layout/_main.scss
Normal file
58
assets/sass/layout/_main.scss
Normal file
@ -0,0 +1,58 @@
|
||||
///
|
||||
/// Editorial by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Main */
|
||||
|
||||
#main {
|
||||
@include vendor('flex-grow', '1');
|
||||
@include vendor('flex-shrink', '1');
|
||||
width: 100%;
|
||||
|
||||
> .inner {
|
||||
@include padding(0, 6em);
|
||||
margin: 0 auto;
|
||||
max-width: 110em;
|
||||
|
||||
> section {
|
||||
@include padding(6em, 0);
|
||||
border-top: solid 2px _palette(border);
|
||||
|
||||
&:first-of-type {
|
||||
border-top: 0 !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
> .inner {
|
||||
@include padding(0, 5em);
|
||||
|
||||
> section {
|
||||
@include padding(5em, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
> .inner {
|
||||
@include padding(0, 4em);
|
||||
|
||||
> section {
|
||||
@include padding(4em, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
> .inner {
|
||||
@include padding(0, 2em);
|
||||
|
||||
> section {
|
||||
@include padding(3em, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
98
assets/sass/layout/_menu.scss
Normal file
98
assets/sass/layout/_menu.scss
Normal file
@ -0,0 +1,98 @@
|
||||
///
|
||||
/// Editorial by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Menu */
|
||||
|
||||
#menu {
|
||||
ul {
|
||||
@include vendor('user-select', 'none');
|
||||
color: _palette(fg-bold);
|
||||
font-family: _font(family-heading);
|
||||
font-weight: _font(weight-heading-alt);
|
||||
letter-spacing: _font(kerning-heading);
|
||||
list-style: none;
|
||||
margin-bottom: 0;
|
||||
padding: 0;
|
||||
text-transform: uppercase;
|
||||
|
||||
a, span {
|
||||
border-bottom: 0;
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
font-size: 0.9em;
|
||||
padding: 0.625em 0;
|
||||
|
||||
&:hover {
|
||||
color: _palette(accent);
|
||||
}
|
||||
|
||||
&.opener {
|
||||
@include vendor('transition', 'color #{_duration(transition)} ease-in-out');
|
||||
@include icon(false, solid);
|
||||
-webkit-tap-highlight-color: rgba(255,255,255,0);
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
@include vendor('transition', (
|
||||
'color #{_duration(transition)} ease-in-out',
|
||||
'transform #{_duration(transition)} ease-in-out'
|
||||
));
|
||||
color: _palette(fg-light);
|
||||
content: '\f078';
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
&:before {
|
||||
color: _palette(accent);
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
& + ul {
|
||||
display: block;
|
||||
}
|
||||
|
||||
&:before {
|
||||
@include vendor('transform', 'rotate(-180deg)');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> ul {
|
||||
> li {
|
||||
border-top: solid 1px _palette(border);
|
||||
margin: 0.5em 0 0 0;
|
||||
padding: 0.5em 0 0 0;
|
||||
|
||||
> ul {
|
||||
color: _palette(fg-light);
|
||||
display: none;
|
||||
margin: 0.5em 0 1.5em 0;
|
||||
padding-left: 1em;
|
||||
|
||||
a, span {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
> li {
|
||||
margin: 0.125em 0 0 0;
|
||||
padding: 0.125em 0 0 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:first-child {
|
||||
border-top: 0;
|
||||
margin-top: 0;
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
223
assets/sass/layout/_sidebar.scss
Normal file
223
assets/sass/layout/_sidebar.scss
Normal file
@ -0,0 +1,223 @@
|
||||
///
|
||||
/// Editorial by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Sidebar */
|
||||
|
||||
#search {
|
||||
form {
|
||||
@include icon(false, solid);
|
||||
position: relative;
|
||||
|
||||
&:before {
|
||||
@include vendor('transform', 'scaleX(-1)');
|
||||
color: _palette(fg);
|
||||
content: '\f002';
|
||||
cursor: default;
|
||||
display: block;
|
||||
font-size: 1.5em;
|
||||
height: _size(element-height) / 1.375;
|
||||
line-height: _size(element-height) / 1.375;
|
||||
opacity: 0.325;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
width: _size(element-height) / 1.375;
|
||||
}
|
||||
|
||||
input[type="text"] {
|
||||
padding-right: _size(element-height);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#sidebar {
|
||||
$pad: 2em / 0.9;
|
||||
|
||||
@include vendor('flex-grow', '0');
|
||||
@include vendor('flex-shrink', '0');
|
||||
@include vendor('transition', (
|
||||
'margin-left 0.5s ease',
|
||||
'box-shadow 0.5s ease'
|
||||
));
|
||||
background-color: _palette(bg-alt);
|
||||
font-size: 0.9em;
|
||||
position: relative;
|
||||
width: _size(sidebar-width);
|
||||
|
||||
h2 {
|
||||
font-size: (1.25em / 0.9);
|
||||
}
|
||||
|
||||
> .inner {
|
||||
@include padding($pad, $pad, (0, 0, $pad, 0));
|
||||
position: relative;
|
||||
width: _size(sidebar-width);
|
||||
|
||||
> * {
|
||||
border-bottom: solid 2px _palette(border);
|
||||
margin: 0 0 (_size(element-margin) * 1.75) 0;
|
||||
padding: 0 0 (_size(element-margin) * 1.75) 0;
|
||||
|
||||
> :last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-bottom: 0;
|
||||
margin-bottom: 0;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
> .alt {
|
||||
background-color: darken(_palette(bg-alt), 2);
|
||||
border-bottom: 0;
|
||||
margin: ($pad * -1) 0 ($pad * 2) ($pad * -1);
|
||||
padding: $pad;
|
||||
width: calc(100% + #{$pad * 2});
|
||||
}
|
||||
}
|
||||
|
||||
.toggle {
|
||||
@include icon(false, solid);
|
||||
@include vendor('transition', 'left 0.5s ease');
|
||||
-webkit-tap-highlight-color: rgba(255,255,255,0);
|
||||
border: 0;
|
||||
display: block;
|
||||
height: 7.5em;
|
||||
left: _size(sidebar-width);
|
||||
line-height: 7.5em;
|
||||
outline: 0;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
text-indent: -15em;
|
||||
white-space: nowrap;
|
||||
top: 0;
|
||||
width: 6em;
|
||||
z-index: _misc(z-index-base);
|
||||
|
||||
&:before {
|
||||
content: '\f0c9';
|
||||
font-size: 2rem;
|
||||
height: inherit;
|
||||
left: 0;
|
||||
line-height: inherit;
|
||||
position: absolute;
|
||||
text-indent: 0;
|
||||
top: 0;
|
||||
width: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
&.inactive {
|
||||
margin-left: (_size(sidebar-width) * -1);
|
||||
}
|
||||
|
||||
@include breakpoint('<=xlarge') {
|
||||
$pad: 1.5em / 0.9;
|
||||
|
||||
width: _size(sidebar-width-alt);
|
||||
|
||||
> .inner {
|
||||
@include padding($pad, $pad, (0, 0, $pad, 0));
|
||||
width: _size(sidebar-width-alt);
|
||||
|
||||
> .alt {
|
||||
margin: ($pad * -1) 0 ($pad * 2) ($pad * -1);
|
||||
padding: $pad;
|
||||
width: calc(100% + #{$pad * 2});
|
||||
}
|
||||
}
|
||||
|
||||
.toggle {
|
||||
height: 6.25em;
|
||||
left: _size(sidebar-width-alt);
|
||||
line-height: 6.25em;
|
||||
text-indent: 5em;
|
||||
width: 5em;
|
||||
|
||||
&:before {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
&.inactive {
|
||||
margin-left: (_size(sidebar-width-alt) * -1);
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=large') {
|
||||
box-shadow: 0 0 5em 0 rgba(0, 0, 0, 0.175);
|
||||
height: 100%;
|
||||
left: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: _misc(z-index-base);
|
||||
|
||||
&.inactive {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
> .inner {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
overflow-x: hidden;
|
||||
overflow-y: auto;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
&:after {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 4em;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.toggle {
|
||||
text-indent: 6em;
|
||||
width: 6em;
|
||||
|
||||
&:before {
|
||||
font-size: 1.5rem;
|
||||
margin-left: (-0.875em / 2);
|
||||
}
|
||||
}
|
||||
|
||||
body.is-preload & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@include breakpoint('<=small') {
|
||||
.toggle {
|
||||
text-indent: 7.25em;
|
||||
width: 7.25em;
|
||||
|
||||
&:before {
|
||||
color: _palette(fg);
|
||||
margin-left: (-0.125em / 2);
|
||||
margin-top: (-0.5em / 2);
|
||||
font-size: 1.1rem;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
&:after {
|
||||
background: transparentize(lighten(_palette(fg), 35), 0.25);
|
||||
border-radius: _size(border-radius);
|
||||
content: '';
|
||||
height: 3.5em;
|
||||
left: 1em;
|
||||
position: absolute;
|
||||
top: 1em;
|
||||
width: 5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
13
assets/sass/layout/_wrapper.scss
Normal file
13
assets/sass/layout/_wrapper.scss
Normal file
@ -0,0 +1,13 @@
|
||||
///
|
||||
/// Editorial by HTML5 UP
|
||||
/// html5up.net | @ajlkn
|
||||
/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
|
||||
///
|
||||
|
||||
/* Wrapper */
|
||||
|
||||
#wrapper {
|
||||
@include vendor('display', 'flex');
|
||||
@include vendor('flex-direction', 'row-reverse');
|
||||
min-height: 100vh;
|
||||
}
|
Reference in New Issue
Block a user