-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.css
More file actions
130 lines (113 loc) · 2.09 KB
/
auth.css
File metadata and controls
130 lines (113 loc) · 2.09 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
121
122
123
124
125
126
127
128
129
*,
*::before,
*::after {
box-sizing: border-box;
}
body {
margin: 0;
background: #fff;
color: #202124;
font-family: Arial, Helvetica, sans-serif;
line-height: 1.5;
}
.site-header {
padding: 32px 16px 8px;
text-align: center;
}
.site-header h1 {
margin: 0;
font-size: 20px;
font-weight: 600;
}
.site-header .sub {
margin: 6px 0 0;
color: #5f6368;
font-size: 14px;
}
.auth-container {
width: 100%;
max-width: 360px;
margin: 16px auto 24px;
padding: 0 16px;
}
.tabbar {
display: grid;
grid-template-columns: 1fr 1fr;
border: 1px solid #dadce0;
border-radius: 8px;
overflow: hidden;
}
.tabbar label {
padding: 10px 12px;
text-align: center;
font-size: 14px;
color: #5f6368;
cursor: pointer;
user-select: none;
}
/* CSS-only tab state */
.visually-hidden {
position: absolute;
clip: rect(0 0 0 0);
clip-path: inset(50%);
width: 1px;
height: 1px;
overflow: hidden;
white-space: nowrap;
border: 0;
padding: 0;
margin: -1px;
}
#tab-login:checked ~ .tabbar label[for="tab-login"],
#tab-signup:checked ~ .tabbar label[for="tab-signup"] {
background: #f1f3f4;
color: #202124;
}
.panel {
margin-top: 12px;
padding: 16px;
border: 1px solid #dadce0;
border-radius: 8px;
background: #fff;
}
/* show/hide panels */
#tab-login:checked ~ .panel-login { display: block; }
#tab-login:checked ~ .panel-signup { display: none; }
#tab-signup:checked ~ .panel-login { display: none; }
#tab-signup:checked ~ .panel-signup { display: block; }
.field {
display: grid;
gap: 6px;
margin-bottom: 12px;
}
label {
font-size: 13px;
color: #5f6368;
}
input[type="text"],
input[type="email"],
input[type="password"] {
width: 100%;
padding: 10px 12px;
border-radius: 6px;
border: 1px solid #dadce0;
background: #fff;
color: #202124;
outline: none;
font-size: 14px;
}
input:focus {
border-color: #1a73e8;
box-shadow: 0 0 0 1px #1a73e8;
}
button.primary {
width: 100%;
margin-top: 8px;
padding: 10px 14px;
border-radius: 6px;
border: 1px solid #dadce0;
background: #1a73e8;
color: #fff;
font-weight: 600;
cursor: pointer;
}