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,141 @@
1
+ // Base class
2
+ //
3
+ // Easily usable on <ul>, <ol>, or <div>.
4
+
5
+ .list-group {
6
+ display: flex;
7
+ flex-direction: column;
8
+
9
+ // No need to set list-style: none; since .list-group-item is block level
10
+ padding-left: 0; // reset padding because ul and ol
11
+ margin-bottom: 0;
12
+ }
13
+
14
+
15
+ // Interactive list items
16
+ //
17
+ // Use anchor or button elements instead of `li`s or `div`s to create interactive
18
+ // list items. Includes an extra `.active` modifier class for selected items.
19
+
20
+ .list-group-item-action {
21
+ width: 100%; // For `<button>`s (anchors become 100% by default though)
22
+ color: $list-group-link-color;
23
+ text-align: inherit; // For `<button>`s (anchors inherit)
24
+
25
+ .list-group-item-heading {
26
+ color: $list-group-link-heading-color;
27
+ }
28
+
29
+ // Hover state
30
+ @include hover-focus {
31
+ color: $list-group-link-hover-color;
32
+ text-decoration: none;
33
+ background-color: $list-group-hover-bg;
34
+ }
35
+
36
+ &:active {
37
+ color: $list-group-link-active-color;
38
+ background-color: $list-group-link-active-bg;
39
+ }
40
+ }
41
+
42
+
43
+ // Individual list items
44
+ //
45
+ // Use on `li`s or `div`s within the `.list-group` parent.
46
+
47
+ .list-group-item {
48
+ position: relative;
49
+ display: flex;
50
+ flex-flow: row wrap;
51
+ align-items: center;
52
+ padding: $list-group-item-padding-y $list-group-item-padding-x;
53
+ // Place the border on the list items and negative margin up for better styling
54
+ margin-bottom: -$list-group-border-width;
55
+ background-color: $list-group-bg;
56
+ border: $list-group-border-width solid $list-group-border-color;
57
+
58
+ &:first-child {
59
+ @include border-top-radius($list-group-border-radius);
60
+ }
61
+
62
+ &:last-child {
63
+ margin-bottom: 0;
64
+ @include border-bottom-radius($list-group-border-radius);
65
+ }
66
+
67
+ @include hover-focus {
68
+ text-decoration: none;
69
+ }
70
+
71
+ &.disabled,
72
+ &:disabled {
73
+ color: $list-group-disabled-color;
74
+ cursor: $cursor-disabled;
75
+ background-color: $list-group-disabled-bg;
76
+
77
+ // Force color to inherit for custom content
78
+ .list-group-item-heading {
79
+ color: inherit;
80
+ }
81
+ .list-group-item-text {
82
+ color: $list-group-disabled-text-color;
83
+ }
84
+ }
85
+
86
+ // Include both here for `<a>`s and `<button>`s
87
+ &.active {
88
+ z-index: 2; // Place active items above their siblings for proper border styling
89
+ color: $list-group-active-color;
90
+ background-color: $list-group-active-bg;
91
+ border-color: $list-group-active-border;
92
+
93
+ // Force color to inherit for custom content
94
+ .list-group-item-heading,
95
+ .list-group-item-heading > small,
96
+ .list-group-item-heading > .small {
97
+ color: inherit;
98
+ }
99
+
100
+ .list-group-item-text {
101
+ color: $list-group-active-text-color;
102
+ }
103
+ }
104
+ }
105
+
106
+
107
+ // Flush list items
108
+ //
109
+ // Remove borders and border-radius to keep list group items edge-to-edge. Most
110
+ // useful within other components (e.g., cards).
111
+
112
+ .list-group-flush {
113
+ .list-group-item {
114
+ border-right: 0;
115
+ border-left: 0;
116
+ border-radius: 0;
117
+ }
118
+
119
+ &:first-child {
120
+ .list-group-item:first-child {
121
+ border-top: 0;
122
+ }
123
+ }
124
+
125
+ &:last-child {
126
+ .list-group-item:last-child {
127
+ border-bottom: 0;
128
+ }
129
+ }
130
+ }
131
+
132
+
133
+ // Contextual variants
134
+ //
135
+ // Add modifier classes to change text and background color on individual items.
136
+ // Organizationally, this must come after the `:hover` states.
137
+
138
+ @include list-group-item-variant(success, $state-success-bg, $state-success-text);
139
+ @include list-group-item-variant(info, $state-info-bg, $state-info-text);
140
+ @include list-group-item-variant(warning, $state-warning-bg, $state-warning-text);
141
+ @include list-group-item-variant(danger, $state-danger-bg, $state-danger-text);
@@ -0,0 +1,8 @@
1
+ .media {
2
+ display: flex;
3
+ align-items: flex-start;
4
+ }
5
+
6
+ .media-body {
7
+ flex: 1;
8
+ }
@@ -0,0 +1,57 @@
1
+ // Toggles
2
+ //
3
+ // Used in conjunction with global variables to enable certain theme features.
4
+
5
+ @mixin box-shadow($shadow...) {
6
+ @if $enable-shadows {
7
+ box-shadow: $shadow;
8
+ }
9
+ }
10
+
11
+ @mixin transition($transition...) {
12
+ @if $enable-transitions {
13
+ @if length($transition) == 0 {
14
+ transition: $transition-base;
15
+ } @else {
16
+ transition: $transition;
17
+ }
18
+ }
19
+ }
20
+
21
+ // Utilities
22
+ @import "mixins/breakpoints";
23
+ @import "mixins/hover";
24
+ @import "mixins/image";
25
+ @import "mixins/badge";
26
+ @import "mixins/resize";
27
+ @import "mixins/screen-reader";
28
+ @import "mixins/size";
29
+ @import "mixins/reset-text";
30
+ @import "mixins/text-emphasis";
31
+ @import "mixins/text-hide";
32
+ @import "mixins/text-truncate";
33
+ @import "mixins/transforms";
34
+ @import "mixins/visibility";
35
+
36
+ // // Components
37
+ @import "mixins/alert";
38
+ @import "mixins/buttons";
39
+ @import "mixins/cards";
40
+ @import "mixins/pagination";
41
+ @import "mixins/lists";
42
+ @import "mixins/list-group";
43
+ @import "mixins/nav-divider";
44
+ @import "mixins/forms";
45
+ @import "mixins/table-row";
46
+
47
+ // // Skins
48
+ @import "mixins/background-variant";
49
+ @import "mixins/border-radius";
50
+ @import "mixins/gradients";
51
+
52
+ // // Layout
53
+ @import "mixins/clearfix";
54
+ // @import "mixins/navbar-align";
55
+ @import "mixins/grid-framework";
56
+ @import "mixins/grid";
57
+ @import "mixins/float";
@@ -0,0 +1,142 @@
1
+ // .modal-open - body class for killing the scroll
2
+ // .modal - container to scroll within
3
+ // .modal-dialog - positioning shell for the actual modal
4
+ // .modal-content - actual modal w/ bg and corners and stuff
5
+
6
+
7
+ // Kill the scroll on the body
8
+ .modal-open {
9
+ overflow: hidden;
10
+ }
11
+
12
+ // Container that the modal scrolls within
13
+ .modal {
14
+ position: fixed;
15
+ top: 0;
16
+ right: 0;
17
+ bottom: 0;
18
+ left: 0;
19
+ z-index: $zindex-modal;
20
+ display: none;
21
+ overflow: hidden;
22
+ // Prevent Chrome on Windows from adding a focus outline. For details, see
23
+ // https://github.com/twbs/bootstrap/pull/10951.
24
+ outline: 0;
25
+ // We deliberately don't use `-webkit-overflow-scrolling: touch;` due to a
26
+ // gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342
27
+ // See also https://github.com/twbs/bootstrap/issues/17695
28
+
29
+ // When fading in the modal, animate it to slide down
30
+ &.fade .modal-dialog {
31
+ @include transition($modal-transition);
32
+ transform: translate(0, -25%);
33
+ }
34
+ &.show .modal-dialog { transform: translate(0, 0); }
35
+ }
36
+ .modal-open .modal {
37
+ overflow-x: hidden;
38
+ overflow-y: auto;
39
+ }
40
+
41
+ // Shell div to position the modal with bottom padding
42
+ .modal-dialog {
43
+ position: relative;
44
+ width: auto;
45
+ margin: $modal-dialog-margin;
46
+ }
47
+
48
+ // Actual modal
49
+ .modal-content {
50
+ position: relative;
51
+ display: flex;
52
+ flex-direction: column;
53
+ background-color: $modal-content-bg;
54
+ background-clip: padding-box;
55
+ border: $modal-content-border-width solid $modal-content-border-color;
56
+ @include border-radius($border-radius-lg);
57
+ @include box-shadow($modal-content-xs-box-shadow);
58
+ // Remove focus outline from opened modal
59
+ outline: 0;
60
+ }
61
+
62
+ // Modal background
63
+ .modal-backdrop {
64
+ position: fixed;
65
+ top: 0;
66
+ right: 0;
67
+ bottom: 0;
68
+ left: 0;
69
+ z-index: $zindex-modal-backdrop;
70
+ background-color: $modal-backdrop-bg;
71
+
72
+ // Fade for backdrop
73
+ &.fade { opacity: 0; }
74
+ &.show { opacity: $modal-backdrop-opacity; }
75
+ }
76
+
77
+ // Modal header
78
+ // Top section of the modal w/ title and dismiss
79
+ .modal-header {
80
+ display: flex;
81
+ align-items: center; // vertically center it
82
+ justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
83
+ padding: $modal-header-padding;
84
+ border-bottom: $modal-header-border-width solid $modal-header-border-color;
85
+ }
86
+
87
+ // Title text within header
88
+ .modal-title {
89
+ margin-bottom: 0;
90
+ line-height: $modal-title-line-height;
91
+ }
92
+
93
+ // Modal body
94
+ // Where all modal content resides (sibling of .modal-header and .modal-footer)
95
+ .modal-body {
96
+ position: relative;
97
+ // Enable `flex-grow: 1` so that the body take up as much space as possible
98
+ // when should there be a fixed height on `.modal-dialog`.
99
+ flex: 1 1 auto;
100
+ padding: $modal-inner-padding;
101
+ }
102
+
103
+ // Footer (for actions)
104
+ .modal-footer {
105
+ display: flex;
106
+ align-items: center; // vertically center
107
+ justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
108
+ padding: $modal-inner-padding;
109
+ border-top: $modal-footer-border-width solid $modal-footer-border-color;
110
+
111
+ // Easily place margin between footer elements
112
+ > :not(:first-child) { margin-left: .25rem; }
113
+ > :not(:last-child) { margin-right: .25rem; }
114
+ }
115
+
116
+ // Measure scrollbar width for padding body during modal show/hide
117
+ .modal-scrollbar-measure {
118
+ position: absolute;
119
+ top: -9999px;
120
+ width: 50px;
121
+ height: 50px;
122
+ overflow: scroll;
123
+ }
124
+
125
+ // Scale up the modal
126
+ @include media-breakpoint-up(sm) {
127
+ // Automatically set modal's width for larger viewports
128
+ .modal-dialog {
129
+ max-width: $modal-md;
130
+ margin: $modal-dialog-sm-up-margin-y auto;
131
+ }
132
+
133
+ .modal-content {
134
+ @include box-shadow($modal-content-sm-up-box-shadow);
135
+ }
136
+
137
+ .modal-sm { max-width: $modal-sm; }
138
+ }
139
+
140
+ @include media-breakpoint-up(lg) {
141
+ .modal-lg { max-width: $modal-lg; }
142
+ }
@@ -0,0 +1,119 @@
1
+ // Base class
2
+ //
3
+ // Kickstart any navigation component with a set of style resets. Works with
4
+ // `<nav>`s or `<ul>`s.
5
+
6
+ .nav {
7
+ display: flex;
8
+ padding-left: 0;
9
+ margin-bottom: 0;
10
+ list-style: none;
11
+ }
12
+
13
+ .nav-link {
14
+ display: block;
15
+ padding: $nav-link-padding;
16
+
17
+ @include hover-focus {
18
+ text-decoration: none;
19
+ }
20
+
21
+ // Disabled state lightens text and removes hover/tab effects
22
+ &.disabled {
23
+ color: $nav-disabled-link-color;
24
+ cursor: $cursor-disabled;
25
+ }
26
+ }
27
+
28
+
29
+ //
30
+ // Tabs
31
+ //
32
+
33
+ .nav-tabs {
34
+ border-bottom: $nav-tabs-border-width solid $nav-tabs-border-color;
35
+
36
+ .nav-item {
37
+ margin-bottom: -$nav-tabs-border-width;
38
+ }
39
+
40
+ .nav-link {
41
+ border: $nav-tabs-border-width solid transparent;
42
+ @include border-top-radius($nav-tabs-border-radius);
43
+
44
+ @include hover-focus {
45
+ border-color: $nav-tabs-link-hover-border-color $nav-tabs-link-hover-border-color $nav-tabs-border-color;
46
+ }
47
+
48
+ &.disabled {
49
+ color: $nav-disabled-link-color;
50
+ background-color: transparent;
51
+ border-color: transparent;
52
+ }
53
+ }
54
+
55
+ .nav-link.active,
56
+ .nav-item.show .nav-link {
57
+ color: $nav-tabs-active-link-hover-color;
58
+ background-color: $nav-tabs-active-link-hover-bg;
59
+ border-color: $nav-tabs-active-link-hover-border-color $nav-tabs-active-link-hover-border-color $nav-tabs-active-link-hover-bg;
60
+ }
61
+
62
+ .dropdown-menu {
63
+ // Make dropdown border overlap tab border
64
+ margin-top: -$nav-tabs-border-width;
65
+ // Remove the top rounded corners here since there is a hard edge above the menu
66
+ @include border-top-radius(0);
67
+ }
68
+ }
69
+
70
+
71
+ //
72
+ // Pills
73
+ //
74
+
75
+ .nav-pills {
76
+ .nav-link {
77
+ @include border-radius($nav-pills-border-radius);
78
+ }
79
+
80
+ .nav-link.active,
81
+ .nav-item.show .nav-link {
82
+ color: $nav-pills-active-link-color;
83
+ cursor: default;
84
+ background-color: $nav-pills-active-link-bg;
85
+ }
86
+ }
87
+
88
+
89
+ //
90
+ // Justified variants
91
+ //
92
+
93
+ .nav-fill {
94
+ .nav-item {
95
+ flex: 1 1 auto;
96
+ text-align: center;
97
+ }
98
+ }
99
+
100
+ .nav-justified {
101
+ .nav-item {
102
+ flex: 1 1 100%;
103
+ text-align: center;
104
+ }
105
+ }
106
+
107
+
108
+ // Tabbable tabs
109
+ //
110
+ // Hide tabbable panes to start, show them when `.active`
111
+
112
+ .tab-content {
113
+ > .tab-pane {
114
+ display: none;
115
+ }
116
+ > .active {
117
+ display: block;
118
+ }
119
+ }