-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathavatar.scss
More file actions
69 lines (59 loc) · 1.72 KB
/
Copy pathavatar.scss
File metadata and controls
69 lines (59 loc) · 1.72 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
@use '@justeattakeaway/pie-css/scss' as p;
:host {
// Note: For consistency sake, the recommended display should be either
// "block" or "inline-block", otherwise it can be ommited for floating elements
display: flex;
--avatar-size: 32px;
border: 1px solid purple;
min-height: 48px;
}
:host([type="checkbox"]) {
::slotted(label) {
flex: 1;
display: flex;
align-items: center;
justify-content: flex-start;
padding: 5px 10px;
background: lightblue;
gap: 1em;
}
::slotted(*:nth-child(n+3):last-child) {
margin-inline-start: auto;
}
}
// :host([type="checkbox"]) {
// ::slotted(label)::after {
// content: '';
// position: absolute;
// inset: 0;
// background-color: lightgreen;
// }
// }
@include p.radio-slotted-input-base('input[type="radio"]');
@include p.radio-slotted-interactive-state('input[type="radio"]', 'dt-color-interactive-brand');
@include p.radio-slotted-animations('input[type="radio"]');
// .c-avatar-visuallyHidden {
// @include p.visually-hidden;
// }
// .c-avatar {
// display: flex;
// justify-content: center;
// align-items: center;
// font-family: var(--dt-font-body-s-family);
// @include p.font-size(--dt-font-body-s-size);
// background-color: var(--dt-color-container-inverse);
// color: var(--dt-color-content-interactive-primary);
// width: var(--avatar-size);
// height: var(--avatar-size);
// border-radius:var(--dt-radius-rounded-e);
// overflow: hidden;
// }
// .c-avatar--image {
// width: 100%;
// height: 100%;
// object-fit: cover;
// }
// .c-avatar--button {
// border: none;
// font-family: inherit;
// }