forked from microsoft/opensource.microsoft.com
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_modal.scss
More file actions
124 lines (103 loc) · 1.8 KB
/
_modal.scss
File metadata and controls
124 lines (103 loc) · 1.8 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
118
119
120
121
122
123
124
// ---------------------------------------------------------------------
// Modal
// ---------------------------------------------------------------------
.modal-wrap {
overflow: hidden;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
display: flex;
justify-content: center;
align-items: center;
z-index: 2000;
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
&.is-active {
opacity: 1;
pointer-events: inherit;
}
.screen {
background: rgba(#24292E,0.95);
width: 100%;
height: 100%;
padding-bottom: 0;
border-radius: 0;
top: 0;
left: 0;
position: fixed;
z-index: -1;
&:hover {
cursor: crosshair;
}
}
}
// ----------------------------------------
// Modal Inner
// ----------------------------------------
.modal {
position: relative;
max-width: calc(100% - 12px);
max-height: calc(100% - 12px);
border-radius: 3px;
width: 580px;
height: auto;
overflow: auto;
background: $white;
transition: all $transition;
padding: 36px;
.f2 {
font-size: 18px !important;
}
// @include stop-at($small) {
// height: 100%;
// width: 100%;
// }
}
body.modal-is-active {
overflow: hidden;
}
.modal__full {
width: 100%;
height: 100%;
}
// ----------------------------------------
// Modal Close
// ----------------------------------------
.modal__close {
position: absolute;
top: 0;
right: 0;
padding: 19px;
cursor: pointer;
svg {
display: block;
width: 24px;
height: 24px;
fill: $blue-400;
transition: fill $transition;
}
@include start-at($small) {
top: 0;
right: 0;
padding: 32px 44px;
svg {
fill: $white;
}
}
&:hover svg {
fill: $blue-400;
}
}
.modal__hd {
margin-bottom: 12px;
padding-bottom: 12px;
border-bottom: 1px solid $blue-400;
}
.keep-editing {
position: absolute;
top: 8px;
right: 8px;
}