-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy paththeme-blocks.less
100 lines (87 loc) · 2.35 KB
/
theme-blocks.less
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
// --------------------------------------------------
// Block
// --------------------------------------------------
// Reverses the visual layout of the components above the medium breakpoint
// e.g. Left layout components would still render first in the DOM order
// but visually appear on the right hand side above the medium breakpoint. The
// components woud vertically stack as per the DOM order below the breakpoint
.block.reverse-desktop-order .component {
@media (min-width: @device-width-medium) {
&__container {
flex-direction: row-reverse;
}
}
}
// Extend width of block to 70rem (1120px)
// --------------------------------------------------
.block.extend-content-container .block__inner {
max-width: 70rem;
}
// Extend width of block to max page width
// --------------------------------------------------
.block.extend-container .block__inner {
max-width: @max-page-width;
}
// DEPRECATED in favour of bg-color-mixin
// Block background color mixin
// Add to block to enable
// e.g. 'block-color black'
// Note: both arguments must be predefined variables
// --------------------------------------------------
.block-color-mixin(@color, @color-inverted) {
.block-color.@{color} {
background-color: @@color;
color: @@color-inverted;
.block,
.component {
&__title,
&__body a,
&__instruction a {
color: @@color-inverted;
}
}
.pagelevelprogress {
&__indicator {
border-color: @@color-inverted;
}
&__indicator-inner {
background-color: @@color;
}
&__indicator-bar {
background-color: @@color-inverted;
}
}
.narrative {
&__progress {
background-color: fade(@@color-inverted, 50%);
color: @@color;
border-color: inherit;
}
&__progress.is-selected {
background-color: @@color-inverted;
color: @@color;
border-color: @@color-inverted;
}
}
& when (@color = transparent-dark) {
.narrative {
&__progress {
background-color: darken(@@color-inverted, 50%);
color: @@color-inverted;
border-color: @@color;
}
&__progress.is-selected {
background-color: @@color-inverted;
color: darken(@@color-inverted, 50%);
}
}
}
& when (@color = transparent-light) {
.narrative {
&__progress, &__progress.is-selected {
color: @white;
}
}
}
}
}