bajawa 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +173 -0
  4. data/_includes/foot.html +1 -0
  5. data/_includes/footer.html +7 -0
  6. data/_includes/head.html +104 -0
  7. data/_includes/header.html +3 -0
  8. data/_includes/hero.html +11 -0
  9. data/_includes/lunr-search.html +61 -0
  10. data/_includes/navbar.html +17 -0
  11. data/_includes/pagination.html +21 -0
  12. data/_includes/post-author.html +0 -0
  13. data/_includes/post-share.html +0 -0
  14. data/_includes/recentposts.html +24 -0
  15. data/_layouts/compress.html +11 -0
  16. data/_layouts/default.html +12 -0
  17. data/_layouts/defhero.html +12 -0
  18. data/_layouts/page.html +23 -0
  19. data/_layouts/post.html +22 -0
  20. data/_sass/bajawa/_variables.scss +55 -0
  21. data/_sass/bajawa/buttons.scss +0 -0
  22. data/_sass/bajawa/forms.scss +0 -0
  23. data/_sass/bajawa/images.scss +21 -0
  24. data/_sass/bajawa/layout.scss +323 -0
  25. data/_sass/bajawa/lists.scss +0 -0
  26. data/_sass/bajawa/media.scss +77 -0
  27. data/_sass/bajawa/reset.scss +54 -0
  28. data/_sass/bajawa/syntax-highlighting.scss +1 -0
  29. data/_sass/bajawa/tables.scss +0 -0
  30. data/_sass/bajawa/typography.scss +249 -0
  31. data/_sass/bajawa.scss +24 -0
  32. data/assets/android-chrome-192x192.png +0 -0
  33. data/assets/android-chrome-512x512.png +0 -0
  34. data/assets/apple-touch-icon.png +0 -0
  35. data/assets/css/style.scss +4 -0
  36. data/assets/favicon-16x16.png +0 -0
  37. data/assets/favicon-32x32.png +0 -0
  38. data/assets/favicon.ico +0 -0
  39. data/assets/images/bajawa.png +0 -0
  40. data/assets/images/bajawapreview.jpg +0 -0
  41. data/assets/images/heroimg.jpg +0 -0
  42. data/assets/images/janedoe.jpg +0 -0
  43. data/assets/images/testimage.jpg +0 -0
  44. data/assets/js/lunr.js +2977 -0
  45. data/assets/js/menures.js +8 -0
  46. data/assets/site.webmanifest +1 -0
  47. metadata +228 -0
@@ -0,0 +1,323 @@
1
+ /** Main Container or Wrapper **/
2
+ * {
3
+ &,
4
+ &:before,
5
+ &:after {
6
+ box-sizing: border-box;
7
+ }
8
+ }
9
+
10
+ html, body {
11
+ width: 100%;
12
+ height: 100%;
13
+ margin: 0;
14
+ padding: 0;
15
+ }
16
+
17
+ body {
18
+ background-color: $base-bg-color;
19
+ }
20
+
21
+ hr {
22
+ border-top: none;
23
+ border-bottom: 2px solid lighten($light-grey, 7%);
24
+ width: 100%;
25
+ margin: $small-spacing 0;
26
+ }
27
+
28
+ /** CSS MAIN **/
29
+ .wrapper-all {
30
+ padding: 0;
31
+ margin: 0;
32
+ background-color: transparent;
33
+
34
+ /** Header and Navbar **/
35
+ .site-header {
36
+ border-bottom: 1px solid lighten($light-berry, 20%);
37
+ margin: 0 auto 0 auto;
38
+ height: 100px;
39
+
40
+ .navbar {
41
+ height: 100px;
42
+ max-width: $maxwidth;
43
+ margin: 0 auto 0 auto;
44
+
45
+ .logo-container {
46
+ float: left;
47
+ padding: $base-spacing;
48
+ margin: 0 auto 0 auto;
49
+
50
+ .logo-left {
51
+ letter-spacing: 2px;
52
+ cursor: pointer;
53
+ line-height: 14px;
54
+ }
55
+ }
56
+
57
+ .nav-container {
58
+ padding: $base-spacing;
59
+ margin: 0.5em auto 0.75em auto;
60
+ float: right;
61
+
62
+ .navbar-right {
63
+ overflow: hidden;
64
+
65
+ a {
66
+ float: left;
67
+ display: block;
68
+ margin: 0.3em 0 0 0;
69
+ padding: 0;
70
+ pointer-events: all;
71
+ cursor: pointer;
72
+ text-align: center;
73
+ }
74
+ a:link {
75
+ color: $dark-berry;
76
+ }
77
+ a:visited {
78
+ color: $dark-berry;
79
+ }
80
+ a:hover {
81
+ color: $light-berry;
82
+ }
83
+ a:active {
84
+ color: $light-berry;
85
+ }
86
+ li {
87
+ display: inline-block;
88
+ padding: 0.6em;
89
+ }
90
+ .icon {
91
+ display: none;
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ /** Front Page Layout **/
99
+ /** 1. Hero Image **/
100
+ .main-content-front {
101
+ padding: 0 0 80px 0;
102
+ margin: 0;
103
+ height: calc(100% - 100px - 100px); //total height minus header minus footer
104
+
105
+
106
+ .hero-wrapper {
107
+ padding: 0;
108
+ margin: 0 ;
109
+ height: 50%;
110
+ background-color: $light-grey;
111
+
112
+ .hero-wrapper-container {
113
+ padding: 0;
114
+ margin: 0;
115
+
116
+ .hero-img {
117
+ /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
118
+ background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("/assets/images/heroimg.jpg");
119
+ height: 400px; /* Set a specific height */
120
+ background-color: $light-grey;
121
+ display: block;
122
+ /* Position and center the image to scale nicely on all screens */
123
+ position: relative;
124
+ background-position: center;
125
+ background-repeat: no-repeat;
126
+ background-size: cover;
127
+ }
128
+
129
+ .hero-text {
130
+ text-align: center;
131
+ position: absolute;
132
+ margin-top: 5px;
133
+ margin-bottom: 5px;
134
+ top: 40%;
135
+ left: 50%;
136
+ transform: translate(-50%, -50%);
137
+ }
138
+
139
+ /* Place text in the middle of the image */
140
+ a.button {
141
+ font-size: $base-font-size;
142
+ border: 2px solid $white;
143
+ border-color: $white;
144
+ outline: 0;
145
+ display: inline-block;
146
+ margin-top: 5px;
147
+ padding: 10px 25px;
148
+ color: $white;
149
+ background-color: transparent;
150
+ text-align: center;
151
+ cursor: pointer;
152
+ }
153
+
154
+ a.button:hover {
155
+ background-color: $white;
156
+ color: $black;
157
+ }
158
+ }
159
+ }
160
+
161
+ /** 2. Recent Post **/
162
+ .recent-post-wrapper {
163
+ padding: 0;
164
+ margin: 0;
165
+
166
+ .recent-post-container {
167
+ margin: $base-spacing auto $base-spacing auto;
168
+ max-width: $maxwidth;
169
+
170
+ .section-title {
171
+ padding: 0;
172
+ margin: 1em*2 auto 1em auto;
173
+ }
174
+ .post-entry-grid {
175
+ padding-top: $base-spacing;
176
+ display: grid;
177
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
178
+ grid-gap: 2em;
179
+
180
+ .entry-flex {
181
+ display: flex;
182
+ flex-direction: column;
183
+ padding-bottom: $base-spacing/2;
184
+ }
185
+ }
186
+ .button-post {
187
+ width: 100%;
188
+ margin-left: auto;
189
+ margin-right: auto;
190
+ text-align: center;
191
+
192
+ a.button {
193
+ font-size: $base-font-size;
194
+ border: 2px solid $dark-berry;
195
+ border-color: $dark-berry;
196
+ outline: 0;
197
+ display: inline-block;
198
+ margin: 5px auto 5px auto;
199
+ padding: 10px 25px;
200
+ color: $dark-berry;
201
+ background-color: transparent;
202
+ text-align: center;
203
+ cursor: pointer;
204
+ }
205
+
206
+ a.button:hover {
207
+ background-color: $dark-berry;
208
+ color: $white;
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+
215
+ /*** Post Layout ***/
216
+ .post-wrapper {
217
+ max-width: $maxwidth;
218
+ margin: $base-spacing auto $base-spacing auto;
219
+ padding: $base-spacing;
220
+ height: calc(100% - 100px - 100px); //total height minus header and footer
221
+
222
+ .post-header {
223
+ height: 80px;
224
+ margin: $base-spacing 0 $base-spacing 0;
225
+ }
226
+
227
+ .post-content {
228
+ margin: $base-spacing 0 $base-spacing 0;
229
+ color: $dark-grey;
230
+ }
231
+
232
+ .post-content hr {
233
+ display: block;
234
+ margin: 1em auto 1em auto;
235
+ border-style: double;
236
+ border-width: 2px;
237
+ color: $dark-berry;
238
+ }
239
+ }
240
+
241
+ /*** Page Layout ***/
242
+ .page-container {
243
+ height: calc(100% - 100px - 100px); //total height minus header minus footer
244
+
245
+ .page-wrapper {
246
+ max-width: $maxwidth;
247
+ margin-left: auto;
248
+ margin-right: auto;
249
+ padding: $base-spacing;
250
+
251
+ .page-header {
252
+ height: 80px;
253
+ margin: 2em 0 2em 0;
254
+ }
255
+
256
+ .page-content {
257
+ margin: $base-spacing 0 $base-spacing 0;
258
+ color: $dark-grey;
259
+
260
+ //LUNR Search settings under page content
261
+ .form-control {
262
+ border: 2px solid $medium-grey;
263
+ border-radius: 4px;
264
+ width: 100%;
265
+ box-sizing: border-box;
266
+ padding: 12px 20px;
267
+ font-style: $base-font-size;
268
+ font-size: 14px;
269
+ }
270
+ #lunrsearchresults {
271
+ padding-top: 0.2rem;
272
+ }
273
+ .lunrsearchresult {padding-bottom: 1rem;}
274
+ .lunrsearchresult .title {color: $dark-berry; font-family: $alternate-font-type;}
275
+ .lunrsearchresult .url {color: $medium-grey;}
276
+ .lunrsearchresult .url a:hover {color: $light-berry;}
277
+ .lunrsearchresult a {display: block; color: $dark-grey;}
278
+ .lunrsearchresult a:hover, .lunrsearchresult a:focus {text-decoration: none;}
279
+ .lunrsearchresult a:hover .title {text-decoration: underline;}
280
+ }
281
+
282
+ /** Only for Pagination and Blog Page only **/
283
+ .blogpost-title li {
284
+ list-style: none;
285
+ }
286
+ .pagination a, .pagination span {
287
+ padding: 7px 18px;
288
+ border: 1px solid #eee;
289
+ margin-left: -2px;
290
+ margin-right: -2px;
291
+ background-color: #ffffff;
292
+ display: inline-block;
293
+ font-size: 12px;
294
+ }
295
+ .pagination a {
296
+ &:hover {
297
+ background-color: #f1f1f1;
298
+ color: #333;
299
+ }
300
+ }
301
+ .pagination {
302
+ text-align: center;
303
+ margin-top: 2.5em;
304
+ }
305
+ }
306
+ }
307
+
308
+ /** Footer **/
309
+ .site-footer {
310
+ border-top: 1px solid $light-grey;
311
+ width: 100%;
312
+ height: 100px;
313
+ position: relative;
314
+
315
+ .footer-container {
316
+ padding: $base-spacing;
317
+ margin: auto;
318
+ height: 100px;
319
+ text-align: center;
320
+ vertical-align: middle;
321
+ }
322
+ }
323
+ }
File without changes
@@ -0,0 +1,77 @@
1
+ /** Media Responsiveness **/
2
+ @media screen and (max-width: 600px) {
3
+ .navbar-right a:not(:first-child) {
4
+ display: none;
5
+ }
6
+ .navbar-right a.icon {
7
+ float: right;
8
+ display: block;
9
+ font-size: 1em*2;
10
+ }
11
+ .hero-img {
12
+ height: 400px;
13
+ }
14
+ }
15
+
16
+ @media screen and (max-width: 600px) {
17
+ .navbar-right.responsive {
18
+ position: relative;
19
+ }
20
+ .navbar-right.responsive .icon {
21
+ position: absolute;
22
+ right: 0;
23
+ top: 0;
24
+ }
25
+ .navbar-right.responsive a {
26
+ float: none;
27
+ display: block;
28
+ text-align: left;
29
+ }
30
+ }
31
+
32
+ @media screen and (min-width: 360px) {
33
+ .recent-post-wrapper {
34
+ width: 100%;
35
+
36
+ .recent-post-container {
37
+ margin: 0 auto 0 auto;
38
+
39
+ .post-entry-grid {
40
+ margin: 0 $base-spacing 0 $base-spacing;
41
+
42
+ .entry-flex {
43
+ padding-bottom: $base-spacing;
44
+ }
45
+ }
46
+ }
47
+ .button-post {
48
+ margin-left: 30%;
49
+ margin-right: 30%;
50
+ text-align: center;
51
+ }
52
+ }
53
+ .page-wrapper {
54
+ width: 100%;
55
+
56
+ .page-header {
57
+ height: 100px;
58
+ margin: 2em auto 2em auto;
59
+ }
60
+ }
61
+ .post-wrapper {
62
+ .post-header {
63
+ margin: 1em auto 1em auto;
64
+ height: 100px;
65
+
66
+ .post-title {
67
+ font-size: 20px;
68
+ }
69
+ .post-meta {
70
+ margin: 0;
71
+ }
72
+ }
73
+ .post-content {
74
+ margin: $base-spacing*2 auto $base-spacing*2 auto;
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,54 @@
1
+ /* http://meyerweb.com/eric/tools/css/reset/
2
+ v2.0 | 20110126
3
+ License: none (public domain)
4
+ */
5
+
6
+ html, body, div, span, applet, object, iframe,
7
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
8
+ a, abbr, acronym, address, big, cite, code,
9
+ del, dfn, em, img, ins, kbd, q, s, samp,
10
+ small, strike, strong, sub, sup, tt, var,
11
+ b, u, i, center,
12
+ dl, dt, dd, ol, ul, li,
13
+ fieldset, form, label, legend,
14
+ table, caption, tbody, tfoot, thead, tr, th, td,
15
+ article, aside, canvas, details, embed,
16
+ figure, figcaption, footer, header, hgroup,
17
+ menu, nav, output, ruby, section, summary,
18
+ time, mark, audio, video {
19
+ margin: 0;
20
+ padding: 0;
21
+ border: 0;
22
+ font-size: 100%;
23
+ font: inherit;
24
+ vertical-align: baseline;
25
+ }
26
+
27
+ /* HTML5 display-role reset for older browsers */
28
+ article, aside, details, figcaption, figure,
29
+ footer, header, hgroup, menu, nav, section {
30
+ display: block;
31
+ }
32
+
33
+ body {
34
+ line-height: 1;
35
+ }
36
+
37
+ ol, ul {
38
+ list-style: none;
39
+ }
40
+
41
+ blockquote, q {
42
+ quotes: none;
43
+ }
44
+
45
+ blockquote:before, blockquote:after,
46
+ q:before, q:after {
47
+ content: '';
48
+ content: none;
49
+ }
50
+
51
+ table {
52
+ border-collapse: collapse;
53
+ border-spacing: 0;
54
+ }
@@ -0,0 +1 @@
1
+ /** Syntax Highlighting **/
File without changes
@@ -0,0 +1,249 @@
1
+ body {
2
+ color: $base-font-color;
3
+ font-family: $base-font-type;
4
+ //font-feature-settings: "kern", "liga", "pnum";
5
+ font-size: $base-font-size;
6
+ line-height: $base-line-height;
7
+ }
8
+
9
+ h1,
10
+ h2,
11
+ h3,
12
+ h4,
13
+ h5,
14
+ h6 {
15
+ font-family: $heading-font-type;
16
+ font-size: $base-font-size;
17
+ line-height: $heading-line-height;
18
+ margin: $small-spacing 0 $small-spacing 0;
19
+ font-weight: 700;
20
+ }
21
+
22
+ h1 {
23
+ font-size: rem(30);
24
+ }
25
+
26
+ h2 {
27
+ font-size: rem(26);
28
+ }
29
+
30
+ h3 {
31
+ font-size: rem(24);
32
+ }
33
+
34
+ h4 {
35
+ font-size: rem(20);
36
+ }
37
+
38
+ h5,
39
+ h6 {
40
+ font-size: rem(16);
41
+ }
42
+
43
+ /** Fonts Awesome **/
44
+ i.fa {
45
+ color: $dark-berry;
46
+ }
47
+
48
+ /** Site Header **/
49
+ h1.logo-left {
50
+ font-size: 24px;
51
+ font-weight: 400;
52
+ }
53
+
54
+ .navbar-right {
55
+ li {
56
+ font-family: $alternate-font-type;
57
+ font-size: 14px;
58
+ }
59
+ }
60
+
61
+ /** Hero Image **/
62
+ .hero-text {
63
+ font-family: $base-font-type;
64
+ color: $white;
65
+ }
66
+
67
+ .hero-title {
68
+ font-size: $page-title;
69
+ font-weight: normal;
70
+ }
71
+
72
+ .hero-desc {
73
+ font-family: $base-font-type;
74
+ font-weight: 400;
75
+ }
76
+
77
+ /** Front Page Recent Post **/
78
+ .recent-post-container {
79
+ .section-title {
80
+ text-align: center;
81
+ font-weight: normal;
82
+ font-size: $page-title;
83
+ color: $dark-berry;
84
+ }
85
+ .post-entry-grid {
86
+ .entry-flex {
87
+ .post-title {
88
+ font-family: $alternate-font-type;
89
+ font-size: 20px;
90
+
91
+ a:hover {
92
+ color: $light-berry;
93
+ text-decoration: underline;
94
+ }
95
+ }
96
+ .post-excerpt {
97
+ color: $dark-grey;
98
+ font-weight: lighter;
99
+ }
100
+ .post-meta {
101
+ font-family: $base-font-type;
102
+ font-size: 12px;
103
+ color: $dark-grey;
104
+ }
105
+ }
106
+ }
107
+ }
108
+
109
+ /** POST TYPOGRAPHY **/
110
+
111
+ .blogpost-title {
112
+ h3 {
113
+ font-family: $alternate-font-type;
114
+ font-size: 18px;
115
+ margin: $base-spacing/2 0 0 0;
116
+ }
117
+ p {
118
+ font-family: $base-font-type;
119
+ font-size: 14px;
120
+ margin: 1em 0 1em 0;
121
+ }
122
+ span {
123
+ font-size: 12px;
124
+ }
125
+ }
126
+
127
+ h1.post-title {
128
+ color: $dark-berry;
129
+ font-size: $page-title;
130
+ font-weight: normal;
131
+ }
132
+
133
+ .post-content h1,h2,h3 {
134
+ font-weight: normal;
135
+ }
136
+
137
+ p.post-meta {
138
+ font-size: $page-title/2;
139
+ }
140
+
141
+ h1#page-title.page-title {
142
+ color: $dark-berry;
143
+ font-size: $page-title;
144
+ }
145
+
146
+ p {
147
+ margin: $small-spacing*2 0 $small-spacing*2 0;
148
+
149
+ &.lead {
150
+ font-size: rem(22);
151
+ font-weight: 300;
152
+ }
153
+ }
154
+
155
+ a {
156
+ color: $action-color;
157
+ text-decoration: none;
158
+ transition: color $base-duration $base-timing;
159
+
160
+ &:active,
161
+ &:focus {
162
+ color: shade($action-color, 25%);
163
+ }
164
+ &:hover {
165
+ color: $light-berry;
166
+ }
167
+ }
168
+
169
+ hr {
170
+ border-bottom: $base-border;
171
+ border-left: 0;
172
+ border-right: 0;
173
+ border-top: 0;
174
+ margin: $base-spacing 0;
175
+ }
176
+
177
+ img,
178
+ picture {
179
+ margin: 0;
180
+ max-width: 100%;
181
+ }
182
+
183
+ blockquote {
184
+ padding: $base-spacing 0 $base-spacing $base-spacing;
185
+ margin: $base-spacing 0;
186
+ color: $dark-grey;
187
+ line-height: 1.8;
188
+ border-left: $small-spacing solid $light-grey;
189
+ background-color: lighten($light-grey, 15%);
190
+ p {
191
+ margin: 0;
192
+ }
193
+ }
194
+
195
+ code {
196
+ background: none;
197
+ border-radius: 3px;
198
+ border: none;
199
+ font-family: $plaintext-font-type;
200
+ font-size: 1em;
201
+ margin: 0;
202
+ padding: 0 5px;
203
+ background-color: lighten($light-berry, 25%);
204
+ }
205
+
206
+ pre {
207
+ -webkit-overflow-scrolling: touch;
208
+ font-family: $plaintext-font-type;
209
+ font-size: 1em;
210
+ margin: 0;
211
+ padding: 5px 10px !important;
212
+ overflow: auto;
213
+ max-height: 60em;
214
+ white-space: pre;
215
+ border: 1px solid $light-grey;
216
+ background-color: $light-grey;
217
+
218
+ code {
219
+ line-height: 1.75em;
220
+ padding: 0 !important;
221
+ background-color: $light-grey;
222
+ }
223
+ }
224
+
225
+ strong {
226
+ font-weight: bold;
227
+ }
228
+
229
+ em {
230
+ font-style: italic;
231
+ }
232
+
233
+ ul,
234
+ ol,
235
+ dl {
236
+ margin-top: 0;
237
+ margin-left: 1.2em;
238
+ margin-bottom: 1rem;
239
+ list-style-type: square;
240
+ list-style-position: outside;
241
+ list-style-image: none;
242
+ }
243
+
244
+ /** FOOTER **/
245
+ footer .copyright, .credits {
246
+ font-size: 12px;
247
+ text-align: center;
248
+
249
+ }