summaryrefslogtreecommitdiff
path: root/assets/sass/base
diff options
context:
space:
mode:
Diffstat (limited to 'assets/sass/base')
-rw-r--r--assets/sass/base/_page.scss118
-rw-r--r--assets/sass/base/_reset.scss76
-rw-r--r--assets/sass/base/_typography.scss304
3 files changed, 299 insertions, 199 deletions
diff --git a/assets/sass/base/_page.scss b/assets/sass/base/_page.scss
index a4eb57d..2c33426 100644
--- a/assets/sass/base/_page.scss
+++ b/assets/sass/base/_page.scss
@@ -1,78 +1,42 @@
-@import '../libs/vars';
-@import '../libs/functions';
-@import '../libs/mixins';
-
-///
-/// Identity by HTML5 UP
-/// html5up.net | @ajlkn
-/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-///
-
-/* Basic */
-
- // Ensures page width is always >=320px.
- @include breakpoint(xsmall) {
- html, body {
- min-width: 320px;
- }
- }
-
- body {
-
- // Prevents animation/transition "flicker" on page load.
- // Automatically added/removed by js/main.js.
- &.is-loading {
- *, *:before, *:after {
- @include vendor('animation', 'none !important');
- @include vendor('transition', 'none !important');
- }
- }
-
- }
-
- html {
- height: 100%;
- }
-
- body {
- height: 100%;
- background-color: _palette(bg);
- @include vendor('background-image', (
- 'url("images/overlay.png")',
- 'linear-gradient(60deg, #{transparentize(_palette(accent1), 0.5)} 5%, #{transparentize(_palette(accent2), 0.65)})',
- 'url("../../images/bg.jpg")'
- ));
- background-repeat: repeat, no-repeat, no-repeat;
- background-size: 100px 100px, cover, cover;
- background-position: top left, center center, bottom center;
- background-attachment: fixed, fixed, fixed;
-
- &:after {
- content: '';
- display: block;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: inherit;
- opacity: 0;
- z-index: 1;
-
- background-color: _palette(bg);
- @include vendor('background-image', (
- 'url("images/overlay.png")',
- 'linear-gradient(60deg, #{transparentize(_palette(accent1), 0.5)} 5%, #{transparentize(_palette(accent2), 0.65)})'
- ));
- background-repeat: repeat, no-repeat;
- background-size: 100px 100px, cover;
- background-position: top left, center center;
-
- @include vendor('transition', 'opacity #{_duration(bg)} ease-out');
- }
-
- &.is-loading {
- &:after {
- opacity: 1;
- }
- }
+///
+/// Dimension by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+/* Basic */
+
+ // MSIE: Required for IEMobile.
+ @-ms-viewport {
+ width: device-width;
+ }
+
+ // Ensures page width is always >=320px.
+ @include breakpoint('<=xsmall') {
+ html, body {
+ min-width: 320px;
+ }
+ }
+
+ // Set box model to border-box.
+ // Based on css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice
+ html {
+ box-sizing: border-box;
+ }
+
+ *, *:before, *:after {
+ box-sizing: inherit;
+ }
+
+ body {
+ background: _palette(bg);
+
+ // Stops initial animations until page loads.
+ &.is-preload {
+ *, *:before, *:after {
+ @include vendor('animation', 'none !important');
+ @include vendor('transition', 'none !important');
+ }
+ }
+
} \ No newline at end of file
diff --git a/assets/sass/base/_reset.scss b/assets/sass/base/_reset.scss
new file mode 100644
index 0000000..ddcf73e
--- /dev/null
+++ b/assets/sass/base/_reset.scss
@@ -0,0 +1,76 @@
+///
+/// Dimension by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+// Reset.
+// Based on meyerweb.com/eric/tools/css/reset (v2.0 | 20110126 | License: public domain)
+
+ html, body, div, span, applet, object,
+ iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
+ pre, a, abbr, acronym, address, big, cite,
+ code, del, dfn, em, img, ins, kbd, q, s, samp,
+ small, strike, strong, sub, sup, tt, var, b,
+ u, i, center, dl, dt, dd, ol, ul, li, fieldset,
+ form, label, legend, table, caption, tbody,
+ tfoot, thead, tr, th, td, article, aside,
+ canvas, details, embed, figure, figcaption,
+ footer, header, hgroup, menu, nav, output, ruby,
+ section, summary, time, mark, audio, video {
+ margin: 0;
+ padding: 0;
+ border: 0;
+ font-size: 100%;
+ font: inherit;
+ vertical-align: baseline;
+ }
+
+ article, aside, details, figcaption, figure,
+ footer, header, hgroup, menu, nav, section {
+ display: block;
+ }
+
+ body {
+ line-height: 1;
+ }
+
+ ol, ul {
+ list-style:none;
+ }
+
+ blockquote, q {
+ quotes: none;
+
+ &:before,
+ &:after {
+ content: '';
+ content: none;
+ }
+ }
+
+ table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ }
+
+ body {
+ -webkit-text-size-adjust: none;
+ }
+
+ mark {
+ background-color: transparent;
+ color: inherit;
+ }
+
+ input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+ }
+
+ input, select, textarea {
+ -moz-appearance: none;
+ -webkit-appearance: none;
+ -ms-appearance: none;
+ appearance: none;
+ } \ No newline at end of file
diff --git a/assets/sass/base/_typography.scss b/assets/sass/base/_typography.scss
index a9ef65e..bc9b7cc 100644
--- a/assets/sass/base/_typography.scss
+++ b/assets/sass/base/_typography.scss
@@ -1,123 +1,183 @@
-@import '../libs/vars';
-@import '../libs/functions';
-@import '../libs/mixins';
-
-///
-/// Identity by HTML5 UP
-/// html5up.net | @ajlkn
-/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-///
-
-/* Type */
-
- body, input, select, textarea {
- color: _palette(fg);
- font-family: _font(family);
- font-size: 14pt;
- font-weight: _font(weight);
- line-height: 2;
- letter-spacing: _size(letter-spacing);
- text-transform: uppercase;
-
- @include breakpoint(xlarge) {
- font-size: 11pt;
- }
-
- @include breakpoint(xsmall) {
- font-size: 10pt;
- line-height: 1.75;
- }
- }
-
- a {
- @include vendor('transition', (
- 'color #{_duration(transition)} ease',
- 'border-color #{_duration(transition)} ease'
- ));
- color: inherit;
- text-decoration: none;
-
- &:before {
- @include vendor('transition', (
- 'color #{_duration(transition)} ease',
- 'text-shadow #{_duration(transition)} ease'
- ));
- }
-
- &:hover {
- color: _palette(highlight);
- }
- }
-
- strong, b {
- color: _palette(fg-bold);
- }
-
- em, i {
- font-style: italic;
- }
-
- p {
- margin: 0 0 _size(element-margin) 0;
- }
-
- h1, h2, h3, h4, h5, h6 {
- color: _palette(fg-bold);
- line-height: 1.5;
- margin: 0 0 (_size(element-margin) * 0.5) 0;
-
- a {
- color: inherit;
- text-decoration: none;
- }
- }
-
- h1 {
- font-size: 1.85em;
- letter-spacing: (_size(letter-spacing) * 1.1);
- margin: 0 0 (_size(element-margin) * 0.35) 0;
- }
-
- h2 {
- font-size: 1.25em;
- }
-
- h3 {
- font-size: 1em;
- }
-
- h4 {
- font-size: 1em;
- }
-
- h5 {
- font-size: 1em;
- }
-
- h6 {
- font-size: 1em;
- }
-
- @include breakpoint(xsmall) {
- h1 {
- font-size: 1.65em;
- }
- }
-
- sub {
- font-size: 0.8em;
- position: relative;
- top: 0.5em;
- }
-
- sup {
- font-size: 0.8em;
- position: relative;
- top: -0.5em;
- }
-
- hr {
- border: 0;
- border-bottom: solid _size(border-width) _palette(border);
- margin: (_size(element-margin) * 2) 0;
+///
+/// Dimension by HTML5 UP
+/// html5up.net | @ajlkn
+/// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
+///
+
+/* Type */
+
+ html {
+ font-size: 16pt;
+
+ @include breakpoint('<=xlarge') {
+ font-size: 12pt;
+ }
+
+ @include breakpoint('<=small') {
+ font-size: 11pt;
+ }
+
+ @include breakpoint('<=xxsmall') {
+ font-size: 10pt;
+ }
+ }
+
+ body, input, select, textarea {
+ color: _palette(fg);
+ font-family: _font(family);
+ font-weight: _font(weight);
+ font-size: 1rem;
+ line-height: 1.65;
+ }
+
+ a {
+ @include vendor('transition', (
+ 'color #{_duration(transition)} ease-in-out',
+ 'background-color #{_duration(transition)} ease-in-out',
+ 'border-bottom-color #{_duration(transition)} ease-in-out'
+ ));
+ border-bottom: dotted 1px _palette(fg-light);
+ text-decoration: none;
+ color: inherit;
+
+ &:hover {
+ border-bottom-color: transparent;
+ }
+ }
+
+ strong, b {
+ color: _palette(fg-bold);
+ font-weight: _font(weight-bold);
+ }
+
+ em, i {
+ font-style: italic;
+ }
+
+ p {
+ margin: 0 0 _size(element-margin) 0;
+ }
+
+ h1, h2, h3, h4, h5, h6 {
+ color: _palette(fg-bold);
+ font-weight: _font(weight-bold);
+ line-height: 1.5;
+ margin: 0 0 (_size(element-margin) * 0.5) 0;
+ text-transform: uppercase;
+ letter-spacing: _font(letter-spacing);
+
+ a {
+ color: inherit;
+ text-decoration: none;
+ }
+
+ &.major {
+ border-bottom: solid _size(border-width) _palette(border);
+ width: -moz-max-content;
+ width: -webkit-max-content;
+ width: -ms-max-content;
+ width: max-content;
+ padding-bottom: 0.5rem;
+ margin: 0 0 (_size(element-margin) * 1) 0;
+ }
+ }
+
+ h1 {
+ font-size: 2.25rem;
+ line-height: 1.3;
+ letter-spacing: _font(letter-spacing-heading);
+ }
+
+ h2 {
+ font-size: 1.5rem;
+ line-height: 1.4;
+ letter-spacing: _font(letter-spacing-heading);
+ }
+
+ h3 {
+ font-size: 1rem;
+ }
+
+ h4 {
+ font-size: 0.8rem;
+ }
+
+ h5 {
+ font-size: 0.7rem;
+ }
+
+ h6 {
+ font-size: 0.6rem;
+ }
+
+ @include breakpoint('<=small') {
+ h1 {
+ font-size: 1.75rem;
+ line-height: 1.4;
+ }
+
+ h2 {
+ font-size: 1.25em;
+ line-height: 1.5;
+ }
+ }
+
+ sub {
+ font-size: 0.8rem;
+ position: relative;
+ top: 0.5rem;
+ }
+
+ sup {
+ font-size: 0.8rem;
+ position: relative;
+ top: -0.5rem;
+ }
+
+ blockquote {
+ border-left: solid (_size(border-width) * 4) _palette(border);
+ font-style: italic;
+ margin: 0 0 _size(element-margin) 0;
+ padding: (_size(element-margin) / 4) 0 (_size(element-margin) / 4) _size(element-margin);
+ }
+
+ code {
+ background: _palette(border-bg);
+ border-radius: _size(border-radius);
+ font-family: _font(family-fixed);
+ font-size: 0.9rem;
+ margin: 0 0.25rem;
+ padding: 0.25rem 0.65rem;
+ }
+
+ pre {
+ -webkit-overflow-scrolling: touch;
+ font-family: _font(family-fixed);
+ font-size: 0.9rem;
+ margin: 0 0 _size(element-margin) 0;
+
+ code {
+ display: block;
+ line-height: 1.75;
+ padding: 1rem 1.5rem;
+ overflow-x: auto;
+ }
+ }
+
+ hr {
+ border: 0;
+ border-bottom: solid _size(border-width) _palette(border);
+ margin: (_size(element-margin) * 1.375) 0;
+ }
+
+ .align-left {
+ text-align: left;
+ }
+
+ .align-center {
+ text-align: center;
+ }
+
+ .align-right {
+ text-align: right;
} \ No newline at end of file