pallote-css 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +88 -0
- package/_site/LICENSE +21 -0
- package/_site/README.md +88 -0
- package/_site/package.json +28 -0
- package/assets/_sass/.DS_Store +0 -0
- package/assets/_sass/common/_editor.scss +166 -0
- package/assets/_sass/common/_fontface.scss +28 -0
- package/assets/_sass/common/_global.scss +132 -0
- package/assets/_sass/common/_mixins.scss +156 -0
- package/assets/_sass/common/_reset.scss +81 -0
- package/assets/_sass/common/_variables.scss +213 -0
- package/assets/_sass/components/_alert.scss +189 -0
- package/assets/_sass/components/_button.scss +257 -0
- package/assets/_sass/components/_buttons.scss +63 -0
- package/assets/_sass/components/_card.scss +252 -0
- package/assets/_sass/components/_form.scss +68 -0
- package/assets/_sass/components/_grid.scss +163 -0
- package/assets/_sass/components/_input.scss +268 -0
- package/assets/_sass/components/_link.scss +49 -0
- package/assets/_sass/components/_list.scss +40 -0
- package/assets/_sass/components/_nav.scss +72 -0
- package/assets/_sass/components/_navbar.scss +207 -0
- package/assets/_sass/components/_page.scss +33 -0
- package/assets/_sass/components/_section.scss +158 -0
- package/assets/_sass/components/_sidebar.scss +27 -0
- package/assets/_sass/components/_tag.scss +78 -0
- package/assets/_sass/components/_text.scss +89 -0
- package/assets/_sass/modules/_cookie.scss +32 -0
- package/assets/_sass/plugins/_highlighter-theme.scss +68 -0
- package/assets/_sass/utilities/_color.scss +122 -0
- package/assets/_sass/utilities/_global.scss +121 -0
- package/assets/_sass/utilities/_text.scss +63 -0
- package/package.json +28 -0
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// navbar
|
|
3
|
+
// nav
|
|
4
|
+
// —————————————————————————————————————————————————————————————————
|
|
5
|
+
|
|
6
|
+
// —————————————————————————————————————————————————————————————————
|
|
7
|
+
// navbar
|
|
8
|
+
// —————————————————————————————————————————————————————————————————
|
|
9
|
+
|
|
10
|
+
.navbar {
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100vw;
|
|
14
|
+
background-color: $background-paper;
|
|
15
|
+
box-shadow: $box-shadow;
|
|
16
|
+
|
|
17
|
+
@include responsive(up, tablet) {
|
|
18
|
+
height: $navbar-height;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.section {
|
|
22
|
+
position: sticky;
|
|
23
|
+
border-bottom: $border;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.section__container {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
padding-top: 0;
|
|
32
|
+
padding-bottom: 0;
|
|
33
|
+
|
|
34
|
+
@include responsive(up, tablet) {
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include responsive(down, tablet) {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
align-items: stretch;
|
|
41
|
+
padding-top: 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__button {
|
|
46
|
+
top: $spacing-md*1.5;
|
|
47
|
+
position: absolute;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__main {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
|
|
54
|
+
@include responsive(down, tablet) {
|
|
55
|
+
justify-content: space-between;
|
|
56
|
+
padding-left: $spacing-lg;
|
|
57
|
+
height: $spacing-xl - $spacing-md;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&__logo {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: baseline;
|
|
64
|
+
font-weight: $font-bold;
|
|
65
|
+
|
|
66
|
+
> * {
|
|
67
|
+
margin-right: $spacing-xs;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__nav.nav {
|
|
72
|
+
|
|
73
|
+
@include responsive(down, tablet) {
|
|
74
|
+
@include transition($transition-md, max-height);
|
|
75
|
+
align-items: flex-start;
|
|
76
|
+
max-height: 0;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
|
|
79
|
+
.js-opened & {
|
|
80
|
+
max-height: 50vh;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// —————————————————————————————————————————————————————————————————
|
|
87
|
+
// nav
|
|
88
|
+
// —————————————————————————————————————————————————————————————————
|
|
89
|
+
|
|
90
|
+
// .nav {
|
|
91
|
+
|
|
92
|
+
// @include responsive(up, tablet) {
|
|
93
|
+
// height: 100%;
|
|
94
|
+
// }
|
|
95
|
+
|
|
96
|
+
// &__container {
|
|
97
|
+
// display: flex;
|
|
98
|
+
// list-style: none;
|
|
99
|
+
|
|
100
|
+
// @include responsive(up, tablet) {
|
|
101
|
+
// height: 100%;
|
|
102
|
+
// align-items: center;
|
|
103
|
+
// }
|
|
104
|
+
|
|
105
|
+
// @include responsive(down, tablet) {
|
|
106
|
+
// @include calc(max-height, '100vh - '$spacing-xl*3);
|
|
107
|
+
// align-items: flex-start;
|
|
108
|
+
// // overflow: scroll;
|
|
109
|
+
// width: 100%;
|
|
110
|
+
// padding-bottom: $spacing-md;
|
|
111
|
+
// flex-direction: column;
|
|
112
|
+
// width: 100%;
|
|
113
|
+
// }
|
|
114
|
+
// }
|
|
115
|
+
|
|
116
|
+
// &__item {
|
|
117
|
+
// // override ul & li styling
|
|
118
|
+
// margin-left: 0;
|
|
119
|
+
|
|
120
|
+
// & + & {
|
|
121
|
+
// padding-top: 0;
|
|
122
|
+
// }
|
|
123
|
+
|
|
124
|
+
// @include responsive(up, tablet) {
|
|
125
|
+
// margin-left: $spacing-sm;
|
|
126
|
+
// }
|
|
127
|
+
|
|
128
|
+
// @include responsive(down, tablet) {
|
|
129
|
+
// width: 100%;
|
|
130
|
+
// display: flex;
|
|
131
|
+
// }
|
|
132
|
+
// }
|
|
133
|
+
|
|
134
|
+
// &__trigger {
|
|
135
|
+
// position: relative;
|
|
136
|
+
// display: inline-flex;
|
|
137
|
+
// flex-direction: column;
|
|
138
|
+
// align-items: center;
|
|
139
|
+
// justify-content: center;
|
|
140
|
+
// position: relative;
|
|
141
|
+
// line-height: 1;
|
|
142
|
+
// height: $spacing-md*2;
|
|
143
|
+
// color: inherit;
|
|
144
|
+
// padding-right: $spacing-md;
|
|
145
|
+
// padding-left: $spacing-md;
|
|
146
|
+
// font-weight: $font-bold;
|
|
147
|
+
|
|
148
|
+
// @include responsive(down, tablet) {
|
|
149
|
+
// width: 100%;
|
|
150
|
+
// margin-bottom: $spacing-xs;
|
|
151
|
+
// padding: $spacing-md - $spacing-xs;
|
|
152
|
+
// align-items: flex-start;
|
|
153
|
+
// border-radius: $border-radius-sm;
|
|
154
|
+
|
|
155
|
+
// @include hover {
|
|
156
|
+
// background-color: $background-paper;
|
|
157
|
+
// }
|
|
158
|
+
// }
|
|
159
|
+
|
|
160
|
+
// @include responsive(up, tablet) {
|
|
161
|
+
|
|
162
|
+
// &:before {
|
|
163
|
+
// @include transition($transition-md, opacity);
|
|
164
|
+
// content: "";
|
|
165
|
+
// position: absolute;
|
|
166
|
+
// top: 0;
|
|
167
|
+
// right: 0;
|
|
168
|
+
// bottom: 0;
|
|
169
|
+
// left: 0;
|
|
170
|
+
// background-color: $background-paper;
|
|
171
|
+
// border-radius: $border-radius-sm;
|
|
172
|
+
// z-index: -1;
|
|
173
|
+
// opacity: 0;
|
|
174
|
+
// }
|
|
175
|
+
|
|
176
|
+
// @include hover {
|
|
177
|
+
|
|
178
|
+
// &:before {
|
|
179
|
+
// opacity: 1;
|
|
180
|
+
// }
|
|
181
|
+
// }
|
|
182
|
+
// }
|
|
183
|
+
|
|
184
|
+
// &--active {
|
|
185
|
+
// color: $primary;
|
|
186
|
+
|
|
187
|
+
// @include responsive(up, tablet) {
|
|
188
|
+
|
|
189
|
+
// &:after {
|
|
190
|
+
// content: "";
|
|
191
|
+
// position: absolute;
|
|
192
|
+
// bottom: -14px;
|
|
193
|
+
// left: 0;
|
|
194
|
+
// width: 100%;
|
|
195
|
+
// height: $spacing-sm;
|
|
196
|
+
// background-color: $primary;
|
|
197
|
+
// border-top-left-radius: $border-radius-sm;
|
|
198
|
+
// border-top-right-radius: $border-radius-sm;
|
|
199
|
+
// }
|
|
200
|
+
// }
|
|
201
|
+
|
|
202
|
+
// @include responsive(down, tablet) {
|
|
203
|
+
// background-color: $background-paper;
|
|
204
|
+
// }
|
|
205
|
+
// }
|
|
206
|
+
// }
|
|
207
|
+
// }
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// elements
|
|
3
|
+
// withSidebar
|
|
4
|
+
// —————————————————————————————————————————————————————————————————
|
|
5
|
+
|
|
6
|
+
// —————————————————————————————————————————————————————————————————
|
|
7
|
+
// elements
|
|
8
|
+
// —————————————————————————————————————————————————————————————————
|
|
9
|
+
|
|
10
|
+
.page {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
min-height: 100vh;
|
|
14
|
+
|
|
15
|
+
&__content {
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// —————————————————————————————————————————————————————————————————
|
|
21
|
+
// withSidebar
|
|
22
|
+
// —————————————————————————————————————————————————————————————————
|
|
23
|
+
|
|
24
|
+
.page--withSidebar {
|
|
25
|
+
|
|
26
|
+
.page__container {
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.section__container {
|
|
31
|
+
max-width: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// elements
|
|
3
|
+
// alignement
|
|
4
|
+
// color
|
|
5
|
+
// size
|
|
6
|
+
// variants
|
|
7
|
+
// overrides
|
|
8
|
+
// —————————————————————————————————————————————————————————————————
|
|
9
|
+
|
|
10
|
+
// —————————————————————————————————————————————————————————————————
|
|
11
|
+
// elements
|
|
12
|
+
// —————————————————————————————————————————————————————————————————
|
|
13
|
+
|
|
14
|
+
.section {
|
|
15
|
+
@include clamp(padding-right, $spacing-md, 4vw, $spacing-xl);
|
|
16
|
+
@include clamp(padding-left, $spacing-md, 4vw, $spacing-xl);
|
|
17
|
+
overflow: hidden; // prevent horizontal scroll on mobile
|
|
18
|
+
position: relative;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
|
|
23
|
+
&__container {
|
|
24
|
+
@include clamp(padding-top, $spacing-lg, 8vw, $spacing-xl);
|
|
25
|
+
@include clamp(padding-bottom, $spacing-lg, 8vw, $spacing-xl);
|
|
26
|
+
width: 100%;
|
|
27
|
+
max-width: $desktop;
|
|
28
|
+
position: relative; // needed to have the content over section--landing:before
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__header {
|
|
32
|
+
|
|
33
|
+
& + .section__content { @include clamp(padding-top, $spacing-lg, 8vw, $spacing-xl); }
|
|
34
|
+
&--dense + .section__content { padding-top: $spacing-lg; }
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__content {
|
|
38
|
+
width: 100%;
|
|
39
|
+
|
|
40
|
+
& + & {
|
|
41
|
+
margin-top: $spacing-lg;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&__label {
|
|
46
|
+
color: $text-alt;
|
|
47
|
+
font-weight: $font-bold;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__title {
|
|
51
|
+
@extend %h3;
|
|
52
|
+
color: $primary;
|
|
53
|
+
max-width: $desktop*0.75;
|
|
54
|
+
|
|
55
|
+
.section__label + & {
|
|
56
|
+
margin-top: $spacing-sm;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.section__header--dense & {
|
|
60
|
+
color: inherit;
|
|
61
|
+
@extend %h4;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&__subtitle {
|
|
66
|
+
@extend %body;
|
|
67
|
+
max-width: $max-width-subtitle;
|
|
68
|
+
|
|
69
|
+
.section__title + & {
|
|
70
|
+
margin-top: $spacing-lg - $spacing-md;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
& + & {
|
|
74
|
+
margin-top: $spacing-md;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__actions {
|
|
79
|
+
|
|
80
|
+
.section__title + &,
|
|
81
|
+
.section__subtitle + & {
|
|
82
|
+
margin-top: $spacing-lg;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// —————————————————————————————————————————————————————————————————
|
|
88
|
+
// alignement
|
|
89
|
+
// —————————————————————————————————————————————————————————————————
|
|
90
|
+
|
|
91
|
+
.section {
|
|
92
|
+
|
|
93
|
+
&--left { align-items: flex-start; text-align: left; }
|
|
94
|
+
&--center { align-items: center; text-align: center; }
|
|
95
|
+
&--right { align-items: flex-end; text-align: right; }
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// —————————————————————————————————————————————————————————————————
|
|
99
|
+
// color
|
|
100
|
+
// —————————————————————————————————————————————————————————————————
|
|
101
|
+
|
|
102
|
+
@mixin color($background-color, $color-title: $primary, $color: $text) {
|
|
103
|
+
background-color: $background-color;
|
|
104
|
+
color: $color;
|
|
105
|
+
|
|
106
|
+
& + & {
|
|
107
|
+
|
|
108
|
+
.section__container {
|
|
109
|
+
padding-top: 0;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.section__title { color: $color-title; }
|
|
114
|
+
.button--stroke { color: $color; }
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.section {
|
|
118
|
+
|
|
119
|
+
&--default { @include color($background-default); }
|
|
120
|
+
&--paper { @include color($background-paper); }
|
|
121
|
+
&--primary { @include color($primary, $primary-text, $primary-text); }
|
|
122
|
+
&--primaryLight { @include color($primary-light); }
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// —————————————————————————————————————————————————————————————————
|
|
126
|
+
// size
|
|
127
|
+
// —————————————————————————————————————————————————————————————————
|
|
128
|
+
|
|
129
|
+
.section__content {
|
|
130
|
+
|
|
131
|
+
&--mobile { max-width: $mobile; }
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// —————————————————————————————————————————————————————————————————
|
|
135
|
+
// variants
|
|
136
|
+
// —————————————————————————————————————————————————————————————————
|
|
137
|
+
|
|
138
|
+
.section--landing {
|
|
139
|
+
align-items: center;
|
|
140
|
+
|
|
141
|
+
.section__title { @extend %h1; max-width: $desktop*0.5; }
|
|
142
|
+
.section__subtitle { @extend %h5; }
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// first section of the page for page title
|
|
146
|
+
.section--header {
|
|
147
|
+
|
|
148
|
+
.section__title { @extend %h2; }
|
|
149
|
+
.section__subtitle { @extend %subtitle; }
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// —————————————————————————————————————————————————————————————————
|
|
153
|
+
// overrides
|
|
154
|
+
// —————————————————————————————————————————————————————————————————
|
|
155
|
+
|
|
156
|
+
.footer {
|
|
157
|
+
border-top: $border;
|
|
158
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.sidebar {
|
|
2
|
+
@include calc(height, '100vh - '$navbar-height);
|
|
3
|
+
position: sticky;
|
|
4
|
+
flex-shrink: 0;
|
|
5
|
+
border-right: $border;
|
|
6
|
+
width: 200px;
|
|
7
|
+
top: $navbar-height;
|
|
8
|
+
padding: $spacing-lg $spacing-md;
|
|
9
|
+
overflow-y: scroll;
|
|
10
|
+
scrollbar-color: light;
|
|
11
|
+
|
|
12
|
+
&__nav {
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
|
|
15
|
+
.nav {
|
|
16
|
+
|
|
17
|
+
&__group {
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
align-items: stretch;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__trigger {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// elements
|
|
3
|
+
// color
|
|
4
|
+
// size
|
|
5
|
+
// —————————————————————————————————————————————————————————————————
|
|
6
|
+
|
|
7
|
+
// —————————————————————————————————————————————————————————————————
|
|
8
|
+
// elements
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
|
|
11
|
+
.tags {
|
|
12
|
+
display: flex;
|
|
13
|
+
|
|
14
|
+
.tag:not(:last-child) {
|
|
15
|
+
margin-right: $spacing-xs;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--portrait {
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
|
|
22
|
+
.tag:not(:last-child) {
|
|
23
|
+
margin-bottom: $spacing-xs;
|
|
24
|
+
margin-right: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.tag {
|
|
30
|
+
@extend %caption;
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
font-weight: $font-bold;
|
|
35
|
+
border-radius: $border-radius-sm;
|
|
36
|
+
white-space: nowrap; // prevent text to go on multiple lines
|
|
37
|
+
height: $spacing-md*1.5;
|
|
38
|
+
padding-right: $spacing-sm*0.75;
|
|
39
|
+
padding-bottom: 0.2em;
|
|
40
|
+
padding-left: $spacing-sm*0.75;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// —————————————————————————————————————————————————————————————————
|
|
44
|
+
// color
|
|
45
|
+
// —————————————————————————————————————————————————————————————————
|
|
46
|
+
|
|
47
|
+
@mixin color($prefix, $colors...) {
|
|
48
|
+
|
|
49
|
+
@each $i in $colors {
|
|
50
|
+
.#{$prefix}#{nth($i, 1)} {
|
|
51
|
+
background-color: nth($i, 2);
|
|
52
|
+
color: nth($i, 3);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@include color('tag',
|
|
58
|
+
'' $primary $primary-text,
|
|
59
|
+
'--secondary' $secondary $secondary-text,
|
|
60
|
+
'--highlight' $highlight $highlight-text,
|
|
61
|
+
'--grey' $text-disabled $text,
|
|
62
|
+
'--success' $success $success-contrast,
|
|
63
|
+
'--info' $info $info-contrast,
|
|
64
|
+
'--warning' $warning $warning-contrast,
|
|
65
|
+
'--error' $error $error-contrast
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
// —————————————————————————————————————————————————————————————————
|
|
69
|
+
// dense
|
|
70
|
+
// —————————————————————————————————————————————————————————————————
|
|
71
|
+
|
|
72
|
+
.tag--dense {
|
|
73
|
+
@extend %overline;
|
|
74
|
+
height: $spacing-md;
|
|
75
|
+
padding-right: $spacing-xs;
|
|
76
|
+
padding-left: $spacing-xs;
|
|
77
|
+
padding-bottom: 0.1em;
|
|
78
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// elements
|
|
3
|
+
// —————————————————————————————————————————————————————————————————
|
|
4
|
+
|
|
5
|
+
@mixin font-size($font-size, $font-weight, $line-height) {
|
|
6
|
+
font-size: $font-size;
|
|
7
|
+
font-weight: $font-weight;
|
|
8
|
+
line-height: $line-height;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.h1, %h1 {
|
|
12
|
+
@include font-size(
|
|
13
|
+
$h1-size,
|
|
14
|
+
$h1-weight,
|
|
15
|
+
$h1-line-height
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.h2, %h2 {
|
|
20
|
+
@include font-size(
|
|
21
|
+
$h2-size,
|
|
22
|
+
$h2-weight,
|
|
23
|
+
$h2-line-height
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.h3, %h3 {
|
|
28
|
+
@include font-size(
|
|
29
|
+
$h3-size,
|
|
30
|
+
$h3-weight,
|
|
31
|
+
$h3-line-height
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.h4, %h4 {
|
|
36
|
+
@include font-size(
|
|
37
|
+
$h4-size,
|
|
38
|
+
$h4-weight,
|
|
39
|
+
$h4-line-height
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.h5, %h5 {
|
|
44
|
+
@include font-size(
|
|
45
|
+
$h5-size,
|
|
46
|
+
$h5-weight,
|
|
47
|
+
$h5-line-height
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.h6, %h6 {
|
|
52
|
+
@include font-size(
|
|
53
|
+
$h6-size,
|
|
54
|
+
$h6-weight,
|
|
55
|
+
$h6-line-height
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.subtitle, %subtitle {
|
|
60
|
+
@include font-size(
|
|
61
|
+
$subtitle-size,
|
|
62
|
+
$subtitle-weight,
|
|
63
|
+
$subtitle-line-height
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.body, %body {
|
|
68
|
+
@include font-size(
|
|
69
|
+
$body-size,
|
|
70
|
+
$body-weight,
|
|
71
|
+
$body-line-height
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.caption, %caption {
|
|
76
|
+
@include font-size(
|
|
77
|
+
$caption-size,
|
|
78
|
+
$caption-weight,
|
|
79
|
+
$caption-line-height
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.overline, %overline {
|
|
84
|
+
@include font-size(
|
|
85
|
+
$overline-size,
|
|
86
|
+
$overline-weight,
|
|
87
|
+
$overline-line-height
|
|
88
|
+
);
|
|
89
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.cookie {
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
&.section {
|
|
5
|
+
@include transition($transition-md, transform);
|
|
6
|
+
position: fixed;
|
|
7
|
+
right: 0;
|
|
8
|
+
bottom: 0;
|
|
9
|
+
left: 0;
|
|
10
|
+
display: none;
|
|
11
|
+
background-color: $background-default;
|
|
12
|
+
text-align: left;
|
|
13
|
+
|
|
14
|
+
.section__container {
|
|
15
|
+
padding-top: 10px;
|
|
16
|
+
padding-bottom: 9px;
|
|
17
|
+
flex-direction: row;
|
|
18
|
+
align-items: baseline;
|
|
19
|
+
justify-content: flex-start;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.js-cookie-accepted {
|
|
24
|
+
@include transition($transition-md, transform);
|
|
25
|
+
transform: translateY(100%);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__text {
|
|
29
|
+
display: inline;
|
|
30
|
+
margin-right: $spacing-xs;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.highlight,
|
|
2
|
+
.highlighter-rouge {
|
|
3
|
+
position: relative;
|
|
4
|
+
font-family: monospace;
|
|
5
|
+
font-size: 0.75rem;
|
|
6
|
+
background-color: $background-paper;
|
|
7
|
+
color: #EFF0F2;
|
|
8
|
+
padding: $spacing-md;
|
|
9
|
+
border-radius: $border-radius-md;
|
|
10
|
+
width: 100%;
|
|
11
|
+
|
|
12
|
+
&.language-plaintext {
|
|
13
|
+
color: $text;
|
|
14
|
+
border-radius: $border-radius-sm;
|
|
15
|
+
padding: $spacing-xs $spacing-sm;
|
|
16
|
+
|
|
17
|
+
a & {
|
|
18
|
+
color: $primary-text;
|
|
19
|
+
background-color: $primary-light;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.highlight {
|
|
24
|
+
padding: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
pre {
|
|
28
|
+
margin: 0;
|
|
29
|
+
white-space: break-spaces;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
p &,
|
|
33
|
+
ul &,
|
|
34
|
+
ol &,
|
|
35
|
+
table & {
|
|
36
|
+
width: auto;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tag {
|
|
40
|
+
font-family: $font;
|
|
41
|
+
float: right;
|
|
42
|
+
margin-top: 1px;
|
|
43
|
+
margin-right: -$spacing-xs;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.highlight {
|
|
48
|
+
|
|
49
|
+
.ge { font-style: italic; }
|
|
50
|
+
|
|
51
|
+
.hll { background-color: #49483e; }
|
|
52
|
+
.err { background-color: #1e0010; }
|
|
53
|
+
|
|
54
|
+
.err { color: #960050; }
|
|
55
|
+
.k, .kd, .kt, .no { color: #66d9ef; }
|
|
56
|
+
// css properties values
|
|
57
|
+
.il, .l, .m, .mo, .se { color: #D29132; }
|
|
58
|
+
// ponctuation
|
|
59
|
+
.n, .nb, .ni, .nn, .nv, .p, .py, .vi, .w { color: #EFF0F2; }
|
|
60
|
+
// tags in html
|
|
61
|
+
.gd, .nt, .kn, .o, .ow { color: #B1B9D4; }
|
|
62
|
+
// comments
|
|
63
|
+
.c, .cm, .cp, .c1, .cs { color: #636B7B; }
|
|
64
|
+
// classes in css
|
|
65
|
+
.kc, .kp, .kr, .ld, .mf, .mh, .mi, .s, .sb, .sc, .sd, .s2, .sh, .si, .sx, .sr, .s1, .ss { color: #EDD3AD; }
|
|
66
|
+
.na, .nc, .nd, .ne, .nf, .nl, .nx, .gi { color: #FFDC46; }
|
|
67
|
+
.bp, .vc, .vg, .gu { color: #75715e; }
|
|
68
|
+
}
|