Mott_MacDonald_Theme 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.
@@ -0,0 +1,357 @@
1
+ /**
2
+ * Site header
3
+ */
4
+ .site-header {
5
+ border-bottom: 1px solid $border-color-01;
6
+ min-height: $spacing-unit * 1.865;
7
+ line-height: $base-line-height * $base-font-size * 2.25;
8
+
9
+ // Positioning context for the mobile navigation icon
10
+ position: relative;
11
+ }
12
+
13
+ .site-title {
14
+ @include relative-font-size(1.625);
15
+ font-weight: 300;
16
+ letter-spacing: -1px;
17
+ margin-bottom: 0;
18
+ float: left;
19
+ height: 10%;
20
+ width: 10%;
21
+
22
+ @include media-query($on-palm) {
23
+ padding-right: 45px;
24
+ height: 30%;
25
+ width: 30%;
26
+ }
27
+
28
+ &,
29
+ &:visited {
30
+ color: $primary-text;
31
+ }
32
+ }
33
+
34
+ .site-nav {
35
+ position: absolute;
36
+ top: 9px;
37
+ right: $spacing-unit / 2;
38
+ background-color: $background-color;
39
+ border: 1px solid $border-color-01;
40
+ border-radius: 5px;
41
+ text-align: right;
42
+
43
+ .nav-trigger {
44
+ display: none;
45
+ }
46
+
47
+ .menu-icon {
48
+ float: right;
49
+ width: 36px;
50
+ height: 26px;
51
+ line-height: 0;
52
+ padding-top: 10px;
53
+ text-align: center;
54
+
55
+ > svg path {
56
+ fill: $border-color-03;
57
+ }
58
+ }
59
+
60
+ label[for="nav-trigger"] {
61
+ display: block;
62
+ float: right;
63
+ width: 36px;
64
+ height: 36px;
65
+ z-index: 2;
66
+ cursor: pointer;
67
+ }
68
+
69
+ input ~ .trigger {
70
+ clear: both;
71
+ display: none;
72
+ }
73
+
74
+ input:checked ~ .trigger {
75
+ display: block;
76
+ padding-bottom: 5px;
77
+ }
78
+
79
+ .page-link {
80
+ color: $primary-text;
81
+ line-height: $base-line-height;
82
+ display: block;
83
+ padding: 5px 10px;
84
+
85
+ // Gaps between nav items, but not on the last one
86
+ &:not(:last-child) {
87
+ margin-right: 0;
88
+ }
89
+ margin-left: 20px;
90
+ }
91
+
92
+ @media screen and (min-width: $on-medium) {
93
+ position: static;
94
+ float: right;
95
+ border: none;
96
+ background-color: inherit;
97
+
98
+ label[for="nav-trigger"] {
99
+ display: none;
100
+ }
101
+
102
+ .menu-icon {
103
+ display: none;
104
+ }
105
+
106
+ input ~ .trigger {
107
+ display: block;
108
+ }
109
+
110
+ .page-link {
111
+ display: inline;
112
+ padding: 0;
113
+
114
+ &:not(:last-child) {
115
+ margin-right: 20px;
116
+ }
117
+ margin-left: auto;
118
+ }
119
+ }
120
+ }
121
+
122
+ /**
123
+ * Site footer
124
+ */
125
+ .site-footer {
126
+ border-top: 1px solid $border-color-01;
127
+ padding: $spacing-unit 0;
128
+ }
129
+
130
+ .footer-heading {
131
+ @include relative-font-size(1.125);
132
+ margin-bottom: $spacing-unit / 2;
133
+ }
134
+
135
+ .feed-subscribe .svg-icon {
136
+ padding: 5px 5px 2px 0;
137
+ }
138
+
139
+ .contact-list,
140
+ .social-media-list {
141
+ list-style: none;
142
+ margin-left: 0;
143
+ }
144
+
145
+ .footer-col-wrapper,
146
+ .social-links {
147
+ @include relative-font-size(0.9375);
148
+ color: $brand-color;
149
+ }
150
+
151
+ .footer-col {
152
+ margin-bottom: $spacing-unit / 2;
153
+ }
154
+
155
+ .footer-col-1,
156
+ .footer-col-2 {
157
+ width: calc(50% - (#{$spacing-unit} / 2));
158
+ }
159
+
160
+ .footer-col-3 {
161
+ width: calc(100% - (#{$spacing-unit} / 2));
162
+ }
163
+
164
+ @media screen and (min-width: $on-large) {
165
+ .footer-col-1 {
166
+ width: calc(35% - (#{$spacing-unit} / 2));
167
+ }
168
+
169
+ .footer-col-2 {
170
+ width: calc(20% - (#{$spacing-unit} / 2));
171
+ }
172
+
173
+ .footer-col-3 {
174
+ width: calc(45% - (#{$spacing-unit} / 2));
175
+ }
176
+ }
177
+
178
+ @media screen and (min-width: $on-medium) {
179
+ .footer-col-wrapper {
180
+ display: flex;
181
+ }
182
+
183
+ .footer-col {
184
+ width: calc(100% - (#{$spacing-unit} / 2));
185
+ padding: 0 ($spacing-unit / 2);
186
+
187
+ &:first-child {
188
+ padding-right: $spacing-unit / 2;
189
+ padding-left: 0;
190
+ }
191
+
192
+ &:last-child {
193
+ padding-right: 0;
194
+ padding-left: $spacing-unit / 2;
195
+ }
196
+ }
197
+ }
198
+
199
+ /**
200
+ * Page content
201
+ */
202
+ .page-content {
203
+ // padding: $spacing-unit;
204
+ // padding-top: 0;
205
+ // margin: 0 -30px;
206
+ margin-left: -$spacing-unit;
207
+ flex: 1 0 auto;
208
+ }
209
+
210
+ .page-heading {
211
+ @include relative-font-size(2);
212
+ }
213
+
214
+ .post-list-heading {
215
+ @include relative-font-size(1.75);
216
+ }
217
+
218
+ .post-list {
219
+ margin-left: 0;
220
+ list-style: none;
221
+ width: 100%;
222
+
223
+ > li {
224
+ margin-bottom: $spacing-unit;
225
+ }
226
+ }
227
+
228
+ .post-meta {
229
+ font-size: $small-font-size;
230
+ color: $primary-text;
231
+ }
232
+
233
+ .post-link {
234
+ display: block;
235
+ @include relative-font-size(1.5);
236
+ // color: red;
237
+ }
238
+
239
+ /**
240
+ * Posts
241
+ */
242
+ .post-header {
243
+ margin-bottom: $spacing-unit;
244
+ }
245
+
246
+ .post-title,
247
+ .post-content h1 {
248
+ @include relative-font-size(2.625);
249
+ letter-spacing: -1px;
250
+ line-height: 1.15;
251
+
252
+ @media screen and (min-width: $on-large) {
253
+ @include relative-font-size(2.625);
254
+ }
255
+
256
+ @include media-query($on-palm) {
257
+ @include relative-font-size(1.625);
258
+ max-width: 100%;
259
+ }
260
+ }
261
+
262
+ .post-content {
263
+ margin-bottom: $spacing-unit;
264
+
265
+ h1,
266
+ h2,
267
+ h3 {
268
+ margin-top: $spacing-unit * 2;
269
+ }
270
+ h4,
271
+ h5,
272
+ h6 {
273
+ margin-top: $spacing-unit;
274
+ }
275
+
276
+ h2 {
277
+ @include relative-font-size(1.75);
278
+
279
+ @media screen and (min-width: $on-large) {
280
+ @include relative-font-size(2);
281
+ }
282
+ }
283
+
284
+ h3 {
285
+ @include relative-font-size(1.375);
286
+
287
+ @media screen and (min-width: $on-large) {
288
+ @include relative-font-size(1.625);
289
+ }
290
+ }
291
+
292
+ h4 {
293
+ @include relative-font-size(1.25);
294
+ }
295
+
296
+ h5 {
297
+ @include relative-font-size(1.125);
298
+ }
299
+ h6 {
300
+ @include relative-font-size(1.0625);
301
+ }
302
+ }
303
+
304
+ .social-media-list {
305
+ display: table;
306
+ margin: 0 auto;
307
+ li {
308
+ float: left;
309
+ margin: 5px 10px 5px 0;
310
+ &:last-of-type {
311
+ margin-right: 0;
312
+ }
313
+ a {
314
+ display: block;
315
+ padding: $spacing-unit / 4;
316
+ border: 1px solid $border-color-01;
317
+ &:hover {
318
+ border-color: $border-color-02;
319
+ }
320
+ }
321
+ }
322
+ }
323
+
324
+ /**
325
+ * Pagination navbar
326
+ */
327
+ .pagination {
328
+ margin-bottom: $spacing-unit;
329
+ @extend .social-media-list;
330
+ li {
331
+ a,
332
+ div {
333
+ min-width: 41px;
334
+ text-align: center;
335
+ box-sizing: border-box;
336
+ }
337
+ div {
338
+ display: block;
339
+ padding: $spacing-unit / 4;
340
+ border: 1px solid transparent;
341
+
342
+ &.pager-edge {
343
+ color: $border-color-01;
344
+ border: 1px dashed;
345
+ }
346
+ }
347
+ }
348
+ }
349
+
350
+ /**
351
+ * Grid helpers
352
+ */
353
+ @media screen and (min-width: $on-large) {
354
+ .one-half {
355
+ width: calc(50% - (#{$spacing-unit} / 2));
356
+ }
357
+ }
@@ -0,0 +1,212 @@
1
+ // Placeholder to allow defining custom styles that override everything else.
2
+ // (Use `_sass/minima/custom-variables.scss` to override variable defaults)
3
+
4
+ // banner
5
+ *,
6
+ *:before,
7
+ *:after {
8
+ box-sizing: border-box;
9
+ }
10
+
11
+ .banner {
12
+ display: flex;
13
+ background-color: $primary-main;
14
+ color: #ffffff;
15
+ color: white;
16
+ padding: 30px;
17
+ flex-direction: row;
18
+ justify-content: space-between;
19
+ }
20
+
21
+ .banner-info {
22
+ align-self: center;
23
+ width: 100%;
24
+ }
25
+
26
+ .banner-post {
27
+ background-color: #2fb6bc;
28
+ }
29
+
30
+ .banner-image {
31
+ height: 40%;
32
+ width: 40%;
33
+ float: right;
34
+ margin: -30px;
35
+
36
+ @include media-query($on-palm) {
37
+ height: 0%;
38
+ width: 0%;
39
+ }
40
+ }
41
+
42
+ //category tags
43
+
44
+ .category-tag {
45
+ padding-bottom: 8px;
46
+ padding-top: 8px;
47
+ padding-left: 11px;
48
+ padding-right: 11px;
49
+ border-width: 1px;
50
+ border-color: $light-action-disabled;
51
+ border-radius: 100px;
52
+ margin-right: 15px;
53
+ border-style: solid;
54
+ color: $light-action-disabled;
55
+ }
56
+
57
+ .tag-container {
58
+ display: flex;
59
+ flex-direction: row;
60
+
61
+ @include media-query($on-palm) {
62
+ flex-direction: column;
63
+ justify-content: space-between;
64
+ }
65
+ }
66
+
67
+ .archive-group {
68
+ margin-bottom: $spacing-unit;
69
+ }
70
+
71
+ //post-card styling
72
+
73
+ .post-card {
74
+ display: flex;
75
+ flex-direction: row;
76
+ max-width: 100%;
77
+ padding: $spacing-unit * 1.5;
78
+ justify-content: space-between;
79
+ gap: 44px;
80
+
81
+ @include media-query($on-palm) {
82
+ flex-direction: column;
83
+ max-width: 100%;
84
+ gap: 0px;
85
+ padding: 0px;
86
+ margin-top: 16px;
87
+ margin-left: 45px;
88
+ }
89
+ }
90
+
91
+ .post-image-container {
92
+ width: 60%;
93
+ height: 300px;
94
+ }
95
+
96
+ .post-image {
97
+ max-height: 400px;
98
+ max-width: 100%;
99
+
100
+ @include media-query($on-palm) {
101
+ height: 0%;
102
+ width: 0%;
103
+ }
104
+ }
105
+
106
+ .post-card-details {
107
+ display: flex;
108
+ max-width: 400px;
109
+ flex-direction: column;
110
+ justify-content: space-between;
111
+
112
+ @include media-query($on-palm) {
113
+ width: 100%;
114
+ }
115
+ }
116
+
117
+ .post-card-footer {
118
+ display: flex;
119
+ flex-direction: row;
120
+ justify-content: space-between;
121
+ padding-bottom: 8px;
122
+ }
123
+
124
+ .post-card-left {
125
+ display: flex;
126
+ flex-direction: column;
127
+ justify-content: space-between;
128
+ gap: 16px;
129
+ min-width: 400px;
130
+
131
+ @include media-query($on-palm) {
132
+ max-width: 100%;
133
+ }
134
+ }
135
+
136
+ //button styling
137
+
138
+ .primary-button {
139
+ padding-bottom: 8px;
140
+ padding-top: 8px;
141
+ padding-left: 22px;
142
+ padding-right: 22px;
143
+ border-width: 1px;
144
+ border-color: $primary-main;
145
+ margin-right: 15px;
146
+ border-style: solid;
147
+ color: $primary-main;
148
+ }
149
+
150
+ .button-link {
151
+ &:active,
152
+ &:hover {
153
+ color: #7939f7;
154
+ }
155
+ }
156
+
157
+ //post styling
158
+
159
+ .post-width {
160
+ padding: 48px;
161
+ width: 60%;
162
+
163
+ @include media-query($on-palm) {
164
+ max-width: 100%;
165
+ }
166
+ }
167
+
168
+ .post-body {
169
+ display: flex;
170
+ flex-direction: row;
171
+ }
172
+
173
+ // secondary navigation styling
174
+
175
+ .secondary-navigation {
176
+ background-color: $light-background;
177
+ padding: $spacing-unit * 1.5;
178
+ min-width: 250px;
179
+ width: 20%;
180
+ }
181
+
182
+ .secondary-navigation-title {
183
+ font-weight: 600;
184
+ }
185
+
186
+ .category-head {
187
+ font-weight: 600;
188
+
189
+ &:active,
190
+ &:hover {
191
+ color: #7939f7;
192
+ text-decoration: none;
193
+ }
194
+ }
195
+
196
+ // right column
197
+
198
+ .right-column {
199
+ background-color: $background-color;
200
+ padding: $spacing-unit * 1.5;
201
+ min-width: 250px;
202
+ width: 20%;
203
+ }
204
+
205
+ //home
206
+
207
+ .home {
208
+ display: flex;
209
+ width: 60%;
210
+ align-items: center;
211
+ justify-content: center;
212
+ }
@@ -0,0 +1 @@
1
+ // Placeholder to allow overriding predefined variables smoothly.
@@ -0,0 +1,50 @@
1
+ @charset "utf-8";
2
+
3
+ // Define defaults for each variable.
4
+
5
+ $base-font-family: proxima-nova, sans-serif;;
6
+ $code-font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;
7
+ $base-font-size: 16px !default;
8
+ $base-font-weight: 400 !default;
9
+ $small-font-size: $base-font-size * 0.875 !default;
10
+ $base-line-height: 1.5 !default;
11
+
12
+ $spacing-unit: 30px !default;
13
+
14
+ $table-text-align: left !default;
15
+
16
+ // Width of the content area
17
+ $content-width: 800px !default;
18
+
19
+ $on-palm: 600px !default;
20
+ $on-laptop: 800px !default;
21
+
22
+ $on-medium: $on-palm !default;
23
+ $on-large: $on-laptop !default;
24
+
25
+ // Use media queries like this:
26
+ // @include media-query($on-palm) {
27
+ // .wrapper {
28
+ // padding-right: $spacing-unit / 2;
29
+ // padding-left: $spacing-unit / 2;
30
+ // }
31
+ // }
32
+ // Notice the following mixin uses max-width, in a deprecated, desktop-first
33
+ // approach, whereas media queries used elsewhere now use min-width.
34
+ @mixin media-query($device) {
35
+ @media screen and (max-width: $device) {
36
+ @content;
37
+ }
38
+ }
39
+
40
+ @mixin relative-font-size($ratio) {
41
+ font-size: #{$ratio}rem;
42
+ }
43
+
44
+ // Import pre-styling-overrides hook and style-partials.
45
+ @import
46
+ "minima/custom-variables", // Hook to override predefined variables.
47
+ "minima/base", // Defines element resets.
48
+ "minima/layout", // Defines structure and style based on CSS selectors.
49
+ "minima/custom-styles" // Hook to override existing styles.
50
+ ;
@@ -0,0 +1,97 @@
1
+ @charset "utf-8";
2
+
3
+ $primary-main: #7939F7;
4
+ $secondary-main: #2FB6BC;
5
+ $light-background: #f0f0f0;
6
+
7
+ $brand-color: #828282 !default;
8
+ $brand-color-light: lighten($brand-color, 40%) !default;
9
+ $brand-color-dark: darken($brand-color, 25%) !default;
10
+
11
+ $site-title-color: $brand-color-dark !default;
12
+
13
+ $text-color: #000000 !default;
14
+ $background-color: #fdfdfd !default;
15
+ $code-background-color: #eeeeff !default;
16
+ $primary-text: lighten($text-color, 13%) !default;
17
+ $light-action-disabled: lighten($text-color, 74%) !default;
18
+
19
+ $link-base-color: #111111 !default;
20
+ $link-visited-color: darken($link-base-color, 15%) !default;
21
+ $link-hover-color: $text-color !default;
22
+
23
+ $border-color-01: $brand-color-light !default;
24
+ $border-color-02: lighten($brand-color, 35%) !default;
25
+ $border-color-03: $brand-color-dark !default;
26
+
27
+ $table-text-color: lighten($text-color, 18%) !default;
28
+ $table-zebra-color: lighten($brand-color, 46%) !default;
29
+ $table-header-bg-color: lighten($brand-color, 43%) !default;
30
+ $table-header-border: lighten($brand-color, 37%) !default;
31
+ $table-border-color: $border-color-01 !default;
32
+
33
+
34
+ // Syntax highlighting styles should be adjusted appropriately for every "skin"
35
+ // ----------------------------------------------------------------------------
36
+
37
+ .highlight {
38
+ .c { color: #998; font-style: italic } // Comment
39
+ .err { color: #a61717; background-color: #e3d2d2 } // Error
40
+ .k { font-weight: bold } // Keyword
41
+ .o { font-weight: bold } // Operator
42
+ .cm { color: #998; font-style: italic } // Comment.Multiline
43
+ .cp { color: #999; font-weight: bold } // Comment.Preproc
44
+ .c1 { color: #998; font-style: italic } // Comment.Single
45
+ .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
46
+ .gd { color: #000; background-color: #fdd } // Generic.Deleted
47
+ .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
48
+ .ge { font-style: italic } // Generic.Emph
49
+ .gr { color: #a00 } // Generic.Error
50
+ .gh { color: #999 } // Generic.Heading
51
+ .gi { color: #000; background-color: #dfd } // Generic.Inserted
52
+ .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
53
+ .go { color: #888 } // Generic.Output
54
+ .gp { color: #555 } // Generic.Prompt
55
+ .gs { font-weight: bold } // Generic.Strong
56
+ .gu { color: #aaa } // Generic.Subheading
57
+ .gt { color: #a00 } // Generic.Traceback
58
+ .kc { font-weight: bold } // Keyword.Constant
59
+ .kd { font-weight: bold } // Keyword.Declaration
60
+ .kp { font-weight: bold } // Keyword.Pseudo
61
+ .kr { font-weight: bold } // Keyword.Reserved
62
+ .kt { color: #458; font-weight: bold } // Keyword.Type
63
+ .m { color: #099 } // Literal.Number
64
+ .s { color: #d14 } // Literal.String
65
+ .na { color: #008080 } // Name.Attribute
66
+ .nb { color: #0086B3 } // Name.Builtin
67
+ .nc { color: #458; font-weight: bold } // Name.Class
68
+ .no { color: #008080 } // Name.Constant
69
+ .ni { color: #800080 } // Name.Entity
70
+ .ne { color: #900; font-weight: bold } // Name.Exception
71
+ .nf { color: #900; font-weight: bold } // Name.Function
72
+ .nn { color: #555 } // Name.Namespace
73
+ .nt { color: #000080 } // Name.Tag
74
+ .nv { color: #008080 } // Name.Variable
75
+ .ow { font-weight: bold } // Operator.Word
76
+ .w { color: #bbb } // Text.Whitespace
77
+ .mf { color: #099 } // Literal.Number.Float
78
+ .mh { color: #099 } // Literal.Number.Hex
79
+ .mi { color: #099 } // Literal.Number.Integer
80
+ .mo { color: #099 } // Literal.Number.Oct
81
+ .sb { color: #d14 } // Literal.String.Backtick
82
+ .sc { color: #d14 } // Literal.String.Char
83
+ .sd { color: #d14 } // Literal.String.Doc
84
+ .s2 { color: #d14 } // Literal.String.Double
85
+ .se { color: #d14 } // Literal.String.Escape
86
+ .sh { color: #d14 } // Literal.String.Heredoc
87
+ .si { color: #d14 } // Literal.String.Interpol
88
+ .sx { color: #d14 } // Literal.String.Other
89
+ .sr { color: #009926 } // Literal.String.Regex
90
+ .s1 { color: #d14 } // Literal.String.Single
91
+ .ss { color: #990073 } // Literal.String.Symbol
92
+ .bp { color: #999 } // Name.Builtin.Pseudo
93
+ .vc { color: #008080 } // Name.Variable.Class
94
+ .vg { color: #008080 } // Name.Variable.Global
95
+ .vi { color: #008080 } // Name.Variable.Instance
96
+ .il { color: #099 } // Literal.Number.Integer.Long
97
+ }