jekyll-rtd-theme 1.1.6 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +48 -29
- data/_includes/addons/analytics.liquid +5 -12
- data/_includes/addons/github.liquid +19 -4
- data/_includes/assets/sw.caches.js +38 -28
- data/_includes/class/_breadcrumbs.liquid +33 -0
- data/_includes/class/_footer.liquid +41 -0
- data/_includes/{toctree.liquid → class/_toctree.liquid} +3 -6
- data/_includes/class/addons-wrap.liquid +26 -0
- data/_includes/class/content-wrap.liquid +20 -0
- data/_includes/class/sidebar-wrap.liquid +18 -0
- data/_includes/extend/list.liquid +2 -2
- data/_includes/extend/toctree.liquid +11 -16
- data/_includes/head/custom.liquid +17 -0
- data/_includes/head/links.liquid +16 -0
- data/_includes/head/metadata.liquid +21 -0
- data/_includes/head/script.extension.liquid +29 -0
- data/_includes/head/script.liquid +16 -0
- data/_includes/head/script.schema.liquid +27 -0
- data/_includes/head/title.liquid +1 -0
- data/_includes/reset/defaults.liquid +39 -58
- data/_includes/reset/i18n.liquid +1 -31
- data/_includes/{extend → reset}/tabs.liquid +0 -0
- data/_includes/reset/workdir.liquid +1 -15
- data/_includes/shortcodes/danger.liquid +9 -0
- data/_includes/shortcodes/mermaid.liquid +1 -0
- data/_includes/shortcodes/note.liquid +9 -0
- data/_includes/shortcodes/tip.liquid +9 -0
- data/_includes/shortcodes/warning.liquid +9 -0
- data/_layouts/default.liquid +21 -238
- data/_layouts/plugins/compress.liquid +13 -10
- data/_layouts/plugins/extension.liquid +32 -22
- data/_sass/@primer/base/base.scss +90 -0
- data/_sass/@primer/base/index.scss +6 -0
- data/_sass/@primer/base/kbd.scss +21 -0
- data/_sass/@primer/base/normalize.scss +423 -0
- data/_sass/@primer/base/typography-base.scss +100 -0
- data/_sass/@primer/breadcrumb/breadcrumb.scss +28 -0
- data/_sass/@primer/breadcrumb/index.scss +3 -0
- data/_sass/@primer/buttons/button-group.scss +91 -0
- data/_sass/@primer/buttons/button.scss +296 -0
- data/_sass/@primer/buttons/index.scss +4 -0
- data/_sass/@primer/buttons/misc.scss +205 -0
- data/_sass/@primer/forms/form-control.scss +278 -0
- data/_sass/@primer/forms/form-group.scss +279 -0
- data/_sass/@primer/forms/form-select.scss +38 -0
- data/_sass/@primer/forms/form-validation.scss +369 -0
- data/_sass/@primer/forms/index.scss +7 -0
- data/_sass/@primer/forms/input-group.scss +53 -0
- data/_sass/@primer/forms/radio-group.scss +43 -0
- data/_sass/@primer/loaders/index.scss +2 -0
- data/_sass/@primer/loaders/loaders.scss +21 -0
- data/_sass/@primer/markdown/blob-csv.scss +31 -0
- data/_sass/@primer/markdown/code.scss +73 -0
- data/_sass/@primer/markdown/headings.scss +72 -0
- data/_sass/@primer/markdown/images.scss +131 -0
- data/_sass/@primer/markdown/index.scss +8 -0
- data/_sass/@primer/markdown/lists.scss +76 -0
- data/_sass/@primer/markdown/markdown-body.scss +99 -0
- data/_sass/@primer/markdown/tables.scss +38 -0
- data/_sass/@primer/support/index.scss +11 -0
- data/_sass/@primer/support/mixins/buttons.scss +184 -0
- data/_sass/@primer/support/mixins/layout.scss +55 -0
- data/_sass/@primer/support/mixins/misc.scss +32 -0
- data/_sass/@primer/support/mixins/typography.scss +88 -0
- data/_sass/@primer/support/variables/color-system.scss +243 -0
- data/_sass/@primer/support/variables/colors.scss +55 -0
- data/_sass/@primer/support/variables/layout.scss +149 -0
- data/_sass/@primer/support/variables/misc.scss +42 -0
- data/_sass/@primer/support/variables/typography.scss +43 -0
- data/_sass/@primer/utilities/animations.scss +187 -0
- data/_sass/@primer/utilities/borders.scss +184 -0
- data/_sass/@primer/utilities/box-shadow.scss +25 -0
- data/_sass/@primer/utilities/colors.scss +185 -0
- data/_sass/@primer/utilities/details.scss +34 -0
- data/_sass/@primer/utilities/flexbox.scss +121 -0
- data/_sass/@primer/utilities/index.scss +14 -0
- data/_sass/@primer/utilities/layout.scss +134 -0
- data/_sass/@primer/utilities/margin.scss +68 -0
- data/_sass/@primer/utilities/padding.scss +59 -0
- data/_sass/@primer/utilities/typography.scss +325 -0
- data/_sass/@primer/utilities/visibility-display.scss +82 -0
- data/_sass/_font-face.scss +65 -0
- data/_sass/_icons.scss +57 -0
- data/_sass/_layout.scss +75 -0
- data/_sass/_reset.scss +13 -0
- data/_sass/_root.scss +9 -0
- data/_sass/_variables.scss +32 -0
- data/_sass/class/addons-wrap.scss +39 -0
- data/_sass/class/admonition.scss +47 -0
- data/_sass/class/container.scss +11 -0
- data/_sass/class/content-wrap.scss +4 -0
- data/_sass/class/header.scss +10 -0
- data/_sass/class/highlight.scss +214 -0
- data/_sass/class/markdown-body.scss +63 -0
- data/_sass/class/sidebar-wrap.scss +95 -0
- data/_sass/class/title.scss +12 -0
- data/_sass/theme.scss +31 -0
- data/assets/404.liquid +2 -2
- data/assets/css/theme.min.css +1 -0
- data/assets/css/theme.scss +4 -0
- data/assets/js/mermaid.min.js +5 -5
- data/assets/js/theme.js +290 -0
- data/assets/js/theme.min.js +1 -0
- data/assets/search.liquid +4 -20
- metadata +93 -53
- data/_includes/addons.liquid +0 -24
- data/_includes/addons/i18n.liquid +0 -13
- data/_includes/addons/plugins.liquid +0 -6
- data/_includes/album.liquid +0 -7
- data/_includes/assets/common.js +0 -171
- data/_includes/assets/search.js +0 -76
- data/_includes/breadcrumbs.liquid +0 -43
- data/_includes/footer.liquid +0 -37
- data/_includes/i18n/en.liquid +0 -29
- data/_includes/i18n/es.liquid +0 -29
- data/_includes/i18n/fr.liquid +0 -29
- data/_includes/i18n/it.liquid +0 -29
- data/_includes/i18n/ja.liquid +0 -29
- data/_includes/i18n/ko.liquid +0 -29
- data/_includes/i18n/ru.liquid +0 -29
- data/_includes/i18n/sv.liquid +0 -29
- data/_includes/i18n/zh-cn.liquid +0 -29
- data/_includes/reset/languages.liquid +0 -110
- data/_sass/_album.scss +0 -19
- data/_sass/_embed.scss +0 -23
- data/_sass/fluid.scss +0 -7
- data/_sass/jekyll-rtd-theme.scss +0 -128
- data/assets/css/rougify/base16.css +0 -1
- data/assets/css/rougify/base16.dark.css +0 -1
- data/assets/css/rougify/base16.light.css +0 -1
- data/assets/css/rougify/base16.monokai.css +0 -1
- data/assets/css/rougify/base16.monokai.dark.css +0 -1
- data/assets/css/rougify/base16.monokai.light.css +0 -1
- data/assets/css/rougify/base16.solarized.css +0 -1
- data/assets/css/rougify/base16.solarized.dark.css +0 -1
- data/assets/css/rougify/base16.solarized.light.css +0 -1
- data/assets/css/rougify/bw.css +0 -1
- data/assets/css/rougify/colorful.css +0 -1
- data/assets/css/rougify/github.css +0 -1
- data/assets/css/rougify/gruvbox.css +0 -1
- data/assets/css/rougify/gruvbox.dark.css +0 -1
- data/assets/css/rougify/gruvbox.light.css +0 -1
- data/assets/css/rougify/igorpro.css +0 -1
- data/assets/css/rougify/magritte.css +0 -1
- data/assets/css/rougify/molokai.css +0 -1
- data/assets/css/rougify/monokai.css +0 -1
- data/assets/css/rougify/monokai.sublime.css +0 -1
- data/assets/css/rougify/pastie.css +0 -1
- data/assets/css/rougify/thankful_eyes.css +0 -1
- data/assets/css/rougify/tulip.css +0 -1
- data/assets/css/theme.css +0 -4
- data/assets/js/anchor.min.js +0 -9
- data/assets/js/html5shiv.min.js +0 -4
@@ -0,0 +1,25 @@
|
|
1
|
+
// Box shadow utilities
|
2
|
+
|
3
|
+
// Box shadows
|
4
|
+
|
5
|
+
.box-shadow {
|
6
|
+
box-shadow: $box-shadow !important;
|
7
|
+
}
|
8
|
+
|
9
|
+
.box-shadow-medium {
|
10
|
+
box-shadow: $box-shadow-medium !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.box-shadow-large {
|
14
|
+
box-shadow: $box-shadow-large !important;
|
15
|
+
}
|
16
|
+
|
17
|
+
.box-shadow-extra-large {
|
18
|
+
box-shadow: $box-shadow-extra-large !important;
|
19
|
+
}
|
20
|
+
|
21
|
+
// Turn off box shadow
|
22
|
+
|
23
|
+
.box-shadow-none {
|
24
|
+
box-shadow: none !important;
|
25
|
+
}
|
@@ -0,0 +1,185 @@
|
|
1
|
+
// Color utilities
|
2
|
+
// stylelint-disable block-opening-brace-space-before, comment-empty-line-before
|
3
|
+
|
4
|
+
// background colors
|
5
|
+
/* Set the background to $bg-white */
|
6
|
+
.bg-white {
|
7
|
+
background-color: $bg-white !important;
|
8
|
+
}
|
9
|
+
/* Set the background to $bg-blue */
|
10
|
+
.bg-blue {
|
11
|
+
background-color: $bg-blue !important;
|
12
|
+
}
|
13
|
+
/* Set the background to $bg-blue-light */
|
14
|
+
.bg-blue-light {
|
15
|
+
background-color: $bg-blue-light !important;
|
16
|
+
}
|
17
|
+
/* Set the background to $bg-gray-dark */
|
18
|
+
.bg-gray-dark {
|
19
|
+
background-color: $bg-gray-dark !important;
|
20
|
+
}
|
21
|
+
/* Set the background to $bg-gray */
|
22
|
+
.bg-gray {
|
23
|
+
background-color: $bg-gray !important;
|
24
|
+
}
|
25
|
+
/* Set the background to $bg-gray-light */
|
26
|
+
.bg-gray-light {
|
27
|
+
background-color: $bg-gray-light !important;
|
28
|
+
}
|
29
|
+
/* Set the background to $bg-green */
|
30
|
+
.bg-green {
|
31
|
+
background-color: $bg-green !important;
|
32
|
+
}
|
33
|
+
/* Set the background to $bg-green-light */
|
34
|
+
.bg-green-light {
|
35
|
+
background-color: $bg-green-light !important;
|
36
|
+
}
|
37
|
+
/* Set the background to $bg-red */
|
38
|
+
.bg-red {
|
39
|
+
background-color: $bg-red !important;
|
40
|
+
}
|
41
|
+
/* Set the background to $bg-red-light */
|
42
|
+
.bg-red-light {
|
43
|
+
background-color: $bg-red-light !important;
|
44
|
+
}
|
45
|
+
/* Set the background to $bg-yellow */
|
46
|
+
.bg-yellow {
|
47
|
+
background-color: $bg-yellow !important;
|
48
|
+
}
|
49
|
+
/* Set the background to $bg-yellow-light */
|
50
|
+
.bg-yellow-light {
|
51
|
+
background-color: $bg-yellow-light !important;
|
52
|
+
}
|
53
|
+
/* Set the background to $bg-yellow-dark */
|
54
|
+
.bg-yellow-dark {
|
55
|
+
background-color: $bg-yellow-dark !important;
|
56
|
+
}
|
57
|
+
/* Set the background to $bg-purple */
|
58
|
+
.bg-purple {
|
59
|
+
background-color: $bg-purple !important;
|
60
|
+
}
|
61
|
+
/* Set the background to $bg-pink */
|
62
|
+
.bg-pink {
|
63
|
+
background-color: $bg-pink !important;
|
64
|
+
}
|
65
|
+
/* Set the background to $bg-purple-light */
|
66
|
+
.bg-purple-light {
|
67
|
+
background-color: $bg-purple-light !important;
|
68
|
+
}
|
69
|
+
/* Set the background to $bg-orange */
|
70
|
+
.bg-orange {
|
71
|
+
background-color: $bg-orange !important;
|
72
|
+
}
|
73
|
+
|
74
|
+
// Generate a foreground and background utility for every shade of every hue
|
75
|
+
@each $hue, $shades in $hue-maps {
|
76
|
+
@each $index, $color in $shades {
|
77
|
+
.color-#{$hue}-#{$index} {
|
78
|
+
color: $color !important;
|
79
|
+
}
|
80
|
+
.bg-#{$hue}-#{$index} {
|
81
|
+
background-color: $color !important;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.bg-shade-gradient {
|
87
|
+
background-image: linear-gradient(
|
88
|
+
180deg,
|
89
|
+
rgba($black, 0.065),
|
90
|
+
rgba($black, 0)
|
91
|
+
) !important;
|
92
|
+
background-repeat: no-repeat !important;
|
93
|
+
background-size: 100% 200px !important;
|
94
|
+
}
|
95
|
+
|
96
|
+
// text colors
|
97
|
+
/* Set the text color to $text-blue */
|
98
|
+
.text-blue {
|
99
|
+
color: $text-blue !important;
|
100
|
+
}
|
101
|
+
/* Set the text color to $text-red */
|
102
|
+
.text-red {
|
103
|
+
color: $text-red !important;
|
104
|
+
}
|
105
|
+
/* Set the text color to $text-gray-light */
|
106
|
+
.text-gray-light {
|
107
|
+
color: $text-gray-light !important;
|
108
|
+
}
|
109
|
+
/* Set the text color to $text-gray */
|
110
|
+
.text-gray {
|
111
|
+
color: $text-gray !important;
|
112
|
+
}
|
113
|
+
/* Set the text color to $text-gray-dark */
|
114
|
+
.text-gray-dark {
|
115
|
+
color: $text-gray-dark !important;
|
116
|
+
}
|
117
|
+
/* Set the text color to $text-green */
|
118
|
+
.text-green {
|
119
|
+
color: $text-green !important;
|
120
|
+
}
|
121
|
+
/* Set the text color to $text-yellow */
|
122
|
+
.text-yellow {
|
123
|
+
color: $text-yellow !important;
|
124
|
+
}
|
125
|
+
/* Set the text color to $text-orange */
|
126
|
+
.text-orange {
|
127
|
+
color: $text-orange !important;
|
128
|
+
}
|
129
|
+
/* Set the text color to $text-orange-light */
|
130
|
+
.text-orange-light {
|
131
|
+
color: $text-orange-light !important;
|
132
|
+
}
|
133
|
+
/* Set the text color to $text-purple */
|
134
|
+
.text-purple {
|
135
|
+
color: $text-purple !important;
|
136
|
+
}
|
137
|
+
/* Set the text color to $text-pink */
|
138
|
+
.text-pink {
|
139
|
+
color: $text-pink !important;
|
140
|
+
}
|
141
|
+
/* Set the text color to $text-white */
|
142
|
+
.text-white {
|
143
|
+
color: $text-white !important;
|
144
|
+
}
|
145
|
+
/* Set the text color to inherit */
|
146
|
+
.text-inherit {
|
147
|
+
color: inherit !important;
|
148
|
+
}
|
149
|
+
|
150
|
+
// Link colors
|
151
|
+
// Sets the links color to $text-gray and $text-blue on hover
|
152
|
+
.link-gray {
|
153
|
+
color: $text-gray !important;
|
154
|
+
|
155
|
+
&:hover {
|
156
|
+
color: $text-blue !important;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
// Sets the links color to $text-gray-dark and $text-blue on hover
|
161
|
+
.link-gray-dark {
|
162
|
+
color: $text-gray-dark !important;
|
163
|
+
|
164
|
+
&:hover {
|
165
|
+
color: $text-blue !important;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
/* Set the link color to $text-blue on hover
|
170
|
+
Useful when you want only part of a link to turn blue on hover */
|
171
|
+
.link-hover-blue {
|
172
|
+
&:hover {
|
173
|
+
color: $text-blue !important;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
/* Make a link $text-gray, then $text-blue on hover and removes the underline */
|
178
|
+
.muted-link {
|
179
|
+
color: $text-gray !important;
|
180
|
+
|
181
|
+
&:hover {
|
182
|
+
color: $text-blue !important;
|
183
|
+
text-decoration: none;
|
184
|
+
}
|
185
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// stylelint-disable selector-max-type
|
2
|
+
|
3
|
+
.details-overlay[open] > summary::before {
|
4
|
+
position: fixed;
|
5
|
+
top: 0;
|
6
|
+
right: 0;
|
7
|
+
bottom: 0;
|
8
|
+
left: 0;
|
9
|
+
z-index: 80;
|
10
|
+
display: block;
|
11
|
+
cursor: default;
|
12
|
+
content: " ";
|
13
|
+
background: transparent;
|
14
|
+
}
|
15
|
+
|
16
|
+
.details-overlay-dark[open] > summary::before {
|
17
|
+
z-index: 99;
|
18
|
+
background: $bg-black-fade;
|
19
|
+
}
|
20
|
+
|
21
|
+
.details-reset {
|
22
|
+
// Remove marker added by the display: list-item browser default
|
23
|
+
> summary {
|
24
|
+
list-style: none;
|
25
|
+
}
|
26
|
+
// Remove marker added by details polyfill
|
27
|
+
> summary::before {
|
28
|
+
display: none;
|
29
|
+
}
|
30
|
+
// Remove marker added by Chrome
|
31
|
+
> summary::-webkit-details-marker {
|
32
|
+
display: none;
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
// Flex utility classes
|
2
|
+
// stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before
|
3
|
+
@each $breakpoint, $variant in $responsive-variants {
|
4
|
+
@include breakpoint($breakpoint) {
|
5
|
+
// Flexbox classes
|
6
|
+
// Container
|
7
|
+
.flex#{$variant}-row {
|
8
|
+
flex-direction: row !important;
|
9
|
+
}
|
10
|
+
.flex#{$variant}-row-reverse {
|
11
|
+
flex-direction: row-reverse !important;
|
12
|
+
}
|
13
|
+
.flex#{$variant}-column {
|
14
|
+
flex-direction: column !important;
|
15
|
+
}
|
16
|
+
.flex#{$variant}-column-reverse {
|
17
|
+
flex-direction: column-reverse !important;
|
18
|
+
}
|
19
|
+
|
20
|
+
.flex#{$variant}-wrap {
|
21
|
+
flex-wrap: wrap !important;
|
22
|
+
}
|
23
|
+
.flex#{$variant}-nowrap {
|
24
|
+
flex-wrap: nowrap !important;
|
25
|
+
}
|
26
|
+
|
27
|
+
.flex#{$variant}-justify-start {
|
28
|
+
justify-content: flex-start !important;
|
29
|
+
}
|
30
|
+
.flex#{$variant}-justify-end {
|
31
|
+
justify-content: flex-end !important;
|
32
|
+
}
|
33
|
+
.flex#{$variant}-justify-center {
|
34
|
+
justify-content: center !important;
|
35
|
+
}
|
36
|
+
.flex#{$variant}-justify-between {
|
37
|
+
justify-content: space-between !important;
|
38
|
+
}
|
39
|
+
.flex#{$variant}-justify-around {
|
40
|
+
justify-content: space-around !important;
|
41
|
+
}
|
42
|
+
|
43
|
+
.flex#{$variant}-items-start {
|
44
|
+
align-items: flex-start !important;
|
45
|
+
}
|
46
|
+
.flex#{$variant}-items-end {
|
47
|
+
align-items: flex-end !important;
|
48
|
+
}
|
49
|
+
.flex#{$variant}-items-center {
|
50
|
+
align-items: center !important;
|
51
|
+
}
|
52
|
+
.flex#{$variant}-items-baseline {
|
53
|
+
align-items: baseline !important;
|
54
|
+
}
|
55
|
+
.flex#{$variant}-items-stretch {
|
56
|
+
align-items: stretch !important;
|
57
|
+
}
|
58
|
+
|
59
|
+
.flex#{$variant}-content-start {
|
60
|
+
align-content: flex-start !important;
|
61
|
+
}
|
62
|
+
.flex#{$variant}-content-end {
|
63
|
+
align-content: flex-end !important;
|
64
|
+
}
|
65
|
+
.flex#{$variant}-content-center {
|
66
|
+
align-content: center !important;
|
67
|
+
}
|
68
|
+
.flex#{$variant}-content-between {
|
69
|
+
align-content: space-between !important;
|
70
|
+
}
|
71
|
+
.flex#{$variant}-content-around {
|
72
|
+
align-content: space-around !important;
|
73
|
+
}
|
74
|
+
.flex#{$variant}-content-stretch {
|
75
|
+
align-content: stretch !important;
|
76
|
+
}
|
77
|
+
|
78
|
+
// Item
|
79
|
+
.flex#{$variant}-1 {
|
80
|
+
flex: 1 !important;
|
81
|
+
}
|
82
|
+
.flex#{$variant}-auto {
|
83
|
+
flex: auto !important;
|
84
|
+
}
|
85
|
+
.flex#{$variant}-grow-0 {
|
86
|
+
flex-grow: 0 !important;
|
87
|
+
}
|
88
|
+
.flex#{$variant}-shrink-0 {
|
89
|
+
flex-shrink: 0 !important;
|
90
|
+
}
|
91
|
+
|
92
|
+
.flex#{$variant}-self-auto {
|
93
|
+
align-self: auto !important;
|
94
|
+
}
|
95
|
+
.flex#{$variant}-self-start {
|
96
|
+
align-self: flex-start !important;
|
97
|
+
}
|
98
|
+
.flex#{$variant}-self-end {
|
99
|
+
align-self: flex-end !important;
|
100
|
+
}
|
101
|
+
.flex#{$variant}-self-center {
|
102
|
+
align-self: center !important;
|
103
|
+
}
|
104
|
+
.flex#{$variant}-self-baseline {
|
105
|
+
align-self: baseline !important;
|
106
|
+
}
|
107
|
+
.flex#{$variant}-self-stretch {
|
108
|
+
align-self: stretch !important;
|
109
|
+
}
|
110
|
+
|
111
|
+
.flex#{$variant}-order-1 {
|
112
|
+
order: 1 !important;
|
113
|
+
}
|
114
|
+
.flex#{$variant}-order-2 {
|
115
|
+
order: 2 !important;
|
116
|
+
}
|
117
|
+
.flex#{$variant}-order-none {
|
118
|
+
order: inherit !important;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
@import "../support/index.scss";
|
2
|
+
// utilities
|
3
|
+
@import "./animations.scss";
|
4
|
+
@import "./borders.scss";
|
5
|
+
@import "./box-shadow.scss";
|
6
|
+
@import "./colors.scss";
|
7
|
+
@import "./details.scss";
|
8
|
+
@import "./flexbox.scss";
|
9
|
+
@import "./layout.scss";
|
10
|
+
@import "./margin.scss";
|
11
|
+
@import "./padding.scss";
|
12
|
+
@import "./typography.scss";
|
13
|
+
// Visibility and display should always come last in the imports so that they override other utilities with !important
|
14
|
+
@import "./visibility-display.scss";
|
@@ -0,0 +1,134 @@
|
|
1
|
+
// Layout
|
2
|
+
// stylelint-disable block-opening-brace-space-after, block-opening-brace-space-before, comment-empty-line-before
|
3
|
+
|
4
|
+
// Loop through the breakpoint values
|
5
|
+
@each $breakpoint, $variant in $responsive-variants {
|
6
|
+
@include breakpoint($breakpoint) {
|
7
|
+
@each $position in $responsive-positions {
|
8
|
+
.position#{$variant}-#{$position} {
|
9
|
+
position: $position !important;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
/* Set top 0 */
|
16
|
+
.top-0 {
|
17
|
+
top: 0 !important;
|
18
|
+
}
|
19
|
+
/* Set right 0 */
|
20
|
+
.right-0 {
|
21
|
+
right: 0 !important;
|
22
|
+
}
|
23
|
+
/* Set bottom 0 */
|
24
|
+
.bottom-0 {
|
25
|
+
bottom: 0 !important;
|
26
|
+
}
|
27
|
+
/* Set left 0 */
|
28
|
+
.left-0 {
|
29
|
+
left: 0 !important;
|
30
|
+
}
|
31
|
+
|
32
|
+
/* Vertical align middle */
|
33
|
+
.v-align-middle {
|
34
|
+
vertical-align: middle !important;
|
35
|
+
}
|
36
|
+
/* Vertical align top */
|
37
|
+
.v-align-top {
|
38
|
+
vertical-align: top !important;
|
39
|
+
}
|
40
|
+
/* Vertical align bottom */
|
41
|
+
.v-align-bottom {
|
42
|
+
vertical-align: bottom !important;
|
43
|
+
}
|
44
|
+
/* Vertical align to the top of the text */
|
45
|
+
.v-align-text-top {
|
46
|
+
vertical-align: text-top !important;
|
47
|
+
}
|
48
|
+
/* Vertical align to the bottom of the text */
|
49
|
+
.v-align-text-bottom {
|
50
|
+
vertical-align: text-bottom !important;
|
51
|
+
}
|
52
|
+
/* Vertical align to the parent's baseline */
|
53
|
+
.v-align-baseline {
|
54
|
+
vertical-align: baseline !important;
|
55
|
+
}
|
56
|
+
|
57
|
+
// Overflow utilities
|
58
|
+
@each $overflow in (visible, hidden, auto, scroll) {
|
59
|
+
.overflow-#{$overflow} {
|
60
|
+
overflow: $overflow !important;
|
61
|
+
}
|
62
|
+
.overflow-x-#{$overflow} {
|
63
|
+
overflow-x: $overflow !important;
|
64
|
+
}
|
65
|
+
.overflow-y-#{$overflow} {
|
66
|
+
overflow-y: $overflow !important;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
// Clear floats
|
71
|
+
/* Clear floats around the element */
|
72
|
+
.clearfix {
|
73
|
+
@include clearfix;
|
74
|
+
}
|
75
|
+
|
76
|
+
// Floats
|
77
|
+
@each $breakpoint, $variant in $responsive-variants {
|
78
|
+
@include breakpoint($breakpoint) {
|
79
|
+
/* Float to the left */
|
80
|
+
.float#{$variant}-left {
|
81
|
+
float: left !important;
|
82
|
+
}
|
83
|
+
/* Float to the right */
|
84
|
+
.float#{$variant}-right {
|
85
|
+
float: right !important;
|
86
|
+
}
|
87
|
+
/* No float */
|
88
|
+
.float#{$variant}-none {
|
89
|
+
float: none !important;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// Width and height utilities, helpful in combination
|
95
|
+
// with display-table utilities and images
|
96
|
+
/* Max width 100% */
|
97
|
+
.width-fit {
|
98
|
+
max-width: 100% !important;
|
99
|
+
}
|
100
|
+
/* Set the width to 100% */
|
101
|
+
.width-full {
|
102
|
+
width: 100% !important;
|
103
|
+
}
|
104
|
+
/* Max height 100% */
|
105
|
+
.height-fit {
|
106
|
+
max-height: 100% !important;
|
107
|
+
}
|
108
|
+
/* Set the height to 100% */
|
109
|
+
.height-full {
|
110
|
+
height: 100% !important;
|
111
|
+
}
|
112
|
+
|
113
|
+
/* Remove min-width from element */
|
114
|
+
.min-width-0 {
|
115
|
+
min-width: 0 !important;
|
116
|
+
}
|
117
|
+
|
118
|
+
@each $breakpoint, $variant in $responsive-variants {
|
119
|
+
@include breakpoint($breakpoint) {
|
120
|
+
// Auto varients
|
121
|
+
.width#{$variant}-auto {
|
122
|
+
width: auto !important;
|
123
|
+
}
|
124
|
+
|
125
|
+
/* Set the direction to rtl */
|
126
|
+
.direction#{$variant}-rtl {
|
127
|
+
direction: rtl !important;
|
128
|
+
}
|
129
|
+
/* Set the direction to ltr */
|
130
|
+
.direction#{$variant}-ltr {
|
131
|
+
direction: ltr !important;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|