-
Notifications
You must be signed in to change notification settings - Fork 0
/
_base.scss
136 lines (120 loc) · 2.58 KB
/
_base.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/*
*
* Web Experience Toolkit (WET) / Boîte à outils de l'expérience Web (BOEW)
* wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html
*
*
* Provisional GC Subway map menu
*/
@mixin dt-li($paddingBottom, $fcb-left, $fcb-width, $ahb-height, $ahb-left, $ahb-width ) {
border-left: 4px solid #26374a;
padding: 0px 20px $paddingBottom 1em;
a {
&::before {
background-color: #fff;
border: 3px solid #26374a;
border-radius: 50%;
content: "";
height: 1.2em;
left: $fcb-left;
position: absolute;
transition: width .2s, height .2s, left .2s, margin-top .2s;
width: $fcb-width;
}
&.active {
color: $text-color;
text-decoration: none;
&::before {
background-color: #26374a;
}
&:hover,
&:focus {
color: $link-hover-color;
text-decoration: underline;
}
}
&:not(.active) {
&:hover::before,
&:focus::before {
height: 1.5em;
left: -.1em;
margin-top: -.1em;
width: 1.5em;
}
}
}
}
.provisional {
/*** GC Subway mobile first styles ***/
&.gc-subway-cra {
border-radius: 0px 6px 6px 0px;
border-right: 4px solid #26374a;
border-top: 4px solid #26374a;
margin-top: 38px;
ul,
dl {
clear: both;
list-style: none;
padding-left: .57em;
padding-top: 10px;
position: relative;
dt {
@include dt-li(3px, 0em, 1.3em, 1.5em, -.1em, 1.5em);
font-weight: normal;
&:last-of-type {
border-left: 5px solid transparent;
padding-bottom: 0;
}
}
dd {
border-left: 4px solid #26374a;
line-height: inherit !important;
margin-bottom: 0px;
margin-top: -3px;
padding: 0px 20px 20px 1em;
&:last-child {
border-left: 5px solid transparent;
padding-bottom: 0;
}
}
li {
@include dt-li(30px, .05em, 1.2em, 1.4em, -.05em, 1.4em);
&::first-line {
line-height: 1 !important;
}
&:last-child {
border-bottom: 4px solid #26374a;
border-bottom-left-radius: 6px;
border-left: 4px solid #26374a;
}
ul {
margin-top: 20px;
padding-left: .55em;
li:last-child {
border-bottom-width: 0px;
padding-bottom: 0px;
}
}
}
}
h1 {
float: left;
}
}
/* Double H1 */
&.gc-subway-cra h1,
&.gc-subway-cra-section .gc-subway-cra-h1 {
background-color: #fff;
border-bottom-width: 0px;
color: #555;
font-size: 1.3em;
margin-right: 20px;
margin-top: -19px;
padding: 0px 20px 10px 0px;
}
}
// Remove the border for index pages, when an h1 precede the subway nav.
h1 ~ .provisional.gc-subway-cra {
border-right: none;
border-top: none;
}