-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy path_layout.scss
69 lines (63 loc) · 1.85 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
@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 == 'tailwind' or $skin-name == 'tailwind-dark') {
line-height: $avatar-base-line-height;
}
img {
height: $avatar-base-img-height;
width: auto;
}
&.e-avatar-circle {
border-radius: $avatar-circle-border-radius;
}
&.e-avatar-xsmall {
font-size: $avatar-xsmall-font-size;
@if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
height: 24px;
line-height: $avatar-base-xsmall-line-height;
width: 24px;
}
}
&.e-avatar-small {
font-size: $avatar-small-font-size;
@if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
height: 32px;
line-height: $avatar-base-small-line-height;
width: 32px;
}
}
&.e-avatar-large {
font-size: $avatar-large-font-size;
@if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
height: 48px;
line-height: $avatar-base-large-line-height;
width: 48px;
}
}
&.e-avatar-xlarge {
font-size: $avatar-xlarge-font-size;
@if ($skin-name == 'tailwind' or $skin-name == 'tailwind-dark') {
height: 56px;
line-height: $avatar-base-xlarge-line-height;
width: 56px;
}
}
}
}