jekyll-theme-basically-basic 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -1
  3. data/README.md +233 -73
  4. data/_includes/scripts.html +12 -1
  5. data/_includes/search-form.html +13 -0
  6. data/_includes/search/algolia-search-scripts.html +52 -0
  7. data/_includes/search/lunr-search-scripts.html +106 -0
  8. data/_layouts/default.html +18 -3
  9. data/_sass/basically-basic.scss +2 -1
  10. data/_sass/basically-basic/_base.scss +5 -5
  11. data/_sass/basically-basic/_global.scss +5 -1
  12. data/_sass/basically-basic/_navicons.scss +148 -125
  13. data/_sass/basically-basic/_search.scss +101 -0
  14. data/_sass/basically-basic/_sidebar.scss +166 -142
  15. data/_sass/basically-basic/_syntax-highlighting.scss +6 -0
  16. data/_sass/basically-basic/_utilities.scss +6 -5
  17. data/_sass/basically-basic/utilities/_visibility.scss +32 -0
  18. data/assets/javascripts/lunr/lunr.da.min.js +18 -0
  19. data/assets/javascripts/lunr/lunr.de.min.js +18 -0
  20. data/assets/javascripts/lunr/lunr.du.min.js +18 -0
  21. data/assets/javascripts/lunr/lunr.es.min.js +18 -0
  22. data/assets/javascripts/lunr/lunr.fi.min.js +18 -0
  23. data/assets/javascripts/lunr/lunr.fr.min.js +18 -0
  24. data/assets/javascripts/lunr/lunr.hu.min.js +18 -0
  25. data/assets/javascripts/lunr/lunr.it.min.js +18 -0
  26. data/assets/javascripts/lunr/lunr.ja.min.js +1 -0
  27. data/assets/javascripts/lunr/lunr.jp.min.js +1 -0
  28. data/assets/javascripts/lunr/lunr.min.js +6 -0
  29. data/assets/javascripts/lunr/lunr.multi.min.js +1 -0
  30. data/assets/javascripts/lunr/lunr.no.min.js +18 -0
  31. data/assets/javascripts/lunr/lunr.pt.min.js +18 -0
  32. data/assets/javascripts/lunr/lunr.ro.min.js +18 -0
  33. data/assets/javascripts/lunr/lunr.ru.min.js +18 -0
  34. data/assets/javascripts/lunr/lunr.stemmer.support.min.js +1 -0
  35. data/assets/javascripts/lunr/lunr.sv.min.js +18 -0
  36. data/assets/javascripts/lunr/lunr.tr.min.js +18 -0
  37. data/assets/javascripts/main.js +11 -1
  38. data/assets/javascripts/search-data.json +27 -0
  39. metadata +27 -2
@@ -0,0 +1,101 @@
1
+ /* ==========================================================================
2
+ SEARCH
3
+ ========================================================================== */
4
+
5
+ .search-toggle {
6
+ margin-left: 1rem;
7
+ margin-right: 1rem;
8
+ border: 0;
9
+ outline: none;
10
+ background-color: transparent;
11
+ cursor: pointer;
12
+ -webkit-transition: 0.2s;
13
+ transition: 0.2s;
14
+
15
+ .icon {
16
+ @include fluid-type($min-vw, $max-vw, 20px, 24px);
17
+ fill: $navicon-content-bg;
18
+ }
19
+ }
20
+
21
+ .search-content {
22
+ display: none;
23
+ visibility: hidden;
24
+ padding-top: 1em;
25
+ padding-bottom: 1em;
26
+
27
+ .inner {
28
+ padding: 0 0.5rem;
29
+
30
+ @include breakpoint($small) {
31
+ padding-right: 1rem;
32
+ padding-left: 1rem;
33
+ }
34
+
35
+ @include breakpoint($medium) {
36
+ padding-right: 2rem;
37
+ padding-left: 2rem;
38
+ }
39
+
40
+ @include breakpoint($large) {
41
+ padding-right: 3rem;
42
+ padding-left: 3rem;
43
+ }
44
+
45
+ @include breakpoint($xlarge) {
46
+ padding-right: 4rem;
47
+ padding-left: 4rem;
48
+ }
49
+ }
50
+
51
+ .entry-excerpt {
52
+ p {
53
+ margin-bottom: 0;
54
+ }
55
+ }
56
+
57
+ .search-input {
58
+ display: block;
59
+ margin-bottom: 0;
60
+ padding: 0;
61
+ border: none;
62
+ outline: none;
63
+ -webkit-box-shadow: none;
64
+ box-shadow: none;
65
+ background-color: transparent;
66
+ @include fluid-type($min-vw, $max-vw, 24px, 32px);
67
+ }
68
+
69
+ &.is--visible::after {
70
+ content: "";
71
+ display: block;
72
+ }
73
+
74
+ .results-found {
75
+ margin-top: 0.5em;
76
+ }
77
+ }
78
+
79
+ /* Algolia search */
80
+
81
+ .ais-hits {
82
+ .entry {
83
+ border-bottom: 1px solid $border-color;
84
+ }
85
+ }
86
+
87
+ .ais-search-box {
88
+ max-width: 100% !important;
89
+ margin-bottom: 2em;
90
+ }
91
+
92
+ .entry-title .ais-Highlight {
93
+ color: $accent-color;
94
+ font-style: normal;
95
+ text-decoration: underline;
96
+ }
97
+ .entry-excerpt .ais-Highlight {
98
+ color: $accent-color;
99
+ font-style: normal;
100
+ font-weight: bold;
101
+ }
@@ -1,142 +1,166 @@
1
- /* ==========================================================================
2
- Sidebar
3
- ========================================================================== */
4
-
5
- .sidebar {
6
- position: fixed;
7
- top: 0;
8
- left: 0;
9
- width: 100%;
10
- max-width: $sidebar-width;
11
- height: 100%;
12
- z-index: 50;
13
- visibility: hidden;
14
- -webkit-transition: visibility 0s 0.3s;
15
- transition: visibility 0s 0.3s;
16
-
17
- @include breakpoint($large) {
18
- max-width: (1.5 * $sidebar-width);
19
- }
20
-
21
- &.is--visible {
22
- visibility: visible;
23
- -webkit-transition: visibility 0s 0s;
24
- transition: visibility 0s 0s;
25
- }
26
-
27
- li {
28
- transform: translateX(-1rem);
29
- transition: all 0.5s;
30
- opacity: 0;
31
-
32
- &.is--moved {
33
- transform: translateX(0);
34
- opacity: 1;
35
- }
36
-
37
- /* line hover effect */
38
- a {
39
- position: relative;
40
- color: $base-color;
41
-
42
- &::before {
43
- display: block;
44
- position: absolute;
45
- top: 50%;
46
- left: -3rem;
47
- width: 0;
48
- height: 1px;
49
- transition: width 0.3s cubic-bezier(0, 0, 0.3, 1);
50
- background-color: $base-color;
51
- content: "";
52
- }
53
-
54
- &:hover {
55
- color: $accent-color;
56
- }
57
-
58
- &:hover::before {
59
- width: 2.5rem;
60
- }
61
- }
62
- }
63
-
64
- > .inner {
65
- width: 100%;
66
- height: 100%;
67
- padding: 1.5em;
68
- background-color: $sidebar-background-color;
69
- overflow-x: hidden;
70
- box-shadow: inset -1em 0 5em 0 rgba(0, 0, 0, 0.125);
71
-
72
- @include breakpoint($medium) {
73
- padding: 3rem;
74
- }
75
- }
76
-
77
- .menu {
78
- @include fluid-type($min-vw, $max-vw, 24px, 48px);
79
- position: relative;
80
- margin-bottom: 1.5rem;
81
- padding-bottom: 0.5rem;
82
- font-weight: bold;
83
- line-height: 1;
84
-
85
- a {
86
- display: block;
87
- }
88
-
89
- /* divider line */
90
- &::after {
91
- position: absolute;
92
- bottom: 0;
93
- width: 1.5em;
94
- height: 1px;
95
- background-color: $base-color;
96
- content: "";
97
- }
98
-
99
- li {
100
- margin-bottom: 1.5rem;
101
- }
102
- }
103
-
104
- .contact-list {
105
- @include fluid-type($min-vw, $max-vw, 18px, 24px);
106
- margin-top: 0.5rem;
107
- padding-top: 0.5rem;
108
-
109
- li:not(:last-child) {
110
- margin-bottom: 0.5rem;
111
- }
112
-
113
- a {
114
- display: block;
115
- color: $base-color;
116
- text-decoration: none;
117
- }
118
- }
119
- }
120
-
121
- .sidebar-toggle-wrapper {
122
- position: fixed;
123
- top: 0.675rem;
124
- right: 0;
125
- cursor: pointer;
126
- z-index: 10000;
127
-
128
- .toggle-inner {
129
- display: -ms-flexbox;
130
- display: flex;
131
- -ms-flex-align: center;
132
- align-items: center;
133
- }
134
- }
135
-
136
- .sidebar-toggle-label {
137
- -ms-flex-order: 2;
138
- order: 2;
139
- margin-left: 0.5rem;
140
- font-weight: bold;
141
- color: $text-color;
142
- }
1
+ /* ==========================================================================
2
+ Sidebar
3
+ ========================================================================== */
4
+
5
+ .sidebar {
6
+ position: fixed;
7
+ top: 0;
8
+ left: 0;
9
+ width: 100%;
10
+ max-width: $sidebar-width;
11
+ height: 100%;
12
+ z-index: 50;
13
+ visibility: hidden;
14
+ -webkit-transition: visibility 0s 0.3s;
15
+ transition: visibility 0s 0.3s;
16
+
17
+ @include breakpoint($large) {
18
+ max-width: (1.5 * $sidebar-width);
19
+ }
20
+
21
+ &.is--visible {
22
+ visibility: visible;
23
+ -webkit-transition: visibility 0s 0s;
24
+ transition: visibility 0s 0s;
25
+ }
26
+
27
+ li {
28
+ -webkit-transform: translateX(-1rem);
29
+ -ms-transform: translateX(-1rem);
30
+ transform: translateX(-1rem);
31
+ -webkit-transition: all 0.5s;
32
+ transition: all 0.5s;
33
+ opacity: 0;
34
+
35
+ &.is--moved {
36
+ -webkit-transform: translateX(0);
37
+ -ms-transform: translateX(0);
38
+ transform: translateX(0);
39
+ opacity: 1;
40
+ }
41
+
42
+ /* line hover effect */
43
+ a {
44
+ position: relative;
45
+ color: $base-color;
46
+
47
+ &::before {
48
+ display: block;
49
+ position: absolute;
50
+ top: 50%;
51
+ left: -3rem;
52
+ width: 0;
53
+ height: 1px;
54
+ -webkit-transition: width 0.3s cubic-bezier(0, 0, 0.3, 1);
55
+ transition: width 0.3s cubic-bezier(0, 0, 0.3, 1);
56
+ background-color: $base-color;
57
+ content: "";
58
+ }
59
+
60
+ &:hover {
61
+ color: $accent-color;
62
+ }
63
+
64
+ &:hover::before {
65
+ width: 2.5rem;
66
+ }
67
+ }
68
+ }
69
+
70
+ > .inner {
71
+ width: 100%;
72
+ height: 100%;
73
+ padding: 1.5em;
74
+ background-color: $sidebar-background-color;
75
+ overflow-x: hidden;
76
+ -webkit-box-shadow: inset -1em 0 5em 0 rgba(0, 0, 0, 0.125);
77
+ box-shadow: inset -1em 0 5em 0 rgba(0, 0, 0, 0.125);
78
+
79
+ @include breakpoint($medium) {
80
+ padding: 3rem;
81
+ }
82
+ }
83
+
84
+ .menu {
85
+ @include fluid-type($min-vw, $max-vw, 24px, 48px);
86
+ position: relative;
87
+ margin-bottom: 1.5rem;
88
+ padding-bottom: 0.5rem;
89
+ font-weight: bold;
90
+ line-height: 1;
91
+
92
+ a {
93
+ display: block;
94
+ }
95
+
96
+ /* divider line */
97
+ &::after {
98
+ position: absolute;
99
+ bottom: 0;
100
+ width: 1.5em;
101
+ height: 1px;
102
+ background-color: $base-color;
103
+ content: "";
104
+ }
105
+
106
+ li {
107
+ margin-bottom: 1.5rem;
108
+ }
109
+ }
110
+
111
+ .contact-list {
112
+ @include fluid-type($min-vw, $max-vw, 18px, 24px);
113
+ margin-top: 0.5rem;
114
+ padding-top: 0.5rem;
115
+
116
+ li:not(:last-child) {
117
+ margin-bottom: 0.5rem;
118
+ }
119
+
120
+ a {
121
+ display: block;
122
+ color: $base-color;
123
+ text-decoration: none;
124
+ }
125
+ }
126
+ }
127
+
128
+ .sidebar-toggle-wrapper {
129
+ position: absolute;
130
+ display: -webkit-box;
131
+ display: -ms-flexbox;
132
+ display: flex;
133
+ -webkit-box-align: center;
134
+ -ms-flex-align: center;
135
+ align-items: center;
136
+ top: 0;
137
+ right: 0;
138
+ margin: 1.8125rem 0;
139
+ padding-right: 1rem;
140
+ background-color: $background-color;
141
+ z-index: 10000;
142
+
143
+ @include breakpoint($medium) {
144
+ right: 2rem;
145
+ padding-right: 0;
146
+ }
147
+
148
+ @include breakpoint($large) {
149
+ right: 5vw;
150
+ }
151
+
152
+ .toggle-inner {
153
+ display: -ms-flexbox;
154
+ display: -webkit-box;
155
+ display: flex;
156
+ -ms-flex-align: center;
157
+ -webkit-box-align: center;
158
+ align-items: center;
159
+ }
160
+ }
161
+
162
+ .sidebar-toggle-label {
163
+ margin-left: 0.5rem;
164
+ font-weight: bold;
165
+ color: $text-color;
166
+ }
@@ -312,3 +312,9 @@ figure.highlight {
312
312
  color: $base09;
313
313
  }
314
314
  }
315
+
316
+ .gist {
317
+ th, td {
318
+ border-bottom: 0;
319
+ }
320
+ }
@@ -1,5 +1,6 @@
1
- @import 'utilities/accessibility';
2
- @import 'utilities/align';
3
- @import 'utilities/clearfix';
4
- @import 'utilities/float';
5
- @import 'utilities/text';
1
+ @import "utilities/accessibility";
2
+ @import "utilities/align";
3
+ @import "utilities/clearfix";
4
+ @import "utilities/float";
5
+ @import "utilities/text";
6
+ @import "utilities/visibility";
@@ -0,0 +1,32 @@
1
+ /* ==========================================================================
2
+ Visibility
3
+ ========================================================================== */
4
+
5
+ /* http://www.456bereastreet.com/archive/200711/screen_readers_sometimes_ignore_displaynone/ */
6
+
7
+ .is--hidden {
8
+ display: none;
9
+ visibility: hidden;
10
+ }
11
+
12
+ .is--visible {
13
+ display: block;
14
+ visibility: visible;
15
+ }
16
+
17
+ /* https://developer.yahoo.com/blogs/ydn/clip-hidden-content-better-accessibility-53456.html */
18
+
19
+ .visually-hidden {
20
+ position: absolute !important;
21
+ clip: rect(1px, 1px, 1px, 1px);
22
+ height: 1px !important;
23
+ width: 1px !important;
24
+ border: 0 !important;
25
+ overflow: hidden;
26
+ }
27
+
28
+ body:hover .visually-hidden a,
29
+ body:hover .visually-hidden input,
30
+ body:hover .visually-hidden button {
31
+ display: none !important;
32
+ }