Cleanup SCSS Lint warnings

This commit is contained in:
Michael Rose 2017-03-16 14:34:29 -04:00
parent b4957fa34a
commit bdb2033edd
46 changed files with 474 additions and 437 deletions

View File

@ -7,7 +7,7 @@ indent_size = 2
end_of_line = lf end_of_line = lf
charset = utf-8 charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = false insert_final_newline = true
[*.md] [*.md]
trim_trailing_whitespace = false trim_trailing_whitespace = false

View File

@ -22,7 +22,7 @@ linters:
max_elements: 1 max_elements: 1
BorderZero: BorderZero:
enabled: true enabled: false
convention: zero # or `none` convention: zero # or `none`
ChainedClasses: ChainedClasses:
@ -110,7 +110,7 @@ linters:
convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern convention: hyphenated_lowercase # or 'camel_case', or 'snake_case', or a regex pattern
NestingDepth: NestingDepth:
enabled: true enabled: false
max_depth: 3 max_depth: 3
ignore_parent_selectors: false ignore_parent_selectors: false
@ -155,8 +155,8 @@ linters:
enabled: true enabled: true
QualifyingElement: QualifyingElement:
enabled: true enabled: false
allow_element_with_attribute: false allow_element_with_attribute: true
allow_element_with_class: false allow_element_with_class: false
allow_element_with_id: false allow_element_with_id: false

View File

@ -1,4 +1,4 @@
<header id="intro"> <header class="intro">
{% if page.image %} {% if page.image %}
{% assign intro_image = page.image.path | default: page.image %} {% assign intro_image = page.image.path | default: page.image %}
{% unless intro_image contains '://' %} {% unless intro_image contains '://' %}

View File

@ -12,17 +12,19 @@
{% include skip-links.html %} {% include skip-links.html %}
<a id="sidebar-toggle" class="toggle navicon-button larr" href="#sidebar"> <div class="sidebar-toggle-wrapper">
<a class="toggle navicon-button larr" href="#sidebar">
<span class="screen-reader-text">Menu</span> <span class="screen-reader-text">Menu</span>
<div class="navicon"></div> <div class="navicon"></div>
</a> </a>
</div>
<div id="wrapper"> <div class="wrapper">
{% include masthead.html %} {% include masthead.html %}
{{ content }} {{ content }}
</div> </div>
<div id="sidebar"> <div id="sidebar" class="sidebar">
<div class="inner"> <div class="inner">
{% include navigation.html %} {% include navigation.html %}
{% include contact-list.html %} {% include contact-list.html %}

View File

@ -7,8 +7,8 @@ html {
} }
body { body {
color: $text-color;
background: $background-color; background: $background-color;
color: $text-color;
} }
blockquote, blockquote,
@ -21,9 +21,9 @@ q {
font-style: normal; font-style: normal;
font-weight: bold; font-weight: bold;
&:before { &::before {
content: '\2014';
padding-right: 0.25rem; padding-right: 0.25rem;
content: '\2014';
} }
} }
} }
@ -39,14 +39,19 @@ kbd {
display: inline-block; display: inline-block;
margin: 0 0.125em; margin: 0 0.125em;
padding: 0.125em 0.5em; padding: 0.125em 0.5em;
background-color: rgb(247, 247, 247);
border-radius: 3px;
border: 1px solid rgb(204, 204, 204); border: 1px solid rgb(204, 204, 204);
border-radius: 3px;
background-color: rgb(247, 247, 247);
text-shadow: 0 1px 0 #fff; text-shadow: 0 1px 0 #fff;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), inset 0 0 0 2px #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25), inset 0 0 0 2px #fff;
} }
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
font-family: $headline-font-family; font-family: $headline-font-family;
text-rendering: optimizeLegibility; /* enable common ligatures and kerning */ text-rendering: optimizeLegibility; /* enable common ligatures and kerning */
} }

View File

@ -5,13 +5,13 @@
.btn { .btn {
display: inline-block; display: inline-block;
padding: 0.5em 1em; padding: 0.5em 1em;
border: 0;
border-radius: $border-radius;
background-color: $accent-color;
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
background-color: $accent-color;
border: 0;
border-radius: $border-radius;
cursor: pointer; cursor: pointer;
&:hover { &:hover {

View File

@ -17,9 +17,9 @@
} }
.entry-title { .entry-title {
@include fluid-type($min-vw, $max-vw, 18px, 24px);
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
color: tint($text-color, 25%); color: tint($text-color, 25%);
@include fluid-type($min-vw, $max-vw, 18px, 24px);
line-height: inherit; line-height: inherit;
a { a {
@ -28,8 +28,8 @@
} }
.entry-meta { .entry-meta {
margin-bottom: 1rem;
@include fluid-type($min-vw, $max-vw, 12px, 16px); @include fluid-type($min-vw, $max-vw, 12px, 16px);
margin-bottom: 1rem;
a { a {
color: inherit; color: inherit;
@ -37,9 +37,9 @@
.byline-item { .byline-item {
&:not(:first-child):before { &:not(:first-child)::before {
content: '\00b7';
margin: 0 0.5em; margin: 0 0.5em;
content: '\00b7';
} }
} }
} }
@ -103,7 +103,12 @@
line-height: 1.625; line-height: 1.625;
} }
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
color: tint($text-color, 25%); color: tint($text-color, 25%);
} }
} }
@ -112,8 +117,8 @@
.footnotes { .footnotes {
margin: 2rem 0; margin: 2rem 0;
padding-top: 1rem; padding-top: 1rem;
font-size: 80%;
border-top: 1px solid $border-color; border-top: 1px solid $border-color;
font-size: 80%;
} }
/* Read more link */ /* Read more link */

View File

@ -2,10 +2,10 @@
Footer Footer
========================================================================== */ ========================================================================== */
#footer { .site-footer {
margin-top: 4rem; margin-top: 4rem;
font-size: 80%;
color: tint($text-color, 40%); color: tint($text-color, 40%);
font-size: 80%;
} }
.copyright { .copyright {

View File

@ -3,11 +3,11 @@
========================================================================== */ ========================================================================== */
.site-title { .site-title {
@include fluid-type($min-vw, $max-vw, 20px, 24px);
margin: 0; margin: 0;
padding: 1.8125rem 1rem; padding: 1.8125rem 1rem;
padding-right: calc(10vw + #{$navicon-width}); /* make room for sidebar toggle */ padding-right: calc(10vw + #{$navicon-width}); /* make room for sidebar toggle */
font-family: $base-font-family; font-family: $base-font-family;
@include fluid-type($min-vw, $max-vw, 20px, 24px);
font-weight: bold; font-weight: bold;
line-height: 1; line-height: 1;
@ -28,8 +28,8 @@
} }
.site-image { .site-image {
margin-right: 0.5rem;
width: 50px; width: 50px;
height: 50px; height: 50px;
margin-right: 0.5rem;
border-radius: 50%; border-radius: 50%;
} }

View File

@ -3,20 +3,20 @@
========================================================================== */ ========================================================================== */
.icon { .icon {
display: inline-block;
position: relative; position: relative;
top: -0.05em; /* fine-tune alignment */ top: -0.05em; /* fine-tune alignment */
display: inline-block;
fill: currentColor;
width: 1em; width: 1em;
height: 1em; height: 1em;
line-height: 1; line-height: 1;
vertical-align: middle; vertical-align: middle;
fill: currentColor;
$icons: $icons:
(bitbucket, #205081), (bitbucket, #205081),
(codepen, #000000), (codepen, #000),
(dribbble, #ea4c89), (dribbble, #ea4c89),
(email, #000000), (email, #000),
(facebook, #3b5998), (facebook, #3b5998),
(flickr, #0063dc), (flickr, #0063dc),
(github, #181717), (github, #181717),

View File

@ -2,8 +2,8 @@
Page intro Page intro
========================================================================== */ ========================================================================== */
#intro { .intro {
margin: 1rem 0 1rem; margin: 1rem 0;
padding-top: 2rem; padding-top: 2rem;
padding-bottom: 2rem; padding-bottom: 2rem;
} }
@ -13,14 +13,14 @@
margin-top: -3rem; /* compensate for intro top margin */ margin-top: -3rem; /* compensate for intro top margin */
margin-bottom: 2rem; margin-bottom: 2rem;
&:before { &::before {
content: '';
position: absolute; position: absolute;
top: 0; top: 0;
left: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
left: 0;
background-color: rgba($accent-color, 0.25); background-color: rgba($accent-color, 0.25);
content: '';
} }
img { img {
@ -37,9 +37,9 @@
} }
.intro-title { .intro-title {
@include fluid-type($min-vw, $max-vw, 26px, 80px);
margin-bottom: 0.5rem; margin-bottom: 0.5rem;
color: tint($text-color, 25%); color: tint($text-color, 25%);
@include fluid-type($min-vw, $max-vw, 26px, 80px);
line-height: 1; line-height: 1;
} }

View File

@ -2,39 +2,40 @@
Layout Layout
========================================================================== */ ========================================================================== */
#wrapper { .wrapper {
min-height: 100vh; min-height: 100vh;
transition: $global-transition; transition: $global-transition;
} }
#intro, #main { .intro,
main {
> .inner { > .inner {
padding: 0 0.5rem; padding: 0 0.5rem;
@include breakpoint($small) { @include breakpoint($small) {
padding-left: 1rem;
padding-right: 1rem; padding-right: 1rem;
padding-left: 1rem;
} }
@include breakpoint($medium) { @include breakpoint($medium) {
padding-left: 2rem;
padding-right: 2rem; padding-right: 2rem;
padding-left: 2rem;
} }
@include breakpoint($large) { @include breakpoint($large) {
padding-left: 3rem;
padding-right: 3rem; padding-right: 3rem;
padding-left: 3rem;
} }
@include breakpoint($xlarge) { @include breakpoint($xlarge) {
padding-left: 4rem;
padding-right: 4rem; padding-right: 4rem;
padding-left: 4rem;
} }
} }
} }
#main { main {
section { section {
@include container; @include container;
@ -53,6 +54,7 @@
.layout--page { .layout--page {
.entry-content { .entry-content {
@include breakpoint($large) { @include breakpoint($large) {
width: span(14 of 16); width: span(14 of 16);
} }
@ -74,18 +76,20 @@
} }
.entry-content { .entry-content {
@include breakpoint($medium) { @include breakpoint($medium) {
-ms-flex: 1;
flex: 1; flex: 1;
-ms-flex: 1;
} }
} }
.entry-sidebar { .entry-sidebar {
-ms-flex-order: -1;
order: -1; order: -1;
-ms-flex-order: -1;
@include breakpoint($medium) { @include breakpoint($medium) {
-ms-flex-order: initial;
order: initial; order: initial;
-ms-flex-order: initial;
} }
.author-picture { .author-picture {
@ -140,7 +144,7 @@
.taxonomy { .taxonomy {
& + .taxonomy { + .taxonomy {
margin-top: 0.5rem; margin-top: 0.5rem;
} }

View File

@ -1,7 +1,7 @@
@import "mixins/color"; @import 'mixins/color';
@import "mixins/clearfix"; @import 'mixins/clearfix';
@import "mixins/fluid-type"; @import 'mixins/fluid-type';
@import "mixins/float"; @import 'mixins/float';
@import "mixins/image"; @import 'mixins/image';
@import "mixins/lists"; @import 'mixins/lists';
@import "mixins/text-truncate"; @import 'mixins/text-truncate';

View File

@ -6,12 +6,12 @@
display: inline-block; display: inline-block;
position: relative; position: relative;
padding: 1.8125rem 1rem; padding: 1.8125rem 1rem;
background-color: $navicon-nav-bg-close;
transition: $navicon-duration / 2; transition: $navicon-duration / 2;
background-color: $navicon-nav-bg-close;
cursor: pointer; cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none; -moz-user-select: none;
-ms-user-select: none; -ms-user-select: none;
-webkit-user-select: none;
user-select: none; user-select: none;
@include breakpoint($medium) { @include breakpoint($medium) {
@ -26,19 +26,21 @@
background-color: $navicon-nav-bg-open; background-color: $navicon-nav-bg-open;
} }
.navicon:before, .navicon:after { .navicon::before,
.navicon::after {
transition: $navicon-duration/2; transition: $navicon-duration/2;
} }
&:hover { &:hover {
transition: $navicon-duration; transition: $navicon-duration;
.navicon:before, .navicon:after { .navicon::before,
.navicon::after {
transition: $navicon-duration / 2; transition: $navicon-duration / 2;
} }
.navicon:before { top: (2.5 * $navicon-height); } .navicon::before { top: (2.5 * $navicon-height); }
.navicon:after { top: (-2.5 * $navicon-height); } .navicon::after { top: (-2.5 * $navicon-height); }
} }
} }
@ -46,33 +48,34 @@
position: relative; position: relative;
width: $navicon-width; width: $navicon-width;
height: $navicon-height; height: $navicon-height;
background: $navicon-content-bg;
transition: $navicon-duration; transition: $navicon-duration;
border-radius: $navicon-width; border-radius: $navicon-width;
&:before, &:after {
display: block;
content: "";
height: $navicon-height;
width: $navicon-width;
background: $navicon-content-bg; background: $navicon-content-bg;
&::before,
&::after {
display: block;
position: absolute; position: absolute;
z-index: -1; width: $navicon-width;
height: $navicon-height;
transition: $navicon-duration $navicon-duration / 2; transition: $navicon-duration $navicon-duration / 2;
border-radius: $navicon-width; border-radius: $navicon-width;
background: $navicon-content-bg;
content: '';
z-index: -1;
} }
&:before { top: (2 * $navicon-height); } &::before { top: (2 * $navicon-height); }
&:after { top: (-2 * $navicon-height); } &::after { top: (-2 * $navicon-height); }
} }
.open:not(.steps) .navicon:before, .open:not(.steps) .navicon::before,
.open:not(.steps) .navicon:after { .open:not(.steps) .navicon::after {
top: 0 !important; top: 0 !important;
} }
.open .navicon:before, .open .navicon::before,
.open .navicon:after { .open .navicon::after {
transition: $navicon-duration; transition: $navicon-duration;
} }
@ -87,24 +90,26 @@
.open.rarr .navicon, .open.rarr .navicon,
.open.uarr .navicon { .open.uarr .navicon {
&:before, &:after { &::before,
&::after {
width: (0.6 * $navicon-width); width: (0.6 * $navicon-width);
} }
&:before { &::before {
-ms-transform: rotate(35deg); -ms-transform: rotate(35deg);
transform: rotate(35deg); transform: rotate(35deg);
-ms-transform-origin: left top; -ms-transform-origin: left top;
transform-origin: left top; transform-origin: left top;
} }
&:after { &::after {
-ms-transform: rotate(-35deg); -ms-transform: rotate(-35deg);
transform: rotate(-35deg); transform: rotate(-35deg);
-ms-transform-origin: left bottom; -ms-transform-origin: left bottom;
transform-origin: left bottom; transform-origin: left bottom;
} }
} }
.open.uarr { .open.uarr {
-ms-transform: scale($navicon-toggled-size) rotate(90deg); -ms-transform: scale($navicon-toggled-size) rotate(90deg);
transform: scale($navicon-toggled-size) rotate(90deg); transform: scale($navicon-toggled-size) rotate(90deg);
@ -113,13 +118,13 @@
/* Arrows */ /* Arrows */
.open.rarr .navicon { .open.rarr .navicon {
&:before { &::before {
transform: translate3d(1em, 0, 0) rotate(-35deg); transform: translate3d(1em, 0, 0) rotate(-35deg);
-ms-transform-origin: right top; -ms-transform-origin: right top;
transform-origin: right top; transform-origin: right top;
} }
&:after { &::after {
transform: translate3d(1em, 0, 0) rotate(35deg); transform: translate3d(1em, 0, 0) rotate(35deg);
-ms-transform-origin: right bottom; -ms-transform-origin: right bottom;
transform-origin: right bottom; transform-origin: right bottom;
@ -132,12 +137,12 @@
.navicon { .navicon {
background: transparent; background: transparent;
&:before { &::before {
-ms-transform: rotate(-45deg); -ms-transform: rotate(-45deg);
transform: rotate(-45deg); transform: rotate(-45deg);
} }
&:after { &::after {
-ms-transform: rotate(45deg); -ms-transform: rotate(45deg);
transform: rotate(45deg); transform: rotate(45deg);
} }

View File

@ -39,12 +39,12 @@
a { a {
display: block; display: block;
padding: 1em; padding: 1em;
border-radius: $border-radius;
background-color: $accent-color;
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
background-color: $accent-color;
border-radius: $border-radius;
&:hover { &:hover {
background-color: tint($accent-color, 20%); background-color: tint($accent-color, 20%);

View File

@ -10,13 +10,15 @@
========================================================================== */ ========================================================================== */
html { html {
box-sizing: border-box;
font-family: $base-font-family; /* 1 */ font-family: $base-font-family; /* 1 */
box-sizing: border-box;
-ms-text-size-adjust: 100%; /* 2 */ -ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */
} }
*, *:before, *:after { *,
*::before,
*::after {
box-sizing: inherit; box-sizing: inherit;
} }
@ -50,7 +52,18 @@ section {
* *
*/ */
h1, h2, h3, h4, h5, h6, p, pre, blockquote, dl, table, address { h1,
h2,
h3,
h4,
h5,
h6,
p,
pre,
blockquote,
dl,
table,
address {
margin-top: 0; margin-top: 0;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
} }
@ -69,7 +82,10 @@ h1 {
* *
*/ */
h1, h2, h3, h4 { h1,
h2,
h3,
h4 {
line-height: 1.2; line-height: 1.2;
} }
@ -101,9 +117,9 @@ figure {
*/ */
hr { hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */ height: 0; /* 1 */
overflow: visible; /* 2 */ overflow: visible; /* 2 */
box-sizing: content-box; /* 1 */
} }
/** /**
@ -159,15 +175,7 @@ abbr[title] {
b, b,
strong { strong {
font-weight: inherit; font-weight: inherit;
} font-weight: bolder; /* Add the correct font weight in Chrome, Edge, and Safari. */
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
} }
/** /**
@ -213,8 +221,8 @@ small {
*/ */
blockquote { blockquote {
margin-left: 0;
margin-right: 0; margin-right: 0;
margin-left: 0;
padding: 0 1rem; padding: 0 1rem;
border-left: solid 0.25rem; border-left: solid 0.25rem;
@ -230,9 +238,9 @@ blockquote {
sub, sub,
sup { sup {
position: relative;
font-size: 75%; font-size: 75%;
line-height: 0; line-height: 0;
position: relative;
vertical-align: baseline; vertical-align: baseline;
} }
@ -248,7 +256,8 @@ sup {
* Remove margin * Remove margin
*/ */
ul, ol { ul,
ol {
margin-top: 0; margin-top: 0;
} }
@ -306,10 +315,10 @@ input,
optgroup, optgroup,
select, select,
textarea { textarea {
margin: 0; /* 2 */
font-family: $base-font-family; /* 1 */ font-family: $base-font-family; /* 1 */
font-size: 100%; /* 1 */ font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */ line-height: 1.15; /* 1 */
margin: 0; /* 2 */
} }
/** /**
@ -353,8 +362,8 @@ button::-moz-focus-inner,
[type="button"]::-moz-focus-inner, [type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner { [type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0; padding: 0;
border-style: none;
} }
/** /**
@ -373,9 +382,9 @@ button:-moz-focusring,
*/ */
fieldset { fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px; margin: 0 2px;
padding: 0.35em 0.625em 0.75em; padding: 0.35em 0.625em 0.75em;
border: 1px solid #c0c0c0;
} }
/** /**
@ -386,12 +395,12 @@ fieldset {
*/ */
legend { legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */ display: table; /* 1 */
max-width: 100%; /* 1 */ max-width: 100%; /* 1 */
padding: 0; /* 3 */ padding: 0; /* 3 */
color: inherit; /* 2 */
white-space: normal; /* 1 */ white-space: normal; /* 1 */
box-sizing: border-box; /* 1 */
} }
/** /**
@ -419,8 +428,8 @@ textarea {
[type="checkbox"], [type="checkbox"],
[type="radio"] { [type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */ padding: 0; /* 2 */
box-sizing: border-box; /* 1 */
} }
/** /**
@ -438,8 +447,8 @@ textarea {
*/ */
[type="search"] { [type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */ outline-offset: -2px; /* 2 */
-webkit-appearance: textfield; /* 1 */
} }
/** /**
@ -457,8 +466,8 @@ textarea {
*/ */
::-webkit-file-upload-button { ::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */ font: inherit; /* 2 */
-webkit-appearance: button; /* 1 */
} }
/* Interactive /* Interactive

View File

@ -2,56 +2,67 @@
Sidebar Sidebar
========================================================================== */ ========================================================================== */
#sidebar { .sidebar {
position: fixed; position: fixed;
left: 0;
top: 0; top: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
pointer-events: none;
z-index: 150; z-index: 150;
pointer-events: none;
/* page overlay dimmer */ /* page overlay dimmer */
&:after { &::after {
content: '';
display: block; display: block;
position: absolute; position: absolute;
left: 0;
top: 0; top: 0;
left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba($base-color, 0.5);
opacity: 0;
will-change: opacity;
pointer-events: none;
transition: opacity 0.3s cubic-bezier(0, 0, 0.3, 1); transition: opacity 0.3s cubic-bezier(0, 0, 0.3, 1);
background: rgba($base-color, 0.5);
content: '';
opacity: 0;
pointer-events: none;
will-change: opacity;
}
li {
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
transition: all 0.5s;
opacity: 0;
&.is--moved {
-ms-transform: translateX(0);
transform: translateX(0);
opacity: 1;
} }
/* line hover effect */ /* line hover effect */
li {
a { a {
position: relative; position: relative;
color: $base-color; color: $base-color;
&:before { &::before {
content: '';
display: block; display: block;
position: absolute; position: absolute;
top: 50%; top: 50%;
left: -3rem; left: -3rem;
height: 1px;
width: 0; width: 0;
background-color: $base-color; height: 1px;
transition: width 0.3s cubic-bezier(0, 0, 0.3, 1); transition: width 0.3s cubic-bezier(0, 0, 0.3, 1);
background-color: $base-color;
content: '';
} }
&:hover { &:hover {
color: $accent-color; color: $accent-color;
} }
&:hover:before { &:hover::before {
width: 2.5rem; width: 2.5rem;
} }
} }
@ -67,9 +78,9 @@
} }
> .inner { > .inner {
box-shadow: 0 1em 5em 0 rgba(0, 0, 0, 0.125);
-ms-transform: none; -ms-transform: none;
transform: none; transform: none;
box-shadow: 0 1em 5em 0 rgba(0, 0, 0, 0.125);
} }
} }
@ -83,17 +94,17 @@
> .inner { > .inner {
position: relative; position: relative;
padding: 1.5em;
width: 100%; width: 100%;
max-width: $sidebar-width; max-width: $sidebar-width;
height: 100%; height: 100%;
overflow-x: hidden; padding: 1.5em;
background-color: $sidebar-background-color;
box-shadow: none;
-ms-transform: translateX(-1 * $sidebar-width); -ms-transform: translateX(-1 * $sidebar-width);
transform: translateX(-1 * $sidebar-width); transform: translateX(-1 * $sidebar-width);
will-change: transform; background-color: $sidebar-background-color;
box-shadow: none;
z-index: 160; z-index: 160;
will-change: transform;
overflow-x: hidden;
pointer-events: auto; pointer-events: auto;
@include breakpoint($medium) { @include breakpoint($medium) {
@ -108,10 +119,10 @@
} }
.menu { .menu {
@include fluid-type($min-vw, $max-vw, 24px, 48px);
position: relative; position: relative;
margin-bottom: 1.5rem; margin-bottom: 1.5rem;
padding-bottom: 0.5rem; padding-bottom: 0.5rem;
@include fluid-type($min-vw, $max-vw, 24px, 48px);
font-weight: bold; font-weight: bold;
line-height: 1; line-height: 1;
@ -120,13 +131,13 @@
} }
/* divider line */ /* divider line */
&:after { &::after {
content: '';
position: absolute; position: absolute;
bottom: 0; bottom: 0;
width: 1.5em; width: 1.5em;
height: 1px; height: 1px;
background-color: $base-color; background-color: $base-color;
content: '';
} }
li { li {
@ -136,16 +147,7 @@
li { li {
-ms-transform: translateX(-1rem);
transform: translateX(-1rem);
opacity: 0;
transition: all 0.5s;
&.is--moved {
opacity: 1;
-ms-transform: translateX(0);
transform: translateX(0);
}
} }
.contact-list { .contact-list {
@ -165,7 +167,7 @@
} }
} }
#sidebar-toggle { .sidebar-toggle-wrapper {
position: fixed; position: fixed;
top: 0.675rem; top: 0.675rem;
right: 0; right: 0;

View File

@ -8,27 +8,23 @@
pre { pre {
margin: 0; margin: 0;
width: 100%;
} }
.lineno { table {
color: tint($base-color, 50%);
}
}
.highlight table {
margin: 0; margin: 0;
border: 0;
font-size: 1em; font-size: 1em;
border: none;
tr { tr {
border: none; border: 0;
} }
td { td {
padding: 5px; padding: 5px;
border: none; border: 0;
/* line numbers */ /* line numbers gutter */
&.gutter { &.gutter {
padding-right: 1rem; padding-right: 1rem;
} }
@ -39,7 +35,10 @@
} }
} }
.highlight pre { width: 100%; } /* line numbers */
.lineno {
color: tint($base-color, 50%);
}
/* /*
Solarized Light Solarized Light
@ -57,71 +56,72 @@
green #859900 operators, other keywords green #859900 operators, other keywords
========================================================================== */ ========================================================================== */
.highlight .c { color: #93a1a1 } /* Comment */ .c { color: #93a1a1; } /* Comment */
.highlight .err { color: #586e75 } /* Error */ .err { color: #586e75; } /* Error */
.highlight .g { color: #586e75 } /* Generic */ .g { color: #586e75; } /* Generic */
.highlight .k { color: #859900 } /* Keyword */ .k { color: #859900; } /* Keyword */
.highlight .l { color: #586e75 } /* Literal */ .l { color: #586e75; } /* Literal */
.highlight .n { color: #586e75 } /* Name */ .n { color: #586e75; } /* Name */
.highlight .o { color: #859900 } /* Operator */ .o { color: #859900; } /* Operator */
.highlight .x { color: #cb4b16 } /* Other */ .x { color: #cb4b16; } /* Other */
.highlight .p { color: #586e75 } /* Punctuation */ .p { color: #586e75; } /* Punctuation */
.highlight .cm { color: #93a1a1 } /* Comment.Multiline */ .cm { color: #93a1a1; } /* Comment.Multiline */
.highlight .cp { color: #859900 } /* Comment.Preproc */ .cp { color: #859900; } /* Comment.Preproc */
.highlight .c1 { color: #93a1a1 } /* Comment.Single */ .c1 { color: #93a1a1; } /* Comment.Single */
.highlight .cs { color: #859900 } /* Comment.Special */ .cs { color: #859900; } /* Comment.Special */
.highlight .gd { color: #2aa198 } /* Generic.Deleted */ .gd { color: #2aa198; } /* Generic.Deleted */
.highlight .ge { color: #586e75; font-style: italic } /* Generic.Emph */ .ge { color: #586e75; font-style: italic; } /* Generic.Emph */
.highlight .gr { color: #dc322f } /* Generic.Error */ .gr { color: #dc322f; } /* Generic.Error */
.highlight .gh { color: #cb4b16 } /* Generic.Heading */ .gh { color: #cb4b16; } /* Generic.Heading */
.highlight .gi { color: #859900 } /* Generic.Inserted */ .gi { color: #859900; } /* Generic.Inserted */
.highlight .go { color: #586e75 } /* Generic.Output */ .go { color: #586e75; } /* Generic.Output */
.highlight .gp { color: #586e75 } /* Generic.Prompt */ .gp { color: #586e75; } /* Generic.Prompt */
.highlight .gs { color: #586e75; font-weight: bold } /* Generic.Strong */ .gs { color: #586e75; font-weight: bold; } /* Generic.Strong */
.highlight .gu { color: #cb4b16 } /* Generic.Subheading */ .gu { color: #cb4b16; } /* Generic.Subheading */
.highlight .gt { color: #586e75 } /* Generic.Traceback */ .gt { color: #586e75; } /* Generic.Traceback */
.highlight .kc { color: #cb4b16 } /* Keyword.Constant */ .kc { color: #cb4b16; } /* Keyword.Constant */
.highlight .kd { color: #22b3eb } /* Keyword.Declaration */ .kd { color: #22b3eb; } /* Keyword.Declaration */
.highlight .kn { color: #859900 } /* Keyword.Namespace */ .kn { color: #859900; } /* Keyword.Namespace */
.highlight .kp { color: #859900 } /* Keyword.Pseudo */ .kp { color: #859900; } /* Keyword.Pseudo */
.highlight .kr { color: #22b3eb } /* Keyword.Reserved */ .kr { color: #22b3eb; } /* Keyword.Reserved */
.highlight .kt { color: #dc322f } /* Keyword.Type */ .kt { color: #dc322f; } /* Keyword.Type */
.highlight .ld { color: #586e75 } /* Literal.Date */ .ld { color: #586e75; } /* Literal.Date */
.highlight .m { color: #2aa198 } /* Literal.Number */ .m { color: #2aa198; } /* Literal.Number */
.highlight .s { color: #2aa198 } /* Literal.String */ .s { color: #2aa198; } /* Literal.String */
.highlight .na { color: #586e75 } /* Name.Attribute */ .na { color: #586e75; } /* Name.Attribute */
.highlight .nb { color: #B58900 } /* Name.Builtin */ .nb { color: #B58900; } /* Name.Builtin */
.highlight .nc { color: #22b3eb } /* Name.Class */ .nc { color: #22b3eb; } /* Name.Class */
.highlight .no { color: #cb4b16 } /* Name.Constant */ .no { color: #cb4b16; } /* Name.Constant */
.highlight .nd { color: #22b3eb } /* Name.Decorator */ .nd { color: #22b3eb; } /* Name.Decorator */
.highlight .ni { color: #cb4b16 } /* Name.Entity */ .ni { color: #cb4b16; } /* Name.Entity */
.highlight .ne { color: #cb4b16 } /* Name.Exception */ .ne { color: #cb4b16; } /* Name.Exception */
.highlight .nf { color: #22b3eb } /* Name.Function */ .nf { color: #22b3eb; } /* Name.Function */
.highlight .nl { color: #586e75 } /* Name.Label */ .nl { color: #586e75; } /* Name.Label */
.highlight .nn { color: #586e75 } /* Name.Namespace */ .nn { color: #586e75; } /* Name.Namespace */
.highlight .nx { color: #586e75 } /* Name.Other */ .nx { color: #586e75; } /* Name.Other */
.highlight .py { color: #586e75 } /* Name.Property */ .py { color: #586e75; } /* Name.Property */
.highlight .nt { color: #22b3eb } /* Name.Tag */ .nt { color: #22b3eb; } /* Name.Tag */
.highlight .nv { color: #22b3eb } /* Name.Variable */ .nv { color: #22b3eb; } /* Name.Variable */
.highlight .ow { color: #859900 } /* Operator.Word */ .ow { color: #859900; } /* Operator.Word */
.highlight .w { color: #586e75 } /* Text.Whitespace */ .w { color: #586e75; } /* Text.Whitespace */
.highlight .mf { color: #2aa198 } /* Literal.Number.Float */ .mf { color: #2aa198; } /* Literal.Number.Float */
.highlight .mh { color: #2aa198 } /* Literal.Number.Hex */ .mh { color: #2aa198 } /* Literal.Number.Hex */
.highlight .mi { color: #2aa198 } /* Literal.Number.Integer */ .mi { color: #2aa198 } /* Literal.Number.Integer */
.highlight .mo { color: #2aa198 } /* Literal.Number.Oct */ .mo { color: #2aa198 } /* Literal.Number.Oct */
.highlight .sb { color: #93a1a1 } /* Literal.String.Backtick */ .sb { color: #93a1a1 } /* Literal.String.Backtick */
.highlight .sc { color: #2aa198 } /* Literal.String.Char */ .sc { color: #2aa198 } /* Literal.String.Char */
.highlight .sd { color: #586e75 } /* Literal.String.Doc */ .sd { color: #586e75 } /* Literal.String.Doc */
.highlight .s2 { color: #2aa198 } /* Literal.String.Double */ .s2 { color: #2aa198 } /* Literal.String.Double */
.highlight .se { color: #cb4b16 } /* Literal.String.Escape */ .se { color: #cb4b16 } /* Literal.String.Escape */
.highlight .sh { color: #586e75 } /* Literal.String.Heredoc */ .sh { color: #586e75 } /* Literal.String.Heredoc */
.highlight .si { color: #2aa198 } /* Literal.String.Interpol */ .si { color: #2aa198 } /* Literal.String.Interpol */
.highlight .sx { color: #2aa198 } /* Literal.String.Other */ .sx { color: #2aa198 } /* Literal.String.Other */
.highlight .sr { color: #dc322f } /* Literal.String.Regex */ .sr { color: #dc322f } /* Literal.String.Regex */
.highlight .s1 { color: #2aa198 } /* Literal.String.Single */ .s1 { color: #2aa198 } /* Literal.String.Single */
.highlight .ss { color: #2aa198 } /* Literal.String.Symbol */ .ss { color: #2aa198 } /* Literal.String.Symbol */
.highlight .bp { color: #22b3eb } /* Name.Builtin.Pseudo */ .bp { color: #22b3eb } /* Name.Builtin.Pseudo */
.highlight .vc { color: #22b3eb } /* Name.Variable.Class */ .vc { color: #22b3eb } /* Name.Variable.Class */
.highlight .vg { color: #22b3eb } /* Name.Variable.Global */ .vg { color: #22b3eb } /* Name.Variable.Global */
.highlight .vi { color: #22b3eb } /* Name.Variable.Instance */ .vi { color: #22b3eb } /* Name.Variable.Instance */
.highlight .il { color: #2aa198 } /* Literal.Number.Integer.Long */ .il { color: #2aa198 } /* Literal.Number.Integer.Long */
}

View File

@ -3,8 +3,8 @@
========================================================================== */ ========================================================================== */
table { table {
width: 100%;
@include fluid-type($min-vw, $max-vw, 12px, 18px); @include fluid-type($min-vw, $max-vw, 12px, 18px);
width: 100%;
border-collapse: collapse; border-collapse: collapse;
/* For Firefox to horizontally scroll wider tables */ /* For Firefox to horizontally scroll wider tables */
word-break: normal; word-break: normal;
@ -13,12 +13,14 @@ table {
thead { thead {
th, td { th,
td {
background-color: tint($base-color, 80%); background-color: tint($base-color, 80%);
} }
} }
th, td { th,
td {
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
} }
@ -32,6 +34,8 @@ td {
padding: 0.5em; padding: 0.5em;
} }
tr, td, th { tr,
td,
th {
vertical-align: middle; vertical-align: middle;
} }

View File

@ -1,5 +1,5 @@
@import "utilities/accessibility"; @import 'utilities/accessibility';
@import "utilities/align"; @import 'utilities/align';
@import "utilities/clearfix"; @import 'utilities/clearfix';
@import "utilities/float"; @import 'utilities/float';
@import "utilities/text"; @import 'utilities/text';

View File

@ -47,7 +47,7 @@ $monospace-font-family: Menlo, Consolas, Monaco, "Courier New", Courier, monospa
$base-color: #393e46 !default; $base-color: #393e46 !default;
$text-color: #222831 !default; $text-color: #222831 !default;
$accent-color: #00848a !default; $accent-color: #00848a !default;
$background-color: #ffffff !default; $background-color: #fff !default;
$code-background-color: tint($base-color, 95%) !default; $code-background-color: tint($base-color, 95%) !default;
$border-color: tint($base-color, 80%) !default; $border-color: tint($base-color, 80%) !default;
$overlay-color: $base-color !default; $overlay-color: $base-color !default;

View File

@ -1,11 +1,11 @@
// /* ==========================================================================
// Clearfix Mixin Clearfix Mixin
// ========================================================================== */
@mixin clearfix() { @mixin clearfix() {
&::after { &::after {
display: block; display: block;
content: "";
clear: both; clear: both;
content: '';
} }
} }

View File

@ -1,6 +1,6 @@
// /* ==========================================================================
// Color Functions Color Functions
// ========================================================================== */
/// Slightly lighten a color /// Slightly lighten a color
/// @access public /// @access public
@ -8,7 +8,7 @@
/// @param {Number} $percentage - percentage of `$color` in returned color /// @param {Number} $percentage - percentage of `$color` in returned color
/// @return {Color} /// @return {Color}
@function tint($color, $percentage) { @function tint($color, $percentage) {
@return mix(white, $color, $percentage); @return mix(#fff, $color, $percentage);
} }
/// Slightly darken a color /// Slightly darken a color
@ -17,5 +17,5 @@
/// @param {Number} $percentage - percentage of `$color` in returned color /// @param {Number} $percentage - percentage of `$color` in returned color
/// @return {Color} /// @return {Color}
@function shade($color, $percentage) { @function shade($color, $percentage) {
@return mix(black, $color, $percentage); @return mix(#000, $color, $percentage);
} }

View File

@ -1,6 +1,6 @@
// /* ==========================================================================
// Float Mixins Float Mixins
// ========================================================================== */
@mixin float-left { @mixin float-left {
float: left !important; float: left !important;

View File

@ -1,7 +1,7 @@
// /* ==========================================================================
// Fluid Type Fluid Type
// as seen on https://madebymike.com.au/writing/fluid-type-calc-examples/ as seen on https://madebymike.com.au/writing/fluid-type-calc-examples/
// ========================================================================== */
@function strip-unit($value) { @function strip-unit($value) {
@return $value / ($value * 0 + 1); @return $value / ($value * 0 + 1);
@ -17,6 +17,7 @@
& { & {
font-size: $min-font-size; font-size: $min-font-size;
@media screen and (min-width: $min-vw) { @media screen and (min-width: $min-vw) {
font-size: calc(#{$min-font-size} + #{strip-unit($max-font-size - $min-font-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})); font-size: calc(#{$min-font-size} + #{strip-unit($max-font-size - $min-font-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)}));
} }

View File

@ -1,11 +1,13 @@
// Image Mixins /* ==========================================================================
// - Responsive image Image Mixins
// - Retina image - Responsive image
- Retina image
========================================================================== */
/*
// Responsive image Responsive image
// Keep images from scaling beyond the width of their parents.
// Keep images from scaling beyond the width of their parents. ========================================================================== */
@mixin img-fluid { @mixin img-fluid {
// Part 1: Set a maximum relative to the parent // Part 1: Set a maximum relative to the parent
@ -15,10 +17,10 @@
height: auto; height: auto;
} }
/*
// Retina image Retina image
// Short retina mixin for setting background-image and -size.
// Short retina mixin for setting background-image and -size. ========================================================================== */
@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) { @mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {
background-image: url($file-1x); background-image: url($file-1x);

View File

@ -1,6 +1,6 @@
// /* ==========================================================================
// List Mixins List Mixins
// ========================================================================== */
// Unstyled keeps list items block level, just removes default browser padding and list-style // Unstyled keeps list items block level, just removes default browser padding and list-style
@mixin list-unstyled { @mixin list-unstyled {

View File

@ -1,5 +1,7 @@
// Text truncate /* ==========================================================================
// Requires inline-block or block for proper styling Text Truncate Mixin
Requires inline-block or block for proper styling
========================================================================== */
@mixin text-truncate() { @mixin text-truncate() {
overflow: hidden; overflow: hidden;

View File

@ -7,6 +7,6 @@ $base-color: #252a34 !default;
$text-color: #eaeaea !default; $text-color: #eaeaea !default;
$accent-color: #00adb5 !default; $accent-color: #00adb5 !default;
$background-color: #252a34 !default; $background-color: #252a34 !default;
$code-background-color: #ffffff !default; $code-background-color: #fff !default;
$border-color: rgba($text-color, 0.5) !default; $border-color: rgba($text-color, 0.5) !default;
$overlay-color: #ffffff !default; $overlay-color: #fff !default;

View File

@ -7,6 +7,6 @@ $base-color: #561050 !default;
$text-color: #35013f !default; $text-color: #35013f !default;
$accent-color: #951556 !default; $accent-color: #951556 !default;
$background-color: #e9b5d2 !default; $background-color: #e9b5d2 !default;
$code-background-color: #ffffff !default; $code-background-color: #fff !default;
$border-color: rgba($text-color, 0.5) !default; $border-color: rgba($text-color, 0.5) !default;
$overlay-color: #ffffff !default; $overlay-color: #fff !default;

View File

@ -7,6 +7,6 @@ $base-color: #41506b !default;
$text-color: #90f6d7 !default; $text-color: #90f6d7 !default;
$accent-color: #35bcbf !default; $accent-color: #35bcbf !default;
$background-color: #263849 !default; $background-color: #263849 !default;
$code-background-color: #ffffff !default; $code-background-color: #fff !default;
$border-color: rgba($text-color, 0.5) !default; $border-color: rgba($text-color, 0.5) !default;
$overlay-color: #ffffff !default; $overlay-color: #fff !default;

View File

@ -7,6 +7,6 @@ $base-color: mix(#625772, #a9eee6, 75%) !default;
$text-color: #625772 !default; $text-color: #625772 !default;
$accent-color: #e85482 !default; $accent-color: #e85482 !default;
$background-color: #fefaec !default; $background-color: #fefaec !default;
$code-background-color: #ffffff !default; $code-background-color: #fff !default;
$border-color: rgba($text-color, 0.5) !default; $border-color: rgba($text-color, 0.5) !default;
$overlay-color: #ffffff !default; $overlay-color: #fff !default;

View File

@ -7,6 +7,6 @@ $base-color: #3a4750 !default;
$text-color: #303841 !default; $text-color: #303841 !default;
$accent-color: #d72323 !default; $accent-color: #d72323 !default;
$background-color: #eeeeee !default; $background-color: #eeeeee !default;
$code-background-color: #ffffff !default; $code-background-color: #fff !default;
$border-color: rgba($text-color, 0.25) !default; $border-color: rgba($text-color, 0.25) !default;
$overlay-color: #ffffff !default; $overlay-color: #fff !default;

View File

@ -1,49 +1,26 @@
// /* ==========================================================================
// Accessibility Modules Accessibility Modules
// ========================================================================== */
// Skip links. /* Skip links */
.skip-links { .skip-links {
margin: 0; margin: 0;
li { li {
height: 0;
width: 0; width: 0;
height: 0;
list-style: none; list-style: none;
} }
} }
// Text meant only for screen readers. /* Text meant only for screen readers */
.screen-reader-text, .screen-reader-text,
.screen-reader-text span, .screen-reader-text span,
.screen-reader-shortcut { .screen-reader-shortcut {
position: absolute !important; position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px; width: 1px;
border: 0;
overflow: hidden;
}
.screen-reader-text:focus,
.screen-reader-shortcut:focus,
.genesis-nav-menu .search input[type="submit"]:focus,
.widget_search input[type="submit"]:focus {
clip: auto !important;
height: auto;
width: auto;
z-index: 100000;
text-decoration: none;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
}
.screen-reader-text,
.screen-reader-text span,
.screen-reader-shortcut {
position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px; height: 1px;
width: 1px; clip: rect(0, 0, 0, 0);
border: 0; border: 0;
overflow: hidden; overflow: hidden;
@ -51,17 +28,29 @@
display: block; display: block;
top: 5px; top: 5px;
left: 5px; left: 5px;
padding: 0.75em 1em;
width: auto; width: auto;
height: auto; height: auto;
padding: 0.75em 1em;
clip: auto !important;
border-radius: 0.125em;
background-color: $base-color;
color: #fff; color: #fff;
font-weight: bold; font-weight: bold;
line-height: normal; line-height: normal;
text-decoration: none; text-decoration: none;
background-color: $base-color;
border-radius: 0.125em;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
clip: auto !important;
z-index: 100000; z-index: 100000;
} }
} }
.screen-reader-text:focus,
.screen-reader-shortcut:focus,
.genesis-nav-menu .search input[type="submit"]:focus,
.widget_search input[type="submit"]:focus {
width: auto;
height: auto;
clip: auto !important;
text-decoration: none;
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
z-index: 100000;
}

View File

@ -1,6 +1,6 @@
// /* ==========================================================================
// Alignment Alignment
// ========================================================================== */
.align-baseline { vertical-align: baseline !important; } // Browser default .align-baseline { vertical-align: baseline !important; } // Browser default
.align-top { vertical-align: top !important; } .align-top { vertical-align: top !important; }
@ -9,24 +9,24 @@
.align-text-bottom { vertical-align: text-bottom !important; } .align-text-bottom { vertical-align: text-bottom !important; }
.align-text-top { vertical-align: text-top !important; } .align-text-top { vertical-align: text-top !important; }
// /*
// Image Alignment Image Alignment
// ========================================================================== */
.align-center, .align-center,
div.align-center, div.align-center,
a img.align-center { a img.align-center {
display: block; display: block;
margin-left: auto;
margin-right: auto; margin-right: auto;
margin-left: auto;
} }
figure.align-center { figure.align-center {
img { img {
display: block; display: block;
margin-left: auto;
margin-right: auto; margin-right: auto;
margin-left: auto;
} }
figcaption { figcaption {
@ -36,23 +36,24 @@ figure.align-center {
.align-right, .align-right,
a img.align-right { a img.align-right {
float: right;
margin-left: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
margin-left: 1rem;
float: right;
} }
.align-left, .align-left,
a img.align-left { a img.align-left {
float: left;
margin-right: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
margin-right: 1rem;
float: left;
} }
// /*
// Sidebar pusher Sidebar Pusher
// ========================================================================== */
.is--pushed { .is--pushed {
@include breakpoint($medium) { @include breakpoint($medium) {
padding-left: $sidebar-width; padding-left: $sidebar-width;
} }

View File

@ -1,6 +1,6 @@
// /* ==========================================================================
// FLoats Floats
// ========================================================================== */
.float-left { @include float-left; } .float-left { @include float-left; }
.float-right { @include float-right; } .float-right { @include float-right; }

View File

@ -1,8 +1,10 @@
// /* ==========================================================================
// Text Text
// ========================================================================== */
// Alignment /*
Alignment
========================================================================== */
.text-justify { text-align: justify !important; } .text-justify { text-align: justify !important; }
.text-nowrap { white-space: nowrap !important; } .text-nowrap { white-space: nowrap !important; }
@ -10,13 +12,17 @@
.text-right { text-align: right !important; } .text-right { text-align: right !important; }
.text-center { text-align: center !important; } .text-center { text-align: center !important; }
// Transformation /*
Transformation
========================================================================== */
.text-lowercase { text-transform: lowercase !important; } .text-lowercase { text-transform: lowercase !important; }
.text-uppercase { text-transform: uppercase !important; } .text-uppercase { text-transform: uppercase !important; }
.text-capitalize { text-transform: capitalize !important; } .text-capitalize { text-transform: capitalize !important; }
.text-truncate { @include text-truncate; } .text-truncate { @include text-truncate; }
// Sizing /*
Sizing
========================================================================== */
.small { font-size: 80%; } .small { font-size: 80%; }

View File

@ -43,9 +43,9 @@ function OnTransitionEnd() {
myMenu.classList.remove('is--animatable'); myMenu.classList.remove('is--animatable');
} }
var myWrapper = document.querySelector('#wrapper'); var myWrapper = document.querySelector('.wrapper');
var myMenu = document.querySelector('#sidebar'); var myMenu = document.querySelector('.sidebar');
var myToggle = document.querySelector('#sidebar-toggle'); var myToggle = document.querySelector('.toggle');
myMenu.addEventListener('transitionend', OnTransitionEnd, false); myMenu.addEventListener('transitionend', OnTransitionEnd, false);
myToggle.addEventListener('click', function() { myToggle.addEventListener('click', function() {
toggleClassMenu(); toggleClassMenu();