_content-row.scss 2.34 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118

	&--border {
		padding: 30px 0;

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

		.container {
			padding: 30px;
			position: relative;
			max-width: 1060px;

			@media only screen and (min-width: $large) {
				padding: 50px;
				max-width: 1020px;
			}

			&:before,
			&:after,
			.border {
				position: absolute;
				content: " ";
				mix-blend-mode: multiply;
Benthe Kuijpers's avatar
Benthe Kuijpers committed
119
				background: $blue;
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
			}

			.border {
				top: 0;
				bottom: 0;
				width: 8px;

				&--left {
					left: 0;
				}

				&--right {
					right: 0;
				}
			}

			&:before,
			&:after {
				height: 8px;
				left: 0;
				right: 0;
			}

			&:before {
				top: 0;
			}

			&:after {
				bottom: 0;
			}
		}
	}
Benthe Kuijpers's avatar
Benthe Kuijpers committed
152
153
154
155
156
157
158
}

// 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;
	}
159
}