-
Notifications
You must be signed in to change notification settings - Fork 15
/
_content-section.scss
102 lines (85 loc) · 1.72 KB
/
_content-section.scss
1
2
3
4
5
6
7
8
9
10
11
12
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
63
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/**
* Content Section Component
*
* Represents a section of content on the product page, with a title and
* optional image.
*
* Example Usage:
*
* <section class="content-section">
* <h2 class="content-section__title">Section Title</h2>
* <p class="content-section__body">Lorem ipsum dolor...</p>
* </section>
*/
.content-section {
margin-top: govuk-spacing(6);
&__title {
margin-top: 0;
}
&__image {
max-width: 100%;
margin-bottom: govuk-spacing(6);
}
&__video {
border: 1px solid $govuk-border-colour;
height: 0;
overflow: hidden;
position: relative;
padding: 30px 5px 56.25%;
iframe,
object {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
&__transcript {
margin: 5px 0;
padding: 5px 0;
summary:hover {
background-color: govuk-colour('light-grey');
}
}
&--with-top-border {
padding-top: govuk-spacing(9);
border-top: 1px $govuk-border-colour solid;
}
&--with-top-padding {
@include govuk-media-query(tablet) {
padding-top: govuk-spacing(9);
}
}
}
.partner-grid {
display: grid;
grid-template-columns: 1fr 1fr;
@include govuk-media-query(desktop) {
grid-template-columns: 1fr 1fr 1fr;
}
}
.partner-logo {
margin-right: govuk-spacing(3);
margin-bottom: govuk-spacing(6);
width: auto;
height: 4em;
@include govuk-media-query(tablet) {
margin-right: govuk-spacing(4);
&:last-of-type {
margin-right: 0;
}
}
&-smaller {
height: 3.5em;
}
&--fcdo {
height: auto;
max-height: 4em;
@include govuk-media-query(tablet) {
box-sizing: border-box;
margin: 0;
padding-right: 20px;
}
}
}