-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
120 lines (102 loc) · 2.03 KB
/
main.css
File metadata and controls
120 lines (102 loc) · 2.03 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
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
color: #333;
background-color: #fff;
}
a /* all links */
{
cursor: pointer; /* links without href */
text-decoration: none; /* disable underline */
outline: none; /* disable focus */
color: inherit; /* disable color change */
}
.wrapper {
min-height: 100vh;
display: flex;
align-items: center;
}
form {
min-width: 400px;
margin: 0 auto;
display: none; /* hide all forms */
transition-property: display, opacity;
transition-duration: 1.25s;
transition-timing-function: ease;
transition-behavior: allow-discrete;
}
form:first-child {
display: block; /* show first form */
}
fieldset {
padding: 25px;
border-radius: 20px;
box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}
legend {
margin: 0 auto;
text-transform: uppercase;
font-size: 22px;
letter-spacing: 2px;
}
fieldset > div {
display: flex;
gap: 20px;
}
label {
display: block;
margin: 15px 0px 5px 15px;
}
input[type=submit] {
margin-top: 15px;
text-transform: uppercase;
}
input:not([type=checkbox]) {
display: block;
width: 100%;
height: 40px;
padding: 0 15px;
border: 1px solid #ccc;
border-radius: 20px;
}
/* links to other forms */
input[type=checkbox]#forgot,
input[type=checkbox]#register {
appearance: none; -moz-appearance: none; -webkit-appearance: none; /* hide checkbox box */
}
label:has(input[type=checkbox]#forgot),
label:has(input[type=checkbox]#register) {
cursor: pointer;
}
/* toggle other forms */
.wrapper:has(input[type=checkbox]#forgot:checked) {
form#login {
display: none;
opacity: 0;
@starting-style {
opacity: 1;
}
}
form#forgot {
display: block;
opacity: 1;
@starting-style {
opacity: 0;
}
}
}
.wrapper:has(input[type=checkbox]#register:checked) {
form#login {
display: none;
opacity: 0;
@starting-style {
opacity: 1;
}
}
form#register {
display: block;
opacity: 1;
@starting-style {
opacity: 0;
}
}
}