-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy path_content-section.scss
More file actions
86 lines (73 loc) · 1.5 KB
/
_content-section.scss
File metadata and controls
86 lines (73 loc) · 1.5 KB
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
/**
* 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);
}
}
}
.organisations-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
align-items: start;
justify-items: start;
@include govuk-media-query(desktop) {
grid-template-columns: auto 1fr 1fr 1fr 1fr auto;
align-items: center;
justify-items: center;
}
&__logo {
width: auto;
height: 4em;
display: block;
&--small {
height: 2.5em;
}
}
}