-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
97 lines (93 loc) · 1.99 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
/*
Palette found on https://colorhunt.co/:
#A9907E/rgb(169,144,126)
#F3DEBA/rgb(243,222,186)
#ABC4AA/rgb(171,196,170)
#675D50/rgb(103,93,80)
*/
* {
box-sizing: border-box;
padding: 0;
margin: 0;
}
body {
height: 100vh;
width: 100vw;
background-color: rgb(169, 144, 126);
display: flex;
justify-content: center;
align-items: center;
color: black;
user-select: none;
}
:root {
--black: rgb(50, 50, 50);
--radius: 10px;
}
main {
border: 2px solid rgba(50, 50, 50, 0.5);
border-radius: var(--radius);
background-color: rgb(243, 222, 186);
height: 300px;
width: 300px;
box-shadow: 0 5px 15px var(--black);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 15px;
}
#selector-container {
margin-top: 15px;
text-align: left;
display: flex;
flex-direction: column;
}
#selector-container input {
text-align: center;
margin-top: 5px;
}
#generator {
text-align: center;
}
#password-button {
margin-top: 20px;
width: 100px;
border-radius: calc(var(--radius) / 2);
}
#password-display {
margin-top: 2.5px;
border: 1px solid var(--black);
border-radius: calc(var(--radius) / 2);
background-color: rgb(171, 196, 170);
height: 25px;
width: 200px;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
user-select: text;
letter-spacing: .25em;
}
#password-display:hover {
transform: scale(1.05)
}
::selection {
background-color: rgb(169, 144, 126);
color: rgb(243, 222, 186);
}
/* #password-display:after {
position: absolute;
border: 1px solid var(--black);
border-radius: calc(var(--radius) / 2);
content: "Hover to reveal";
background-color: rgba(50, 50, 50, 0.9);
color: rgba(250, 250, 250, 0.5);
text-align: center;
height: 25px;
width: 200px;
}
#password-display:hover:after {
display: none;
} */