aboutsummaryrefslogtreecommitdiff
path: root/design/sass/_modal.scss
blob: 8c9bf46ccf27c7892b6233edcaf41a66009bae03 (plain)
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#overlay, #loading {
    position:fixed;
    width:100vw;
    height:100vh;
    overflow:hidden;
    top:0;
    left:0;
    right:0;
    bottom:0;
    animation:overlay .3s forwards ease;
    background-color:rgba(0,0,0,.8);
    transform:scale(1);
    transform-origin:center center;
    z-index: 2000;
    display: block;  
    > div {
        position:absolute;
        top:50%;
        left:50%;
        transform:translate(-50%,-50%);
    }
    header{
        @include fancy_sans;
        @include fontsize(18);
        padding: 1rem 1rem 1rem 0;
        margin-left: 0;
    }
}
.top {
    z-index: 10000;
}
@keyframes modal{
  from{
	-webkit-transform: scale(0.5);
	-moz-transform: scale(0.5);
	-ms-transform: scale(0.5);
	transform: scale(0.5);
	opacity: 0;
	-webkit-transition: all 0.4s;
	-moz-transition: all 0.4s;
	transition: all 0.4s;
  };
  to{
	-webkit-transform: scale(1);
	-moz-transform: scale(1);
	-ms-transform: scale(1);
	transform: scale(1);
	opacity: 1;
  }
}
@keyframes overlay{
  from{
    background-color:rgba(0,0,0,0);
  };
  to{
    background-color:rgba(0,0,0,.8);
  }
}
#overlay-wrapper {
    max-width: 52%;
    width: 90%;
}
#loading #overlay-wrapper {
    max-width: 10%;
}
#modal {
    min-height: 330px;
    padding: 0 1rem 1rem 1rem;
    background-color: white;
    border-radius: 4px;
    overflow:hidden;
    animation:modal .2s forwards ease;
    -webkit-box-shadow: 0px 2px 16px 2px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 2px 16px 2px rgba(0,0,0,0.5);
    box-shadow: 0px 2px 16px 2px rgba(0,0,0,0.5);


    & > div {
        color: #424242;
        background-color: white;
    }
    // specific fixes for notebook create form
    #nb-create-form { width: 99%;}
    .flex-wrapper {
        display: block;
        margin-top: .5rem;
        #color-picker {
            margin-top: 3rem; 
            margin-left: .25rem; 
        }
        .nb-name { width: 100%;}
    }
    input[type="submit"] {
        float: right;
    }

}
#loading #modal {
    min-height: auto;
}
#hed-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    & > * {
        width: auto;
    }
}

.loader {
    font-size: 10px;
    margin: 50px auto;
    text-indent: -9999em;
    width: 11em;
    height: 11em;
    border-radius: 50%;
    background: $link_color;
    background: -moz-linear-gradient(left, $link_color 10%, rgba(255, 255, 255, 0) 42%);
    background: -webkit-linear-gradient(left, $link_color 10%, rgba(255, 255, 255, 0) 42%);
    background: -o-linear-gradient(left, $link_color 10%, rgba(255, 255, 255, 0) 42%);
    background: -ms-linear-gradient(left, $link_color 10%, rgba(255, 255, 255, 0) 42%);
    background: linear-gradient(to right, $link_color 10%, rgba(255, 255, 255, 0) 42%);
    position: relative;
    -webkit-animation: load3 1.4s infinite linear;
    animation: load3 1.4s infinite linear;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
}
.loader:before {
    width: 50%;
    height: 50%;
    background: $link_color;
    border-radius: 100% 0 0 0;
    position: absolute;
    top: 0;
    left: 0;
    content: '';
}
.loader:after {
    background: #fff;
    width: 75%;
    height: 75%;
    border-radius: 50%;
    content: '';
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}
@-webkit-keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes load3 {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}