_content-row.scss 2.64 KB
Newer Older
1
.content-row {
Benthe Kuijpers's avatar
Benthe Kuijpers committed
2
	padding: 60px 0;
3
4

	@media only screen and (min-width: $large) {
Benthe Kuijpers's avatar
Benthe Kuijpers committed
5
6
7
		padding: 120px 0;
	}

8
9
	.container>h2 {
		margin: 0 0 10px;
Benthe Kuijpers's avatar
Benthe Kuijpers committed
10
11
12
		@include colouredBar($green, $blue);
	}

Benthe Kuijpers's avatar
Benthe Kuijpers committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
	.container {
		align-items: center;
	}

	.image-wrapper {
		flex: 0 0 100%;
		margin: 20px 0;
		text-align: center;

		@media only screen and (min-width: $medium) {
			flex: 0 0 35%;
		}

		img {
			display: inline-block;
			width: 100%;
			max-width: 400px;
Benthe Kuijpers's avatar
Benthe Kuijpers committed
30
			mix-blend-mode: multiply;
Benthe Kuijpers's avatar
Benthe Kuijpers committed
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
		}
	}

	.text-wrapper {
		flex: 1;

		// Large introduction text (using blockquote so it can also be set in a WYSIWYG editor field and doesn't require a special field type)
		blockquote,
		blockquote p {
			font-family: $font-header;
			font-size: 24px;
			line-height: 38px;
			margin: 0;

			strong {
				position: relative;
				font-weight: normal;
				@include colouredBar($blue, $lightblue);
				
				&:before, &:after {
					z-index: -2;
					bottom: 5px;
					height: 3px;
				}

				&:after {
					transform: translate(2px,2px);
				}
			}
		}

		.btn {
			background: $blue;
Benthe Kuijpers's avatar
Benthe Kuijpers committed
64
			margin: 40px 0 2px;
Benthe Kuijpers's avatar
Benthe Kuijpers committed
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
			@include colourBg($lightblue, 0deg);
		}
	}

	// Change order on desktop
	@media only screen and (min-width: $medium) {
		&--text_image {
			.text-wrapper {
				margin-right: 5%;
				order: 1;
			}
			.image-wrapper {
				order: 2;
			}
		}

		&--image_text {
			.text-wrapper {
				margin-left: 5%;
			}
		}
	}

	&--blocks {
		background: url('../img/block.svg') 0 0 / 10px 10px repeat;
90
	}
91
92
93
94

	&--yellow {
		background: $bg-yellow;
	}
95
96

	&--border {
alain's avatar
alain committed
97
		margin: 0 10px;
98
99
100
101
102
103

		@media only screen and (min-width: $large) {
			padding: 90px 0;
		}

		.container {
alain's avatar
alain committed
104
			padding: 20px;
105
106
107
			position: relative;
			max-width: 1060px;

alain's avatar
alain committed
108
109
110
111
112
			@media only screen and (min-width: $smallmedium) {
				padding: 30px;
			}

			@media only screen and (min-width: $medium) {
113
				padding: 50px;
alain's avatar
alain committed
114
115
116
			}

			@media only screen and (min-width: $large) {
117
118
119
120
121
122
123
124
125
				max-width: 1020px;
			}

			&:before,
			&:after,
			.border {
				position: absolute;
				content: " ";
				mix-blend-mode: multiply;
Benthe Kuijpers's avatar
Benthe Kuijpers committed
126
				background: $blue;
127
128
129
			}

			.border {
alain's avatar
alain committed
130
				background: $bg-blue;
131
132
133
134
				top: 0;
				bottom: 0;
				width: 8px;

alain's avatar
alain committed
135
136
137
138
				@media only screen and (min-width: $medium) {
					width: 10px;
				}

139
140
141
142
143
144
145
146
147
148
149
150
151
152
				&--left {
					left: 0;
				}

				&--right {
					right: 0;
				}
			}

			&:before,
			&:after {
				height: 8px;
				left: 0;
				right: 0;
alain's avatar
alain committed
153
154
155
156

				@media only screen and (min-width: $medium) {
					height: 10px;
				}
157
158
159
160
161
162
163
164
165
166
167
			}

			&:before {
				top: 0;
			}

			&:after {
				bottom: 0;
			}
		}
	}
Benthe Kuijpers's avatar
Benthe Kuijpers committed
168
169
170
171
172
173
174
}

// If this is the first row, make it full height
@media only screen and (min-width: $medium) {
	body.home .content-row[data-index="1"] .container {
		min-height: 65vh;
	}
175
}