Added some inline documentation fixes

This commit is contained in:
squidfunk 2017-01-07 20:23:04 +01:00
parent 46474cc7c0
commit 03604c5e27
9 changed files with 19 additions and 33 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -37,7 +37,7 @@
{% include "partials/fonts.html" %} {% include "partials/fonts.html" %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-782a60368a.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-a2651bb338.css">
{% if config.extra.palette %} {% if config.extra.palette %}
<link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css"> <link rel="stylesheet" href="{{ base_url }}/assets/stylesheets/application-02ce7adcc2.palette.css">
{% endif %} {% endif %}

View File

@ -44,7 +44,7 @@ export default class Application {
*/ */
initialize() { initialize() {
/* Initialize Modernizr and Fastclick */ /* Initialize Modernizr and FastClick */
new Material.Event.Listener(document, "DOMContentLoaded", () => { new Material.Event.Listener(document, "DOMContentLoaded", () => {
/* Test for iOS */ /* Test for iOS */
@ -60,7 +60,7 @@ export default class Application {
/* Attack FastClick to mitigate 300ms delay on touch devices */ /* Attack FastClick to mitigate 300ms delay on touch devices */
FastClick.attach(document.body) FastClick.attach(document.body)
/* Wrap all data tables */ /* Wrap all data tables for better overflow scrolling */
const tables = document.querySelectorAll("table:not([class])") const tables = document.querySelectorAll("table:not([class])")
Array.prototype.forEach.call(tables, table => { Array.prototype.forEach.call(tables, table => {
const wrap = document.createElement("div") const wrap = document.createElement("div")
@ -126,7 +126,7 @@ export default class Application {
new Material.Nav.Collapse(collapse))) new Material.Nav.Collapse(collapse)))
}) })
/* Component: pane monitor for iOS scrolling fixes */ /* Component: active pane monitor for iOS scrolling fixes */
new Material.Event.MatchMedia("(max-width: 1219px)", new Material.Event.MatchMedia("(max-width: 1219px)",
new Material.Event.Listener( new Material.Event.Listener(
"[data-md-component=navigation] [data-md-toggle]", "change", "[data-md-component=navigation] [data-md-toggle]", "change",
@ -220,7 +220,7 @@ export default class Application {
new Material.Event.Listener("[data-md-component=search]", "click", new Material.Event.Listener("[data-md-component=search]", "click",
ev => ev.stopPropagation())) ev => ev.stopPropagation()))
/* Retrieve the facts for the given repository type */ /* Retrieve facts for the given repository type */
;(() => { ;(() => {
const el = document.querySelector("[data-md-source]") const el = document.querySelector("[data-md-source]")
if (!el) return Promise.resolve([]) if (!el) return Promise.resolve([])

View File

@ -41,7 +41,7 @@
// Rules // Rules
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Color tile // Color tile for presentation in theme documentation
button[data-md-color-primary], button[data-md-color-primary],
button[data-md-color-accent] { button[data-md-color-accent] {
width: 13rem; width: 13rem;
@ -85,7 +85,7 @@ button[data-md-color-accent] {
"blue-grey": $clr-blue-grey-600 "blue-grey": $clr-blue-grey-600
) { ) {
// Color tile for presentation // TODO. comments // Color tile for presentation in theme documentation
button[data-md-color-primary="#{$name}"] { button[data-md-color-primary="#{$name}"] {
background-color: $color; background-color: $color;
} }
@ -158,7 +158,7 @@ button[data-md-color-accent] {
"deep-orange": $clr-deep-orange-a200 "deep-orange": $clr-deep-orange-a200
) { ) {
// Color tile for presentation // Color tile for presentation in theme documentation
button[data-md-color-accent="#{$name}"] { button[data-md-color-accent="#{$name}"] {
background-color: $color; background-color: $color;
} }

View File

@ -46,18 +46,3 @@
cursor: pointer; cursor: pointer;
} }
} }
// Representational classes
.md-icon {
@extend %md-icon;
// Build representational classes
@each $ligature, $name in (
"arrow_back": "back",
"arrow_forward": "forward"
) {
&--#{$name}::before {
content: $ligature;
}
}
}

View File

@ -24,7 +24,7 @@
// Rules // Rules
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Enfore correct box model // Enforce correct box model
html { html {
box-sizing: border-box; box-sizing: border-box;
} }
@ -77,7 +77,7 @@ a {
} }
} }
// Correct font-size in all browsers // Normalize font-size in all browsers
small { small {
font-size: 80%; font-size: 80%;
} }
@ -101,6 +101,7 @@ sup {
top: -0.5em; top: -0.5em;
} }
// Remove borders on images
img { img {
border-style: none; border-style: none;
} }

View File

@ -66,7 +66,7 @@ kbd {
// Content that is typeset - if possible, all margins, paddings and font sizes // Content that is typeset - if possible, all margins, paddings and font sizes
// should be set in ems, so nested blocks (e.g. Admonition) render correctly, // should be set in ems, so nested blocks (e.g. Admonition) render correctly,
// except headlines that should only appear on the top level and need to have // except headlines that should only appear on the top level and need to have
// consistent spacing due to layout issues // consistent spacing due to layout constraints.
.md-typeset { .md-typeset {
font-size: ms(0); font-size: ms(0);
line-height: 1.6; line-height: 1.6;
@ -149,7 +149,7 @@ kbd {
color: $md-color-primary; color: $md-color-primary;
word-break: break-word; word-break: break-word;
// Also enable transition on pseudo elements // Also enable color transition on pseudo elements
&, &,
&::before { &::before {
transition: color 0.125s; transition: color 0.125s;
@ -161,10 +161,10 @@ kbd {
color: $md-color-accent; color: $md-color-accent;
} }
// Add links for print // Add URLs for print
@media print { @media print {
// Show link reference // Show link URL
&::after { &::after {
color: $md-color-black--light; color: $md-color-black--light;
content: " [" attr(href) "]"; content: " [" attr(href) "]";
@ -254,7 +254,7 @@ kbd {
} }
} }
// Reset, if code is inside pre // Reset, if code is wrapped inside pre tag
> code { > code {
margin: 0; margin: 0;
background-color: transparent; background-color: transparent;
@ -298,7 +298,7 @@ kbd {
cursor: help; cursor: help;
} }
// Smaller text // Small text
small { small {
opacity: 0.75; opacity: 0.75;
} }

View File

@ -47,7 +47,7 @@
// Addition // Addition
ins.critic { ins.critic {
background-color: $codehilite-diff-inserted; background-color: $codehilite-diff-inserted; // TODO: dependent on order of inclusion
box-shadow: box-shadow:
+0.25em 0 0 $codehilite-diff-inserted, +0.25em 0 0 $codehilite-diff-inserted,
-0.25em 0 0 $codehilite-diff-inserted; -0.25em 0 0 $codehilite-diff-inserted;