-
Notifications
You must be signed in to change notification settings - Fork 2k
/
style.scss
116 lines (99 loc) · 1.97 KB
/
style.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
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
.dialog__backdrop {
align-items: center;
bottom: 0;
left: 0;
display: flex;
justify-content: center;
position: fixed;
right: 0;
top: 46px;
transition: background-color .2s ease-in;
z-index: z-index( 'root', '.dialog__backdrop' ); // try to ensure that dialogs are on top of everything else
&.dialog-enter,
&.dialog-leave.dialog-leave-active {
background-color: rgba( lighten( $gray, 30% ), 0 );
}
&,
&.dialog-enter.dialog-enter-active,
&.dialog-leave {
background-color: rgba( lighten( $gray, 30% ), 0.8 );
}
// covers the masterbar as well
&.is-full-screen {
top: 0;
}
}
.dialog.card {
position: relative;
display: flex;
flex-direction: column;
max-width: 90%;
max-height: 90%;
margin: auto 0; // IE needs a horizontal margin values to properly center flex item
padding: 0;
opacity: 1;
transition: opacity .2s ease-in;
.dialog-enter &,
.dialog-leave.dialog-leave-active & {
opacity: 0;
}
&,
.dialog-enter.dialog-enter-active &,
.dialog-leave & {
opacity: 1;
}
}
.dialog__content {
padding: 16px;
overflow-y: auto;
@include breakpoint( ">480px" ) {
padding: 24px;
}
&:last-child {
bottom: 0;
}
h1 {
color: $gray-dark;
font-size: 1.375em;
font-weight: 600;
height: 2em;
line-height: 2em;
margin-bottom: .5em;
}
}
.dialog__action-buttons {
position: relative;
border-top: 1px solid lighten( $gray, 30% );
padding: 16px;
margin: 0;
text-align: right;
@include breakpoint( ">480px" ) {
padding-left: 24px;
padding-right: 24px;
}
&:before {
content: "";
display: block;
position: absolute;
bottom: 100%;
left: 16px;
right: 16px;
height: 24px;
background: linear-gradient( to bottom, rgba( 255,255,255, 0 ) 0%, rgba( 255,255,255, 1 ) 100% );
margin-bottom: 1px;
}
}
.dialog__action-buttons .button {
margin-left: 10px;
min-width: 80px;
.is-left-aligned {
margin-left: 0;
margin-right: 10px;
}
}
.dialog__action-buttons .is-left-aligned {
float: left;
}
.ReactModal__Body--open {
overflow: hidden;
}