This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dialog.scss
87 lines (70 loc) · 1.5 KB
/
Dialog.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
84
85
86
87
@import '../themify', '../vars', '../partial';
.Dialog {
width: $dialog-width;
margin: auto;
form {
@include themify($themes) {
color: themed('text-color');
}
}
.title {
@extend %title;
}
.dialog-children {
display: grid;
margin-bottom: $dialog-spacing-before-buttons;
}
.actions {
&.grid {
@extend %two-col-grid-template;
%diagonal-template {
@extend %diagonal-before-after-common;
z-index: unset;
top: 0px;
height: 48px;
opacity: 1;
}
.ant-btn {
&.left {
margin-left: $diagonal-part-width;
padding: 0 $diagonal-part-width/2 0 0;
&::before {
@extend %diagonal-template;
left: -15px;
transform: skew(20deg);
}
}
&.right {
margin-right: $diagonal-part-width;
padding: 0 0 0 $diagonal-part-width/2;
&::after {
@extend %diagonal-template;
right: -15px;
transform: skew(-20deg);
}
}
}
}
&.natural > * {
margin-right: 8px;
}
&.wide {
display: grid;
grid-row-gap: 8px;
grid-template-rows: 1fr;
.ant-btn {
text-align: center;
}
}
}
.footer:not(:empty) {
margin-top: $dialog-component-spacing;
> *:last-child {
margin-bottom: 0;
}
}
.ant-form-item-explain {
@extend %dialog-input-inline-error;
width: $dialog-width;
}
}