ssg-guideline 0.1.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.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +45 -0
  4. data/_layouts/default.html +1 -0
  5. data/_layouts/page.html +5 -0
  6. data/_layouts/post.html +5 -0
  7. data/_sass/bootstrap/_alert.scss +55 -0
  8. data/_sass/bootstrap/_badge.scss +77 -0
  9. data/_sass/bootstrap/_breadcrumb.scss +38 -0
  10. data/_sass/bootstrap/_button-group.scss +202 -0
  11. data/_sass/bootstrap/_buttons.scss +170 -0
  12. data/_sass/bootstrap/_card.scss +276 -0
  13. data/_sass/bootstrap/_carousel.scss +178 -0
  14. data/_sass/bootstrap/_close.scss +31 -0
  15. data/_sass/bootstrap/_code.scss +64 -0
  16. data/_sass/bootstrap/_custom-forms.scss +263 -0
  17. data/_sass/bootstrap/_custom.scss +4 -0
  18. data/_sass/bootstrap/_dropdown.scss +161 -0
  19. data/_sass/bootstrap/_forms.scss +388 -0
  20. data/_sass/bootstrap/_grid.scss +52 -0
  21. data/_sass/bootstrap/_images.scss +43 -0
  22. data/_sass/bootstrap/_input-group.scss +178 -0
  23. data/_sass/bootstrap/_jumbotron.scss +20 -0
  24. data/_sass/bootstrap/_list-group.scss +141 -0
  25. data/_sass/bootstrap/_media.scss +8 -0
  26. data/_sass/bootstrap/_mixins.scss +57 -0
  27. data/_sass/bootstrap/_modal.scss +142 -0
  28. data/_sass/bootstrap/_nav.scss +119 -0
  29. data/_sass/bootstrap/_navbar.scss +268 -0
  30. data/_sass/bootstrap/_normalize.scss +461 -0
  31. data/_sass/bootstrap/_pagination.scss +67 -0
  32. data/_sass/bootstrap/_popover.scss +171 -0
  33. data/_sass/bootstrap/_print.scss +119 -0
  34. data/_sass/bootstrap/_progress.scss +32 -0
  35. data/_sass/bootstrap/_reboot.scss +389 -0
  36. data/_sass/bootstrap/_responsive-embed.scss +52 -0
  37. data/_sass/bootstrap/_tables.scss +153 -0
  38. data/_sass/bootstrap/_tooltip.scss +90 -0
  39. data/_sass/bootstrap/_transitions.scss +34 -0
  40. data/_sass/bootstrap/_type.scss +143 -0
  41. data/_sass/bootstrap/_utilities.scss +13 -0
  42. data/_sass/bootstrap/_variables.scss +961 -0
  43. data/_sass/bootstrap/bootstrap-grid.scss +43 -0
  44. data/_sass/bootstrap/bootstrap-reboot.scss +10 -0
  45. data/_sass/bootstrap/bootstrap.scss +54 -0
  46. data/_sass/extra/_syntax-highlighting.scss +71 -0
  47. data/_sass/main.scss +48 -0
  48. metadata +132 -0
@@ -0,0 +1,263 @@
1
+ // scss-lint:disable PropertyCount
2
+
3
+ // Embedded icons from Open Iconic.
4
+ // Released under MIT and copyright 2014 Waybury.
5
+ // https://useiconic.com/open
6
+
7
+
8
+ // Checkboxes and radios
9
+ //
10
+ // Base class takes care of all the key behavioral aspects.
11
+
12
+ .custom-control {
13
+ position: relative;
14
+ display: inline-flex;
15
+ min-height: (1rem * $line-height-base);
16
+ padding-left: $custom-control-gutter;
17
+ margin-right: $custom-control-spacer-x;
18
+ cursor: pointer;
19
+ }
20
+
21
+ .custom-control-input {
22
+ position: absolute;
23
+ z-index: -1; // Put the input behind the label so it doesn't overlay text
24
+ opacity: 0;
25
+
26
+ &:checked ~ .custom-control-indicator {
27
+ color: $custom-control-checked-indicator-color;
28
+ background-color: $custom-control-checked-indicator-bg;
29
+ @include box-shadow($custom-control-checked-indicator-box-shadow);
30
+ }
31
+
32
+ &:focus ~ .custom-control-indicator {
33
+ // the mixin is not used here to make sure there is feedback
34
+ box-shadow: $custom-control-focus-indicator-box-shadow;
35
+ }
36
+
37
+ &:active ~ .custom-control-indicator {
38
+ color: $custom-control-active-indicator-color;
39
+ background-color: $custom-control-active-indicator-bg;
40
+ @include box-shadow($custom-control-active-indicator-box-shadow);
41
+ }
42
+
43
+ &:disabled {
44
+ ~ .custom-control-indicator {
45
+ cursor: $custom-control-disabled-cursor;
46
+ background-color: $custom-control-disabled-indicator-bg;
47
+ }
48
+
49
+ ~ .custom-control-description {
50
+ color: $custom-control-disabled-description-color;
51
+ cursor: $custom-control-disabled-cursor;
52
+ }
53
+ }
54
+ }
55
+
56
+ // Custom indicator
57
+ //
58
+ // Generates a shadow element to create our makeshift checkbox/radio background.
59
+
60
+ .custom-control-indicator {
61
+ position: absolute;
62
+ top: (($line-height-base - $custom-control-indicator-size) / 2);
63
+ left: 0;
64
+ display: block;
65
+ width: $custom-control-indicator-size;
66
+ height: $custom-control-indicator-size;
67
+ pointer-events: none;
68
+ user-select: none;
69
+ background-color: $custom-control-indicator-bg;
70
+ background-repeat: no-repeat;
71
+ background-position: center center;
72
+ background-size: $custom-control-indicator-bg-size;
73
+ @include box-shadow($custom-control-indicator-box-shadow);
74
+ }
75
+
76
+ // Checkboxes
77
+ //
78
+ // Tweak just a few things for checkboxes.
79
+
80
+ .custom-checkbox {
81
+ .custom-control-indicator {
82
+ @include border-radius($custom-checkbox-radius);
83
+ }
84
+
85
+ .custom-control-input:checked ~ .custom-control-indicator {
86
+ background-image: $custom-checkbox-checked-icon;
87
+ }
88
+
89
+ .custom-control-input:indeterminate ~ .custom-control-indicator {
90
+ background-color: $custom-checkbox-indeterminate-bg;
91
+ background-image: $custom-checkbox-indeterminate-icon;
92
+ @include box-shadow($custom-checkbox-indeterminate-box-shadow);
93
+ }
94
+ }
95
+
96
+ // Radios
97
+ //
98
+ // Tweak just a few things for radios.
99
+
100
+ .custom-radio {
101
+ .custom-control-indicator {
102
+ border-radius: $custom-radio-radius;
103
+ }
104
+
105
+ .custom-control-input:checked ~ .custom-control-indicator {
106
+ background-image: $custom-radio-checked-icon;
107
+ }
108
+ }
109
+
110
+
111
+ // Layout options
112
+ //
113
+ // By default radios and checkboxes are `inline-block` with no additional spacing
114
+ // set. Use these optional classes to tweak the layout.
115
+
116
+ .custom-controls-stacked {
117
+ display: flex;
118
+ flex-direction: column;
119
+
120
+ .custom-control {
121
+ margin-bottom: $custom-control-spacer-y;
122
+
123
+ + .custom-control {
124
+ margin-left: 0;
125
+ }
126
+ }
127
+ }
128
+
129
+
130
+ // Select
131
+ //
132
+ // Replaces the browser default select with a custom one, mostly pulled from
133
+ // http://primercss.io.
134
+ //
135
+
136
+ .custom-select {
137
+ display: inline-block;
138
+ max-width: 100%;
139
+ $select-border-width: ($border-width * 2);
140
+ height: calc(#{$input-height} + #{$select-border-width});
141
+ padding: $custom-select-padding-y ($custom-select-padding-x + $custom-select-indicator-padding) $custom-select-padding-y $custom-select-padding-x;
142
+ line-height: $custom-select-line-height;
143
+ color: $custom-select-color;
144
+ vertical-align: middle;
145
+ background: $custom-select-bg $custom-select-indicator no-repeat right $custom-select-padding-x center;
146
+ background-size: $custom-select-bg-size;
147
+ border: $custom-select-border-width solid $custom-select-border-color;
148
+ @include border-radius($custom-select-border-radius);
149
+ // Use vendor prefixes as `appearance` isn't part of the CSS spec.
150
+ -moz-appearance: none;
151
+ -webkit-appearance: none;
152
+
153
+ &:focus {
154
+ border-color: $custom-select-focus-border-color;
155
+ outline: none;
156
+ @include box-shadow($custom-select-focus-box-shadow);
157
+
158
+ &::-ms-value {
159
+ // For visual consistency with other platforms/browsers,
160
+ // supress the default white text on blue background highlight given to
161
+ // the selected option text when the (still closed) <select> receives focus
162
+ // in IE and (under certain conditions) Edge.
163
+ // See https://github.com/twbs/bootstrap/issues/19398.
164
+ color: $input-color;
165
+ background-color: $input-bg;
166
+ }
167
+ }
168
+
169
+ &:disabled {
170
+ color: $custom-select-disabled-color;
171
+ cursor: $cursor-disabled;
172
+ background-color: $custom-select-disabled-bg;
173
+ }
174
+
175
+ // Hides the default caret in IE11
176
+ &::-ms-expand {
177
+ opacity: 0;
178
+ }
179
+ }
180
+
181
+ .custom-select-sm {
182
+ padding-top: $custom-select-padding-y;
183
+ padding-bottom: $custom-select-padding-y;
184
+ font-size: $custom-select-sm-font-size;
185
+
186
+ // &:not([multiple]) {
187
+ // height: 26px;
188
+ // min-height: 26px;
189
+ // }
190
+ }
191
+
192
+
193
+ // File
194
+ //
195
+ // Custom file input.
196
+
197
+ .custom-file {
198
+ position: relative;
199
+ display: inline-block;
200
+ max-width: 100%;
201
+ height: $custom-file-height;
202
+ margin-bottom: 0;
203
+ cursor: pointer;
204
+ }
205
+
206
+ .custom-file-input {
207
+ min-width: $custom-file-width;
208
+ max-width: 100%;
209
+ height: $custom-file-height;
210
+ margin: 0;
211
+ filter: alpha(opacity = 0);
212
+ opacity: 0;
213
+
214
+ &:focus ~ .custom-file-control {
215
+ @include box-shadow($custom-file-focus-box-shadow);
216
+ }
217
+ }
218
+
219
+ .custom-file-control {
220
+ position: absolute;
221
+ top: 0;
222
+ right: 0;
223
+ left: 0;
224
+ z-index: 5;
225
+ height: $custom-file-height;
226
+ padding: $custom-file-padding-x $custom-file-padding-y;
227
+ line-height: $custom-file-line-height;
228
+ color: $custom-file-color;
229
+ pointer-events: none;
230
+ user-select: none;
231
+ background-color: $custom-file-bg;
232
+ border: $custom-file-border-width solid $custom-file-border-color;
233
+ @include border-radius($custom-file-border-radius);
234
+ @include box-shadow($custom-file-box-shadow);
235
+
236
+ @each $lang, $text in map-get($custom-file-text, placeholder) {
237
+ &:lang(#{$lang})::after {
238
+ content: $text;
239
+ }
240
+ }
241
+
242
+ &::before {
243
+ position: absolute;
244
+ top: -$custom-file-border-width;
245
+ right: -$custom-file-border-width;
246
+ bottom: -$custom-file-border-width;
247
+ z-index: 6;
248
+ display: block;
249
+ height: $custom-file-height;
250
+ padding: $custom-file-padding-x $custom-file-padding-y;
251
+ line-height: $custom-file-line-height;
252
+ color: $custom-file-button-color;
253
+ background-color: $custom-file-button-bg;
254
+ border: $custom-file-border-width solid $custom-file-border-color;
255
+ @include border-radius(0 $custom-file-border-radius $custom-file-border-radius 0);
256
+ }
257
+
258
+ @each $lang, $text in map-get($custom-file-text, button-label) {
259
+ &:lang(#{$lang})::before {
260
+ content: $text;
261
+ }
262
+ }
263
+ }
@@ -0,0 +1,4 @@
1
+ // Bootstrap overrides
2
+ //
3
+ // Copy variables from `_variables.scss` to this file to override default values
4
+ // without modifying source files.
@@ -0,0 +1,161 @@
1
+ // The dropdown wrapper (`<div>`)
2
+ .dropup,
3
+ .dropdown {
4
+ position: relative;
5
+ }
6
+
7
+ .dropdown-toggle {
8
+ // Generate the caret automatically
9
+ &::after {
10
+ display: inline-block;
11
+ width: 0;
12
+ height: 0;
13
+ margin-left: $caret-width;
14
+ vertical-align: middle;
15
+ content: "";
16
+ border-top: $caret-width solid;
17
+ border-right: $caret-width solid transparent;
18
+ border-left: $caret-width solid transparent;
19
+ }
20
+
21
+ // Prevent the focus on the dropdown toggle when closing dropdowns
22
+ &:focus {
23
+ outline: 0;
24
+ }
25
+ }
26
+
27
+ .dropup {
28
+ .dropdown-toggle {
29
+ &::after {
30
+ border-top: 0;
31
+ border-bottom: $caret-width solid;
32
+ }
33
+ }
34
+ }
35
+
36
+ // The dropdown menu
37
+ .dropdown-menu {
38
+ position: absolute;
39
+ top: 100%;
40
+ left: 0;
41
+ z-index: $zindex-dropdown;
42
+ display: none; // none by default, but block on "open" of the menu
43
+ float: left;
44
+ min-width: $dropdown-min-width;
45
+ padding: $dropdown-padding-y 0;
46
+ margin: $dropdown-margin-top 0 0; // override default ul
47
+ font-size: $font-size-base; // Redeclare because nesting can cause inheritance issues
48
+ color: $body-color;
49
+ text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
50
+ list-style: none;
51
+ background-color: $dropdown-bg;
52
+ background-clip: padding-box;
53
+ border: $dropdown-border-width solid $dropdown-border-color;
54
+ @include border-radius($border-radius);
55
+ @include box-shadow($dropdown-box-shadow);
56
+ }
57
+
58
+ // Dividers (basically an `<hr>`) within the dropdown
59
+ .dropdown-divider {
60
+ @include nav-divider($dropdown-divider-bg);
61
+ }
62
+
63
+ // Links, buttons, and more within the dropdown menu
64
+ //
65
+ // `<button>`-specific styles are denoted with `// For <button>s`
66
+ .dropdown-item {
67
+ display: block;
68
+ width: 100%; // For `<button>`s
69
+ padding: 3px $dropdown-item-padding-x;
70
+ clear: both;
71
+ font-weight: $font-weight-normal;
72
+ color: $dropdown-link-color;
73
+ text-align: inherit; // For `<button>`s
74
+ white-space: nowrap; // prevent links from randomly breaking onto new lines
75
+ background: none; // For `<button>`s
76
+ border: 0; // For `<button>`s
77
+
78
+ @include hover-focus {
79
+ color: $dropdown-link-hover-color;
80
+ text-decoration: none;
81
+ background-color: $dropdown-link-hover-bg;
82
+ }
83
+
84
+ &.active,
85
+ &:active {
86
+ color: $dropdown-link-active-color;
87
+ text-decoration: none;
88
+ background-color: $dropdown-link-active-bg;
89
+ }
90
+
91
+ &.disabled,
92
+ &:disabled {
93
+ color: $dropdown-link-disabled-color;
94
+ cursor: $cursor-disabled;
95
+ background-color: transparent;
96
+ // Remove CSS gradients if they're enabled
97
+ @if $enable-gradients {
98
+ background-image: none;
99
+ }
100
+ }
101
+ }
102
+
103
+ // Open state for the dropdown
104
+ .show {
105
+ // Show the menu
106
+ > .dropdown-menu {
107
+ display: block;
108
+ }
109
+
110
+ // Remove the outline when :focus is triggered
111
+ > a {
112
+ outline: 0;
113
+ }
114
+ }
115
+
116
+ // Menu positioning
117
+ //
118
+ // Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
119
+ // menu with the parent.
120
+ .dropdown-menu-right {
121
+ right: 0;
122
+ left: auto; // Reset the default from `.dropdown-menu`
123
+ }
124
+
125
+ .dropdown-menu-left {
126
+ right: auto;
127
+ left: 0;
128
+ }
129
+
130
+ // Dropdown section headers
131
+ .dropdown-header {
132
+ display: block;
133
+ padding: $dropdown-padding-y $dropdown-item-padding-x;
134
+ margin-bottom: 0; // for use with heading elements
135
+ font-size: $font-size-sm;
136
+ color: $dropdown-header-color;
137
+ white-space: nowrap; // as with > li > a
138
+ }
139
+
140
+ // Backdrop to catch body clicks on mobile, etc.
141
+ .dropdown-backdrop {
142
+ position: fixed;
143
+ top: 0;
144
+ right: 0;
145
+ bottom: 0;
146
+ left: 0;
147
+ z-index: $zindex-dropdown-backdrop;
148
+ }
149
+
150
+ // Allow for dropdowns to go bottom up (aka, dropup-menu)
151
+ //
152
+ // Just add .dropup after the standard .dropdown class and you're set.
153
+
154
+ .dropup {
155
+ // Different positioning for bottom up menu
156
+ .dropdown-menu {
157
+ top: auto;
158
+ bottom: 100%;
159
+ margin-bottom: $dropdown-margin-top;
160
+ }
161
+ }