jekyll-theme-so-simple-libre 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +329 -0
- data/LICENSE +21 -0
- data/README.md +1148 -0
- data/_data/authors.yml +16 -0
- data/_data/navigation.yml +14 -0
- data/_data/text.yml +193 -0
- data/_includes/documents-collection.html +19 -0
- data/_includes/entry-date.html +6 -0
- data/_includes/entry.html +38 -0
- data/_includes/footer-custom.html +3 -0
- data/_includes/footer.html +24 -0
- data/_includes/head-custom.html +5 -0
- data/_includes/head-feed.html +1 -0
- data/_includes/head-seo.html +1 -0
- data/_includes/head.html +47 -0
- data/_includes/masthead.html +18 -0
- data/_includes/navigation.html +17 -0
- data/_includes/page-author.html +37 -0
- data/_includes/page-categories.html +15 -0
- data/_includes/page-date.html +4 -0
- data/_includes/page-image.html +14 -0
- data/_includes/page-pagination.html +19 -0
- data/_includes/page-tags.html +15 -0
- data/_includes/posts-all.html +3 -0
- data/_includes/posts-category.html +3 -0
- data/_includes/posts-limit.html +5 -0
- data/_includes/posts-paginated.html +74 -0
- data/_includes/posts-tag.html +3 -0
- data/_includes/read-time.html +16 -0
- data/_includes/responsive-embed +16 -0
- data/_includes/skip-links.html +8 -0
- data/_includes/social-share.html +6 -0
- data/_includes/talkyard-comments-provider.html +10 -0
- data/_includes/toc +9 -0
- data/_layouts/categories.html +81 -0
- data/_layouts/category.html +9 -0
- data/_layouts/collection.html +9 -0
- data/_layouts/default.html +21 -0
- data/_layouts/home.html +17 -0
- data/_layouts/page.html +30 -0
- data/_layouts/post.html +41 -0
- data/_layouts/posts.html +29 -0
- data/_layouts/tag.html +9 -0
- data/_layouts/tags.html +81 -0
- data/_sass/so-simple.scss +31 -0
- data/_sass/so-simple/_author.scss +47 -0
- data/_sass/so-simple/_base.scss +106 -0
- data/_sass/so-simple/_buttons.scss +64 -0
- data/_sass/so-simple/_entries.scss +194 -0
- data/_sass/so-simple/_functions.scss +4 -0
- data/_sass/so-simple/_global.scss +353 -0
- data/_sass/so-simple/_icons.scss +43 -0
- data/_sass/so-simple/_mixins.scss +5 -0
- data/_sass/so-simple/_notices.scss +57 -0
- data/_sass/so-simple/_page.scss +286 -0
- data/_sass/so-simple/_reset.scss +522 -0
- data/_sass/so-simple/_skin.scss +552 -0
- data/_sass/so-simple/_syntax-highlighting.scss +68 -0
- data/_sass/so-simple/_tables.scss +34 -0
- data/_sass/so-simple/_utilities.scss +7 -0
- data/_sass/so-simple/_variables.scss +98 -0
- data/_sass/so-simple/functions/_color.scss +21 -0
- data/_sass/so-simple/functions/_em.scss +7 -0
- data/_sass/so-simple/functions/_fluid-type.scss +33 -0
- data/_sass/so-simple/functions/_yiq.scss +38 -0
- data/_sass/so-simple/mixins/_clearfix.scss +32 -0
- data/_sass/so-simple/mixins/_float.scss +15 -0
- data/_sass/so-simple/mixins/_image.scss +38 -0
- data/_sass/so-simple/mixins/_lists.scss +9 -0
- data/_sass/so-simple/mixins/_text-truncate.scss +10 -0
- data/_sass/so-simple/utilities/_accessibility.scss +42 -0
- data/_sass/so-simple/utilities/_align.scss +60 -0
- data/_sass/so-simple/utilities/_animations.scss +99 -0
- data/_sass/so-simple/utilities/_clearfix.scss +7 -0
- data/_sass/so-simple/utilities/_float.scss +7 -0
- data/_sass/so-simple/utilities/_responsive-embed.scss +66 -0
- data/_sass/so-simple/utilities/_text.scss +48 -0
- data/_sass/so-simple/vendor/breakpoint/_breakpoint.scss +114 -0
- data/_sass/so-simple/vendor/breakpoint/_context.scss +95 -0
- data/_sass/so-simple/vendor/breakpoint/_helpers.scss +151 -0
- data/_sass/so-simple/vendor/breakpoint/_legacy-settings.scss +50 -0
- data/_sass/so-simple/vendor/breakpoint/_no-query.scss +15 -0
- data/_sass/so-simple/vendor/breakpoint/_parsers.scss +215 -0
- data/_sass/so-simple/vendor/breakpoint/_respond-to.scss +82 -0
- data/_sass/so-simple/vendor/breakpoint/_settings.scss +71 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_double.scss +33 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_query.scss +82 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_resolution.scss +31 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_single.scss +26 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/_triple.scss +36 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_default-pair.scss +21 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_default.scss +22 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/double/_double-string.scss +22 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/resolution/_resolution.scss +60 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/single/_default.scss +13 -0
- data/_sass/so-simple/vendor/breakpoint/parsers/triple/_default.scss +18 -0
- data/_sass/so-simple/vendor/lity/_lity.scss +221 -0
- data/assets/css/main.scss +8 -0
- data/assets/css/skins/dark.scss +43 -0
- data/assets/css/skins/default.scss +44 -0
- data/assets/css/skins/light.scss +44 -0
- metadata +262 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Syntax highlighting
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/* Inline code block */
|
|
6
|
+
|
|
7
|
+
code.highlighter-rouge {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0.2em 0.4em;
|
|
10
|
+
font-size: 85%;
|
|
11
|
+
border-radius: 3px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Multi-line code blocks */
|
|
15
|
+
|
|
16
|
+
div.highlighter-rouge,
|
|
17
|
+
figure.highlight {
|
|
18
|
+
position: relative;
|
|
19
|
+
margin-bottom: 1em;
|
|
20
|
+
font-family: $monospace-font-family;
|
|
21
|
+
line-height: 1.8;
|
|
22
|
+
|
|
23
|
+
> pre,
|
|
24
|
+
pre.highlight {
|
|
25
|
+
margin: 0;
|
|
26
|
+
padding: 1em;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.highlight table {
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
font-size: 1rem;
|
|
33
|
+
border: 0;
|
|
34
|
+
|
|
35
|
+
td {
|
|
36
|
+
padding: 0;
|
|
37
|
+
width: calc(100% - 1em);
|
|
38
|
+
border: 0;
|
|
39
|
+
|
|
40
|
+
/* line numbers*/
|
|
41
|
+
&.gutter {
|
|
42
|
+
padding-right: 1em;
|
|
43
|
+
width: 1em;
|
|
44
|
+
border-right: 1px solid;
|
|
45
|
+
text-align: right;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* code */
|
|
49
|
+
&.code {
|
|
50
|
+
padding-left: 1em;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
pre {
|
|
55
|
+
margin: 0;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.highlight pre {
|
|
60
|
+
width: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.gist {
|
|
64
|
+
td,
|
|
65
|
+
th {
|
|
66
|
+
border-bottom: 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Tables
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
table {
|
|
6
|
+
@include fluid-type($min-vw, $max-vw, 12px, 18px);
|
|
7
|
+
width: 100%;
|
|
8
|
+
border-collapse: collapse;
|
|
9
|
+
/* For Firefox to horizontally scroll wider tables */
|
|
10
|
+
// scss-lint:disable DuplicateProperty
|
|
11
|
+
word-break: normal;
|
|
12
|
+
word-break: keep-all;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
th,
|
|
16
|
+
td {
|
|
17
|
+
border-bottom: 1px solid;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
th {
|
|
21
|
+
padding: 0.5em;
|
|
22
|
+
font-weight: bold;
|
|
23
|
+
text-align: left;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
td {
|
|
27
|
+
padding: 0.5em;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
tr,
|
|
31
|
+
td,
|
|
32
|
+
th {
|
|
33
|
+
vertical-align: middle;
|
|
34
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Variables
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/* Breakpoint widths */
|
|
6
|
+
$small: 320px !default;
|
|
7
|
+
$medium: 768px !default;
|
|
8
|
+
$large: 1024px !default;
|
|
9
|
+
$xlarge: 1280px !default;
|
|
10
|
+
|
|
11
|
+
/* Fluid type */
|
|
12
|
+
$base-font-size: 16px !default;
|
|
13
|
+
$min-vw: $small !default;
|
|
14
|
+
$max-vw: $xlarge !default;
|
|
15
|
+
$min-font-size: 16px !default;
|
|
16
|
+
$max-font-size: 18px !default;
|
|
17
|
+
|
|
18
|
+
/* Calculate Modular Scale */
|
|
19
|
+
$modular-scale-1: 1.067 !default; /* small */
|
|
20
|
+
$modular-scale-2: 1.2 !default; /* large */
|
|
21
|
+
/* Heading 1 */
|
|
22
|
+
$h1-min: $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $base-font-size !default;
|
|
23
|
+
$h1-max: $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $base-font-size !default;
|
|
24
|
+
/* Heading 2 */
|
|
25
|
+
$h2-min: $modular-scale-1 * $modular-scale-1 * $modular-scale-1 * $base-font-size !default;
|
|
26
|
+
$h2-max: $modular-scale-2 * $modular-scale-2 * $modular-scale-2 * $base-font-size !default;
|
|
27
|
+
/* Heading 3 */
|
|
28
|
+
$h3-min: $modular-scale-1 * $modular-scale-1 * $base-font-size !default;
|
|
29
|
+
$h3-max: $modular-scale-2 * $modular-scale-2 * $base-font-size !default;
|
|
30
|
+
/* Heading 4 */
|
|
31
|
+
$h4-min: $modular-scale-1 * $base-font-size !default;
|
|
32
|
+
$h4-max: $modular-scale-2 * $base-font-size !default;
|
|
33
|
+
/* Heading 5 */
|
|
34
|
+
$h5-min: $base-font-size !default;
|
|
35
|
+
$h5-max: $base-font-size !default;
|
|
36
|
+
/* Heading 6 */
|
|
37
|
+
$h6-min: ($base-font-size / $modular-scale-1) !default;
|
|
38
|
+
$h6-max: ($base-font-size / $modular-scale-2) !default;
|
|
39
|
+
|
|
40
|
+
/* Font Families */
|
|
41
|
+
$serif-font-family: "Lora", serif !default;
|
|
42
|
+
$sans-serif-font-family: "Source Sans Pro", sans-serif !default;
|
|
43
|
+
$monospace-font-family: Menlo, Consolas, Monaco, "Courier New", Courier, monospace !default;
|
|
44
|
+
|
|
45
|
+
$base-font-family: $sans-serif-font-family !default;
|
|
46
|
+
$headline-font-family: $sans-serif-font-family !default;
|
|
47
|
+
$title-font-family: $serif-font-family !default;
|
|
48
|
+
$description-font-family: $serif-font-family !default;
|
|
49
|
+
$meta-font-family: $serif-font-family !default;
|
|
50
|
+
|
|
51
|
+
$page-title-weight: bold !default;
|
|
52
|
+
$entry-title-weight: bold !default;
|
|
53
|
+
|
|
54
|
+
/* YIQ color contrast */
|
|
55
|
+
$yiq-contrasted-dark-default: #000 !default;
|
|
56
|
+
$yiq-contrasted-light-default: #fff !default;
|
|
57
|
+
$yiq-contrasted-threshold: 175 !default;
|
|
58
|
+
$yiq-debug: false !default;
|
|
59
|
+
|
|
60
|
+
/* Brands */
|
|
61
|
+
$behance-color: #1769ff !default;
|
|
62
|
+
$bitbucket-color: #205081 !default;
|
|
63
|
+
$dribbble-color: #ea4c89 !default;
|
|
64
|
+
$facebook-color: #3b5998 !default;
|
|
65
|
+
$flickr-color: #ff0084 !default;
|
|
66
|
+
$foursquare-color: #0072b1 !default;
|
|
67
|
+
$github-color: #171516 !default;
|
|
68
|
+
$google-plus-color: #dd4b39 !default;
|
|
69
|
+
$instagram-color: #517fa4 !default;
|
|
70
|
+
$lastfm-color: #d51007 !default;
|
|
71
|
+
$linkedin-color: #007bb6 !default;
|
|
72
|
+
$pinterest-color: #cb2027 !default;
|
|
73
|
+
$reddit-color: #ff4500 !default;
|
|
74
|
+
$rss-color: #fa9b39 !default;
|
|
75
|
+
$soundcloud-color: #ff3300 !default;
|
|
76
|
+
$stackoverflow-color: #fe7a15 !default;
|
|
77
|
+
$tumblr-color: #32506d !default;
|
|
78
|
+
$twitter-color: #55acee !default;
|
|
79
|
+
$vimeo-color: #1ab7ea !default;
|
|
80
|
+
$vine-color: #00bf8f !default;
|
|
81
|
+
$youtube-color: #bb0000 !default;
|
|
82
|
+
$xing-color: #006567 !default;
|
|
83
|
+
|
|
84
|
+
/* Max-width of the main content */
|
|
85
|
+
$main-max-width: $medium !default;
|
|
86
|
+
|
|
87
|
+
/* Max-width of the main content + sidebar */
|
|
88
|
+
$main-sidebar-max-width: $large !default;
|
|
89
|
+
|
|
90
|
+
/* Site logo */
|
|
91
|
+
$site-logo-width: 75px !default;
|
|
92
|
+
$site-logo-height: 75px !default;
|
|
93
|
+
|
|
94
|
+
/* Border radius */
|
|
95
|
+
$border-radius: 0.25rem !default;
|
|
96
|
+
|
|
97
|
+
/* Global transition */
|
|
98
|
+
$global-transition: all 0.4s ease !default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Color Functions
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/// Slightly lighten a color
|
|
6
|
+
/// @access public
|
|
7
|
+
/// @param {Color} $color - color to tint
|
|
8
|
+
/// @param {Number} $percentage - percentage of `$color` in returned color
|
|
9
|
+
/// @return {Color}
|
|
10
|
+
@function tint($color, $percentage) {
|
|
11
|
+
@return mix(#fff, $color, $percentage);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/// Slightly darken a color
|
|
15
|
+
/// @access public
|
|
16
|
+
/// @param {Color} $color - color to shade
|
|
17
|
+
/// @param {Number} $percentage - percentage of `$color` in returned color
|
|
18
|
+
/// @return {Color}
|
|
19
|
+
@function shade($color, $percentage) {
|
|
20
|
+
@return mix(#000, $color, $percentage);
|
|
21
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Fluid Type
|
|
3
|
+
as seen on https://madebymike.com.au/writing/fluid-type-calc-examples/
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
@function strip-unit($value) {
|
|
7
|
+
@return $value / ($value * 0 + 1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@mixin fluid-type($min-vw, $max-vw, $min-font-size, $max-font-size) {
|
|
11
|
+
// scss-lint:disable UnnecessaryParentReference
|
|
12
|
+
$u1: unit($min-vw);
|
|
13
|
+
$u2: unit($max-vw);
|
|
14
|
+
$u3: unit($min-font-size);
|
|
15
|
+
$u4: unit($max-font-size);
|
|
16
|
+
|
|
17
|
+
@if $u1 == $u2 and $u1 == $u3 and $u1 == $u4 {
|
|
18
|
+
& {
|
|
19
|
+
|
|
20
|
+
font-size: $min-font-size;
|
|
21
|
+
|
|
22
|
+
@media screen and (min-width: $min-vw) {
|
|
23
|
+
font-size: calc(#{$min-font-size} + #{strip-unit($max-font-size - $min-font-size)} * ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)}));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media screen and (min-width: $max-vw) {
|
|
27
|
+
font-size: $max-font-size;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
} @else {
|
|
31
|
+
@error "Detected mixed units. Please use the same units for all parameters. " + $u1 +", " + $u2 + ", " + $u3 +", "+ $u4;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Compass YIQ Color Contrast
|
|
3
|
+
https://github.com/easy-designs/yiq-color-contrast
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
@function yiq-is-light(
|
|
7
|
+
$color,
|
|
8
|
+
$threshold: $yiq-contrasted-threshold
|
|
9
|
+
) {
|
|
10
|
+
$red: red($color);
|
|
11
|
+
$green: green($color);
|
|
12
|
+
$blue: blue($color);
|
|
13
|
+
|
|
14
|
+
$yiq: (($red*299)+($green*587)+($blue*114))/1000;
|
|
15
|
+
|
|
16
|
+
@if $yiq-debug { @debug $yiq, $threshold; }
|
|
17
|
+
|
|
18
|
+
@return if($yiq >= $threshold, true, false);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@function yiq-contrast-color(
|
|
22
|
+
$color,
|
|
23
|
+
$dark: $yiq-contrasted-dark-default,
|
|
24
|
+
$light: $yiq-contrasted-light-default,
|
|
25
|
+
$threshold: $yiq-contrasted-threshold
|
|
26
|
+
) {
|
|
27
|
+
@return if(yiq-is-light($color, $threshold), $yiq-contrasted-dark-default, $yiq-contrasted-light-default);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin yiq-contrasted(
|
|
31
|
+
$background-color,
|
|
32
|
+
$dark: $yiq-contrasted-dark-default,
|
|
33
|
+
$light: $yiq-contrasted-light-default,
|
|
34
|
+
$threshold: $yiq-contrasted-threshold
|
|
35
|
+
) {
|
|
36
|
+
background-color: $background-color;
|
|
37
|
+
color: yiq-contrast-color($background-color, $dark, $light, $threshold);
|
|
38
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Clearfix Mixin
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Provides an easy way to include a clearfix for containing floats.
|
|
7
|
+
* link http://cssmojo.com/latest_new_clearfix_so_far/
|
|
8
|
+
*
|
|
9
|
+
* example scss - Usage
|
|
10
|
+
*
|
|
11
|
+
* .element {
|
|
12
|
+
* @include clearfix;
|
|
13
|
+
* }
|
|
14
|
+
*
|
|
15
|
+
* example css - CSS Output
|
|
16
|
+
*
|
|
17
|
+
* .element::after {
|
|
18
|
+
* clear: both;
|
|
19
|
+
* content: "";
|
|
20
|
+
* display: table;
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
@mixin clearfix {
|
|
25
|
+
clear: both;
|
|
26
|
+
|
|
27
|
+
&::after {
|
|
28
|
+
clear: both;
|
|
29
|
+
content: "";
|
|
30
|
+
display: table;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Float Mixins
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
@mixin float-left {
|
|
6
|
+
float: left !important;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@mixin float-right {
|
|
10
|
+
float: right !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin float-none {
|
|
14
|
+
float: none !important;
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Image Mixins
|
|
3
|
+
- Responsive image
|
|
4
|
+
- Retina image
|
|
5
|
+
========================================================================== */
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
Responsive image
|
|
9
|
+
Keep images from scaling beyond the width of their parents.
|
|
10
|
+
========================================================================== */
|
|
11
|
+
|
|
12
|
+
@mixin img-fluid {
|
|
13
|
+
// Part 1: Set a maximum relative to the parent
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
// Part 2: Override the height to auto, otherwise images will be stretched
|
|
16
|
+
// when setting a width and height attribute on the img element.
|
|
17
|
+
height: auto;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/*
|
|
21
|
+
Retina image
|
|
22
|
+
Short retina mixin for setting background-image and -size.
|
|
23
|
+
========================================================================== */
|
|
24
|
+
|
|
25
|
+
@mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) {
|
|
26
|
+
background-image: url($file-1x);
|
|
27
|
+
|
|
28
|
+
// Autoprefixer takes care of adding -webkit-min-device-pixel-ratio and -o-min-device-pixel-ratio,
|
|
29
|
+
// but doesn't convert dppx=>dpi.
|
|
30
|
+
// There's no such thing as unprefixed min-device-pixel-ratio since it's nonstandard.
|
|
31
|
+
// Compatibility info: http://caniuse.com/#feat=css-media-resolution
|
|
32
|
+
@media
|
|
33
|
+
only screen and (min-resolution: 192dpi), // IE9-11 don't support dppx
|
|
34
|
+
only screen and (min-resolution: 2dppx) { // Standardized
|
|
35
|
+
background-image: url($file-2x);
|
|
36
|
+
background-size: $width-1x $height-1x;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
List Mixins
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
// Unstyled keeps list items block level, just removes default browser padding and list-style
|
|
6
|
+
@mixin list-unstyled {
|
|
7
|
+
padding-left: 0;
|
|
8
|
+
list-style: none;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Text Truncate Mixin
|
|
3
|
+
Requires inline-block or block for proper styling
|
|
4
|
+
========================================================================== */
|
|
5
|
+
|
|
6
|
+
@mixin text-truncate() {
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Accessibility Modules
|
|
3
|
+
========================================================================== */
|
|
4
|
+
|
|
5
|
+
/* Text meant only for screen readers */
|
|
6
|
+
.screen-reader-text,
|
|
7
|
+
.screen-reader-text span,
|
|
8
|
+
.screen-reader-shortcut {
|
|
9
|
+
position: absolute !important;
|
|
10
|
+
width: 1px;
|
|
11
|
+
height: 1px;
|
|
12
|
+
clip: rect(0, 0, 0, 0);
|
|
13
|
+
border: 0;
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
|
|
16
|
+
&:focus {
|
|
17
|
+
display: block;
|
|
18
|
+
top: 5px;
|
|
19
|
+
left: 5px;
|
|
20
|
+
width: auto;
|
|
21
|
+
height: auto;
|
|
22
|
+
padding: 0.75em 1em;
|
|
23
|
+
clip: auto !important;
|
|
24
|
+
border-radius: 0.125em;
|
|
25
|
+
color: #fff;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
line-height: normal;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
|
30
|
+
z-index: 100000;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.screen-reader-text:focus,
|
|
35
|
+
.screen-reader-shortcut:focus {
|
|
36
|
+
width: auto;
|
|
37
|
+
height: auto;
|
|
38
|
+
clip: auto !important;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
|
41
|
+
z-index: 100000;
|
|
42
|
+
}
|