-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
175 lines (174 loc) · 3.41 KB
/
styles.css
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
173
174
175
.splashScreenRoot {
visibility: visible;
}
.background {
position: absolute;
inset: 0;
bottom: 40%;
color: white;
transform: rotate(0); /* initially I wanted to give the background a slant */
}
.backhead {
margin: 15vh auto;
width: fit-content;
width: -moz-fit-content;
height: 2.5rem;
padding: 10px;
border-radius: 10px;
font-size: 2.5rem;
text-align: center;
color: white;
cursor: pointer;
transition-duration: 200ms;
}
.backhead:hover,
.backhead:active {
background-color: rgba(0, 0, 0, 0.1);
}
.root {
position: absolute;
inset: 0;
top: 20vh;
margin: auto;
width: 280px;
height: fit-content;
height: -moz-fit-content;
background: white;
padding: 7px 25px 7px;
border-radius: 10px;
box-shadow: 1px 1px 2px #aaa;
z-index: 1;
}
.root h3 {
margin: 10px auto 10px;
}
/* initially login root is visible
*/
.login {
// display: none;
}
.signup {
display: none;
}
/* same as .root > input, meaning input tag inside root
*/
.root input {
outline: none;
font-size: 1rem;
width: calc(100% - 20px);
margin: 7px auto 7px;
height: 15px;
border: 1.5px solid var(--primary-bgcolor);
border-radius: 10px;
padding: 10px;
background-color: #f7f7f7;
}
.root div {
width: calc(100% - 20px);
height: 15px;
display: flex;
flex-direction: row;
padding: 10px;
margin: 7px auto 7px;
background-color: #f7f7f7 ;
border: 1.5px solid var(--primary-bgcolor);
border-radius: 10px;
}
.root div .password {
margin: 0;
padding: 0;
display: inline;
width: calc(100% -320px);
border: 0;
background-color: transparent;
border-radius: 0px;
}
.root i.fa-eye-slash {
margin-left: 10px;
}
.root h,
.root a {
margin: 10px auto 5px;
margin-right: 0;
padding: 0;
font-weight: none;
word-wrap: break-word;
text-decoration: none;
display: block;
}
.root h {
width: 100%;
color: #555;
font-size: 0.8rem;
display: none;
text-align: center;
}
.root a {
width: fit-content;
color: var(--control-color);
font-size: 0.9rem;
text-align: right;
}
.root button {
margin: 7px auto 7px;
margin-right: 0;
position: relative;
left: calc(100% - 117px);
width: 120px;
height: 37px;
border: 0;
border-radius: 10px;
padding: 7px 20px 7px;
color: white;
}
.root button:disabled {
background-color: var(--control-color);
filter: brightness(90%);
}
/* if screen width is over 400px, scale the root slightly
* They'll scale out if width decreases below 400px
*/
@media only screen and (min-width: 400px) {
.root {
transform: scale(1.15);
}
}
/* if screen width is over 500px and landscape, scale the root more
* They'll scale out if width decreases below 400px
*/
@media only screen and (min-width: 500px) {
.root {
width: 360px;
transform: scale(1.25);
}
}
@media only screen and (orientation: landscape) and (min-width: 600px) {
body {
height: 140vh;
}
.root {
width: 360px;
transform: scale(1.5);
}
footer {
z-index: 0;
}
}
/* 'Loading' animation
*/
@-webkit-keyframes loadspin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359.9deg);
}
}
@keyframes loadspin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359.9deg);
}
}