_content-row.scss 1.63 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
30
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
	.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;
		}
	}

	.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
63
			margin: 40px 0 2px;
Benthe Kuijpers's avatar
Benthe Kuijpers committed
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
			@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;
89
	}
90
91
92
93

	&--yellow {
		background: $bg-yellow;
	}
Benthe Kuijpers's avatar
Benthe Kuijpers committed
94
95
96
97
98
99
100
}

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