scoobr 0.1.1
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.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/footer.html +19 -0
- data/_includes/form-box.html +5 -0
- data/_includes/head.html +26 -0
- data/_includes/mailchimp-form.html +4 -0
- data/_includes/navigation.html +19 -0
- data/_includes/social-icon.html +28 -0
- data/_layouts/default.html +18 -0
- data/_layouts/home.html +41 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +48 -0
- data/_sass/base/_mixins.scss +16 -0
- data/_sass/base/_normalize.scss +468 -0
- data/_sass/base/_reset.scss +18 -0
- data/_sass/base/_variables.scss +134 -0
- data/_sass/components/_buttons.scss +104 -0
- data/_sass/components/_forms.scss +115 -0
- data/_sass/components/_grid.scss +51 -0
- data/_sass/components/_helpers.scss +148 -0
- data/_sass/components/_layout.scss +178 -0
- data/_sass/components/_navigation.scss +25 -0
- data/_sass/components/_scaffolding.scss +235 -0
- data/_sass/components/_tables.scss +51 -0
- data/assets/main.scss +24 -0
- data/assets/pattern.svg +1 -0
- data/assets/thumbnail.svg +15 -0
- metadata +113 -0
@@ -0,0 +1,115 @@
|
|
1
|
+
/* Forms
|
2
|
+
=============== */
|
3
|
+
|
4
|
+
// Display for all input fields (except buttons and checkbox)
|
5
|
+
%forms {
|
6
|
+
display: block;
|
7
|
+
border: $form-border;
|
8
|
+
border-radius: $border-radius;
|
9
|
+
padding: .75rem;
|
10
|
+
outline: none;
|
11
|
+
background: $input-background;
|
12
|
+
margin-bottom: .5rem;
|
13
|
+
font-size: 1rem;
|
14
|
+
width: 100%;
|
15
|
+
max-width: 100%;
|
16
|
+
line-height: 1;
|
17
|
+
}
|
18
|
+
|
19
|
+
// Input fields on hover
|
20
|
+
%forms-hover {
|
21
|
+
border: $form-border-hover;
|
22
|
+
}
|
23
|
+
|
24
|
+
// Input fields on focus
|
25
|
+
%forms-focus {
|
26
|
+
border: $form-border-focus;
|
27
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1), 0 0 6px lighten($link-color, 30%);
|
28
|
+
}
|
29
|
+
|
30
|
+
// Variable containing all input fields
|
31
|
+
#{$forms} {
|
32
|
+
@extend %forms;
|
33
|
+
&:hover {
|
34
|
+
@extend %forms-hover;
|
35
|
+
}
|
36
|
+
&:focus,
|
37
|
+
&:active {
|
38
|
+
@extend %forms-focus;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
textarea {
|
43
|
+
overflow: auto;
|
44
|
+
height: auto;
|
45
|
+
}
|
46
|
+
|
47
|
+
fieldset {
|
48
|
+
border: 1px solid $border-color;
|
49
|
+
border-radius: $border-radius;
|
50
|
+
padding: $padding;
|
51
|
+
margin: $margins 0;
|
52
|
+
}
|
53
|
+
|
54
|
+
legend {
|
55
|
+
padding: 0 .5rem;
|
56
|
+
font-weight: 600;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Fix issues with select
|
60
|
+
select {
|
61
|
+
color: $font-color;
|
62
|
+
-webkit-appearance: none;
|
63
|
+
-moz-appearance: none;
|
64
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAJCAYAAAA/33wPAAAAvklEQVQoFY2QMQqEMBBFv7ERa/EMXkGw11K8QbDXzuN4BHv7QO6ifUgj7v4UAdlVM8Uwf+b9YZJISnlqrfEUZVlinucnBGKaJgghbiHOyLyFKIoCbdvecpyReYvo/Ma2bajrGtbaC58kCdZ1RZ7nl/4/4d5EsO/7nzl7IUtodBexMMagaRrs+06JLMvcNWmaOv2W/C/TMAyD58dxROgSmvxFFMdxoOs6lliWBXEcuzokXRbRoJRyvqqqQvye+QDMDz1D6yuj9wAAAABJRU5ErkJggg==) right center no-repeat;
|
65
|
+
line-height: 1; // ensures text doesn't get cut off
|
66
|
+
}
|
67
|
+
|
68
|
+
// Make range full width
|
69
|
+
[type=range] {
|
70
|
+
width: 100%;
|
71
|
+
}
|
72
|
+
|
73
|
+
// Labels
|
74
|
+
label {
|
75
|
+
font-weight: 600;
|
76
|
+
max-width: 100%;
|
77
|
+
display: block;
|
78
|
+
margin: 1rem 0 .5rem;
|
79
|
+
}
|
80
|
+
|
81
|
+
@include small-breakpoint {
|
82
|
+
.split-form {
|
83
|
+
// Split forms have right aligned labels and margins on the column
|
84
|
+
label {
|
85
|
+
text-align: right;
|
86
|
+
padding: 0 .5rem;
|
87
|
+
margin-bottom: 1rem;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
// Errors
|
93
|
+
input,
|
94
|
+
select,
|
95
|
+
textarea {
|
96
|
+
&.has-error {
|
97
|
+
border: 1px solid $error;
|
98
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .1), 0 0 6px lighten($error, 35%);
|
99
|
+
}
|
100
|
+
&:hover,
|
101
|
+
&:focus,
|
102
|
+
&:active {
|
103
|
+
&.has-error {
|
104
|
+
@extend .has-error;
|
105
|
+
}
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
// Placeholder Text
|
110
|
+
::-webkit-input-placeholder,
|
111
|
+
::-moz-placeholder,
|
112
|
+
:-moz-placeholder,
|
113
|
+
:-ms-input-placeholder {
|
114
|
+
color: $placeholder;
|
115
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/* Grid
|
2
|
+
=============== */
|
3
|
+
|
4
|
+
$column-padding: 1rem;
|
5
|
+
$margin-bottom: 1rem;
|
6
|
+
// The rows have a negative margin which are offset by the padding on the columns.
|
7
|
+
|
8
|
+
%column-padding {
|
9
|
+
padding-left: $column-padding;
|
10
|
+
padding-right: $column-padding;
|
11
|
+
}
|
12
|
+
|
13
|
+
%row-margin {
|
14
|
+
margin-left: -$column-padding;
|
15
|
+
margin-right: -$column-padding;
|
16
|
+
}
|
17
|
+
|
18
|
+
// Flex row
|
19
|
+
.flex-row {
|
20
|
+
@extend %row-margin;
|
21
|
+
display: flex;
|
22
|
+
flex-direction: row;
|
23
|
+
flex-wrap: wrap;
|
24
|
+
}
|
25
|
+
|
26
|
+
.flex-small,
|
27
|
+
.flex-large {
|
28
|
+
@extend %column-padding;
|
29
|
+
flex-basis: 100%;
|
30
|
+
margin-bottom: $margin-bottom;
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
/* Small screen breakpoint */
|
35
|
+
|
36
|
+
@include small-breakpoint {
|
37
|
+
.flex-small {
|
38
|
+
flex: 1 1 0;
|
39
|
+
margin-bottom: 0;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
/* Large screen breakpoint */
|
45
|
+
|
46
|
+
@include large-breakpoint {
|
47
|
+
.flex-large {
|
48
|
+
flex: 1 1 0;
|
49
|
+
margin-bottom: 0;
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,148 @@
|
|
1
|
+
/* Helpers
|
2
|
+
=============== */
|
3
|
+
|
4
|
+
// Classic clearfix
|
5
|
+
.clearfix::before,
|
6
|
+
.clearfix::after {
|
7
|
+
content: " ";
|
8
|
+
display: block;
|
9
|
+
}
|
10
|
+
|
11
|
+
.clearfix:after {
|
12
|
+
clear: both;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Text alignment
|
16
|
+
.text-left {
|
17
|
+
text-align: left;
|
18
|
+
}
|
19
|
+
|
20
|
+
.text-right {
|
21
|
+
text-align: right;
|
22
|
+
}
|
23
|
+
|
24
|
+
.text-center {
|
25
|
+
text-align: center;
|
26
|
+
}
|
27
|
+
|
28
|
+
.text-justify {
|
29
|
+
text-align: justify;
|
30
|
+
}
|
31
|
+
|
32
|
+
// Display
|
33
|
+
.block {
|
34
|
+
display: block;
|
35
|
+
}
|
36
|
+
|
37
|
+
.inline-block {
|
38
|
+
display: inline-block;
|
39
|
+
}
|
40
|
+
|
41
|
+
.inline {
|
42
|
+
display: inline;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Vertical center
|
46
|
+
.vertical-center {
|
47
|
+
display: flex;
|
48
|
+
align-items: center;
|
49
|
+
justify-content: center;
|
50
|
+
}
|
51
|
+
|
52
|
+
// Responsive images
|
53
|
+
.responsive-image {
|
54
|
+
max-width: 100%;
|
55
|
+
height: auto;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Thumbnail images
|
59
|
+
.thumbnail-image {
|
60
|
+
max-width: 100%;
|
61
|
+
width: 100%;
|
62
|
+
height: 250px;
|
63
|
+
object-position: center;
|
64
|
+
object-fit: cover;
|
65
|
+
}
|
66
|
+
|
67
|
+
// Display State
|
68
|
+
.show {
|
69
|
+
display: block !important;
|
70
|
+
}
|
71
|
+
|
72
|
+
.hide {
|
73
|
+
display: none !important;
|
74
|
+
}
|
75
|
+
|
76
|
+
.invisible {
|
77
|
+
visibility: hidden;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Floats
|
81
|
+
.float-left {
|
82
|
+
float: left;
|
83
|
+
}
|
84
|
+
|
85
|
+
.float-right {
|
86
|
+
float: right;
|
87
|
+
}
|
88
|
+
|
89
|
+
// Padding
|
90
|
+
.no-padding-top {
|
91
|
+
padding-top: 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
.no-padding-bottom {
|
95
|
+
padding-bottom: 0;
|
96
|
+
}
|
97
|
+
|
98
|
+
.no-side-padding {
|
99
|
+
padding-left: 0;
|
100
|
+
padding-right: 0;
|
101
|
+
}
|
102
|
+
|
103
|
+
.padding-top {
|
104
|
+
padding-top: 2rem;
|
105
|
+
}
|
106
|
+
|
107
|
+
.padding-bottom {
|
108
|
+
padding-bottom: 2rem;
|
109
|
+
}
|
110
|
+
|
111
|
+
// Margins
|
112
|
+
.no-margin-top {
|
113
|
+
margin-top: 0;
|
114
|
+
}
|
115
|
+
|
116
|
+
.no-margin-bottom {
|
117
|
+
margin-bottom: 0;
|
118
|
+
}
|
119
|
+
|
120
|
+
.margin-top {
|
121
|
+
margin-top: 2rem;
|
122
|
+
}
|
123
|
+
|
124
|
+
.margin-bottom {
|
125
|
+
margin-bottom: 2rem;
|
126
|
+
}
|
127
|
+
|
128
|
+
// Backgrounds
|
129
|
+
.alternate-background {
|
130
|
+
background: $alternate-background;
|
131
|
+
color: $alternate-color;
|
132
|
+
}
|
133
|
+
|
134
|
+
// Screen reader text for accessibility
|
135
|
+
.screen-reader-text {
|
136
|
+
clip: rect(1px, 1px, 1px, 1px);
|
137
|
+
position: absolute !important;
|
138
|
+
height: 1px;
|
139
|
+
width: 1px;
|
140
|
+
overflow: hidden;
|
141
|
+
}
|
142
|
+
|
143
|
+
// Overlap element with a header or something
|
144
|
+
.overlap {
|
145
|
+
margin-top: -$margins;
|
146
|
+
z-index: 2;
|
147
|
+
position: relative;
|
148
|
+
}
|
@@ -0,0 +1,178 @@
|
|
1
|
+
/* Layout
|
2
|
+
=============== */
|
3
|
+
|
4
|
+
.main {
|
5
|
+
position: relative;
|
6
|
+
}
|
7
|
+
|
8
|
+
.home-header, .post-header {
|
9
|
+
background-color: darken($primary-color, 20%);
|
10
|
+
position: relative;
|
11
|
+
z-index: 2;
|
12
|
+
color: $background !important;
|
13
|
+
}
|
14
|
+
|
15
|
+
.post-header {
|
16
|
+
background-size: cover;
|
17
|
+
background-position: center;
|
18
|
+
background-repeat: no-repeat;
|
19
|
+
align-items: flex-end;
|
20
|
+
height: 420px;
|
21
|
+
}
|
22
|
+
|
23
|
+
.home-header::after {
|
24
|
+
content: "";
|
25
|
+
z-index: -1;
|
26
|
+
display: block;
|
27
|
+
position: absolute;
|
28
|
+
top: 0;
|
29
|
+
bottom: 0;
|
30
|
+
left: 0;
|
31
|
+
right: 0;
|
32
|
+
opacity: 0.15;
|
33
|
+
background-image: url("/assets/pattern.svg");
|
34
|
+
background-repeat: repeat;
|
35
|
+
background-size: 40%;
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
.post-header::before {
|
40
|
+
content: "";
|
41
|
+
z-index: -1;
|
42
|
+
display: block;
|
43
|
+
position: absolute;
|
44
|
+
top: 0;
|
45
|
+
bottom: 0;
|
46
|
+
left: 0;
|
47
|
+
right: 0;
|
48
|
+
background-color: darken($primary-color, 20%);
|
49
|
+
opacity: 0.5;
|
50
|
+
}
|
51
|
+
|
52
|
+
.home-header .small-container {
|
53
|
+
padding: 180px $padding;
|
54
|
+
}
|
55
|
+
|
56
|
+
.post-header .small-container {
|
57
|
+
width: 100%;
|
58
|
+
margin-bottom: $margins * 2;
|
59
|
+
}
|
60
|
+
|
61
|
+
.post-header .small-container h2 {
|
62
|
+
display: inline-block;
|
63
|
+
margin: 0;
|
64
|
+
padding: $padding / 2 $padding;
|
65
|
+
background-color: $background;
|
66
|
+
box-shadow: 0 2px 5px rgba(0,0,0,.1);
|
67
|
+
}
|
68
|
+
|
69
|
+
.home-header h2, .home-header p {
|
70
|
+
color: $background !important;
|
71
|
+
width: 80%;
|
72
|
+
margin-left: auto;
|
73
|
+
margin-right: auto;
|
74
|
+
}
|
75
|
+
|
76
|
+
.mailchimp-form {
|
77
|
+
padding: 0 $padding;
|
78
|
+
display: flex;
|
79
|
+
flex-direction: row;
|
80
|
+
justify-content: center;
|
81
|
+
font-size: 1.1rem;
|
82
|
+
}
|
83
|
+
|
84
|
+
.mailchimp-form input {
|
85
|
+
height: $large-buttons;
|
86
|
+
}
|
87
|
+
|
88
|
+
.mailchimp-form input:first-of-type {
|
89
|
+
width: 80%;
|
90
|
+
}
|
91
|
+
|
92
|
+
.posts >.container {
|
93
|
+
display: flex;
|
94
|
+
flex-direction: row;
|
95
|
+
flex-wrap: wrap;
|
96
|
+
justify-content: space-around;
|
97
|
+
}
|
98
|
+
|
99
|
+
.cell {
|
100
|
+
width: 45%;
|
101
|
+
margin-bottom: $margins * 2;
|
102
|
+
box-shadow: 0 2px 5px rgba(0,0,0,.1);
|
103
|
+
display: flex;
|
104
|
+
flex-direction: column;
|
105
|
+
}
|
106
|
+
|
107
|
+
.cell .container {
|
108
|
+
padding: $padding $padding * 2;
|
109
|
+
background-color: $background;
|
110
|
+
flex: 1;
|
111
|
+
width: 100%;
|
112
|
+
}
|
113
|
+
|
114
|
+
.cell:hover, .cell:focus {
|
115
|
+
box-shadow: 0 4px 10px rgba(0,0,0,.2);
|
116
|
+
}
|
117
|
+
|
118
|
+
.main-footer {
|
119
|
+
background-color: $alternate-color;
|
120
|
+
}
|
121
|
+
|
122
|
+
.main-footer .small-container {
|
123
|
+
padding: 60px $padding;
|
124
|
+
color: $accent-color;
|
125
|
+
display: flex;
|
126
|
+
flex-direction: row;
|
127
|
+
justify-content: space-between;
|
128
|
+
font-size: 1rem;
|
129
|
+
}
|
130
|
+
|
131
|
+
.social-icons {
|
132
|
+
margin-bottom: $margins;
|
133
|
+
}
|
134
|
+
|
135
|
+
.social-icon {
|
136
|
+
fill: $background;
|
137
|
+
width: 40px;
|
138
|
+
height: 40px;
|
139
|
+
margin-right: $margins / 1.5;
|
140
|
+
}
|
141
|
+
|
142
|
+
|
143
|
+
.post-content {
|
144
|
+
padding: 60px $padding * 2;
|
145
|
+
background-color: $background;
|
146
|
+
box-shadow: 0 2px 5px rgba(0,0,0,.1);
|
147
|
+
}
|
148
|
+
|
149
|
+
.after-post {
|
150
|
+
padding-top: 60px;
|
151
|
+
padding-bottom: 60px;
|
152
|
+
margin: $margins * 2 auto 0;
|
153
|
+
}
|
154
|
+
|
155
|
+
.after-post .cell {
|
156
|
+
width: calc(90% / 3)
|
157
|
+
}
|
158
|
+
|
159
|
+
.after-post h3 {
|
160
|
+
margin-bottom: $margins * 2;
|
161
|
+
}
|
162
|
+
|
163
|
+
|
164
|
+
.form-box {
|
165
|
+
background-color: $alternate-background;
|
166
|
+
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.2' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
|
167
|
+
text-shadow:
|
168
|
+
-2px -2px 0 $background,
|
169
|
+
2px -2px 0 $background,
|
170
|
+
-2px 2px 0 $background,
|
171
|
+
2px 2px 0 $background;
|
172
|
+
}
|
173
|
+
|
174
|
+
.form-box p {
|
175
|
+
max-width: 80%;
|
176
|
+
margin-left: auto;
|
177
|
+
margin-right: auto;
|
178
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/* Navigation
|
2
|
+
=============== */
|
3
|
+
|
4
|
+
.main-navigation {
|
5
|
+
padding: $padding;
|
6
|
+
position: absolute;
|
7
|
+
left: 0;
|
8
|
+
right: 0;
|
9
|
+
z-index: 30;
|
10
|
+
color: $background !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
.main-navigation .container {
|
14
|
+
display: flex;
|
15
|
+
flex-direction: row;
|
16
|
+
justify-content: space-between;
|
17
|
+
}
|
18
|
+
|
19
|
+
.main-navigation a {
|
20
|
+
color: $background !important;
|
21
|
+
}
|
22
|
+
|
23
|
+
.navigation-links a {
|
24
|
+
padding: $padding;
|
25
|
+
}
|