-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
134 lines (116 loc) · 2.14 KB
/
style.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
/* Reset de Margens e Preenchimentos */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* Estilos Gerais */
body {
background-color: #282847;
color: #282847;
font-family: sans-serif;
}
/* Layout Principal */
main {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
padding: 2rem;
}
/* Formulário Gerador */
.generator {
width: 100%;
max-width: 640px;
padding: 2rem 1rem;
background-color: #fff;
border-radius: 1rem;
}
/* Títulos */
h1 {
font-size: 1.5rem;
margin-bottom: 1rem;
text-align: center;
}
/* Estilos de Inputs e Botões */
input:not([type="checkbox"]),
button {
appearance: none;
outline: none;
border: none;
background: none;
}
input[type="checkbox"] {
cursor: pointer;
}
/* Wrapper de Senha */
.password-wrap {
position: relative;
display: flex;
width: 100%;
margin-bottom: 1rem;
}
.password-wrap:after {
content: '';
display: block;
position: absolute;
top: 100%;
height: 3px;
left: 0;
right: 0;
border-radius: 3px;
background: linear-gradient(to right, #ad25fc 25%, #518cd4 75%);
}
.password-wrap input {
flex: 1 1 0%;
padding: 0.5rem;
color: #282847;
}
.password-wrap input::placeholder {
color: #888;
font-style: italic;
}
.password-wrap button {
cursor: pointer;
background: linear-gradient(to bottom, #ad25fc 0%, #518cd4 75%);
background-clip: text;
-webkit-text-fill-color: transparent;
}
#password {
width: 100%;
text-align: center;
}
/* Label */
label {
display: flex;
user-select: none;
margin-bottom: 1rem;
}
label span {
display: block;
flex: 1 1 0%;
white-space: nowrap;
}
label input[type="number"] {
text-align: right;
}
/* Botão de Envio */
button[type="submit"] {
cursor: pointer;
padding: 0.5rem 1rem;
color: #FFF;
font-weight: bold;
text-transform: uppercase;
border-radius: 0.25rem;
background: linear-gradient(to right, #ad25fc 25%, #518cd4 50%);
background-size: 200%;
background-position: 25%;
transition: 0.3s ease-out;
}
button[type="submit"]:hover {
background-position: 75%;
}
#generate-password {
display: block;
margin: 0 auto;
}