pallote-react 0.2.25
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 +9 -0
- package/dist/components/Accordion.js +70 -0
- package/dist/components/AccordionItem.js +90 -0
- package/dist/components/Alert.js +86 -0
- package/dist/components/Breadcrumbs.js +40 -0
- package/dist/components/Button.js +74 -0
- package/dist/components/Buttons.js +41 -0
- package/dist/components/Card.js +74 -0
- package/dist/components/CardActions.js +34 -0
- package/dist/components/CardContent.js +34 -0
- package/dist/components/CardHeader.js +83 -0
- package/dist/components/CardMedia.js +48 -0
- package/dist/components/Checkbox.js +54 -0
- package/dist/components/Checkboxes.js +76 -0
- package/dist/components/Chip.js +58 -0
- package/dist/components/Component.js +38 -0
- package/dist/components/Display.js +48 -0
- package/dist/components/Divider.js +39 -0
- package/dist/components/Grid.js +73 -0
- package/dist/components/Input.js +101 -0
- package/dist/components/Layer.js +55 -0
- package/dist/components/Link.js +42 -0
- package/dist/components/List.js +34 -0
- package/dist/components/ListItem.js +47 -0
- package/dist/components/Loader.js +45 -0
- package/dist/components/Modal.js +75 -0
- package/dist/components/ModalActions.js +31 -0
- package/dist/components/ModalContent.js +31 -0
- package/dist/components/ModalHeader.js +29 -0
- package/dist/components/Nav.js +39 -0
- package/dist/components/NavBar.js +53 -0
- package/dist/components/NavGroup.js +30 -0
- package/dist/components/NavItem.js +73 -0
- package/dist/components/Page.js +30 -0
- package/dist/components/PageHeader.js +57 -0
- package/dist/components/Paragraph.js +54 -0
- package/dist/components/Radio.js +53 -0
- package/dist/components/RadioButtons.js +76 -0
- package/dist/components/Section.js +59 -0
- package/dist/components/SectionHeader.js +45 -0
- package/dist/components/Select.js +80 -0
- package/dist/components/Snippet.js +49 -0
- package/dist/components/Status.js +42 -0
- package/dist/components/Step.js +63 -0
- package/dist/components/Stepper.js +81 -0
- package/dist/components/Switch.js +56 -0
- package/dist/components/Table.js +55 -0
- package/dist/components/TableBody.js +30 -0
- package/dist/components/TableCell.js +46 -0
- package/dist/components/TableFooter.js +89 -0
- package/dist/components/TableHead.js +37 -0
- package/dist/components/TableRow.js +30 -0
- package/dist/components/Tabs.js +30 -0
- package/dist/components/TabsContent.js +28 -0
- package/dist/components/TabsControl.js +46 -0
- package/dist/components/Tag.js +42 -0
- package/dist/components/Text.js +63 -0
- package/dist/components/Textarea.js +82 -0
- package/dist/components/Tooltip.js +52 -0
- package/dist/index.js +376 -0
- package/dist/styles/common/_global.scss +98 -0
- package/dist/styles/common/_mixins.scss +58 -0
- package/dist/styles/common/_variables.scss +222 -0
- package/dist/styles/components/accordion.scss +181 -0
- package/dist/styles/components/button.scss +210 -0
- package/dist/styles/components/buttons.scss +56 -0
- package/dist/styles/components/card.scss +243 -0
- package/dist/styles/components/checkbox.scss +78 -0
- package/dist/styles/components/chip.scss +77 -0
- package/dist/styles/components/component.scss +17 -0
- package/dist/styles/components/detail.scss +36 -0
- package/dist/styles/components/divider.scss +54 -0
- package/dist/styles/components/form-field.scss +262 -0
- package/dist/styles/components/link.scss +36 -0
- package/dist/styles/components/loader.scss +131 -0
- package/dist/styles/components/modal.scss +112 -0
- package/dist/styles/components/nav-group.scss +72 -0
- package/dist/styles/components/nav-item.scss +127 -0
- package/dist/styles/components/navbar.scss +41 -0
- package/dist/styles/components/page.scss +48 -0
- package/dist/styles/components/radio.scss +58 -0
- package/dist/styles/components/section.scss +169 -0
- package/dist/styles/components/snippet.scss +79 -0
- package/dist/styles/components/stepper.scss +78 -0
- package/dist/styles/components/switch.scss +71 -0
- package/dist/styles/components/table.scss +167 -0
- package/dist/styles/components/tabs.scss +102 -0
- package/dist/styles/components/tag.scss +41 -0
- package/dist/styles/components/tooltip.scss +65 -0
- package/dist/styles/index.scss +8 -0
- package/dist/styles/mixins/layer.scss +109 -0
- package/dist/styles/mixins/text.scss +150 -0
- package/package.json +91 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// mixins
|
|
3
|
+
// elements
|
|
4
|
+
// direction
|
|
5
|
+
// spacing
|
|
6
|
+
// —————————————————————————————————————————————————————————————————
|
|
7
|
+
|
|
8
|
+
// —————————————————————————————————————————————————————————————————
|
|
9
|
+
// mixins
|
|
10
|
+
// —————————————————————————————————————————————————————————————————
|
|
11
|
+
|
|
12
|
+
@mixin spacing($proportion, $size) {
|
|
13
|
+
margin: -$size;
|
|
14
|
+
|
|
15
|
+
@if $proportion == sm {
|
|
16
|
+
@include responsive(down, tablet) { margin: -$spacing*0.5; }
|
|
17
|
+
}
|
|
18
|
+
@include responsive(down, mobile) { margin: -$spacing; }
|
|
19
|
+
|
|
20
|
+
> * {
|
|
21
|
+
margin: $size;
|
|
22
|
+
|
|
23
|
+
@if $proportion == sm {
|
|
24
|
+
@include responsive(down, tablet) { margin: $spacing*0.5; }
|
|
25
|
+
}
|
|
26
|
+
@include responsive(down, mobile) { margin: $spacing; }
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// —————————————————————————————————————————————————————————————————
|
|
31
|
+
// elements
|
|
32
|
+
// —————————————————————————————————————————————————————————————————
|
|
33
|
+
|
|
34
|
+
.buttons {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
flex-wrap: wrap;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// —————————————————————————————————————————————————————————————————
|
|
40
|
+
// direction
|
|
41
|
+
// —————————————————————————————————————————————————————————————————
|
|
42
|
+
|
|
43
|
+
.buttons--portrait {
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// —————————————————————————————————————————————————————————————————
|
|
48
|
+
// spacing
|
|
49
|
+
// —————————————————————————————————————————————————————————————————
|
|
50
|
+
|
|
51
|
+
.buttons {
|
|
52
|
+
|
|
53
|
+
&--sm { @include spacing(sm, $spacing*0.25); }
|
|
54
|
+
&--md { @include spacing(md, $spacing*0.5); }
|
|
55
|
+
&--lg { @include spacing(lg, $spacing); }
|
|
56
|
+
}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// mixins
|
|
3
|
+
// elements
|
|
4
|
+
// size
|
|
5
|
+
// direction
|
|
6
|
+
// noPadding
|
|
7
|
+
// —————————————————————————————————————————————————————————————————
|
|
8
|
+
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
// mixins
|
|
11
|
+
// —————————————————————————————————————————————————————————————————
|
|
12
|
+
|
|
13
|
+
// for card media
|
|
14
|
+
@mixin border-radius($int) {
|
|
15
|
+
|
|
16
|
+
.card__mediaInner {
|
|
17
|
+
border-radius: $int !important;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin size($size) {
|
|
22
|
+
border-radius: $size;
|
|
23
|
+
|
|
24
|
+
&.card--shadow {
|
|
25
|
+
box-shadow: 0 0 $size $size*0.25 rgba($white ,0.25);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
> .card__media,
|
|
29
|
+
> .card__header,
|
|
30
|
+
> .card__content,
|
|
31
|
+
> .card__actions {
|
|
32
|
+
padding: $size;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.card {
|
|
36
|
+
|
|
37
|
+
&__subtitle { margin-top: calc($size / 3); }
|
|
38
|
+
&__mediaInner { border-radius: $size*0.25; }
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
> .card__media--fullWidth .card__mediaInner {
|
|
42
|
+
border-radius: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.card--transparent > .card__media--fullWidth .card__mediaInner {
|
|
46
|
+
border-radius: $size*0.5;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.card--portrait {
|
|
50
|
+
|
|
51
|
+
> .card__media,
|
|
52
|
+
> .card__header,
|
|
53
|
+
> .card__content,
|
|
54
|
+
> .card__actions {
|
|
55
|
+
|
|
56
|
+
&:not(:first-child) {
|
|
57
|
+
padding-top: 0;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
> .card__actions {
|
|
62
|
+
margin-top: auto;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.card--noPadding {
|
|
66
|
+
|
|
67
|
+
> .card__media,
|
|
68
|
+
> .card__header,
|
|
69
|
+
> .card__content,
|
|
70
|
+
> .card__actions {
|
|
71
|
+
padding: 0;
|
|
72
|
+
|
|
73
|
+
&:not(:first-child) {
|
|
74
|
+
padding-top: $size;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
>.card__media .card__mediaInner {
|
|
79
|
+
border-radius: calc($size/2);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.card__media--fullWidth {
|
|
84
|
+
padding-right: 0;
|
|
85
|
+
padding-top: 0;
|
|
86
|
+
padding-left: 0;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.card--landscape {
|
|
91
|
+
|
|
92
|
+
> .card__media,
|
|
93
|
+
> .card__header,
|
|
94
|
+
> .card__content,
|
|
95
|
+
> .card__actions {
|
|
96
|
+
|
|
97
|
+
&:not(:first-child) {
|
|
98
|
+
padding-left: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
> .card__actions {
|
|
103
|
+
margin-left: auto;
|
|
104
|
+
flex-direction: column;
|
|
105
|
+
justify-content: flex-start;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.card--noPadding {
|
|
109
|
+
|
|
110
|
+
> .card__media,
|
|
111
|
+
> .card__header,
|
|
112
|
+
> .card__content,
|
|
113
|
+
> .card__actions {
|
|
114
|
+
padding: 0;
|
|
115
|
+
|
|
116
|
+
&:not(:first-child) {
|
|
117
|
+
padding-left: $size;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
>.card__media .card__mediaInner {
|
|
122
|
+
border-radius: calc($size/2);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.card__media--fullWidth {
|
|
127
|
+
padding-top: 0;
|
|
128
|
+
padding-bottom: 0;
|
|
129
|
+
padding-left: 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// —————————————————————————————————————————————————————————————————
|
|
135
|
+
// elements
|
|
136
|
+
// —————————————————————————————————————————————————————————————————
|
|
137
|
+
|
|
138
|
+
.card {
|
|
139
|
+
display: flex;
|
|
140
|
+
flex-direction: column;
|
|
141
|
+
align-items: stretch;
|
|
142
|
+
width: 100%;
|
|
143
|
+
overflow: hidden; // hide corners when CardMedia has fullWidth prop set to true
|
|
144
|
+
|
|
145
|
+
&__media {
|
|
146
|
+
flex-basis: 0;
|
|
147
|
+
|
|
148
|
+
&Inner {
|
|
149
|
+
background-size: cover;
|
|
150
|
+
background-repeat: no-repeat;
|
|
151
|
+
background-position: center center;
|
|
152
|
+
width: 100%;
|
|
153
|
+
height: 100%;
|
|
154
|
+
background-color: $backdrop;
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&--borderRadius {
|
|
159
|
+
|
|
160
|
+
&--xs { @include border-radius($spacing*0.5); }
|
|
161
|
+
&--sm { @include border-radius($spacing*0.75); }
|
|
162
|
+
&--md { @include border-radius($spacing*1); }
|
|
163
|
+
&--lg { @include border-radius($spacing*1.5); }
|
|
164
|
+
&--xl { @include border-radius($spacing*2); }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
&__header {
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&__title {
|
|
174
|
+
line-height: 1.25;
|
|
175
|
+
display: inline-block;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&__content {
|
|
179
|
+
display: inline-flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
flex-direction: column;
|
|
182
|
+
align-items: flex-start;
|
|
183
|
+
|
|
184
|
+
&--fullWidth {
|
|
185
|
+
|
|
186
|
+
.card > &.card__content {
|
|
187
|
+
padding-right: 0;
|
|
188
|
+
padding-left: 0;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
&__actions {
|
|
194
|
+
display: flex;
|
|
195
|
+
justify-content: space-between;
|
|
196
|
+
|
|
197
|
+
>*:only-child {
|
|
198
|
+
margin-left: auto;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&--fullWidth {
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
|
|
204
|
+
>*:not(:last-child) {
|
|
205
|
+
margin-bottom: $spacing;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
// —————————————————————————————————————————————————————————————————
|
|
212
|
+
// size
|
|
213
|
+
// —————————————————————————————————————————————————————————————————
|
|
214
|
+
|
|
215
|
+
.card {
|
|
216
|
+
|
|
217
|
+
&--xs { @include size($spacing); }
|
|
218
|
+
&--sm { @include size($spacing*1.5); }
|
|
219
|
+
&--md { @include size($spacing*2); }
|
|
220
|
+
&--lg { @include size($spacing*3); }
|
|
221
|
+
&--xl { @include size($spacing*4); }
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// —————————————————————————————————————————————————————————————————
|
|
225
|
+
// direction
|
|
226
|
+
// —————————————————————————————————————————————————————————————————
|
|
227
|
+
|
|
228
|
+
.card--landscape {
|
|
229
|
+
flex-direction: row;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
// —————————————————————————————————————————————————————————————————
|
|
233
|
+
// noPadding
|
|
234
|
+
// —————————————————————————————————————————————————————————————————
|
|
235
|
+
|
|
236
|
+
.card--noPadding {
|
|
237
|
+
border-radius: 0;
|
|
238
|
+
background-color: transparent;
|
|
239
|
+
|
|
240
|
+
&.card--shadow {
|
|
241
|
+
box-shadow: none;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// elements
|
|
3
|
+
// disabled
|
|
4
|
+
// —————————————————————————————————————————————————————————————————
|
|
5
|
+
|
|
6
|
+
// —————————————————————————————————————————————————————————————————
|
|
7
|
+
// elements
|
|
8
|
+
// —————————————————————————————————————————————————————————————————
|
|
9
|
+
|
|
10
|
+
.checkbox {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
position: relative;
|
|
14
|
+
|
|
15
|
+
&__input {
|
|
16
|
+
position: absolute;
|
|
17
|
+
height: 0;
|
|
18
|
+
width: 0;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
|
|
22
|
+
&:checked {
|
|
23
|
+
|
|
24
|
+
~ .checkbox__label:before {
|
|
25
|
+
border-color: $primary;
|
|
26
|
+
border-width: $spacing;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
~ .checkbox__icon {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__icon {
|
|
36
|
+
color: $primary-text-contrast;
|
|
37
|
+
pointer-events: none;
|
|
38
|
+
position: absolute;
|
|
39
|
+
left: $spacing*0.25;
|
|
40
|
+
height: $spacing*1.5;
|
|
41
|
+
width: $spacing*1.5;
|
|
42
|
+
opacity: 0;
|
|
43
|
+
stroke-width: 3;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__label {
|
|
47
|
+
position: relative;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
white-space: nowrap;
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
|
|
53
|
+
&:before {
|
|
54
|
+
content: "";
|
|
55
|
+
box-sizing: border-box;
|
|
56
|
+
display: inline-block;
|
|
57
|
+
width: $spacing*2;
|
|
58
|
+
height: $spacing*2;
|
|
59
|
+
left: 0;
|
|
60
|
+
top: 0;
|
|
61
|
+
margin-right: $spacing;
|
|
62
|
+
border-radius: $spacing*0.5;
|
|
63
|
+
border: $spacing*0.25 solid $grey-20;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// —————————————————————————————————————————————————————————————————
|
|
69
|
+
// disabled
|
|
70
|
+
// —————————————————————————————————————————————————————————————————
|
|
71
|
+
|
|
72
|
+
.checkbox--disabled {
|
|
73
|
+
opacity: 0.4;
|
|
74
|
+
|
|
75
|
+
* {
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// elements
|
|
3
|
+
// dense
|
|
4
|
+
// disabled
|
|
5
|
+
// —————————————————————————————————————————————————————————————————
|
|
6
|
+
|
|
7
|
+
// —————————————————————————————————————————————————————————————————
|
|
8
|
+
// elements
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
|
|
11
|
+
.chip {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
padding: $spacing*0.5;
|
|
15
|
+
height: $spacing*4;
|
|
16
|
+
border-radius: $spacing*5;
|
|
17
|
+
|
|
18
|
+
&__avatar {
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
height: $spacing*3;
|
|
21
|
+
width: $spacing*3;
|
|
22
|
+
background-color: $overlay;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&__content {
|
|
26
|
+
@extend %caption;
|
|
27
|
+
padding-right: $spacing;
|
|
28
|
+
padding-left: $spacing;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__close {
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
background-color: $overlay;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
padding: $spacing*0.5;
|
|
37
|
+
|
|
38
|
+
@include hover {
|
|
39
|
+
background-color: lighten($overlay, 50%);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// —————————————————————————————————————————————————————————————————
|
|
45
|
+
// dense
|
|
46
|
+
// —————————————————————————————————————————————————————————————————
|
|
47
|
+
|
|
48
|
+
.chip--dense {
|
|
49
|
+
height: $spacing*3;
|
|
50
|
+
|
|
51
|
+
.chip {
|
|
52
|
+
|
|
53
|
+
&__avatar {
|
|
54
|
+
height: $spacing*2;
|
|
55
|
+
width: $spacing*2;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&__content {
|
|
59
|
+
@extend %overline;
|
|
60
|
+
padding-right: $spacing*0.5;
|
|
61
|
+
padding-left: $spacing*0.5;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&__close {
|
|
65
|
+
padding: $spacing*0.25;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
// —————————————————————————————————————————————————————————————————
|
|
71
|
+
// disabled
|
|
72
|
+
// —————————————————————————————————————————————————————————————————
|
|
73
|
+
|
|
74
|
+
.chip--disabled {
|
|
75
|
+
opacity: 0.5;
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// variables
|
|
3
|
+
// mixins
|
|
4
|
+
// elements
|
|
5
|
+
// —————————————————————————————————————————————————————————————————
|
|
6
|
+
|
|
7
|
+
// —————————————————————————————————————————————————————————————————
|
|
8
|
+
// variables
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
|
|
11
|
+
// —————————————————————————————————————————————————————————————————
|
|
12
|
+
// mixins
|
|
13
|
+
// —————————————————————————————————————————————————————————————————
|
|
14
|
+
|
|
15
|
+
// —————————————————————————————————————————————————————————————————
|
|
16
|
+
// elements
|
|
17
|
+
// —————————————————————————————————————————————————————————————————
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// elements
|
|
3
|
+
// bold
|
|
4
|
+
// —————————————————————————————————————————————————————————————————
|
|
5
|
+
|
|
6
|
+
// —————————————————————————————————————————————————————————————————
|
|
7
|
+
// elements
|
|
8
|
+
// —————————————————————————————————————————————————————————————————
|
|
9
|
+
|
|
10
|
+
.detail {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
|
|
14
|
+
& + & {
|
|
15
|
+
margin-top: $spacing*0.5;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__icon {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
width: $spacing*1.5;
|
|
22
|
+
height: $spacing*1.5;
|
|
23
|
+
margin-right: $spacing*0.75;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// —————————————————————————————————————————————————————————————————
|
|
28
|
+
// bold
|
|
29
|
+
// —————————————————————————————————————————————————————————————————
|
|
30
|
+
|
|
31
|
+
.detail--bold {
|
|
32
|
+
|
|
33
|
+
.detail__icon svg {
|
|
34
|
+
stroke-width: 3;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// —————————————————————————————————————————————————————————————————
|
|
2
|
+
// mixins
|
|
3
|
+
// elements
|
|
4
|
+
// size
|
|
5
|
+
// —————————————————————————————————————————————————————————————————
|
|
6
|
+
|
|
7
|
+
// —————————————————————————————————————————————————————————————————
|
|
8
|
+
// mixins
|
|
9
|
+
// —————————————————————————————————————————————————————————————————
|
|
10
|
+
|
|
11
|
+
@mixin size($size) {
|
|
12
|
+
|
|
13
|
+
&.divider {
|
|
14
|
+
|
|
15
|
+
&--landscape {
|
|
16
|
+
margin-top: $size;
|
|
17
|
+
margin-bottom: $size;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--portrait {
|
|
21
|
+
margin-right: $size;
|
|
22
|
+
margin-left: $size;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// —————————————————————————————————————————————————————————————————
|
|
28
|
+
// elements
|
|
29
|
+
// —————————————————————————————————————————————————————————————————
|
|
30
|
+
|
|
31
|
+
.divider {
|
|
32
|
+
background-color: $border;
|
|
33
|
+
|
|
34
|
+
&--landscape {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 1px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&--portrait {
|
|
40
|
+
height: 100%;
|
|
41
|
+
width: 1px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// —————————————————————————————————————————————————————————————————
|
|
46
|
+
// size
|
|
47
|
+
// —————————————————————————————————————————————————————————————————
|
|
48
|
+
|
|
49
|
+
.divider {
|
|
50
|
+
|
|
51
|
+
&--sm { @include size($spacing); }
|
|
52
|
+
&--md { @include size($spacing*2); }
|
|
53
|
+
&--lg { @include size($spacing*4); }
|
|
54
|
+
}
|