-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
163 lines (140 loc) · 3.48 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
/* Parts derived from CSS Simple Form Style. MIT Attribution for CSS Simple Form Style -- Bowie @ https://codepen.io/bowie/pen/njjaZo */
/* Fonts */
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400);
/* Simple Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* body */
body {
background: #e9e9e9;
color: #5e5e5e;
font: 400 87.5%/1.5em 'Open Sans', sans-serif;
}
/* Form Layout */
.jar-div {
filter: drop-shadow(1px 1px 1px #444);
}
.form-wrapper {
background: #fafafa;
border-radius: 25px;
margin: 3em auto;
padding: 0 1em;
line-height: 3rem;
max-width: 900;
filter: drop-shadow(2px 2px 2px #444);
}
h1, h2, h3, h4, h5, h6 {
text-align: center;
padding: 1em 0;
}
form {
padding: 0 1.5em;
}
.form-item {
margin-bottom: 0.75em;
width: 100%;
}
.form-item input {
background: #fafafa;
border: none;
border-bottom: 2px solid #e9e9e9;
border-radius: 25px;
color: #666;
font-family: 'Open Sans', sans-serif;
font-size: 1.75em;
height: 50px;
transition: border-color 0.3s;
width: 100%;
text-align: center;
}
.form-item input:focus {
border-bottom: 2px solid #c0c0c0;
outline: none;
}
.button-panel {
margin: 2em 0 0;
width: 100%;
text-align: center;
}
.button-panel .submitbutton {
background: #006bff;
border-top-right-radius: 5px;
border-top-left-radius: 25px;
border-bottom-right-radius: 5px;
border-bottom-left-radius: 25px;
border: none;
color: #fff;
cursor: pointer;
height: 50px;
font-family: 'Open Sans', sans-serif;
font-size: 1.1em;
letter-spacing: 0.05em;
text-align: center;
text-transform: uppercase;
transition: background 0.3s ease-in-out;
width: 60%;
}
.button-panel .resetbutton {
background: #333;
border-top-right-radius: 25px;
border-top-left-radius: 5px;
border-bottom-right-radius: 25px;
border-bottom-left-radius: 5px;
border: none;
color: #fff;
cursor: pointer;
height: 50px;
font-family: 'Open Sans', sans-serif;
font-size: 1.1em;
letter-spacing: 0.05em;
text-align: center;
text-transform: uppercase;
transition: background 0.3s ease-in-out;
width: 30%;
}
.submitbutton:hover {
background: #0050bf;
}
.resetbutton:hover {
background: #51585e;
}
.form-footer {
font-size: 1em;
padding: 0.25em 0;
text-align: center;
line-height: 1rem;
}
.form-footer a {
color: #8c8c8c;
text-decoration: none;
transition: border-color 0.3s;
}
.form-footer a:hover {
border-bottom: 1px dotted #8c8c8c;
}
/* Simple Snackbar. See https://www.w3schools.com/howto/howto_js_snackbar.asp */
#snackbar-root {
position: fixed;
left: 0;
right: 0;
bottom: 92%;
display: flex;
flex-direction: column;
align-items: center;
}
#snackbar {
visibility: hidden; /* Hidden by default. Visible on click */
min-width: 25%; /* Set a default minimum width */
background: #51585e; /* Black background color */
color: #fff; /* White text color */
text-align: center; /* Centered text */
border-radius: 10px; /* Rounded borders */
padding: 16px; /* Padding */
z-index: 1; /* Add a z-index if needed */
opacity: 65%;
}
/* Show the snackbar when clicking on a button (class added with JavaScript) */
#snackbar.show {
visibility: visible; /* Show the snackbar */
/* Add animation: Take 0.5 seconds to fade in and out the snackbar.
However, delay the fade out process for 2.5 seconds */
}