forked from samuel-p/sp-codes.de
Initial commit
This commit is contained in:
commit
b953a6c158
326 changed files with 76065 additions and 0 deletions
22
bower_components/foundation-sites/scss/typography/_alignment.scss
vendored
Normal file
22
bower_components/foundation-sites/scss/typography/_alignment.scss
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
// Foundation for Sites by ZURB
|
||||
// foundation.zurb.com
|
||||
// Licensed under MIT Open Source
|
||||
|
||||
@mixin foundation-text-alignment {
|
||||
@each $size in $breakpoint-classes {
|
||||
@include breakpoint($size) {
|
||||
@each $align in (left, right, center, justify) {
|
||||
@if $size != $-zf-zero-breakpoint {
|
||||
.#{$size}-text-#{$align} {
|
||||
text-align: $align;
|
||||
}
|
||||
}
|
||||
@else {
|
||||
.text-#{$align} {
|
||||
text-align: $align;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
443
bower_components/foundation-sites/scss/typography/_base.scss
vendored
Normal file
443
bower_components/foundation-sites/scss/typography/_base.scss
vendored
Normal file
|
@ -0,0 +1,443 @@
|
|||
// Foundation for Sites by ZURB
|
||||
// foundation.zurb.com
|
||||
// Licensed under MIT Open Source
|
||||
|
||||
////
|
||||
/// @group typography-base
|
||||
////
|
||||
|
||||
// Base Typography
|
||||
// - - - - - - - - - - - - - - -
|
||||
// These are styles applied to basic HTML tags, including:
|
||||
// - Paragraphs <p>
|
||||
// - Bold/italics <b> <strong> <i> <em>
|
||||
// - Small text <small>
|
||||
// - Headings <h1>—<h6>
|
||||
// - Anchors <a>
|
||||
// - Dividers <hr>
|
||||
// - Lists <ul> <ol> <dl>
|
||||
// - Blockquotes <blockquote>
|
||||
// - Code blocks <code>
|
||||
// - Abbreviations <abbr>
|
||||
// - Citations <cite>
|
||||
// - Keystrokes <kbd>
|
||||
|
||||
/// Font family for header elements.
|
||||
/// @type String | List
|
||||
$header-font-family: $body-font-family !default;
|
||||
|
||||
/// Font weight of headers.
|
||||
/// @type String
|
||||
$header-font-weight: $global-weight-normal !default;
|
||||
|
||||
/// Font style (e.g. italicized) of headers.
|
||||
/// @type String
|
||||
$header-font-style: normal !default;
|
||||
|
||||
/// Font stack used for elements that use monospaced type, such as code samples
|
||||
/// @type String | List
|
||||
$font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace !default;
|
||||
|
||||
/// Sizes of headings at various screen sizes. Each key is a breakpoint, and each value is a map of heading sizes.
|
||||
/// @type Map
|
||||
$header-sizes: (
|
||||
small: (
|
||||
'h1': 24,
|
||||
'h2': 20,
|
||||
'h3': 19,
|
||||
'h4': 18,
|
||||
'h5': 17,
|
||||
'h6': 16,
|
||||
),
|
||||
medium: (
|
||||
'h1': 48,
|
||||
'h2': 40,
|
||||
'h3': 31,
|
||||
'h4': 25,
|
||||
'h5': 20,
|
||||
'h6': 16,
|
||||
),
|
||||
) !default;
|
||||
|
||||
/// Color of headers.
|
||||
/// @type Color
|
||||
$header-color: inherit !default;
|
||||
|
||||
/// Line height of headers.
|
||||
/// @type Number
|
||||
$header-lineheight: 1.4 !default;
|
||||
|
||||
/// Bottom margin of headers.
|
||||
/// @type Number
|
||||
$header-margin-bottom: 0.5rem !default;
|
||||
|
||||
/// Text rendering method of headers.
|
||||
/// @type String
|
||||
$header-text-rendering: optimizeLegibility !default;
|
||||
|
||||
/// Font size of `<small>` elements.
|
||||
/// @type Number
|
||||
$small-font-size: 80% !default;
|
||||
|
||||
/// Color of `<small>` elements when placed inside headers.
|
||||
/// @type Color
|
||||
$header-small-font-color: $medium-gray !default;
|
||||
|
||||
/// Line height of text inside `<p>` elements.
|
||||
/// @type Number
|
||||
$paragraph-lineheight: 1.6 !default;
|
||||
|
||||
/// Bottom margin of paragraphs.
|
||||
/// @type Number
|
||||
$paragraph-margin-bottom: 1rem !default;
|
||||
|
||||
/// Text rendering method for paragraph text.
|
||||
/// @type String
|
||||
$paragraph-text-rendering: optimizeLegibility !default;
|
||||
|
||||
/// Text color of code samples.
|
||||
/// @type Color
|
||||
$code-color: $black !default;
|
||||
|
||||
/// Font family of code samples.
|
||||
/// @type String | List
|
||||
$code-font-family: $font-family-monospace !default;
|
||||
|
||||
/// Font weight of text in code samples.
|
||||
/// @type String
|
||||
$code-font-weight: $global-weight-normal !default;
|
||||
|
||||
/// Background color of code samples.
|
||||
/// @type Color
|
||||
$code-background: $light-gray !default;
|
||||
|
||||
/// Border around code samples.
|
||||
/// @type List
|
||||
$code-border: 1px solid $medium-gray !default;
|
||||
|
||||
/// Padding around text of code samples.
|
||||
/// @type Number | List
|
||||
$code-padding: rem-calc(2 5 1) !default;
|
||||
|
||||
/// Default color for links.
|
||||
/// @type Color
|
||||
$anchor-color: $primary-color !default;
|
||||
|
||||
/// Default color for links on hover.
|
||||
/// @type Color
|
||||
$anchor-color-hover: scale-color($anchor-color, $lightness: -14%) !default;
|
||||
|
||||
/// Default text deocration for links.
|
||||
/// @type String
|
||||
$anchor-text-decoration: none !default;
|
||||
|
||||
/// Default text decoration for links on hover.
|
||||
/// @type String
|
||||
$anchor-text-decoration-hover: none !default;
|
||||
|
||||
/// Maximum width of a divider.
|
||||
/// @type Number
|
||||
$hr-width: $global-width !default;
|
||||
|
||||
/// Default border for a divider.
|
||||
/// @type List
|
||||
$hr-border: 1px solid $medium-gray !default;
|
||||
|
||||
/// Default margin for a divider.
|
||||
/// @type Number | List
|
||||
$hr-margin: rem-calc(20) auto !default;
|
||||
|
||||
/// Line height for items in a list.
|
||||
/// @type Number
|
||||
$list-lineheight: $paragraph-lineheight !default;
|
||||
|
||||
/// Bottom margin for items in a list.
|
||||
/// @type Number
|
||||
$list-margin-bottom: $paragraph-margin-bottom !default;
|
||||
|
||||
/// Bullet type to use for unordered lists (e.g., `square`, `circle`, `disc`).
|
||||
/// @type String
|
||||
$list-style-type: disc !default;
|
||||
|
||||
/// Positioning for bullets on unordered list items.
|
||||
/// @type String
|
||||
$list-style-position: outside !default;
|
||||
|
||||
/// Left (or right) margin for lists.
|
||||
/// @type Number
|
||||
$list-side-margin: 1.25rem !default;
|
||||
|
||||
/// Left (or right) margin for a list inside a list.
|
||||
/// @type Number
|
||||
$list-nested-side-margin: 1.25rem !default;
|
||||
|
||||
/// Bottom margin for `<dl>` elements.
|
||||
/// @type Number
|
||||
$defnlist-margin-bottom: 1rem !default;
|
||||
|
||||
/// Font weight for `<dt>` elements.
|
||||
/// @type String
|
||||
$defnlist-term-weight: $global-weight-bold !default;
|
||||
|
||||
/// Spacing between `<dt>` and `<dd>` elements.
|
||||
/// @type Number
|
||||
$defnlist-term-margin-bottom: 0.3rem !default;
|
||||
|
||||
/// Text color of `<blockquote>` elements.
|
||||
/// @type Color
|
||||
$blockquote-color: $dark-gray !default;
|
||||
|
||||
/// Padding inside a `<blockquote>` element.
|
||||
/// @type Number | List
|
||||
$blockquote-padding: rem-calc(9 20 0 19) !default;
|
||||
|
||||
/// Side border for `<blockquote>` elements.
|
||||
/// @type List
|
||||
$blockquote-border: 1px solid $medium-gray !default;
|
||||
|
||||
/// Font size for `<cite>` elements.
|
||||
/// @type Number
|
||||
$cite-font-size: rem-calc(13) !default;
|
||||
|
||||
/// Text color for `<cite>` elements.
|
||||
/// @type Color
|
||||
$cite-color: $dark-gray !default;
|
||||
|
||||
/// Font family for `<kbd>` elements.
|
||||
/// @type String | List
|
||||
$keystroke-font: $font-family-monospace !default;
|
||||
|
||||
/// Text color for `<kbd>` elements.
|
||||
/// @type Color
|
||||
$keystroke-color: $black !default;
|
||||
|
||||
/// Background color for `<kbd>` elements.
|
||||
/// @type Color
|
||||
$keystroke-background: $light-gray !default;
|
||||
|
||||
/// Padding for `<kbd>` elements.
|
||||
/// @type Number | List
|
||||
$keystroke-padding: rem-calc(2 4 0) !default;
|
||||
|
||||
/// Border radius for `<kbd>` elements.
|
||||
/// @type Number | List
|
||||
$keystroke-radius: $global-radius !default;
|
||||
|
||||
/// Bottom border style for `<abbr>` elements.
|
||||
/// @type List
|
||||
$abbr-underline: 1px dotted $black !default;
|
||||
|
||||
@mixin foundation-typography-base {
|
||||
// Typography resets
|
||||
div,
|
||||
dl,
|
||||
dt,
|
||||
dd,
|
||||
ul,
|
||||
ol,
|
||||
li,
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
pre,
|
||||
form,
|
||||
p,
|
||||
blockquote,
|
||||
th,
|
||||
td {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// Paragraphs
|
||||
p {
|
||||
font-size: inherit;
|
||||
line-height: $paragraph-lineheight;
|
||||
margin-bottom: $paragraph-margin-bottom;
|
||||
text-rendering: $paragraph-text-rendering;
|
||||
}
|
||||
|
||||
// Emphasized text
|
||||
em,
|
||||
i {
|
||||
font-style: italic;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
// Strong text
|
||||
strong,
|
||||
b {
|
||||
font-weight: $global-weight-bold;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
// Small text
|
||||
small {
|
||||
font-size: $small-font-size;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
// Headings
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
font-family: $header-font-family;
|
||||
font-weight: $header-font-weight;
|
||||
font-style: $header-font-style;
|
||||
color: $header-color;
|
||||
text-rendering: $header-text-rendering;
|
||||
margin-top: 0;
|
||||
margin-bottom: $header-margin-bottom;
|
||||
line-height: $header-lineheight;
|
||||
|
||||
small {
|
||||
color: $header-small-font-color;
|
||||
line-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Heading sizes
|
||||
@each $size, $headers in $header-sizes {
|
||||
@include breakpoint($size) {
|
||||
@each $header, $font-size in $headers {
|
||||
#{$header} {
|
||||
font-size: rem-calc($font-size);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Links
|
||||
a {
|
||||
color: $anchor-color;
|
||||
text-decoration: $anchor-text-decoration;
|
||||
line-height: inherit;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
color: $anchor-color-hover;
|
||||
@if $anchor-text-decoration-hover != $anchor-text-decoration {
|
||||
text-decoration: $anchor-text-decoration-hover;
|
||||
}
|
||||
}
|
||||
|
||||
img {
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Horizontal rule
|
||||
hr {
|
||||
max-width: $hr-width;
|
||||
height: 0;
|
||||
border-right: 0;
|
||||
border-top: 0;
|
||||
border-bottom: $hr-border;
|
||||
border-left: 0;
|
||||
margin: $hr-margin;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
// Lists
|
||||
ul,
|
||||
ol,
|
||||
dl {
|
||||
line-height: $list-lineheight;
|
||||
margin-bottom: $list-margin-bottom;
|
||||
list-style-position: $list-style-position;
|
||||
}
|
||||
|
||||
// List items
|
||||
li {
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
// Unordered lists
|
||||
ul {
|
||||
list-style-type: $list-style-type;
|
||||
margin-#{$global-left}: $list-side-margin;
|
||||
}
|
||||
|
||||
// Ordered lists
|
||||
ol {
|
||||
margin-#{$global-left}: $list-side-margin;
|
||||
}
|
||||
|
||||
// Nested unordered/ordered lists
|
||||
ul, ol {
|
||||
& & {
|
||||
margin-#{$global-left}: $list-nested-side-margin;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Definition lists
|
||||
dl {
|
||||
margin-bottom: $defnlist-margin-bottom;
|
||||
|
||||
dt {
|
||||
margin-bottom: $defnlist-term-margin-bottom;
|
||||
font-weight: $defnlist-term-weight;
|
||||
}
|
||||
}
|
||||
|
||||
// Blockquotes
|
||||
blockquote {
|
||||
margin: 0 0 $paragraph-margin-bottom;
|
||||
padding: $blockquote-padding;
|
||||
border-#{$global-left}: $blockquote-border;
|
||||
|
||||
&, p {
|
||||
line-height: $paragraph-lineheight;
|
||||
color: $blockquote-color;
|
||||
}
|
||||
}
|
||||
|
||||
// Citations
|
||||
cite {
|
||||
display: block;
|
||||
font-size: $cite-font-size;
|
||||
color: $cite-color;
|
||||
|
||||
&:before {
|
||||
content: '\2014 \0020';
|
||||
}
|
||||
}
|
||||
|
||||
// Abbreviations
|
||||
abbr {
|
||||
color: $body-font-color;
|
||||
cursor: help;
|
||||
border-bottom: $abbr-underline;
|
||||
}
|
||||
|
||||
// Code
|
||||
code {
|
||||
font-family: $code-font-family;
|
||||
font-weight: $code-font-weight;
|
||||
color: $code-color;
|
||||
background-color: $code-background;
|
||||
border: $code-border;
|
||||
padding: $code-padding;
|
||||
}
|
||||
|
||||
// Keystrokes
|
||||
kbd {
|
||||
padding: $keystroke-padding;
|
||||
margin: 0;
|
||||
background-color: $keystroke-background;
|
||||
color: $keystroke-color;
|
||||
font-family: $keystroke-font;
|
||||
|
||||
@if has-value($keystroke-radius) {
|
||||
border-radius: $keystroke-radius;
|
||||
}
|
||||
}
|
||||
}
|
77
bower_components/foundation-sites/scss/typography/_helpers.scss
vendored
Normal file
77
bower_components/foundation-sites/scss/typography/_helpers.scss
vendored
Normal file
|
@ -0,0 +1,77 @@
|
|||
// Foundation for Sites by ZURB
|
||||
// foundation.zurb.com
|
||||
// Licensed under MIT Open Source
|
||||
|
||||
////
|
||||
/// @group typography-helpers
|
||||
////
|
||||
|
||||
/// Default font size for lead paragraphs.
|
||||
/// @type Number
|
||||
$lead-font-size: $global-font-size * 1.25 !default;
|
||||
|
||||
/// Default line height for lead paragraphs.
|
||||
/// @type String
|
||||
$lead-lineheight: 1.6 !default;
|
||||
|
||||
/// Default line height for subheaders.
|
||||
/// @type Number
|
||||
$subheader-lineheight: 1.4 !default;
|
||||
|
||||
/// Default font color for subheaders.
|
||||
/// @type Color
|
||||
$subheader-color: $dark-gray !default;
|
||||
|
||||
/// Default font weight for subheaders.
|
||||
/// @type String
|
||||
$subheader-font-weight: $global-weight-normal !default;
|
||||
|
||||
/// Default top margin for subhheaders.
|
||||
/// @type Number
|
||||
$subheader-margin-top: 0.2rem !default;
|
||||
|
||||
/// Default bottom margin for subheaders.
|
||||
/// @type Number
|
||||
$subheader-margin-bottom: 0.5rem !default;
|
||||
|
||||
/// Default font size for statistic numbers.
|
||||
/// @type Number
|
||||
$stat-font-size: 2.5rem !default;
|
||||
|
||||
@mixin foundation-typography-helpers {
|
||||
// Use to create a subheading under a main header
|
||||
// Make sure you pair the two elements in a <header> element, like this:
|
||||
// <header>
|
||||
// <h1>Heading</h1>
|
||||
// <h2>Subheading</h2>
|
||||
// </header>
|
||||
.subheader {
|
||||
margin-top: $subheader-margin-top;
|
||||
margin-bottom: $subheader-margin-bottom;
|
||||
font-weight: $subheader-font-weight;
|
||||
line-height: $subheader-lineheight;
|
||||
color: $subheader-color;
|
||||
}
|
||||
|
||||
// Use to style an introductory lead, deck, blurb, etc.
|
||||
.lead {
|
||||
font-size: $lead-font-size;
|
||||
line-height: $lead-lineheight;
|
||||
}
|
||||
|
||||
// Use to style a large number to display a statistic
|
||||
.stat {
|
||||
font-size: $stat-font-size;
|
||||
line-height: 1;
|
||||
|
||||
p + & {
|
||||
margin-top: -1rem;
|
||||
}
|
||||
}
|
||||
|
||||
// Use to remove the bullets from an unordered list
|
||||
.no-bullet {
|
||||
margin-#{$global-left}: 0;
|
||||
list-style: none;
|
||||
}
|
||||
}
|
77
bower_components/foundation-sites/scss/typography/_print.scss
vendored
Normal file
77
bower_components/foundation-sites/scss/typography/_print.scss
vendored
Normal file
|
@ -0,0 +1,77 @@
|
|||
// Foundation for Sites by ZURB
|
||||
// foundation.zurb.com
|
||||
// Licensed under MIT Open Source
|
||||
|
||||
/// If `true`, all elements will have transparent backgrounds when printed, to save on ink.
|
||||
/// @type Boolean
|
||||
/// @group global
|
||||
$print-transparent-backgrounds: true !default;
|
||||
|
||||
// scss-lint:disable all
|
||||
|
||||
@mixin foundation-print-styles {
|
||||
.show-for-print { display: none !important; }
|
||||
|
||||
@media print {
|
||||
* {
|
||||
@if $print-transparent-backgrounds {
|
||||
background: transparent !important;
|
||||
}
|
||||
|
||||
color: black !important; // Black prints faster: h5bp.com/s
|
||||
box-shadow: none !important;
|
||||
text-shadow: none !important;
|
||||
}
|
||||
|
||||
.show-for-print { display: block !important; }
|
||||
.hide-for-print { display: none !important; }
|
||||
|
||||
table.show-for-print { display: table !important; }
|
||||
thead.show-for-print { display: table-header-group !important; }
|
||||
tbody.show-for-print { display: table-row-group !important; }
|
||||
tr.show-for-print { display: table-row !important; }
|
||||
td.show-for-print { display: table-cell !important; }
|
||||
th.show-for-print { display: table-cell !important; }
|
||||
|
||||
// Display the URL of a link after the text
|
||||
a,
|
||||
a:visited { text-decoration: underline;}
|
||||
a[href]:after { content: ' (' attr(href) ')'; }
|
||||
|
||||
// Don't display the URL for images or JavaScript/internal links
|
||||
.ir a:after,
|
||||
a[href^='javascript:']:after,
|
||||
a[href^='#']:after { content: ''; }
|
||||
|
||||
// Display what an abbreviation stands for after the text
|
||||
abbr[title]:after { content: ' (' attr(title) ')'; }
|
||||
|
||||
// Prevent page breaks in the middle of a blockquote or preformatted text block
|
||||
pre,
|
||||
blockquote {
|
||||
border: 1px solid $dark-gray;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
// h5bp.com/t
|
||||
thead { display: table-header-group; }
|
||||
|
||||
tr,
|
||||
img { page-break-inside: avoid; }
|
||||
|
||||
img { max-width: 100% !important; }
|
||||
|
||||
@page { margin: 0.5cm; }
|
||||
|
||||
p,
|
||||
h2,
|
||||
h3 {
|
||||
orphans: 3;
|
||||
widows: 3;
|
||||
}
|
||||
|
||||
// Avoid page breaks after a heading
|
||||
h2,
|
||||
h3 { page-break-after: avoid; }
|
||||
}
|
||||
}
|
28
bower_components/foundation-sites/scss/typography/_typography.scss
vendored
Normal file
28
bower_components/foundation-sites/scss/typography/_typography.scss
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
// Foundation for Sites by ZURB
|
||||
// foundation.zurb.com
|
||||
// Licensed under MIT Open Source
|
||||
|
||||
////
|
||||
/// @group typography
|
||||
////
|
||||
|
||||
// scss-lint:disable DeclarationOrder
|
||||
|
||||
// Base typography styles (tags only)
|
||||
@import 'base';
|
||||
|
||||
// Typography helper classes (classes only)
|
||||
@import 'helpers';
|
||||
|
||||
// Text alignment classes
|
||||
@import 'alignment';
|
||||
|
||||
// Print styles
|
||||
@import 'print';
|
||||
|
||||
@mixin foundation-typography {
|
||||
@include foundation-typography-base;
|
||||
@include foundation-typography-helpers;
|
||||
@include foundation-text-alignment;
|
||||
@include foundation-print-styles;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue