-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
32 changed files
with
484 additions
and
287 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
'use strict'; | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
|
||
// require('./a11yNav'); | ||
// Conditional Breakpoint helper | ||
if ((window.location.hostname.indexOf("localhost") > -1) || (window.location.hostname.indexOf("dev") > -1) || (window.location.hostname.indexOf("codepen") > -1)) { | ||
|
||
let bodyElement = document.querySelector('body'); | ||
|
||
bodyElement.insertAdjacentHTML('beforeend', `<aside id="breakpoint-helper" tabindex="-1" aria-hidden="true"></aside>`); | ||
console.log('%c ✔ breakpoint helper', 'color: green'); | ||
} | ||
|
||
console.log('%c ✔ Initialized app', 'color: green'); | ||
}); |
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,3 +1,5 @@ | ||
<div id="footer"> | ||
<p class="copyright vcard">© <span class="fn org">Kevin Garcia</span>. <span class="adr"> <span class="locality">Sunnyvale</span>, <span class="region">California</span> <span class="postal-code">94085</span></span>.</p> | ||
</div>{{! / #footer --}} | ||
<script src="/js/vendor.js"></script> | ||
<script src="/js/app.js" onload="require('src/js/initialize.js');"></script> |
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,282 @@ | ||
@charset "UTF-8"; | ||
|
||
// ----------------------------------------------------------------------------- | ||
// This file contains site-wide typography overrides. To modify Decanter's base | ||
// typography, you can do so via utilities/variables/base/_typography.scss | ||
// ----------------------------------------------------------------------------- | ||
|
||
// Responsive Typography | ||
body { | ||
$_root-font-size: _retrieve-decanter-setting(root-font-size); | ||
@include grid-media($media-sm-max) { | ||
font-size: em(16px, $_root-font-size); | ||
} | ||
|
||
@include grid-media($media-xl) { | ||
font-size: em(19px, $_root-font-size); | ||
} | ||
|
||
@include grid-media($media-print) { | ||
font-size: em(10px, $_root-font-size); | ||
} | ||
} | ||
|
||
h1 { | ||
@include grid-media($media-md-max) { | ||
font-size: modular-scale(4); | ||
letter-spacing: -1px; | ||
} | ||
@include grid-media($media-xs-only) { | ||
letter-spacing: -.5px; | ||
} | ||
@include grid-media($media-lg) { | ||
letter-spacing: -1.5px; | ||
} | ||
} | ||
|
||
h2 { | ||
@include grid-media($media-xs-only) { | ||
font-size: modular-scale(3); | ||
} | ||
@include grid-media($media-md-max) { | ||
letter-spacing: -1px; | ||
} | ||
@include grid-media($media-xs-only) { | ||
letter-spacing: -.5px; | ||
} | ||
@include grid-media($media-lg) { | ||
letter-spacing: -1px; | ||
} | ||
} | ||
|
||
h3 { | ||
@include grid-media($media-xs-only) { | ||
font-size: modular-scale(2); | ||
} | ||
} | ||
|
||
h4 { | ||
@include grid-media($media-xs-only) { | ||
font-size: modular-scale(1); | ||
} | ||
} | ||
|
||
h5 { | ||
@include grid-media($media-xs-only) { | ||
font-size: modular-scale(0); | ||
} | ||
} | ||
|
||
.lead{ | ||
@include font-size(modular-scale(1)); | ||
font-weight: 300; | ||
} | ||
|
||
.media-credit { | ||
font-style: italic; | ||
@extend small; | ||
} | ||
|
||
a { | ||
&.jump-link { | ||
text-decoration: none; | ||
|
||
span.fa { | ||
margin-left: .25em; | ||
margin-right: .15em; | ||
transition: margin .25s ease; | ||
} | ||
|
||
#{$hocus} { | ||
text-decoration: underline; | ||
color: color(link--active); | ||
|
||
span.fa { | ||
margin-left: .4em; | ||
margin-right: 0; | ||
} | ||
} | ||
} | ||
|
||
&.anchor-link { | ||
text-decoration: none; | ||
backface-visibility: hidden; | ||
span.fa { | ||
position: relative; | ||
margin-left: .25em; | ||
transition: all .25s ease; | ||
top: 0; | ||
} | ||
|
||
#{$hocus} { | ||
text-decoration: underline; | ||
color: color(link--active); | ||
|
||
span.fa { | ||
top: .25em; | ||
} | ||
} | ||
} | ||
|
||
&.anchor-link--reverse { | ||
text-decoration: none; | ||
backface-visibility: hidden; | ||
span.fa { | ||
position: relative; | ||
margin-left: .25em; | ||
transition: all .25s ease; | ||
top: 0; | ||
} | ||
|
||
#{$hocus} { | ||
text-decoration: underline; | ||
color: color(link--active); | ||
|
||
span.fa { | ||
top: -.125em; | ||
} | ||
} | ||
} | ||
} | ||
|
||
br.print { | ||
display: none; | ||
@media print { | ||
display: initial; | ||
} | ||
} | ||
|
||
main a { | ||
position: relative; | ||
display: inline-block; | ||
z-index: 1; | ||
&::after { | ||
content: ''; | ||
position: absolute; | ||
left: em(-5px); | ||
width: calc(100% + #{em(10px)}); | ||
height: em(3px); | ||
bottom: em(-3px); | ||
background-color: tint(color(blue), 70%); | ||
z-index: -1; | ||
transition: all .15s ease-in; | ||
|
||
@media print { | ||
display: none; | ||
} | ||
} | ||
|
||
&:focus { | ||
outline: none; | ||
text-decoration: none; | ||
} | ||
|
||
#{$hocus} { | ||
text-decoration: none; | ||
&::after { | ||
height: em(33px); | ||
background-color: tint(color(blue), 80%); | ||
transition: all .15s ease-out; | ||
} | ||
} | ||
&:active { | ||
text-decoration: none; | ||
&::after { | ||
background-color: tint(color(blue), 40%); | ||
height: em(3px); | ||
transition-duration: .05s; | ||
} | ||
} | ||
} | ||
|
||
body > header { | ||
a { | ||
position: relative; | ||
|
||
&:focus { | ||
outline: tint(color(blue), 80%); | ||
} | ||
&::before { | ||
content: ''; | ||
position: absolute; | ||
left: em(-5px); | ||
width: calc(100% + #{em(10px)}); | ||
height: em(3px); | ||
top: em(-30px); | ||
background-color: tint(color(blue), 70%); | ||
z-index: -1; | ||
transition: all .2s ease-in; | ||
|
||
@media print { | ||
display: none; | ||
} | ||
} | ||
#{$hocus} { | ||
&::before { | ||
height: em(24px); | ||
transition: all .2s ease-out; | ||
} | ||
} | ||
&:active { | ||
&::before { | ||
height: em(56px); | ||
transition-duration: .05s; | ||
background-color: tint(color(blue), 80%); | ||
} | ||
} | ||
} | ||
|
||
#site-name { | ||
&::before { | ||
top:em(-12px); | ||
} | ||
|
||
#{$hocus} { | ||
&::before { | ||
height: em(18px, modular-scale(2)); | ||
} | ||
} | ||
|
||
&:active { | ||
&::before { | ||
height: em(58px, modular-scale(2)); | ||
} | ||
} | ||
} | ||
} | ||
|
||
hr { | ||
border-top: 0; | ||
border-right: 0; | ||
border-bottom: $base-border; | ||
border-left: 0; | ||
margin: modular-scale(1) 0; | ||
} | ||
|
||
%fancyhover { | ||
text-decoration: none; | ||
color: color(link); | ||
position: relative; | ||
|
||
&::before { | ||
content: ""; | ||
position: absolute; | ||
width: 100%; | ||
height: 3px; | ||
bottom: -8px; | ||
left: 0; | ||
background-color: color(link--active); | ||
visibility: hidden; | ||
transform: scaleX(0); | ||
transition: all 0.3s ease-in-out 0s; | ||
z-index: 1; | ||
} | ||
|
||
#{$hocus} { | ||
text-decoration: none; | ||
&::before { | ||
visibility: visible; | ||
transform: scaleX(1); | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.