-
Notifications
You must be signed in to change notification settings - Fork 156
/
Copy path_layout.scss
83 lines (75 loc) · 3.17 KB
/
_layout.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
@mixin avatar-size($height, $width, $line-height) {
height: $height;
width: $width;
line-height: $line-height;
}
@include export-module('avatar-layout') {
.e-avatar {
align-content: center;
align-items: center;
background-color: $avatar-base-background-color;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: $avatar-base-border-radius;
color: $avatar-base-text-color;
display: inline-flex;
font-family: $font-family;
font-size: $avatar-base-font-size;
font-weight: $avatar-base-font-weight;
height: $avatar-base-height;
justify-content: center;
overflow: hidden;
position: relative;
width: $avatar-base-width;
@if ($skin-name == 'tailwind3' or $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5' or $skin-name == 'FluentUI' or $skin-name == 'Material3') {
line-height: $avatar-base-line-height;
}
@if ($skin-name == 'fluent2') {
&:has(:not(img)) {
border: 1px solid $avatar-border;
}
}
img {
height: $avatar-base-img-height;
width: auto;
}
&.e-avatar-circle {
border-radius: $avatar-circle-border-radius;
&.e-avatar-large,
&.e-avatar-xlarge {
border-radius: $avatar-circle-border-radius;
}
}
&.e-avatar-xsmall {
font-size: $avatar-xsmall-font-size;
@if ($skin-name == 'tailwind3' or $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name == 'FluentUI' or $skin-name == 'Material3' or $skin-name == 'fluent2') {
@include avatar-size(24px, 24px, $avatar-base-xsmall-line-height);
}
}
&.e-avatar-small {
font-size: $avatar-small-font-size;
@if ($skin-name == 'tailwind3' or $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name == 'FluentUI' or $skin-name == 'Material3' or $skin-name == 'fluent2') {
@include avatar-size(32px, 32px, $avatar-base-small-line-height);
}
}
&.e-avatar-large {
font-size: $avatar-large-font-size;
@if ($skin-name == 'tailwind3' or $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name == 'FluentUI' or $skin-name == 'Material3' or $skin-name == 'fluent2') {
@include avatar-size(48px, 48px, $avatar-base-large-line-height);
}
@if ($skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3') {
border-radius: $avatar-large-border-radius;
}
}
&.e-avatar-xlarge {
font-size: $avatar-xlarge-font-size;
@if ($skin-name == 'tailwind3' or $skin-name == 'tailwind' or $skin-name == 'tailwind-dark' or $skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3' or $skin-name == 'FluentUI' or $skin-name == 'Material3' or $skin-name == 'fluent2') {
@include avatar-size(56px, 56px, $avatar-base-xlarge-line-height);
}
@if ($skin-name == 'bootstrap5' or $skin-name == 'bootstrap5.3') {
border-radius: $avatar-large-border-radius;
}
}
}
}