intia-theme 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,355 @@
1
+ .is-outlined {
2
+ border-width: 2px;
3
+ border-color: $primary-dark;
4
+ }
5
+
6
+ div.highlight {
7
+ margin-bottom: 1rem;
8
+ }
9
+
10
+ @include desktop {
11
+ .navbar-item {
12
+ border-width: 2px;
13
+ display: block;
14
+ &.is-hoverable:hover {
15
+ border-width: 2px;
16
+ .navbar-dropdown {
17
+ display: block;
18
+ }
19
+ }
20
+ }
21
+ }
22
+
23
+ // Duno
24
+ .contents {
25
+ box-shadow: $box-shadow;
26
+ padding: 1.5rem;
27
+ margin-bottom: 3rem;
28
+ }
29
+
30
+ .content {
31
+ figure {
32
+ margin: 0;
33
+ }
34
+ }
35
+
36
+ .callout {
37
+ &-icon {
38
+ width: 4rem;
39
+ height: 4rem;
40
+ margin-bottom: 0.75rem;
41
+ }
42
+ }
43
+
44
+ .sticky {
45
+ position: sticky;
46
+ top: 30px;
47
+ }
48
+
49
+ // Globals
50
+ img.is-rounded {
51
+ border-radius: 65px;
52
+ }
53
+ .arrow-image {
54
+ z-index: 10;
55
+ position: relative;
56
+ bottom: -90px;
57
+ width: 64px;
58
+ }
59
+
60
+ .clear {
61
+ clear: both;
62
+ display: block;
63
+ width: 100%;
64
+ }
65
+
66
+ // Buttons - Mybe global in Buttons und raus damit?
67
+ .button.is-dark {
68
+ background-color: #229387;
69
+ }
70
+
71
+ // Navi
72
+ .navbar {
73
+ padding-top: 0.6rem;
74
+ }
75
+
76
+ .navbar.is-primary .navbar-dropdown a.navbar-item.is-active {
77
+ background-color: #09443e;
78
+ color: #fff;
79
+ }
80
+
81
+ .navbar-brand img {
82
+ max-height: 2.5rem;
83
+ margin-top: 1rem;
84
+ }
85
+ .navbar-brand a p {
86
+ color: #000;
87
+ }
88
+
89
+ .navbar-item,
90
+ .navbar-link,
91
+ .navbar-dropdown {
92
+ padding-left: 0em;
93
+ padding-right: 0em;
94
+ padding-top: 0.65em;
95
+ }
96
+
97
+ .navbar.is-primary {
98
+ background-color: white;
99
+ }
100
+
101
+ .navbar-link {
102
+ background-color: transparent;
103
+ }
104
+
105
+ .button.is-rounded {
106
+ padding-right: 0em !important;
107
+ }
108
+ .navbar-dropdown .button.is-rounded {
109
+ padding-right: auto !important;
110
+ }
111
+ .navbar-dropdown .navbar-item {
112
+ padding: 0.5rem 1rem;
113
+ text-align: left;
114
+ }
115
+
116
+ // Hero
117
+ .hero-body {
118
+ background-color: white;
119
+ }
120
+ .hero.is-large .hero-body {
121
+ padding-bottom: 12rem;
122
+ }
123
+
124
+ .hero-body img {
125
+ float: right;
126
+ margin-left: 200px;
127
+ }
128
+ .hero {
129
+ display: block;
130
+ }
131
+ .hero.is-primary .title {
132
+ color: rgba(0, 0, 0, 1);
133
+ padding-top: 70px;
134
+ }
135
+ .hero.is-medium .hero-body {
136
+ padding: 13rem 9rem 4.5rem;
137
+ }
138
+
139
+ .hero-body .button,
140
+ .content-wrapper .button {
141
+ padding: 16px !important;
142
+ }
143
+
144
+ .hero-body .container .button {
145
+ float: right;
146
+ }
147
+
148
+ // Content
149
+ .subtitle {
150
+ padding: 50px;
151
+ }
152
+
153
+ .card {
154
+ // margin-left: 3rem;
155
+ // margin-right: 3rem;
156
+ margin-top: 6rem;
157
+ box-shadow: none;
158
+ }
159
+
160
+ .card .button {
161
+ margin-top: 50px;
162
+ }
163
+
164
+ .content-wrapper h1 {
165
+ padding-top: 50px;
166
+ }
167
+
168
+ .content-wrapper img {
169
+ border-radius: 65px;
170
+ height: auto;
171
+ }
172
+
173
+ .content-wrapper p {
174
+ display: inline-block;
175
+ }
176
+
177
+ .card-content h2 p {
178
+ padding-left: 15px;
179
+ }
180
+
181
+ .card-image:first-child img {
182
+ border-top-left-radius: 65px;
183
+ border-top-right-radius: 65px;
184
+ }
185
+
186
+ .card-content {
187
+ width: 100%;
188
+ padding: 3.5rem;
189
+ display: flow-root;
190
+ margin: auto;
191
+ }
192
+ .card-content p {
193
+ padding-left: 4rem;
194
+ }
195
+ .card-content a {
196
+ margin-left: 4rem;
197
+ }
198
+ .card-image:last-child img {
199
+ border-bottom-left-radius: 65px;
200
+ border-bottom-right-radius: 65px;
201
+ }
202
+
203
+ .story-card {
204
+ background-color: white;
205
+ border-bottom-left-radius: 65px !important;
206
+ border-bottom-right-radius: 65px !important;
207
+ border-top-left-radius: 65px !important;
208
+ border-top-right-radius: 65px !important;
209
+ }
210
+ .story-card .column {
211
+ padding: 0px;
212
+ }
213
+ .story-card .card-image:first-child img {
214
+ border-bottom-right-radius: 0px !important;
215
+ border-top-right-radius: 0px !important;
216
+ }
217
+
218
+ // story-slider
219
+
220
+ .green {
221
+ background-color: #e7f2ea;
222
+ padding-left: 5%;
223
+ padding-right: 5%;
224
+ padding-top: 6rem;
225
+ padding-bottom: 8rem;
226
+ }
227
+ .slider {
228
+ box-shadow: none;
229
+ }
230
+ .slider-item {
231
+ // padding-left: 50px;
232
+ }
233
+ .story-carousel-item {
234
+ margin-left: 5%;
235
+ margin-right: 5%;
236
+ }
237
+ .slider-container .card-content .content {
238
+ margin: 50px;
239
+ }
240
+ .story-slider {
241
+ background-color: white;
242
+ border-bottom-left-radius: 65px !important;
243
+ border-bottom-right-radius: 65px !important;
244
+ border-top-left-radius: 65px !important;
245
+ border-top-right-radius: 65px !important;
246
+ }
247
+ .story-slider .button {
248
+ float: right;
249
+ }
250
+ .column.slider-image {
251
+ padding: 0;
252
+ }
253
+ .column.slider-image .image {
254
+ height: 100%;
255
+ }
256
+ .column.slider-image img {
257
+ border-top-right-radius: 0 !important;
258
+ border-bottom-right-radius: 0 !important;
259
+ height: 100%;
260
+ }
261
+ .column.slider-content {
262
+ padding: 3em;
263
+ }
264
+ .slider-content h2 {
265
+ margin-bottom: 2rem;
266
+ }
267
+ .slider-content {
268
+ width: 100%;
269
+ display: flow-root;
270
+ margin: auto;
271
+ }
272
+ .slider-pagination .slider-page {
273
+ background-color: #229387 !important;
274
+ width: 20px !important;
275
+ height: 20px !important;
276
+ box-shadow: none;
277
+ cursor: pointer;
278
+ }
279
+ .slider-pagination .slider-page.is-active,
280
+ .slider-pagination .slider-page:hover {
281
+ background-color: #09443e !important;
282
+ -webkit-transform: scale(1) !important;
283
+ transform: scale(1) !important;
284
+ }
285
+ .slider-pagination {
286
+ bottom: -40px !important;
287
+ }
288
+ // Footer
289
+
290
+ .footer {
291
+ font-size: 0.75rem;
292
+ margin-top: 5rem;
293
+ line-height: 1rem;
294
+ }
295
+ .footer img.column {
296
+ padding: 0 !important;
297
+ flex-grow: 0;
298
+ }
299
+ .footer-logos img {
300
+ height: 75px;
301
+ }
302
+ .footer .title {
303
+ color: white;
304
+ text-decoration: underline;
305
+ font-weight: 600;
306
+ font-size: 1rem;
307
+ }
308
+ footer .columns {
309
+ margin-left: auto;
310
+ margin-right: auto;
311
+ font-size: 0.75rem;
312
+ }
313
+ .footer-logos .column {
314
+ flex-basis: auto;
315
+ }
316
+ .is-bordered-bottom {
317
+ border-bottom: solid 1px #fff;
318
+ }
319
+ .page-owner {
320
+ display: inline-block;
321
+ }
322
+
323
+ // Text neben dem Logo - gut möglich das dies seine darseinsberechtigung verliert
324
+ .brand-title {
325
+ display: contents;
326
+ font-weight: 600;
327
+ }
328
+
329
+ // Hacks für Mobil
330
+ @include mobile {
331
+ .button {
332
+ height: auto;
333
+ }
334
+ .button a,
335
+ .button span {
336
+ font-size: 24px !important;
337
+ font-weight: 600;
338
+ }
339
+ .buttons {
340
+ display: table-caption;
341
+ }
342
+ .navbar-menu {
343
+ background-color: #229387;
344
+ }
345
+ .hero.is-medium .hero-body {
346
+ padding: 5rem 1rem 4.5rem;
347
+ }
348
+ .navbar-menu .button {
349
+ // Buttongröße aus Figma
350
+ height: auto;
351
+ }
352
+ .footer-logos .column {
353
+ text-align: left !important;
354
+ }
355
+ }
data/_sass/_main.scss ADDED
@@ -0,0 +1,142 @@
1
+ // Font
2
+ @charset "utf-8";
3
+ @import url("https://fonts.googleapis.com/css?family=Verdana");
4
+ $family-primary: "Verdana", sans-serif;
5
+ // Colors
6
+ //$primary: #d1e7d6 !default;
7
+ $primary: #ffffff !default;
8
+ $text: #000 !default;
9
+ $title-color: #000 !default;
10
+ //$primary-light: #e7f2ea;
11
+ //$primary-light: #ffffff;
12
+ $light: #e7f2ea;
13
+ $primary-dark: #1e7d73;
14
+ $dark: #09443e;
15
+ //$navbar-box-shadow-color: transparent;
16
+ // Bulma
17
+ @import "../node_modules/bulma/bulma.sass";
18
+ // Extensions
19
+ @import "../node_modules/bulma-block-list/src/block-list.scss";
20
+ // Bulma Config
21
+ $column-gap: 1rem;
22
+ $modal-content-width: 800px;
23
+ $tabs-link-active-color: $primary;
24
+ $tabs-link-active-border-bottom-color: $primary;
25
+ // Global
26
+ body {
27
+ font-size: 1.5rem;
28
+ line-height: 2.25rem;
29
+ }
30
+
31
+ h1,
32
+ h1 p {
33
+ font-size: 48px;
34
+ line-height: 72px;
35
+ font-weight: 600;
36
+ }
37
+
38
+ h2,
39
+ h2 p {
40
+ font-size: 36px;
41
+ font-weight: 600;
42
+ text-align: left;
43
+ background-repeat: no-repeat;
44
+ background-size: auto 35px;
45
+ font-family: "Verdana", sans-serif;
46
+ }
47
+
48
+ h3 {
49
+ font-size: 1.17rem;
50
+ }
51
+
52
+ h4 {
53
+ font-size: 1rem;
54
+ }
55
+
56
+ h5 {
57
+ font-size: 0.83rem;
58
+ }
59
+ // Button Animation + Gleiche Breite
60
+ .button {
61
+ // Schrifft
62
+ font-size: 1.31rem !important;
63
+ font-weight: 600;
64
+ // Animation
65
+ transition-timing-function: cubic-bezier(.25, .46, .45, .94);
66
+ transition-property: background-color, transform;
67
+ transition-duration: .3s;
68
+ -webkit-transition-timing-function: cubic-bezier(.25, .46, .45, .94);
69
+ -webkit-transition-property: background-color, transform;
70
+ -webkit-transition-duration: .3s;
71
+ -o-transition-timing-function: cubic-bezier(.25, .46, .45, .94);
72
+ -o-transition-property: background-color, transform;
73
+ -o-transition-duration: .3s;
74
+ -moz-transition-timing-function: cubic-bezier(.25, .46, .45, .94);
75
+ -moz-transition-property: background-color, transform;
76
+ -moz-transition-duration: .3s;
77
+ }
78
+
79
+ .button a, .button span{
80
+ // Schrifft
81
+ font-size: 16px !important;
82
+ font-weight: 600;
83
+ }
84
+
85
+ .navbar-menu .button, .navbar-dropdown .button{
86
+ // Buttongröße aus Figma
87
+ width: 166px;
88
+ height: 47px;
89
+ }
90
+
91
+ // z.B. "Mehr über Intia" Button
92
+ .button.is-dark:hover,
93
+ .button.is-dark.is-hovered {
94
+ border-width: 1px;
95
+ background-color: $dark;
96
+ border-color: transparent;
97
+ color: white;
98
+ }
99
+
100
+ // Dropdownmenüelemente
101
+ .navbar-dropdown,
102
+ .navbar-item:focus,
103
+ .navbar-dropdown a.navbar-item:focus,
104
+ .navbar-dropdown a.navbar-item:hover {
105
+ background-color: $dark;
106
+ border-width: 2px;
107
+ color: white;
108
+ }
109
+
110
+ // Dropdownmenühintergrund und Rand
111
+ .navbar-dropdown {
112
+ border-top: transparent;
113
+ background-color: transparent;
114
+ }
115
+
116
+ // Navbar Padding
117
+ .navbar-end.buttons {
118
+ padding-left: 0px;
119
+ padding-top: 15px;
120
+ font-weight: bold;
121
+ }
122
+ // Logo Padding
123
+ .navbar-item {
124
+ //padding-top: 21px;
125
+ }
126
+
127
+ .footer {
128
+ background-color: $primary-dark;
129
+ color: white;
130
+ }
131
+
132
+ .link {
133
+ color: $primary;
134
+ }
135
+
136
+ .footer .link {
137
+ color: white;
138
+ }
139
+
140
+ // Specific styles
141
+ @import "layout";
142
+ @import "print";
data/_sass/_print.scss ADDED
@@ -0,0 +1,193 @@
1
+ /**
2
+ * Modify styling for printing, as to PDF or on paper.
3
+ * Copied from: https://gitlab.com/find-it-program-locator/newtowne/-/blob/8.x-1.x/src/global/_print.sass
4
+ */
5
+
6
+
7
+ /**
8
+ * This may get into Bulma proper: https://github.com/jgthms/bulma/pull/2329
9
+ * And https://github.com/jgthms/bulma/issues/721
10
+ */
11
+
12
+
13
+ /* This mixin would be in sass/utilities/mixins.sass per pull/2329 */
14
+
15
+ // Media types
16
+ @mixin print {
17
+ @media print {
18
+ @content;
19
+ }
20
+ @media screen and (min-width: 1024px) {
21
+ .navbar.is-primary .navbar-start .navbar-link::after,
22
+ .navbar.is-primary .navbar-end .navbar-link::after {
23
+ border-color: white;
24
+ }
25
+ }
26
+ @media screen and (min-width: 1024px) {
27
+ .navbar.is-primary .navbar-start>.navbar-item,
28
+ .navbar.is-primary .navbar-start .navbar-link,
29
+ .navbar.is-primary .navbar-end>.navbar-item,
30
+ .navbar.is-primary .navbar-end .navbar-link {
31
+ color: white;
32
+ }
33
+ }
34
+ @media screen and (min-width: 1024px) {
35
+ .navbar.is-primary .navbar-item.has-dropdown:focus .navbar-link,
36
+ .navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link,
37
+ .navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link {
38
+ background-color: transparent;
39
+ color: white;
40
+ }
41
+ }
42
+ @media screen and (min-width: 1024px) {
43
+ .navbar-dropdown {
44
+ background-color: transparent;
45
+ border-bottom-left-radius: 6px;
46
+ border-bottom-right-radius: 6px;
47
+ border-top: transparent;
48
+ box-shadow: none;
49
+ }
50
+ }
51
+ }
52
+
53
+
54
+ /* From https://github.com/jgthms/bulma/pull/2329#issuecomment-459391961 */
55
+
56
+ .columns {
57
+ @include print {
58
+ &.no-print {
59
+ display:block {}
60
+ }
61
+ }
62
+ }
63
+
64
+
65
+ /* Rest from https://github.com/jgthms/bulma/pull/2329/files as was mixin */
66
+
67
+ @include print {
68
+ .is-hidden-print {
69
+ display: none !important;
70
+ }
71
+ /* i added or modified these print link URLs */
72
+ a:not(.is-not-linked-print)[href]::after {
73
+ content: attr(href);
74
+ text-decoration: underline;
75
+ font-size: 90%;
76
+ padding-left: 0.5rem;
77
+ }
78
+ a[href].clearfix::after {
79
+ content: attr(href);
80
+ text-decoration: underline;
81
+ font-size: 90%;
82
+ padding-top: 0.5rem;
83
+ }
84
+ /* and i did this drastic war on color */
85
+ * {
86
+ background-color: white !important;
87
+ color: black !important;
88
+ }
89
+ .is-together-print {
90
+ page-break-inside: avoid;
91
+ }
92
+ /* prevent break inside of a table row */
93
+ table {
94
+ page-break-inside: auto
95
+ }
96
+ tr {
97
+ page-break-inside: avoid;
98
+ page-break-after: auto
99
+ }
100
+ .section {
101
+ padding-top: 0;
102
+ }
103
+ .column.is-narrow {
104
+ display: inline-block;
105
+ }
106
+ .column.is-narrow~.column {
107
+ display: inline-block;
108
+ }
109
+ }
110
+
111
+ .column {
112
+ @include print {
113
+ &.is-narrow-print {
114
+ flex: none;
115
+ }
116
+ &.is-full-print {
117
+ flex: none;
118
+ width: 100%;
119
+ }
120
+ &.is-three-quarters-print {
121
+ flex: none;
122
+ width: 75%;
123
+ }
124
+ &.is-two-thirds-print {
125
+ flex: none;
126
+ width: 66.6666%;
127
+ }
128
+ &.is-half-print {
129
+ flex: none;
130
+ width: 50%;
131
+ }
132
+ &.is-one-third-print {
133
+ flex: none;
134
+ width: 33.3333%;
135
+ }
136
+ &.is-one-quarter-print {
137
+ flex: none;
138
+ width: 25%;
139
+ }
140
+ &.is-one-fifth-print {
141
+ flex: none;
142
+ width: 20%;
143
+ }
144
+ &.is-two-fifths-print {
145
+ flex: none;
146
+ width: 40%;
147
+ }
148
+ &.is-three-fifths-print {
149
+ flex: none;
150
+ width: 60%;
151
+ }
152
+ &.is-four-fifths-print {
153
+ flex: none;
154
+ width: 80%;
155
+ }
156
+ &.is-offset-three-quarters-print {
157
+ margin-left: 75%;
158
+ }
159
+ &.is-offset-two-thirds-print {
160
+ margin-left: 66.6666%;
161
+ }
162
+ &.is-offset-half-print {
163
+ margin-left: 50%;
164
+ }
165
+ &.is-offset-one-third-print {
166
+ margin-left: 33.3333%;
167
+ }
168
+ &.is-offset-one-quarter-print {
169
+ margin-left: 25%;
170
+ }
171
+ &.is-offset-one-fifth-print {
172
+ margin-left: 20%;
173
+ }
174
+ &.is-offset-two-fifths-print {
175
+ margin-left: 40%;
176
+ }
177
+ &.is-offset-three-fifths-print {
178
+ margin-left: 60%;
179
+ }
180
+ &.is-offset-four-fifths-print {
181
+ margin-left: 80%;
182
+ }
183
+ @for $i from 1 through 12 {
184
+ &.is-#{$i}-print {
185
+ flex: none;
186
+ width: percentage($i / 12);
187
+ }
188
+ &.is-offset-#{$i}-print {
189
+ margin-left: percentage($i / 12);
190
+ }
191
+ }
192
+ }
193
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file