-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path_index.scss
More file actions
executable file
·76 lines (65 loc) · 1.55 KB
/
_index.scss
File metadata and controls
executable file
·76 lines (65 loc) · 1.55 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
70
71
72
73
74
75
76
@use '../../style/variables' as *;
@use './mixin' as *;
.#{$prefix}-alert {
border: 1px solid;
border-radius: $alert-border-radius;
box-sizing: border-box;
padding: 10px 30px 10px 13px;
position: relative;
font-weight: var(--ty-font-weight);
opacity: 1;
font-size: var(--ty-font-size-base);
transition: all 300ms;
transform-origin: center top;
overflow: hidden;
display: flex;
align-items: flex-start;
& + & {
margin-top: 14px;
}
&__title {
box-sizing: border-box;
margin: 0;
font-size: 17px;
font-weight: 500;
&_has-content {
margin-bottom: 5px;
}
}
&__desc {
box-sizing: border-box;
line-height: 16px;
}
&__icon {
line-height: 16px;
margin-right: 7px;
position: relative;
top: 1px;
}
&__close-btn {
position: absolute;
top: 10px;
right: 13px;
cursor: pointer;
float: right;
user-select: none;
background: none;
border: none;
padding: 0;
color: inherit;
font-size: inherit;
line-height: inherit;
}
&_error {
@include alert-mixin(var(--ty-color-danger-text), var(--ty-color-danger-border), var(--ty-color-danger-bg));
}
&_warning {
@include alert-mixin(var(--ty-color-warning-text), var(--ty-color-warning-border), var(--ty-color-warning-bg));
}
&_success {
@include alert-mixin(var(--ty-color-success-text), var(--ty-color-success-border), var(--ty-color-success-bg));
}
&_info {
@include alert-mixin(var(--ty-color-info-text), var(--ty-color-info-border), var(--ty-color-info-bg));
}
}