respectre-jekyll-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +52 -0
  4. data/_includes/footer.html +17 -0
  5. data/_includes/head.html +11 -0
  6. data/_includes/header.html +14 -0
  7. data/_layouts/default.html +13 -0
  8. data/_layouts/home.html +26 -0
  9. data/_layouts/page.html +14 -0
  10. data/_layouts/post.html +21 -0
  11. data/_sass/spectre.scss +49 -0
  12. data/_sass/spectre/.csscomb.json +30 -0
  13. data/_sass/spectre/.gitattributes +1 -0
  14. data/_sass/spectre/.gitignore +9 -0
  15. data/_sass/spectre/.hound.yml +2 -0
  16. data/_sass/spectre/.scss-lint.yml +253 -0
  17. data/_sass/spectre/_accordions.scss +38 -0
  18. data/_sass/spectre/_animations.scss +20 -0
  19. data/_sass/spectre/_asian.scss +33 -0
  20. data/_sass/spectre/_autocomplete.scss +36 -0
  21. data/_sass/spectre/_avatars.scss +77 -0
  22. data/_sass/spectre/_badges.scss +70 -0
  23. data/_sass/spectre/_bars.scss +71 -0
  24. data/_sass/spectre/_base.scss +40 -0
  25. data/_sass/spectre/_breadcrumbs.scss +29 -0
  26. data/_sass/spectre/_buttons.scss +182 -0
  27. data/_sass/spectre/_calendars.scss +206 -0
  28. data/_sass/spectre/_cards.scss +39 -0
  29. data/_sass/spectre/_carousels.scss +124 -0
  30. data/_sass/spectre/_chips.scss +26 -0
  31. data/_sass/spectre/_codes.scss +31 -0
  32. data/_sass/spectre/_comparison-sliders.scss +114 -0
  33. data/_sass/spectre/_dropdowns.scss +36 -0
  34. data/_sass/spectre/_empty.scss +21 -0
  35. data/_sass/spectre/_filters.scss +37 -0
  36. data/_sass/spectre/_forms.scss +514 -0
  37. data/_sass/spectre/_icons.scss +5 -0
  38. data/_sass/spectre/_labels.scss +34 -0
  39. data/_sass/spectre/_layout.scss +424 -0
  40. data/_sass/spectre/_media.scss +75 -0
  41. data/_sass/spectre/_menus.scss +56 -0
  42. data/_sass/spectre/_meters.scss +57 -0
  43. data/_sass/spectre/_mixins.scss +186 -0
  44. data/_sass/spectre/_modals.scss +82 -0
  45. data/_sass/spectre/_navbar.scss +29 -0
  46. data/_sass/spectre/_navs.scss +34 -0
  47. data/_sass/spectre/_normalize.scss +446 -0
  48. data/_sass/spectre/_off-canvas.scss +82 -0
  49. data/_sass/spectre/_pagination.scss +61 -0
  50. data/_sass/spectre/_panels.scss +23 -0
  51. data/_sass/spectre/_parallax.scss +129 -0
  52. data/_sass/spectre/_popovers.scss +70 -0
  53. data/_sass/spectre/_progress.scss +45 -0
  54. data/_sass/spectre/_sliders.scss +93 -0
  55. data/_sass/spectre/_steps.scss +70 -0
  56. data/_sass/spectre/_tables.scss +45 -0
  57. data/_sass/spectre/_tabs.scss +66 -0
  58. data/_sass/spectre/_tiles.scss +38 -0
  59. data/_sass/spectre/_timelines.scss +54 -0
  60. data/_sass/spectre/_toasts.scss +42 -0
  61. data/_sass/spectre/_tooltips.scss +79 -0
  62. data/_sass/spectre/_typography.scss +128 -0
  63. data/_sass/spectre/_utilities.scss +8 -0
  64. data/_sass/spectre/_variables.scss +105 -0
  65. data/_sass/spectre/icons/_icons-action.scss +316 -0
  66. data/_sass/spectre/icons/_icons-core.scss +53 -0
  67. data/_sass/spectre/icons/_icons-navigation.scss +133 -0
  68. data/_sass/spectre/icons/_icons-object.scss +176 -0
  69. data/_sass/spectre/spectre-exp.scss +16 -0
  70. data/_sass/spectre/spectre-icons.scss +10 -0
  71. data/_sass/spectre/utilities/_colors.scss +29 -0
  72. data/_sass/spectre/utilities/_cursors.scss +24 -0
  73. data/_sass/spectre/utilities/_display.scss +44 -0
  74. data/_sass/spectre/utilities/_divider.scss +50 -0
  75. data/_sass/spectre/utilities/_loading.scss +34 -0
  76. data/_sass/spectre/utilities/_position.scss +50 -0
  77. data/_sass/spectre/utilities/_shapes.scss +8 -0
  78. data/_sass/spectre/utilities/_text.scss +64 -0
  79. data/assets/css/main.scss +18 -0
  80. metadata +212 -0
@@ -0,0 +1,38 @@
1
+ // Accordions
2
+ .accordion {
3
+ input:checked ~,
4
+ &[open] {
5
+ & .accordion-header {
6
+ .icon {
7
+ transform: rotate(90deg);
8
+ }
9
+ }
10
+
11
+ & .accordion-body {
12
+ max-height: 50rem;
13
+ }
14
+ }
15
+
16
+ .accordion-header {
17
+ display: block;
18
+ padding: $unit-1 $unit-2;
19
+
20
+ .icon {
21
+ transition: all .2s ease;
22
+ }
23
+ }
24
+
25
+ .accordion-body {
26
+ margin-bottom: $layout-spacing;
27
+ max-height: 0;
28
+ overflow: hidden;
29
+ transition: max-height .2s ease;
30
+ }
31
+ }
32
+
33
+ // Remove default details marker in Webkit
34
+ summary.accordion-header {
35
+ &::-webkit-details-marker {
36
+ display: none;
37
+ }
38
+ }
@@ -0,0 +1,20 @@
1
+ // Animations
2
+ @keyframes loading {
3
+ 0% {
4
+ transform: rotate(0deg);
5
+ }
6
+ 100% {
7
+ transform: rotate(360deg);
8
+ }
9
+ }
10
+
11
+ @keyframes slide-down {
12
+ 0% {
13
+ opacity: 0;
14
+ transform: translateY(-$unit-8);
15
+ }
16
+ 100% {
17
+ opacity: 1;
18
+ transform: translateY(0);
19
+ }
20
+ }
@@ -0,0 +1,33 @@
1
+ // Optimized for East Asian CJK
2
+ :lang(zh) {
3
+ font-family: $cjk-zh-font-family;
4
+ }
5
+
6
+ :lang(ja) {
7
+ font-family: $cjk-jp-font-family;
8
+ }
9
+
10
+ :lang(ko) {
11
+ font-family: $cjk-ko-font-family;
12
+ }
13
+
14
+ :lang(zh),
15
+ :lang(ja),
16
+ .cjk {
17
+ ins,
18
+ u {
19
+ border-bottom: $border-width solid;
20
+ text-decoration: none;
21
+ }
22
+
23
+ del + del,
24
+ del + s,
25
+ ins + ins,
26
+ ins + u,
27
+ s + del,
28
+ s + s,
29
+ u + ins,
30
+ u + u {
31
+ margin-left: .125em;
32
+ }
33
+ }
@@ -0,0 +1,36 @@
1
+ // Autocomplete
2
+ .form-autocomplete {
3
+ position: relative;
4
+
5
+ .form-autocomplete-input {
6
+ align-content: flex-start;
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ height: auto;
10
+ min-height: $unit-8;
11
+ padding: $unit-h;
12
+
13
+ &.is-focused {
14
+ @include control-shadow();
15
+ border-color: $primary-color;
16
+ }
17
+
18
+ .form-input {
19
+ border-color: transparent;
20
+ box-shadow: none;
21
+ display: inline-block;
22
+ flex: 1 0 auto;
23
+ height: $unit-6;
24
+ line-height: $unit-4;
25
+ margin: $unit-h;
26
+ width: auto;
27
+ }
28
+ }
29
+
30
+ .menu {
31
+ left: 0;
32
+ position: absolute;
33
+ top: 100%;
34
+ width: 100%;
35
+ }
36
+ }
@@ -0,0 +1,77 @@
1
+ // Avatars
2
+ .avatar {
3
+ @include avatar-base();
4
+ background: $primary-color;
5
+ border-radius: 50%;
6
+ color: rgba($light-color, .85);
7
+ display: inline-block;
8
+ font-weight: 300;
9
+ line-height: 1.25;
10
+ margin: 0;
11
+ position: relative;
12
+ vertical-align: middle;
13
+
14
+ &.avatar-xs {
15
+ @include avatar-base($unit-4);
16
+ }
17
+ &.avatar-sm {
18
+ @include avatar-base($unit-6);
19
+ }
20
+ &.avatar-lg {
21
+ @include avatar-base($unit-12);
22
+ }
23
+ &.avatar-xl {
24
+ @include avatar-base($unit-16);
25
+ }
26
+
27
+ img {
28
+ border-radius: 50%;
29
+ height: 100%;
30
+ position: relative;
31
+ width: 100%;
32
+ z-index: $zindex-0;
33
+ }
34
+
35
+ .avatar-icon,
36
+ .avatar-presence {
37
+ background: $bg-color-light;
38
+ bottom: 14.64%;
39
+ height: 50%;
40
+ padding: $border-width-lg;
41
+ position: absolute;
42
+ right: 14.64%;
43
+ transform: translate(50%, 50%);
44
+ width: 50%;
45
+ z-index: $zindex-0 + 1;
46
+ }
47
+
48
+ .avatar-presence {
49
+ background: $gray-color;
50
+ box-shadow: 0 0 0 $border-width-lg $light-color;
51
+ border-radius: 50%;
52
+ height: .5em;
53
+ width: .5em;
54
+
55
+ &.online {
56
+ background: $success-color;
57
+ }
58
+
59
+ &.busy {
60
+ background: $error-color;
61
+ }
62
+
63
+ &.away {
64
+ background: $warning-color;
65
+ }
66
+ }
67
+
68
+ &[data-initial]::before {
69
+ color: currentColor;
70
+ content: attr(data-initial);
71
+ left: 50%;
72
+ position: absolute;
73
+ top: 50%;
74
+ transform: translate(-50%, -50%);
75
+ z-index: $zindex-0;
76
+ }
77
+ }
@@ -0,0 +1,70 @@
1
+ // Badges
2
+ .badge {
3
+ position: relative;
4
+ white-space: nowrap;
5
+
6
+ &[data-badge],
7
+ &:not([data-badge]) {
8
+ &::after {
9
+ background: $primary-color;
10
+ background-clip: padding-box;
11
+ border-radius: .5rem;
12
+ box-shadow: 0 0 0 .1rem $bg-color-light;
13
+ color: $light-color;
14
+ content: attr(data-badge);
15
+ display: inline-block;
16
+ transform: translate(-.1rem, -.5rem);
17
+ }
18
+ }
19
+ &[data-badge] {
20
+ &::after {
21
+ font-size: $font-size-sm;
22
+ height: .9rem;
23
+ line-height: 1;
24
+ min-width: .9rem;
25
+ padding: .1rem .2rem;
26
+ text-align: center;
27
+ white-space: nowrap;
28
+ }
29
+ }
30
+ &:not([data-badge]),
31
+ &[data-badge=""] {
32
+ &::after {
33
+ height: 6px;
34
+ min-width: 6px;
35
+ padding: 0;
36
+ width: 6px;
37
+ }
38
+ }
39
+
40
+ // Badges for Buttons
41
+ &.btn {
42
+ &::after {
43
+ position: absolute;
44
+ top: 0;
45
+ right: 0;
46
+ transform: translate(50%, -50%);
47
+ }
48
+ }
49
+
50
+ // Badges for Avatars
51
+ &.avatar {
52
+ &::after {
53
+ position: absolute;
54
+ top: 14.64%;
55
+ right: 14.64%;
56
+ transform: translate(50%, -50%);
57
+ z-index: $zindex-1;
58
+ }
59
+ }
60
+
61
+ &.avatar-xs {
62
+ &::after {
63
+ content: "";
64
+ height: $unit-2;
65
+ min-width: $unit-2;
66
+ padding: 0;
67
+ width: $unit-2;
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,71 @@
1
+ // Bars
2
+ .bar {
3
+ background: $bg-color-dark;
4
+ border-radius: $border-radius;
5
+ display: flex;
6
+ flex-wrap: nowrap;
7
+ height: $unit-4;
8
+ width: 100%;
9
+
10
+ &.bar-sm {
11
+ height: $unit-1;
12
+ }
13
+
14
+ // TODO: attr() support
15
+ .bar-item {
16
+ background: $primary-color;
17
+ color: $light-color;
18
+ display: block;
19
+ font-size: $font-size-sm;
20
+ flex-shrink: 0;
21
+ line-height: $unit-4;
22
+ height: 100%;
23
+ position: relative;
24
+ text-align: center;
25
+ width: 0;
26
+
27
+ &:first-child {
28
+ border-bottom-left-radius: $border-radius;
29
+ border-top-left-radius: $border-radius;
30
+ }
31
+ &:last-child {
32
+ border-bottom-right-radius: $border-radius;
33
+ border-top-right-radius: $border-radius;
34
+ flex-shrink: 1;
35
+ }
36
+ }
37
+ }
38
+
39
+ // Slider bar
40
+ .bar-slider {
41
+ height: $border-width-lg;
42
+ margin: $layout-spacing 0;
43
+ position: relative;
44
+
45
+ .bar-item {
46
+ left: 0;
47
+ padding: 0;
48
+ position: absolute;
49
+ &:not(:last-child):first-child {
50
+ background: $bg-color-dark;
51
+ z-index: $zindex-0;
52
+ }
53
+ }
54
+
55
+ .bar-slider-btn {
56
+ background: $primary-color;
57
+ border: 0;
58
+ border-radius: 50%;
59
+ height: $unit-3;
60
+ padding: 0;
61
+ position: absolute;
62
+ right: 0;
63
+ top: 50%;
64
+ transform: translate(50%, -50%);
65
+ width: $unit-3;
66
+
67
+ &:active {
68
+ box-shadow: 0 0 0 .1rem $primary-color;
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,40 @@
1
+ // Base
2
+ *,
3
+ *::before,
4
+ *::after {
5
+ box-sizing: inherit;
6
+ }
7
+
8
+ html {
9
+ box-sizing: border-box;
10
+ font-size: $html-font-size;
11
+ line-height: $html-line-height;
12
+ -webkit-tap-highlight-color: transparent;
13
+ }
14
+
15
+ body {
16
+ background: $body-bg;
17
+ color: $body-font-color;
18
+ font-family: $body-font-family;
19
+ font-size: $font-size;
20
+ overflow-x: hidden;
21
+ text-rendering: optimizeLegibility;
22
+ }
23
+
24
+ a {
25
+ color: $link-color;
26
+ outline: none;
27
+ text-decoration: none;
28
+
29
+ &:focus {
30
+ @include control-shadow();
31
+ }
32
+
33
+ &:focus,
34
+ &:hover,
35
+ &:active,
36
+ &.active {
37
+ color: $link-color-dark;
38
+ text-decoration: underline;
39
+ }
40
+ }
@@ -0,0 +1,29 @@
1
+ // Breadcrumbs
2
+ .breadcrumb {
3
+ list-style: none;
4
+ margin: $unit-1 0;
5
+ padding: $unit-1 0;
6
+
7
+ .breadcrumb-item {
8
+ color: $gray-color-dark;
9
+ display: inline-block;
10
+ margin: 0;
11
+ padding: $unit-1 0;
12
+
13
+ &:not(:last-child) {
14
+ margin-right: $unit-1;
15
+
16
+ a {
17
+ color: $gray-color-dark;
18
+ }
19
+ }
20
+
21
+ &:not(:first-child) {
22
+ &::before {
23
+ color: $gray-color-light;
24
+ content: "/";
25
+ padding-right: $unit-1;
26
+ }
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,182 @@
1
+ // Buttons
2
+ .btn {
3
+ @include control-transition();
4
+ appearance: none;
5
+ background: $bg-color-light;
6
+ border: $border-width solid $primary-color;
7
+ border-radius: $border-radius;
8
+ color: $primary-color;
9
+ cursor: pointer;
10
+ display: inline-block;
11
+ font-size: $font-size;
12
+ height: $control-size;
13
+ line-height: $line-height;
14
+ outline: none;
15
+ padding: $control-padding-y $control-padding-x;
16
+ text-align: center;
17
+ text-decoration: none;
18
+ user-select: none;
19
+ vertical-align: middle;
20
+ white-space: nowrap;
21
+ &:focus {
22
+ @include control-shadow();
23
+ }
24
+ &:focus,
25
+ &:hover {
26
+ background: $secondary-color;
27
+ border-color: $primary-color-dark;
28
+ text-decoration: none;
29
+ }
30
+ &:active,
31
+ &.active {
32
+ background: $primary-color-dark;
33
+ border-color: darken($primary-color-dark, 5%);
34
+ color: $light-color;
35
+ text-decoration: none;
36
+ &.loading {
37
+ &::after {
38
+ border-bottom-color: $light-color;
39
+ border-left-color: $light-color;
40
+ }
41
+ }
42
+ }
43
+ &[disabled],
44
+ &:disabled,
45
+ &.disabled {
46
+ cursor: default;
47
+ opacity: .5;
48
+ pointer-events: none;
49
+ }
50
+
51
+ // Button Primary
52
+ &.btn-primary {
53
+ background: $primary-color;
54
+ border-color: $primary-color-dark;
55
+ color: $light-color;
56
+ &:focus,
57
+ &:hover {
58
+ background: darken($primary-color-dark, 2%);
59
+ border-color: darken($primary-color-dark, 5%);
60
+ color: $light-color;
61
+ }
62
+ &:active,
63
+ &.active {
64
+ background: darken($primary-color-dark, 4%);
65
+ border-color: darken($primary-color-dark, 7%);
66
+ color: $light-color;
67
+ }
68
+ &.loading {
69
+ &::after {
70
+ border-bottom-color: $light-color;
71
+ border-left-color: $light-color;
72
+ }
73
+ }
74
+ }
75
+
76
+ // Button Link
77
+ &.btn-link {
78
+ background: transparent;
79
+ border-color: transparent;
80
+ color: $link-color;
81
+ &:focus,
82
+ &:hover,
83
+ &:active,
84
+ &.active {
85
+ color: $link-color-dark;
86
+ }
87
+ }
88
+
89
+ // Button Sizes
90
+ &.btn-sm {
91
+ font-size: $font-size-sm;
92
+ height: $control-size-sm;
93
+ padding: $control-padding-y-sm $control-padding-x-sm;
94
+ }
95
+
96
+ &.btn-lg {
97
+ font-size: $font-size-lg;
98
+ height: $control-size-lg;
99
+ padding: $control-padding-y-lg $control-padding-x-lg;
100
+ }
101
+
102
+ // Button Block
103
+ &.btn-block {
104
+ display: block;
105
+ width: 100%;
106
+ }
107
+
108
+ // Button Action
109
+ &.btn-action {
110
+ width: $control-size;
111
+ padding-left: 0;
112
+ padding-right: 0;
113
+
114
+ &.btn-sm {
115
+ width: $control-size-sm;
116
+ }
117
+
118
+ &.btn-lg {
119
+ width: $control-size-lg;
120
+ }
121
+ }
122
+
123
+ // Button Clear
124
+ &.btn-clear {
125
+ background: transparent;
126
+ border: 0;
127
+ color: currentColor;
128
+ height: $unit-4;
129
+ line-height: $unit-4;
130
+ margin-left: $unit-1;
131
+ margin-right: -2px;
132
+ opacity: 1;
133
+ padding: 0;
134
+ text-decoration: none;
135
+ width: $unit-4;
136
+
137
+ &:hover {
138
+ opacity: .95;
139
+ }
140
+
141
+ &::before {
142
+ content: "\2715";
143
+ }
144
+ }
145
+ }
146
+
147
+ // Button groups
148
+ .btn-group {
149
+ display: inline-flex;
150
+ flex-wrap: wrap;
151
+
152
+ .btn {
153
+ flex: 1 0 auto;
154
+ &:first-child:not(:last-child) {
155
+ border-bottom-right-radius: 0;
156
+ border-top-right-radius: 0;
157
+ }
158
+ &:not(:first-child):not(:last-child) {
159
+ border-radius: 0;
160
+ margin-left: -$border-width;
161
+ }
162
+ &:last-child:not(:first-child) {
163
+ border-bottom-left-radius: 0;
164
+ border-top-left-radius: 0;
165
+ margin-left: -$border-width;
166
+ }
167
+ &:focus,
168
+ &:hover,
169
+ &:active,
170
+ &.active {
171
+ z-index: $zindex-0;
172
+ }
173
+ }
174
+
175
+ &.btn-group-block {
176
+ display: flex;
177
+
178
+ .btn {
179
+ flex: 1 0 0;
180
+ }
181
+ }
182
+ }