mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fix errors in generated SassDoc
This commit is contained in:
@@ -20,19 +20,19 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Typography
|
// Typography
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Modular typographic scale
|
// Modular typographic scale
|
||||||
$ms-base: 1.6rem;
|
$ms-base: 1.6rem;
|
||||||
$ms-ratio: $major-third;
|
$ms-ratio: $major-third;
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Breakpoints
|
// Breakpoints
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Device-specific breakpoints
|
// Device-specific breakpoints
|
||||||
$break-devices: (
|
$break-devices: (
|
||||||
mobile: (
|
mobile: (
|
||||||
portrait: px2em(220px) px2em(479px),
|
portrait: px2em(220px) px2em(479px),
|
||||||
@@ -49,23 +49,23 @@ $break-devices: (
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Colors
|
// Colors
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Primary and accent colors
|
// Primary and accent colors
|
||||||
$md-color-primary: $clr-indigo-500;
|
$md-color-primary: $clr-indigo-500;
|
||||||
$md-color-primary--light: $clr-indigo-100;
|
$md-color-primary--light: $clr-indigo-100;
|
||||||
$md-color-primary--dark: $clr-indigo-700;
|
$md-color-primary--dark: $clr-indigo-700;
|
||||||
$md-color-accent: $clr-indigo-a200;
|
$md-color-accent: $clr-indigo-a200;
|
||||||
|
|
||||||
/// Shades of black
|
// Shades of black
|
||||||
$md-color-black: hsla(0, 0%, 0%, 0.87);
|
$md-color-black: hsla(0, 0%, 0%, 0.87);
|
||||||
$md-color-black--light: hsla(0, 0%, 0%, 0.54);
|
$md-color-black--light: hsla(0, 0%, 0%, 0.54);
|
||||||
$md-color-black--lighter: hsla(0, 0%, 0%, 0.26);
|
$md-color-black--lighter: hsla(0, 0%, 0%, 0.26);
|
||||||
$md-color-black--lightest: hsla(0, 0%, 0%, 0.07);
|
$md-color-black--lightest: hsla(0, 0%, 0%, 0.07);
|
||||||
|
|
||||||
/// Shades of white
|
// Shades of white
|
||||||
$md-color-white: hsla(0, 0%, 100%, 1.00);
|
$md-color-white: hsla(0, 0%, 100%, 1.00);
|
||||||
$md-color-white--light: hsla(0, 0%, 100%, 0.70);
|
$md-color-white--light: hsla(0, 0%, 100%, 0.70);
|
||||||
$md-color-white--lighter: hsla(0, 0%, 100%, 0.30);
|
$md-color-white--lighter: hsla(0, 0%, 100%, 0.30);
|
||||||
|
|||||||
@@ -20,9 +20,10 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Nothing to see here, move along
|
// Nothing to see here, move along
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
.md-search__suggest {
|
.md-search__suggest {
|
||||||
background: $md-color-white;
|
background: $md-color-white;
|
||||||
|
|||||||
@@ -20,17 +20,17 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Dependencies
|
// Dependencies
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
@import "modular-scale";
|
@import "modular-scale";
|
||||||
@import "material-color";
|
@import "material-color";
|
||||||
@import "material-shadows";
|
@import "material-shadows";
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Application
|
// Application
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
@import "helpers/break";
|
@import "helpers/break";
|
||||||
@import "helpers/px2em";
|
@import "helpers/px2em";
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Icon set
|
// Icon set
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Base icon class
|
// Base icon class
|
||||||
%md-icon,
|
%md-icon,
|
||||||
.md-icon {
|
.md-icon {
|
||||||
font-family: "Material Icons";
|
font-family: "Material Icons";
|
||||||
@@ -38,12 +38,12 @@
|
|||||||
word-wrap: normal;
|
word-wrap: normal;
|
||||||
direction: ltr;
|
direction: ltr;
|
||||||
|
|
||||||
/// Enable font-smoothing in Webkit and FF
|
// Enable font-smoothing in Webkit and FF
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Build representational classes
|
// Build representational classes
|
||||||
@each $ligature, $name in (
|
@each $ligature, $name in (
|
||||||
"arrow_back": "back",
|
"arrow_back": "back",
|
||||||
"arrow_forward": "forward",
|
"arrow_forward": "forward",
|
||||||
|
|||||||
@@ -20,33 +20,33 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Resets
|
// Resets
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Enfore correct box model - the prefixed versions are necessary for older
|
// Enfore correct box model - the prefixed versions are necessary for older
|
||||||
/// browsers, i.e. Chrome < 10, Firefox < 29, Safari < 6 and Android < 4
|
// browsers, i.e. Chrome < 10, Firefox < 29, Safari < 6 and Android < 4
|
||||||
html {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// All elements shall inherit the document default
|
// All elements shall inherit the document default
|
||||||
*, *::before, *::after {
|
*, *::before, *::after {
|
||||||
box-sizing: inherit;
|
box-sizing: inherit;
|
||||||
-moz-box-sizing: inherit;
|
-moz-box-sizing: inherit;
|
||||||
-webkit-box-sizing: inherit;
|
-webkit-box-sizing: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Prevent adjustments of font size after orientation changes in IE and iOS
|
// Prevent adjustments of font size after orientation changes in IE and iOS
|
||||||
/// and set base font-size to 10px for simple rem calculations.
|
// and set base font-size to 10px for simple rem calculations.
|
||||||
html {
|
html {
|
||||||
font-size: 62.5%;
|
font-size: 62.5%;
|
||||||
text-size-adjust: none;
|
text-size-adjust: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reset spacing and borders for all tags
|
// Reset spacing and borders for all tags
|
||||||
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
|
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote,
|
||||||
pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd,
|
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, dl, dt, dd, ol,
|
q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, dl, dt, dd, ol,
|
||||||
@@ -59,20 +59,20 @@ audio, video {
|
|||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reset table styles
|
// Reset table styles
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reset table cell styles
|
// Reset table cell styles
|
||||||
td, th {
|
td, th {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reset (native) button styles
|
// Reset (native) button styles
|
||||||
button {
|
button {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
@@ -81,20 +81,20 @@ button {
|
|||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reset (native) input styles
|
// Reset (native) input styles
|
||||||
input {
|
input {
|
||||||
border: 0;
|
border: 0;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reset link styles
|
// Reset link styles
|
||||||
a {
|
a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Reset tap outlines on iOS and Android
|
// Reset tap outlines on iOS and Android
|
||||||
a, button, label, input {
|
a, button, label, input {
|
||||||
-webkit-tap-highlight-color: transparent;
|
-webkit-tap-highlight-color: transparent;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,51 +20,51 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Font definitions
|
// Font definitions
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Default fonts
|
// Default fonts
|
||||||
body, kbd {
|
body, kbd {
|
||||||
font-family: "Roboto", Helvetica, Arial, sans-serif;
|
font-family: "Roboto", Helvetica, Arial, sans-serif;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-feature-settings: "kern", "onum", "liga";
|
font-feature-settings: "kern", "onum", "liga";
|
||||||
|
|
||||||
/// Enable font-smoothing in Webkit and FF
|
// Enable font-smoothing in Webkit and FF
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
/// Use system fonts, if browser doesn't support webfonts
|
// Use system fonts, if browser doesn't support webfonts
|
||||||
.no-fontface & {
|
.no-fontface & {
|
||||||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Proportionally spaced fonts
|
// Proportionally spaced fonts
|
||||||
pre, code {
|
pre, code {
|
||||||
font-family: "Roboto Mono", "Courier New", Courier, monospace;
|
font-family: "Roboto Mono", "Courier New", Courier, monospace;
|
||||||
|
|
||||||
/// Use system fonts, if browser doesn't support webfonts
|
// Use system fonts, if browser doesn't support webfonts
|
||||||
.no-fontface & {
|
.no-fontface & {
|
||||||
font-family: "Courier New", Courier, monospace;
|
font-family: "Courier New", Courier, monospace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Typeset
|
// Typeset
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Content that is typeset
|
// Content that is typeset
|
||||||
.md-content--typeset {
|
.md-content--typeset {
|
||||||
font-size: ms(0);
|
font-size: ms(0);
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
|
|
||||||
/// Body copy
|
// Body copy
|
||||||
p {
|
p {
|
||||||
margin: 1.25em 0;
|
margin: 1.25em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 1st level headline
|
// 1st level headline
|
||||||
h1 {
|
h1 {
|
||||||
color: $md-color-black--light;
|
color: $md-color-black--light;
|
||||||
font-size: ms(3);
|
font-size: ms(3);
|
||||||
@@ -73,7 +73,7 @@ pre, code {
|
|||||||
line-height: 1.3;
|
line-height: 1.3;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 2nd level headline
|
// 2nd level headline
|
||||||
h2 {
|
h2 {
|
||||||
margin-top: 4.0rem;
|
margin-top: 4.0rem;
|
||||||
font-size: ms(2);
|
font-size: ms(2);
|
||||||
@@ -82,7 +82,7 @@ pre, code {
|
|||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 3rd level headline
|
// 3rd level headline
|
||||||
h3 {
|
h3 {
|
||||||
margin-top: 3.2rem;
|
margin-top: 3.2rem;
|
||||||
font-size: ms(1);
|
font-size: ms(1);
|
||||||
@@ -91,12 +91,12 @@ pre, code {
|
|||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 3rd level headline following an 2nd level headline
|
// 3rd level headline following an 2nd level headline
|
||||||
h2 + h3 {
|
h2 + h3 {
|
||||||
margin-top: 1.6rem;
|
margin-top: 1.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 4th level headline
|
// 4th level headline
|
||||||
h4 {
|
h4 {
|
||||||
margin-top: 1.6rem;
|
margin-top: 1.6rem;
|
||||||
font-size: ms(0);
|
font-size: ms(0);
|
||||||
@@ -104,7 +104,7 @@ pre, code {
|
|||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 5th and 6th level headline
|
// 5th and 6th level headline
|
||||||
h5,
|
h5,
|
||||||
h6 {
|
h6 {
|
||||||
margin-top: 1.6rem;
|
margin-top: 1.6rem;
|
||||||
@@ -114,29 +114,29 @@ pre, code {
|
|||||||
letter-spacing: -0.01em;
|
letter-spacing: -0.01em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Overrides for 5th level headline
|
// Overrides for 5th level headline
|
||||||
h5 {
|
h5 {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Links
|
// Links
|
||||||
a {
|
a {
|
||||||
color: $md-color-primary;
|
color: $md-color-primary;
|
||||||
|
|
||||||
/// Also enable transition on pseudo elements
|
// Also enable transition on pseudo elements
|
||||||
&,
|
&,
|
||||||
&::before {
|
&::before {
|
||||||
transition: color 0.125s;
|
transition: color 0.125s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Active links
|
// Active links
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active {
|
&:active {
|
||||||
color: $md-color-accent;
|
color: $md-color-accent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Inline code blocks
|
// Inline code blocks
|
||||||
code {
|
code {
|
||||||
padding: 0.1rem 0.4rem;
|
padding: 0.1rem 0.4rem;
|
||||||
background: #F7F7F7;
|
background: #F7F7F7;
|
||||||
@@ -146,7 +146,7 @@ pre, code {
|
|||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Formatted code blocks
|
// Formatted code blocks
|
||||||
pre {
|
pre {
|
||||||
margin: 2.0rem 0;
|
margin: 2.0rem 0;
|
||||||
padding: 1.0rem 1.2rem;
|
padding: 1.0rem 1.2rem;
|
||||||
@@ -156,13 +156,13 @@ pre, code {
|
|||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
overflow-x: scroll;
|
overflow-x: scroll;
|
||||||
|
|
||||||
/// Reset, if pre is inside code
|
// Reset, if pre is inside code
|
||||||
> code {
|
> code {
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Keyboard tags
|
// Keyboard tags
|
||||||
kbd {
|
kbd {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 0.4rem 0.5rem 0.5rem;
|
padding: 0.4rem 0.5rem 0.5rem;
|
||||||
@@ -178,62 +178,62 @@ pre, code {
|
|||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Smaller text
|
// Smaller text
|
||||||
small {
|
small {
|
||||||
color: $md-color-black--light;
|
color: $md-color-black--light;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Superscript and subscript
|
// Superscript and subscript
|
||||||
sup,
|
sup,
|
||||||
sub {
|
sub {
|
||||||
margin-left: 0.1rem;
|
margin-left: 0.1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Horizontal separators
|
// Horizontal separators
|
||||||
hr {
|
hr {
|
||||||
margin: 2.4rem 0;
|
margin: 2.4rem 0;
|
||||||
border-bottom: px2rem(1px) dotted $md-color-black--lighter;
|
border-bottom: px2rem(1px) dotted $md-color-black--lighter;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Blockquotes, possibly nested
|
// Blockquotes, possibly nested
|
||||||
blockquote {
|
blockquote {
|
||||||
padding-left: 1.2rem;
|
padding-left: 1.2rem;
|
||||||
border-left: px2rem(4px) solid $md-color-black--lighter;
|
border-left: px2rem(4px) solid $md-color-black--lighter;
|
||||||
color: $md-color-black--light;
|
color: $md-color-black--light;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Unordered lists
|
// Unordered lists
|
||||||
ul {
|
ul {
|
||||||
list-style-type: disc;
|
list-style-type: disc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Ordered lists
|
// Ordered lists
|
||||||
ol ol {
|
ol ol {
|
||||||
list-style-type: lower-alpha;
|
list-style-type: lower-alpha;
|
||||||
|
|
||||||
/// Triply nested ordered list
|
// Triply nested ordered list
|
||||||
ol {
|
ol {
|
||||||
list-style-type: lower-roman;
|
list-style-type: lower-roman;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Unordered and ordered lists
|
// Unordered and ordered lists
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
margin-left: 1.0rem;
|
margin-left: 1.0rem;
|
||||||
|
|
||||||
/// List elements
|
// List elements
|
||||||
li {
|
li {
|
||||||
margin-bottom: 1.0rem;
|
margin-bottom: 1.0rem;
|
||||||
margin-left: 2.0rem;
|
margin-left: 2.0rem;
|
||||||
|
|
||||||
/// Remove margin on last element
|
// Remove margin on last element
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Nested lists
|
// Nested lists
|
||||||
ul,
|
ul,
|
||||||
ol {
|
ol {
|
||||||
margin-bottom: 1.0rem;
|
margin-bottom: 1.0rem;
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Admonition extension
|
// Admonition extension
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Admonition
|
// Admonition
|
||||||
.admonition {
|
.admonition {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin: 2.0rem 0;
|
margin: 2.0rem 0;
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
border-radius: px2rem(2px);
|
border-radius: px2rem(2px);
|
||||||
background: transparentize($clr-blue-a200, 0.95);
|
background: transparentize($clr-blue-a200, 0.95);
|
||||||
|
|
||||||
/// Icon
|
// Icon
|
||||||
&::before {
|
&::before {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
vertical-align: -0.1em;
|
vertical-align: -0.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Title
|
// Title
|
||||||
&-title {
|
&-title {
|
||||||
color: $clr-blue-a400;
|
color: $clr-blue-a400;
|
||||||
font-size: ms(-1);
|
font-size: ms(-1);
|
||||||
@@ -56,28 +56,28 @@
|
|||||||
line-height: 2.0rem;
|
line-height: 2.0rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|
||||||
/// Ensure smaller spacing to next element
|
// Ensure smaller spacing to next element
|
||||||
html & {
|
html & {
|
||||||
margin-bottom: 1.6rem;
|
margin-bottom: 1.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Ensure smaller spacing to next element
|
// Ensure smaller spacing to next element
|
||||||
html & + * {
|
html & + * {
|
||||||
margin-top: 1.6rem;
|
margin-top: 1.6rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Remove spacing on first element
|
// Remove spacing on first element
|
||||||
:first-child {
|
:first-child {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Remove spacing on last element
|
// Remove spacing on last element
|
||||||
:last-child {
|
:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Build representational classes
|
// Build representational classes
|
||||||
@each $names, $appearance in (
|
@each $names, $appearance in (
|
||||||
tip idea: $clr-teal-a700 "whatshot",
|
tip idea: $clr-teal-a700 "whatshot",
|
||||||
success check done: $clr-green-a400 "done",
|
success check done: $clr-green-a400 "done",
|
||||||
@@ -89,24 +89,24 @@
|
|||||||
$tint: nth($appearance, 1);
|
$tint: nth($appearance, 1);
|
||||||
$icon: nth($appearance, 2);
|
$icon: nth($appearance, 2);
|
||||||
|
|
||||||
/// Define base class
|
// Define base class
|
||||||
&%#{nth($names, 1)},
|
&%#{nth($names, 1)},
|
||||||
&.#{nth($names, 1)} {
|
&.#{nth($names, 1)} {
|
||||||
border-color: $tint;
|
border-color: $tint;
|
||||||
background: transparentize($tint, 0.95);
|
background: transparentize($tint, 0.95);
|
||||||
|
|
||||||
/// Icon
|
// Icon
|
||||||
&::before {
|
&::before {
|
||||||
content: $icon;
|
content: $icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set color for title
|
// Set color for title
|
||||||
.admonition-title {
|
.admonition-title {
|
||||||
color: $tint;
|
color: $tint;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Define synonyms for base class
|
// Define synonyms for base class
|
||||||
@if length($names) > 1 {
|
@if length($names) > 1 {
|
||||||
@for $n from 2 through length($names) {
|
@for $n from 2 through length($names) {
|
||||||
&.#{nth($names, $n)} {
|
&.#{nth($names, $n)} {
|
||||||
|
|||||||
@@ -20,98 +20,98 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Codehilite extension
|
// Codehilite extension
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Github-style syntax highlighting
|
// Github-style syntax highlighting
|
||||||
.codehilite,
|
.codehilite,
|
||||||
.code {
|
.code {
|
||||||
|
|
||||||
/// Errors
|
// Errors
|
||||||
.err { color: #A61717; }
|
.err { color: #A61717; }
|
||||||
|
|
||||||
/// Operators
|
// Operators
|
||||||
.o { color: inherit; }
|
.o { color: inherit; }
|
||||||
|
|
||||||
/// Generics
|
// Generics
|
||||||
|
|
||||||
.ge { color: #000000; } /// Generic.Emph
|
.ge { color: #000000; } // Generic.Emph
|
||||||
.gr { color: #AA0000; } /// Generic.Error
|
.gr { color: #AA0000; } // Generic.Error
|
||||||
.gh { color: #999999; } /// Generic.Heading
|
.gh { color: #999999; } // Generic.Heading
|
||||||
.go { color: #888888; } /// Generic.Output
|
.go { color: #888888; } // Generic.Output
|
||||||
.gp { color: #555555; } /// Generic.Prompt
|
.gp { color: #555555; } // Generic.Prompt
|
||||||
.gs { color: inherit; } /// Generic.Strong
|
.gs { color: inherit; } // Generic.Strong
|
||||||
.gu { color: #AAAAAA; } /// Generic.Subheading
|
.gu { color: #AAAAAA; } // Generic.Subheading
|
||||||
.gt { color: #AA0000; } /// Generic.Traceback
|
.gt { color: #AA0000; } // Generic.Traceback
|
||||||
|
|
||||||
/// Keywords
|
// Keywords
|
||||||
|
|
||||||
.k { color: #A71D5D; } /// Keyword
|
.k { color: #A71D5D; } // Keyword
|
||||||
.kc { color: #A71D5D; } /// Keyword.Constant
|
.kc { color: #A71D5D; } // Keyword.Constant
|
||||||
.kd { color: #A71D5D; } /// Keyword.Declaration
|
.kd { color: #A71D5D; } // Keyword.Declaration
|
||||||
.kn { color: #A71D5D; } /// Keyword.Namespace
|
.kn { color: #A71D5D; } // Keyword.Namespace
|
||||||
.kp { color: #A71D5D; } /// Keyword.Pseudo
|
.kp { color: #A71D5D; } // Keyword.Pseudo
|
||||||
.kr { color: #0086B3; } /// Keyword.Reserved
|
.kr { color: #0086B3; } // Keyword.Reserved
|
||||||
.kt { color: #0086B3; } /// Keyword.Type
|
.kt { color: #0086B3; } // Keyword.Type
|
||||||
|
|
||||||
/// Comments
|
// Comments
|
||||||
|
|
||||||
.c { color: #969896; } /// Comment
|
.c { color: #969896; } // Comment
|
||||||
.cm { color: #969896; } /// Comment.Multiline
|
.cm { color: #969896; } // Comment.Multiline
|
||||||
.cp { color: #666666; } /// Comment.Preproc
|
.cp { color: #666666; } // Comment.Preproc
|
||||||
.c1 { color: #969896; } /// Comment.Single
|
.c1 { color: #969896; } // Comment.Single
|
||||||
.cs { color: #969896; } /// Comment.Special
|
.cs { color: #969896; } // Comment.Special
|
||||||
|
|
||||||
/// Names
|
// Names
|
||||||
|
|
||||||
.na { color: #795DA3; } /// Name.Attribute
|
.na { color: #795DA3; } // Name.Attribute
|
||||||
.na { color: #795DA3; } /// Name.Attribute
|
.na { color: #795DA3; } // Name.Attribute
|
||||||
.nb { color: #795DA3; } /// Name.Builtin
|
.nb { color: #795DA3; } // Name.Builtin
|
||||||
.bp { color: #795DA3; } /// Name.Builtin.Pseudo
|
.bp { color: #795DA3; } // Name.Builtin.Pseudo
|
||||||
.nc { color: #795DA3; } /// Name.Class
|
.nc { color: #795DA3; } // Name.Class
|
||||||
.no { color: #795DA3; } /// Name.Constant
|
.no { color: #795DA3; } // Name.Constant
|
||||||
.nd { color: #795DA3; } /// Name.Decorator
|
.nd { color: #795DA3; } // Name.Decorator
|
||||||
.ni { color: #795DA3; } /// Name.Entity
|
.ni { color: #795DA3; } // Name.Entity
|
||||||
.ne { color: #795DA3; } /// Name.Exception
|
.ne { color: #795DA3; } // Name.Exception
|
||||||
.nf { color: #795DA3; } /// Name.Function
|
.nf { color: #795DA3; } // Name.Function
|
||||||
.nl { color: #795DA3; } /// Name.Label
|
.nl { color: #795DA3; } // Name.Label
|
||||||
.nn { color: #795DA3; } /// Name.Namespace
|
.nn { color: #795DA3; } // Name.Namespace
|
||||||
.nt { color: #795DA3; } /// Name.Tag
|
.nt { color: #795DA3; } // Name.Tag
|
||||||
.nv { color: #795DA3; } /// Name.Variable
|
.nv { color: #795DA3; } // Name.Variable
|
||||||
.vc { color: #795DA3; } /// Name.Variable.Class
|
.vc { color: #795DA3; } // Name.Variable.Class
|
||||||
.vg { color: #795DA3; } /// Name.Variable.Global
|
.vg { color: #795DA3; } // Name.Variable.Global
|
||||||
.vi { color: #795DA3; } /// Name.Variable.Instance
|
.vi { color: #795DA3; } // Name.Variable.Instance
|
||||||
.ow { color: inherit; } /// Operator.Word
|
.ow { color: inherit; } // Operator.Word
|
||||||
|
|
||||||
/// Numbers
|
// Numbers
|
||||||
|
|
||||||
.m { color: #0086B3; } /// Literal.Number
|
.m { color: #0086B3; } // Literal.Number
|
||||||
.mf { color: #0086B3; } /// Literal.Number.Float
|
.mf { color: #0086B3; } // Literal.Number.Float
|
||||||
.mh { color: #0086B3; } /// Literal.Number.Hex
|
.mh { color: #0086B3; } // Literal.Number.Hex
|
||||||
.mi { color: #0086B3; } /// Literal.Number.Integer
|
.mi { color: #0086B3; } // Literal.Number.Integer
|
||||||
.mo { color: #0086B3; } /// Literal.Number.Oct
|
.mo { color: #0086B3; } // Literal.Number.Oct
|
||||||
.il { color: #0086B3; } /// Literal.Number.Integer.Long
|
.il { color: #0086B3; } // Literal.Number.Integer.Long
|
||||||
|
|
||||||
/// Strings
|
// Strings
|
||||||
|
|
||||||
.s { color: #183691; } /// Literal.String
|
.s { color: #183691; } // Literal.String
|
||||||
.sb { color: #183691; } /// Literal.String.Backtick
|
.sb { color: #183691; } // Literal.String.Backtick
|
||||||
.sc { color: #183691; } /// Literal.String.Char
|
.sc { color: #183691; } // Literal.String.Char
|
||||||
.sd { color: #183691; } /// Literal.String.Doc
|
.sd { color: #183691; } // Literal.String.Doc
|
||||||
.s2 { color: #183691; } /// Literal.String.Double
|
.s2 { color: #183691; } // Literal.String.Double
|
||||||
.se { color: #183691; } /// Literal.String.Escape
|
.se { color: #183691; } // Literal.String.Escape
|
||||||
.sh { color: #183691; } /// Literal.String.Heredoc
|
.sh { color: #183691; } // Literal.String.Heredoc
|
||||||
.si { color: #183691; } /// Literal.String.Interpol
|
.si { color: #183691; } // Literal.String.Interpol
|
||||||
.sx { color: #183691; } /// Literal.String.Other
|
.sx { color: #183691; } // Literal.String.Other
|
||||||
.sr { color: #009926; } /// Literal.String.Regex
|
.sr { color: #009926; } // Literal.String.Regex
|
||||||
.s1 { color: #D01040; } /// Literal.String.Single
|
.s1 { color: #D01040; } // Literal.String.Single
|
||||||
.ss { color: #990073; } /// Literal.String.Symbol
|
.ss { color: #990073; } // Literal.String.Symbol
|
||||||
|
|
||||||
/// Diffs
|
// Diffs
|
||||||
.gd { background-color: #ffdddd; } /// Generic.Deleted
|
.gd { background-color: #ffdddd; } // Generic.Deleted
|
||||||
.gi { background-color: #ddffdd; } /// Generic.Inserted
|
.gi { background-color: #ddffdd; } // Generic.Inserted
|
||||||
|
|
||||||
/// Miscellaneous
|
// Miscellaneous
|
||||||
.w { color: transparent; } /// Text.Whitespace
|
.w { color: transparent; } // Text.Whitespace
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,23 +20,23 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Footnotes extension
|
// Footnotes extension
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Scoped in typesetted content for greater specificity
|
// Scoped in typesetted content for greater specificity
|
||||||
.md-content--typeset {
|
.md-content--typeset {
|
||||||
|
|
||||||
/// Footnote
|
// Footnote
|
||||||
.footnote {
|
.footnote {
|
||||||
color: $md-color-black--light;
|
color: $md-color-black--light;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
|
|
||||||
/// Remove additional spacing on footnotes
|
// Remove additional spacing on footnotes
|
||||||
> ol {
|
> ol {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
|
||||||
/// Single footnote
|
// Single footnote
|
||||||
> li {
|
> li {
|
||||||
|
|
||||||
// TODO: this doesn't work entirely
|
// TODO: this doesn't work entirely
|
||||||
@@ -47,14 +47,14 @@
|
|||||||
// margin-top: -(5.6rem + 2.4rem + 0.4rem);
|
// margin-top: -(5.6rem + 2.4rem + 0.4rem);
|
||||||
// }
|
// }
|
||||||
|
|
||||||
/// Make back references visible on hover
|
// Make back references visible on hover
|
||||||
&:hover .footnote-backref,
|
&:hover .footnote-backref,
|
||||||
&:target .footnote-backref {
|
&:target .footnote-backref {
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Active or targeted back reference
|
// Active or targeted back reference
|
||||||
&:hover .footnote-backref:hover,
|
&:hover .footnote-backref:hover,
|
||||||
&:target .footnote-backref {
|
&:target .footnote-backref {
|
||||||
color: $md-color-accent;
|
color: $md-color-accent;
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Correct anchor offset
|
// Correct anchor offset
|
||||||
&-ref::before {
|
&-ref::before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: -(5.6rem + 2.4rem + 0.4rem);
|
margin-top: -(5.6rem + 2.4rem + 0.4rem);
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Make back reference text transparent for icon
|
// Make back reference text transparent for icon
|
||||||
&-backref {
|
&-backref {
|
||||||
@extend %md-icon;
|
@extend %md-icon;
|
||||||
|
|
||||||
@@ -85,12 +85,12 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
|
||||||
/// Hack: remove Unicode arrow for icon
|
// Hack: remove Unicode arrow for icon
|
||||||
&::first-letter {
|
&::first-letter {
|
||||||
font-size: 0;
|
font-size: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Back reference icon
|
// Back reference icon
|
||||||
&::after {
|
&::after {
|
||||||
content: "keyboard_return";
|
content: "keyboard_return";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,14 +20,14 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Permalinks extension
|
// Permalinks extension
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Scoped in typesetted content for greater specificity
|
// Scoped in typesetted content for greater specificity
|
||||||
.md-content--typeset {
|
.md-content--typeset {
|
||||||
|
|
||||||
/// Permalink
|
// Permalink
|
||||||
.headerlink {
|
.headerlink {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 1.0rem;
|
margin-left: 1.0rem;
|
||||||
@@ -39,24 +39,24 @@
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// All headers with permalinks have ids
|
// All headers with permalinks have ids
|
||||||
[id] {
|
[id] {
|
||||||
|
|
||||||
/// Make permalink visible on hover
|
// Make permalink visible on hover
|
||||||
&:hover .headerlink,
|
&:hover .headerlink,
|
||||||
&:target .headerlink {
|
&:target .headerlink {
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Active or targeted permalink
|
// Active or targeted permalink
|
||||||
&:hover .headerlink:hover,
|
&:hover .headerlink:hover,
|
||||||
&:target .headerlink {
|
&:target .headerlink {
|
||||||
color: $md-color-accent;
|
color: $md-color-accent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Correct anchor offset of headlines
|
// Correct anchor offset of headlines
|
||||||
@each $level, $delta in (
|
@each $level, $delta in (
|
||||||
h1: 3.0rem,
|
h1: 3.0rem,
|
||||||
h2: 0.2rem,
|
h2: 0.2rem,
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Variables
|
// Variables
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
////
|
///
|
||||||
/// Device-specific breakpoints
|
/// Device-specific breakpoints
|
||||||
///
|
///
|
||||||
/// @example
|
/// @example
|
||||||
@@ -47,21 +47,21 @@
|
|||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access private
|
/// @access private
|
||||||
/// @type Map
|
/// @type Map
|
||||||
////
|
///
|
||||||
$break-devices: () !default;
|
$break-devices: () !default;
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Breakpoint helpers
|
// Breakpoint helpers
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
////
|
///
|
||||||
/// Choose minimum and maximum device widths
|
/// Choose minimum and maximum device widths
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access private
|
/// @access private
|
||||||
/// @param {Map} $devices Map of devices
|
/// @param {Map} $devices Map of devices
|
||||||
/// @return {List} Minimum and maximum width
|
/// @return {List} Minimum and maximum width
|
||||||
////
|
///
|
||||||
@function break-select-min-max($devices) {
|
@function break-select-min-max($devices) {
|
||||||
$min: 1000000;
|
$min: 1000000;
|
||||||
$max: 0;
|
$max: 0;
|
||||||
@@ -90,14 +90,14 @@ $break-devices: () !default;
|
|||||||
@return $min, $max;
|
@return $min, $max;
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
///
|
||||||
/// Select minimum and maximum widths for a device breakpoint
|
/// Select minimum and maximum widths for a device breakpoint
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access private
|
/// @access private
|
||||||
/// @param {String} $device Device
|
/// @param {String} $device Device
|
||||||
/// @return {List} Minimum and maximum width
|
/// @return {List} Minimum and maximum width
|
||||||
////
|
///
|
||||||
@function break-select-device($device) {
|
@function break-select-device($device) {
|
||||||
$current: $break-devices;
|
$current: $break-devices;
|
||||||
@for $n from 1 through length($device) {
|
@for $n from 1 through length($device) {
|
||||||
@@ -114,17 +114,17 @@ $break-devices: () !default;
|
|||||||
@return break-select-min-max($current);
|
@return break-select-min-max($current);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Breakpoint mixins
|
// Breakpoint mixins
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
////
|
///
|
||||||
/// A minimum-maximum media query breakpoint
|
/// A minimum-maximum media query breakpoint
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access public
|
/// @access public
|
||||||
/// @param {Number|List} $breakpoint Number or number pair
|
/// @param {Number|List} $breakpoint Number or number pair
|
||||||
////
|
///
|
||||||
@mixin break-at($breakpoint) {
|
@mixin break-at($breakpoint) {
|
||||||
@if type-of($breakpoint) == number {
|
@if type-of($breakpoint) == number {
|
||||||
@media only screen and (min-width: $breakpoint) {
|
@media only screen and (min-width: $breakpoint) {
|
||||||
@@ -145,13 +145,13 @@ $break-devices: () !default;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
///
|
||||||
/// An orientation media query breakpoint
|
/// An orientation media query breakpoint
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access public
|
/// @access public
|
||||||
/// @param {String} $breakpoint Orientation
|
/// @param {String} $breakpoint Orientation
|
||||||
////
|
///
|
||||||
@mixin break-at-orientation($breakpoint) {
|
@mixin break-at-orientation($breakpoint) {
|
||||||
@if type-of($breakpoint) == string {
|
@if type-of($breakpoint) == string {
|
||||||
@media only screen and (orientation: $breakpoint) {
|
@media only screen and (orientation: $breakpoint) {
|
||||||
@@ -162,13 +162,13 @@ $break-devices: () !default;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
///
|
||||||
/// A maximum-aspect-ratio media query breakpoint
|
/// A maximum-aspect-ratio media query breakpoint
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access public
|
/// @access public
|
||||||
/// @param {Number} $breakpoint Ratio
|
/// @param {Number} $breakpoint Ratio
|
||||||
////
|
///
|
||||||
@mixin break-at-ratio($breakpoint) {
|
@mixin break-at-ratio($breakpoint) {
|
||||||
@if type-of($breakpoint) == number {
|
@if type-of($breakpoint) == number {
|
||||||
@media only screen and (max-aspect-ratio: $breakpoint) {
|
@media only screen and (max-aspect-ratio: $breakpoint) {
|
||||||
@@ -179,13 +179,13 @@ $break-devices: () !default;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
///
|
||||||
/// A minimum-maximum media query device breakpoint
|
/// A minimum-maximum media query device breakpoint
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access public
|
/// @access public
|
||||||
/// @param {String|List} $breakpoint Device
|
/// @param {String|List} $breakpoint Device
|
||||||
////
|
///
|
||||||
@mixin break-at-device($device) {
|
@mixin break-at-device($device) {
|
||||||
@if type-of($device) == string {
|
@if type-of($device) == string {
|
||||||
$device: $device,;
|
$device: $device,;
|
||||||
@@ -206,13 +206,13 @@ $break-devices: () !default;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
///
|
||||||
/// A minimum media query device breakpoint
|
/// A minimum media query device breakpoint
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access public
|
/// @access public
|
||||||
/// @param {String|List} $breakpoint Device
|
/// @param {String|List} $breakpoint Device
|
||||||
////
|
///
|
||||||
@mixin break-from-device($device) {
|
@mixin break-from-device($device) {
|
||||||
@if type-of($device) == string {
|
@if type-of($device) == string {
|
||||||
$device: $device,;
|
$device: $device,;
|
||||||
@@ -228,13 +228,13 @@ $break-devices: () !default;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
///
|
||||||
/// A maximum media query device breakpoint
|
/// A maximum media query device breakpoint
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
/// @access public
|
/// @access public
|
||||||
/// @param {String|List} $breakpoint Device
|
/// @param {String|List} $breakpoint Device
|
||||||
////
|
///
|
||||||
@mixin break-to-device($device) {
|
@mixin break-to-device($device) {
|
||||||
@if type-of($device) == string {
|
@if type-of($device) == string {
|
||||||
$device: $device,;
|
$device: $device,;
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Pixel conversion helpers
|
// Pixel conversion helpers
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
////
|
///
|
||||||
/// Convert font size in px to em.
|
/// Convert font size in px to em.
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
/// @param {Number} $size Font size in px
|
/// @param {Number} $size Font size in px
|
||||||
/// @param {Number} $base Base font size
|
/// @param {Number} $base Base font size
|
||||||
/// @return {Number} Font size in em
|
/// @return {Number} Font size in em
|
||||||
////
|
///
|
||||||
@function px2em($size, $base: 16px) {
|
@function px2em($size, $base: 16px) {
|
||||||
@if unit($size) == px {
|
@if unit($size) == px {
|
||||||
@return ($size / $base) * 1.0em;
|
@return ($size / $base) * 1.0em;
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////
|
///
|
||||||
/// Convert font size in px to rem.
|
/// Convert font size in px to rem.
|
||||||
///
|
///
|
||||||
/// @group helpers
|
/// @group helpers
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
/// @param {Number} $size Font size in px
|
/// @param {Number} $size Font size in px
|
||||||
/// @param {Number} $base Base font size
|
/// @param {Number} $base Base font size
|
||||||
/// @return {Number} Font size in rem
|
/// @return {Number} Font size in rem
|
||||||
////
|
///
|
||||||
@function px2rem($size, $base: 10px) {
|
@function px2rem($size, $base: 10px) {
|
||||||
@if unit($size) == px {
|
@if unit($size) == px {
|
||||||
@return ($size / $base) * 1.0rem;
|
@return ($size / $base) * 1.0rem;
|
||||||
|
|||||||
@@ -20,38 +20,38 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Grid
|
// Grid
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Stretch container to viewport
|
// Stretch container to viewport
|
||||||
html {
|
html {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
/// [screen medium +] Set base font-size to 11px
|
// [screen medium +] Set base font-size to 11px
|
||||||
@include break-from-device(screen medium) {
|
@include break-from-device(screen medium) {
|
||||||
font-size: 68.75%;
|
font-size: 68.75%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [screen large +] Set base font-size to 12px
|
// [screen large +] Set base font-size to 12px
|
||||||
@include break-from-device(screen large) {
|
@include break-from-device(screen large) {
|
||||||
font-size: 75.00%;
|
font-size: 75.00%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Stretch body to container and leave room for footer.
|
// Stretch body to container and leave room for footer.
|
||||||
body {
|
body {
|
||||||
position: relative;
|
position: relative;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
|
||||||
/// Lock body to viewport height (e.g. in search mode)
|
// Lock body to viewport height (e.g. in search mode)
|
||||||
&.md-js__body--locked {
|
&.md-js__body--locked {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Horizontal separators
|
// Horizontal separators
|
||||||
hr {
|
hr {
|
||||||
display: block;
|
display: block;
|
||||||
height: px2rem(1px);
|
height: px2rem(1px);
|
||||||
@@ -59,24 +59,24 @@ hr {
|
|||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Template-wide grid
|
// Template-wide grid
|
||||||
.md-grid {
|
.md-grid {
|
||||||
max-width: 120.0rem;
|
max-width: 120.0rem;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Prevent collapse of margin when setting margin on child element
|
// Prevent collapse of margin when setting margin on child element
|
||||||
.md-container,
|
.md-container,
|
||||||
.md-main {
|
.md-main {
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add top spacing to acount for header
|
// Add top spacing to acount for header
|
||||||
.md-main {
|
.md-main {
|
||||||
margin-top: 5.6rem;
|
margin-top: 5.6rem;
|
||||||
|
|
||||||
/// Bottom spacing to account for footer
|
// Bottom spacing to account for footer
|
||||||
&__inner {
|
&__inner {
|
||||||
margin-top: 3.0rem;
|
margin-top: 3.0rem;
|
||||||
margin-bottom: 9.2rem;
|
margin-bottom: 9.2rem;
|
||||||
@@ -84,16 +84,16 @@ hr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Navigational elements
|
// Navigational elements
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Toggle checkbox
|
// Toggle checkbox
|
||||||
.md-toggle {
|
.md-toggle {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Overlay below expanded drawer
|
// Overlay below expanded drawer
|
||||||
.md-overlay {
|
.md-overlay {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -106,10 +106,10 @@ hr {
|
|||||||
opacity: 0;
|
opacity: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
|
||||||
/// [tablet landscape -]: Trigger overlay
|
// [tablet landscape -]: Trigger overlay
|
||||||
@include break-to-device(tablet landscape) {
|
@include break-to-device(tablet landscape) {
|
||||||
|
|
||||||
/// Expanded drawer
|
// Expanded drawer
|
||||||
.md-toggle--drawer:checked ~ & {
|
.md-toggle--drawer:checked ~ & {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -121,25 +121,25 @@ hr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Flexible elements, implemented with table layout
|
// Flexible elements, implemented with table layout
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Flexible layout container
|
// Flexible layout container
|
||||||
.md-flex {
|
.md-flex {
|
||||||
display: table;
|
display: table;
|
||||||
|
|
||||||
/// Flexible layout container cell/element
|
// Flexible layout container cell/element
|
||||||
&__cell {
|
&__cell {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
|
|
||||||
/// Shrink to minimum width
|
// Shrink to minimum width
|
||||||
&--shrink {
|
&--shrink {
|
||||||
width: 1%;
|
width: 1%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Stretch to maximum width
|
// Stretch to maximum width
|
||||||
&--stretch {
|
&--stretch {
|
||||||
display: table;
|
display: table;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -147,7 +147,7 @@ hr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Apply ellipsis in case of overflowing text
|
// Apply ellipsis in case of overflowing text
|
||||||
&__ellipsis {
|
&__ellipsis {
|
||||||
display: table-cell;
|
display: table-cell;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|||||||
@@ -20,34 +20,34 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Main content
|
// Main content
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Content container
|
// Content container
|
||||||
.md-content {
|
.md-content {
|
||||||
|
|
||||||
/// [tablet landscape +]: Add space for table of contents
|
// [tablet landscape +]: Add space for table of contents
|
||||||
@include break-from-device(tablet landscape) {
|
@include break-from-device(tablet landscape) {
|
||||||
margin-right: 24.2rem;
|
margin-right: 24.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [screen small +]: Add space for table of contents
|
// [screen small +]: Add space for table of contents
|
||||||
@include break-from-device(screen small) {
|
@include break-from-device(screen small) {
|
||||||
margin-left: 24.2rem;
|
margin-left: 24.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Define padding
|
// Define padding
|
||||||
&__inner {
|
&__inner {
|
||||||
margin: 2.4rem 1.6rem;
|
margin: 2.4rem 1.6rem;
|
||||||
|
|
||||||
/// [screen small +]: Add space for table of contents
|
// [screen small +]: Add space for table of contents
|
||||||
@include break-from-device(screen small) {
|
@include break-from-device(screen small) {
|
||||||
margin: 2.4rem;
|
margin: 2.4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Copyright and theme information
|
// Copyright and theme information
|
||||||
&__copyright {
|
&__copyright {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,53 +20,53 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Footer
|
// Footer
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Application footer
|
// Application footer
|
||||||
.md-footer {
|
.md-footer {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
/// Pagination container
|
// Pagination container
|
||||||
&-pagination {
|
&-pagination {
|
||||||
background: $md-color-black;
|
background: $md-color-black;
|
||||||
color: $md-color-white;
|
color: $md-color-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Footer navigation
|
// Footer navigation
|
||||||
&-nav {
|
&-nav {
|
||||||
padding: 0.4rem;
|
padding: 0.4rem;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
|
|
||||||
/// Links to previous and next page
|
// Links to previous and next page
|
||||||
&__link {
|
&__link {
|
||||||
padding-top: 2.8rem;
|
padding-top: 2.8rem;
|
||||||
padding-bottom: 0.8rem;
|
padding-bottom: 0.8rem;
|
||||||
|
|
||||||
/// [mobile landscape +]: Set proportional width
|
// [mobile landscape +]: Set proportional width
|
||||||
@include break-from-device(mobile landscape) {
|
@include break-from-device(mobile landscape) {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Link to previous page
|
// Link to previous page
|
||||||
&--prev {
|
&--prev {
|
||||||
width: 25%;
|
width: 25%;
|
||||||
float: left;
|
float: left;
|
||||||
|
|
||||||
/// Title
|
// Title
|
||||||
.md-footer-nav__title {
|
.md-footer-nav__title {
|
||||||
|
|
||||||
/// [mobile portrait -]: Hide title for previous page
|
// [mobile portrait -]: Hide title for previous page
|
||||||
@include break-to-device(mobile portrait) {
|
@include break-to-device(mobile portrait) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Link to next page
|
// Link to next page
|
||||||
&--next {
|
&--next {
|
||||||
width: 75%;
|
width: 75%;
|
||||||
float: right;
|
float: right;
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Link icon
|
// Link icon
|
||||||
&__icon {
|
&__icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin: 0.4rem;
|
margin: 0.4rem;
|
||||||
@@ -84,13 +84,13 @@
|
|||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
/// Pushed/clicked icon
|
// Pushed/clicked icon
|
||||||
&:active {
|
&:active {
|
||||||
background: $md-color-white--lightest;
|
background: $md-color-white--lightest;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Link title
|
// Link title
|
||||||
&__title {
|
&__title {
|
||||||
position: relative;
|
position: relative;
|
||||||
padding: 0 0.4rem;
|
padding: 0 0.4rem;
|
||||||
@@ -98,7 +98,7 @@
|
|||||||
line-height: 4.8rem;
|
line-height: 4.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Link direction
|
// Link direction
|
||||||
&__direction {
|
&__direction {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
|||||||
@@ -20,11 +20,11 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Header
|
// Header
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Application header (stays always on top)
|
// Application header (stays always on top)
|
||||||
.md-header {
|
.md-header {
|
||||||
@include z-depth(2);
|
@include z-depth(2);
|
||||||
|
|
||||||
@@ -37,11 +37,11 @@
|
|||||||
color: $md-color-white;
|
color: $md-color-white;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
/// Navigation within header
|
// Navigation within header
|
||||||
&-nav {
|
&-nav {
|
||||||
padding: 0.4rem;
|
padding: 0.4rem;
|
||||||
|
|
||||||
/// Header icon
|
// Header icon
|
||||||
&__icon {
|
&__icon {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -53,22 +53,22 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
|
||||||
/// Pushed/clicked icon
|
// Pushed/clicked icon
|
||||||
&:active {
|
&:active {
|
||||||
background: $md-color-white--lightest;
|
background: $md-color-white--lightest;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [tablet +]: Hide the search icon from tablet
|
// [tablet +]: Hide the search icon from tablet
|
||||||
@include break-from-device(tablet) {
|
@include break-from-device(tablet) {
|
||||||
|
|
||||||
/// Search icon
|
// Search icon
|
||||||
&.md-icon--search {
|
&.md-icon--search {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Header title
|
// Header title
|
||||||
&__title {
|
&__title {
|
||||||
padding: 0 2.0rem;
|
padding: 0 2.0rem;
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
|
|||||||
@@ -20,65 +20,65 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Navigation
|
// Navigation
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Nested navigation
|
// Nested navigation
|
||||||
.md-nav {
|
.md-nav {
|
||||||
|
|
||||||
/// Set font sizes
|
// Set font sizes
|
||||||
&,
|
&,
|
||||||
h3 {
|
h3 {
|
||||||
font-size: ms(-1);
|
font-size: ms(-1);
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Table of contents
|
// Table of contents
|
||||||
&--toc {
|
&--toc {
|
||||||
border-left: px2rem(4px) solid $md-color-primary;
|
border-left: px2rem(4px) solid $md-color-primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// List of items
|
// List of items
|
||||||
&__list {
|
&__list {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
|
|
||||||
/// 2nd+ level list
|
// 2nd+ level list
|
||||||
& & {
|
& & {
|
||||||
margin-left: 1.2rem;
|
margin-left: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Hide list by default
|
// Hide list by default
|
||||||
.md-nav__toggle ~ & {
|
.md-nav__toggle ~ & {
|
||||||
max-height: 0;
|
max-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Expand list, if toggle is checked
|
// Expand list, if toggle is checked
|
||||||
.md-nav__toggle:checked ~ & {
|
.md-nav__toggle:checked ~ & {
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// List item
|
// List item
|
||||||
&__item {
|
&__item {
|
||||||
margin: 0.8rem 0 0;
|
margin: 0.8rem 0 0;
|
||||||
line-height: 1.6rem;
|
line-height: 1.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Link inside item
|
// Link inside item
|
||||||
&__link {
|
&__link {
|
||||||
display: block;
|
display: block;
|
||||||
transition: color 0.125s;
|
transition: color 0.125s;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
/// Marked item
|
// Marked item
|
||||||
&--marked {
|
&--marked {
|
||||||
color: $md-color-black--light;
|
color: $md-color-black--light;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Current or hovered item
|
// Current or hovered item
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active,
|
&:active,
|
||||||
&--active {
|
&--active {
|
||||||
|
|||||||
@@ -20,19 +20,19 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Search
|
// Search
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Application search
|
// Application search
|
||||||
.md-search {
|
.md-search {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
/// Search overlay
|
// Search overlay
|
||||||
&__overlay {
|
&__overlay {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
/// [mobile -]: Only show overlay on mobile
|
// [mobile -]: Only show overlay on mobile
|
||||||
@include break-to-device(mobile) {
|
@include break-to-device(mobile) {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
|
|
||||||
/// Expanded overlay
|
// Expanded overlay
|
||||||
.md-toggle--search:checked ~ .md-header & {
|
.md-toggle--search:checked ~ .md-header & {
|
||||||
transform: scale(40);
|
transform: scale(40);
|
||||||
transition: transform 0.4s,
|
transition: transform 0.4s,
|
||||||
@@ -60,29 +60,29 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Inner wrapper
|
// Inner wrapper
|
||||||
&__inner {
|
&__inner {
|
||||||
padding: 0.8rem 0.8rem 0;
|
padding: 0.8rem 0.8rem 0;
|
||||||
|
|
||||||
/// [tablet +]: Header-embedded search
|
// [tablet +]: Header-embedded search
|
||||||
@include break-from-device(tablet) {
|
@include break-from-device(tablet) {
|
||||||
padding: 0.4rem;
|
padding: 0.4rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Search form
|
// Search form
|
||||||
&__form {
|
&__form {
|
||||||
position: relative;
|
position: relative;
|
||||||
border-radius: px2rem(2px);
|
border-radius: px2rem(2px);
|
||||||
text-align: right;
|
text-align: right;
|
||||||
|
|
||||||
/// [mobile -]: Add drop-shadow on mobile
|
// [mobile -]: Add drop-shadow on mobile
|
||||||
@include break-to-device(mobile) {
|
@include break-to-device(mobile) {
|
||||||
@include z-depth(2);
|
@include z-depth(2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Icon
|
// Icon
|
||||||
&__icon {
|
&__icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.8rem;
|
top: 0.8rem;
|
||||||
@@ -91,36 +91,36 @@
|
|||||||
font-size: 2.4rem;
|
font-size: 2.4rem;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
/// [mobile -]: Use back arrow as search icon
|
// [mobile -]: Use back arrow as search icon
|
||||||
@include break-to-device(mobile) {
|
@include break-to-device(mobile) {
|
||||||
top: 1.2rem;
|
top: 1.2rem;
|
||||||
|
|
||||||
/// Hack: @extend doesn't work in media queries, so override manually
|
// Hack: @extend doesn't work in media queries, so override manually
|
||||||
&::before {
|
&::before {
|
||||||
content: "arrow_back";
|
content: "arrow_back";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Search field
|
// Search field
|
||||||
&__input {
|
&__input {
|
||||||
padding: 0 0.8rem 0 6.4rem;
|
padding: 0 0.8rem 0 6.4rem;
|
||||||
border-radius: px2rem(2px);
|
border-radius: px2rem(2px);
|
||||||
|
|
||||||
/// Placeholder and icon color in active state
|
// Placeholder and icon color in active state
|
||||||
+ .md-search__icon,
|
+ .md-search__icon,
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
color: $md-color-black--light;
|
color: $md-color-black--light;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [mobile -]: Full-screen search bar
|
// [mobile -]: Full-screen search bar
|
||||||
@include break-to-device(mobile) {
|
@include break-to-device(mobile) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 4.8rem;
|
height: 4.8rem;
|
||||||
font-size: 1.8rem;
|
font-size: 1.8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [tablet +]: Header-embedded search
|
// [tablet +]: Header-embedded search
|
||||||
@include break-from-device(tablet) {
|
@include break-from-device(tablet) {
|
||||||
width: 23.0rem;
|
width: 23.0rem;
|
||||||
height: 4.0rem;
|
height: 4.0rem;
|
||||||
@@ -132,20 +132,20 @@
|
|||||||
color: $md-color-white;
|
color: $md-color-white;
|
||||||
font-size: ms(0);
|
font-size: ms(0);
|
||||||
|
|
||||||
/// Placeholder color
|
// Placeholder color
|
||||||
+ .md-search__icon,
|
+ .md-search__icon,
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
transition: color 0.25s;
|
transition: color 0.25s;
|
||||||
color: $md-color-white;
|
color: $md-color-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Active search field
|
// Active search field
|
||||||
&:focus {
|
&:focus {
|
||||||
width: 40.0rem;
|
width: 40.0rem;
|
||||||
background: $md-color-white;
|
background: $md-color-white;
|
||||||
color: $md-color-black;
|
color: $md-color-black;
|
||||||
|
|
||||||
/// Placeholder and icon color in active state
|
// Placeholder and icon color in active state
|
||||||
+ .md-search__icon,
|
+ .md-search__icon,
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
color: $md-color-black--light;
|
color: $md-color-black--light;
|
||||||
|
|||||||
@@ -20,27 +20,27 @@
|
|||||||
/// DEALINGS
|
/// DEALINGS
|
||||||
////
|
////
|
||||||
|
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
/// Sidebar
|
// Sidebar
|
||||||
/// ---------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
/// Sidebar content
|
// Sidebar content
|
||||||
.md-sidebar {
|
.md-sidebar {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 24.2rem;
|
width: 24.2rem;
|
||||||
float: left;
|
float: left;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|
||||||
/// Lock sidebar to container height (account for fixed header)
|
// Lock sidebar to container height (account for fixed header)
|
||||||
&.md-js__sidebar--locked {
|
&.md-js__sidebar--locked {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 5.6rem;
|
top: 5.6rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// [tablet landscape -]: Convert navigation to drawer
|
// [tablet landscape -]: Convert navigation to drawer
|
||||||
@include break-to-device(tablet landscape) {
|
@include break-to-device(tablet landscape) {
|
||||||
|
|
||||||
/// Render primary sidebar as a slideout container
|
// Render primary sidebar as a slideout container
|
||||||
&--primary {
|
&--primary {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -51,16 +51,16 @@
|
|||||||
background: $md-color-white;
|
background: $md-color-white;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
|
|
||||||
/// Just hide drawer, if browser doesn't support 3D transforms
|
// Just hide drawer, if browser doesn't support 3D transforms
|
||||||
.no-csstransforms3d & {
|
.no-csstransforms3d & {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Expanded drawer
|
// Expanded drawer
|
||||||
.md-toggle--drawer:checked ~ .md-container & {
|
.md-toggle--drawer:checked ~ .md-container & {
|
||||||
transform: translate3d(0, 0, 0);
|
transform: translate3d(0, 0, 0);
|
||||||
|
|
||||||
/// Just show drawer, if browser doesn't support 3D transforms
|
// Just show drawer, if browser doesn't support 3D transforms
|
||||||
.no-csstransforms3d & {
|
.no-csstransforms3d & {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
@@ -68,21 +68,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Secondary sidebar with table of contents
|
// Secondary sidebar with table of contents
|
||||||
&--secondary {
|
&--secondary {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
||||||
/// [tablet landscape +]: Show table of contents next to body copy
|
// [tablet landscape +]: Show table of contents next to body copy
|
||||||
@include break-from-device(tablet landscape) {
|
@include break-from-device(tablet landscape) {
|
||||||
display: block;
|
display: block;
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
/// Hack to align right in case of locked sidebar
|
// Hack to align right in case of locked sidebar
|
||||||
&.md-js__sidebar--locked {
|
&.md-js__sidebar--locked {
|
||||||
margin-left: 100%;
|
margin-left: 100%;
|
||||||
transform: translate(-100%, 0);
|
transform: translate(-100%, 0);
|
||||||
|
|
||||||
/// [screen small +]: Limit to grid
|
// [screen small +]: Limit to grid
|
||||||
@include break-from-device(screen small) {
|
@include break-from-device(screen small) {
|
||||||
margin-left: 120.0rem;
|
margin-left: 120.0rem;
|
||||||
}
|
}
|
||||||
@@ -90,22 +90,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Wrapper for scrolling on overflow
|
// Wrapper for scrolling on overflow
|
||||||
&__scrollwrap {
|
&__scrollwrap {
|
||||||
margin: 2.4rem 0.4rem;
|
margin: 2.4rem 0.4rem;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
|
|
||||||
/// [tablet landscape -]: Adjust margins
|
// [tablet landscape -]: Adjust margins
|
||||||
@include break-to-device(tablet landscape) {
|
@include break-to-device(tablet landscape) {
|
||||||
|
|
||||||
/// Adjust margins for primary scrollbar
|
// Adjust margins for primary scrollbar
|
||||||
.md-sidebar--primary & {
|
.md-sidebar--primary & {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Limit height to window, if JavaScript is available
|
// Limit height to window, if JavaScript is available
|
||||||
.js & {
|
.js & {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -114,23 +114,23 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Override native scrollbar styles
|
// Override native scrollbar styles
|
||||||
&::-webkit-scrollbar {
|
&::-webkit-scrollbar {
|
||||||
width: 0.4rem;
|
width: 0.4rem;
|
||||||
height: 0.4rem;
|
height: 0.4rem;
|
||||||
|
|
||||||
/// Style scrollbar thumb
|
// Style scrollbar thumb
|
||||||
&-thumb {
|
&-thumb {
|
||||||
background: $md-color-black--lighter;
|
background: $md-color-black--lighter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Actual sidebar content
|
// Actual sidebar content
|
||||||
&__inner {
|
&__inner {
|
||||||
padding: 1.2rem;
|
padding: 1.2rem;
|
||||||
|
|
||||||
/// [screen small +]: Add line for reference
|
// [screen small +]: Add line for reference
|
||||||
@include break-from-device(screen small) {
|
@include break-from-device(screen small) {
|
||||||
border-right: px2rem(1px) solid $md-color-black--lightest;
|
border-right: px2rem(1px) solid $md-color-black--lightest;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user