-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodals.less
More file actions
executable file
·117 lines (97 loc) · 2.35 KB
/
Copy pathmodals.less
File metadata and controls
executable file
·117 lines (97 loc) · 2.35 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
.modal-backdrop {
background: rgba(0, 0, 0, 0.55);
position: fixed;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
z-index: @gb-zindex-modal;
overflow-y: auto;
&.white {
background: rgba(255, 255, 255, 0.55);
}
}
.modalSize(@size) {
width: @size;
margin: @gb-modal-margin-vertical auto;
}
.modal {
border: 1px solid @gb-modal-border;
border-radius: @gb-modal-radius;
background: @gb-modal-background;
.box-shadow(@gb-modal-shadow);
&.without-backdrop {
border-color: @gb-palette-gray-outline;
box-shadow: 0 1px 2px #ddd;
}
.modal-heading + .alert {
border-radius: 0px;
border-left:0px;
border-right:0px;
margin: 0px;
margin-top: -1px;
position: relative;
z-index:1;
}
.modal-heading {
position: relative;
padding: @gb-modal-padding;
border-bottom: 1px solid @gb-modal-innerborder;
h4 {
margin: 0px;
}
.modal-close {
position: absolute;
line-height: 24px;
top: 50%;
margin-top: -15px;
right: @gb-modal-padding;
color: @gb-palette-gray-outline;
font-size: 30px;
&:hover {
color: darken(@gb-palette-gray-outline, 10%);
text-decoration: none;
}
}
}
.modal-body {
padding: @gb-modal-padding;
}
.modal-footer {
border-top: 1px solid @gb-modal-innerborder;
padding: @gb-modal-padding;
text-align: right;
.btn+.btn {
margin-bottom: 0;
margin-left: 5px;
}
}
.modalSize(@gb-modal-size-medium);
&.modal-sm {
.modalSize(@gb-modal-size-small);
}
&.modal-lg {
.modalSize(@gb-modal-size-large);
}
&.modal-fullscreen {
.flex-display();
.flex-direction(column);
.justify-content(space-around);
margin: 0px;
position: absolute;
top: 30px;
bottom: 30px;
margin-left: 50%;
.transform(~"translateX(-50%)");
.modal-heading {
.flex-grow(1);
}
.modal-body {
position: relative;
.flex-grow(1000000);
}
.modal-footer {
.flex-grow(1);
}
}
}