-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
155 lines (149 loc) · 3.19 KB
/
style.css
File metadata and controls
155 lines (149 loc) · 3.19 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
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
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;500&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", sans-serif;
display: flex;
align-items: center;
justify-content: center;
background: url("b1.jpg");
background-repeat: no-repeat;
width: 100vw;
height: 100vh;
overflow: hidden;
background-size: cover;
}
.length__wrapper {
display: flex;
align-items: center;
justify-content: space-between;
}
.password {
position: relative;
background-color: royalblue;
padding: 10px;
color: white;
font-weight: 300;
overflow-x: scroll;
border-radius: 4px;
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.2);
margin-bottom: 30px;
}
#passDisplay {
display: inline-block;
height: auto;
}
#copy {
cursor: pointer;
transition: 0.4s;
opacity: 1;
display: none;
/* outline: none; */
border: 1px solid white;
color: royalblue;
font-size: 0.8rem;
font-weight: 500;
padding: 8px;
border-radius: 2px;
background: white;
position: absolute;
top: -10px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2), -2px -2px 4px rgba(0, 0, 0, 0.2);
right: 0;
}
#length {
padding: 5px;
width: 30px;
border: 0.7px solid rgba(0, 0, 0, 0.1);
color: royalblue;
outline: none;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
::-webkit-scrollbar {
-webkit-appearance: none;
}
/* Firefox */
input[type="number"] {
-moz-appearance: textfield;
}
.container {
padding: 1.75rem;
width: 20rem;
background-color: white;
box-shadow: 0px 5px 30px rgba(0, 0, 0, 0.4), 0px 0px 50px rgba(0, 0, 0, 0.7);
border-radius: 5px;
animation-name: animate;
animation-duration: 1.5s;
animation-delay: 0.7s;
}
@keyframes animate {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
#generate {
cursor: pointer;
font-family: "Inter";
width: 100%;
background-color: royalblue;
color: white;
border: 1px solid royalblue;
margin-top: 1.75rem;
border-radius: 2px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
padding: 8px;
}
label {
cursor: pointer;
}
.checkbox {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 0.6rem;
}
input[type="checkbox"] {
cursor: pointer;
position: relative;
-webkit-appearance: none;
background-color: rgb(223, 223, 223);
border-radius: 30px;
box-shadow: inset 2px 2px 2px rgba(0, 0, 0, 0.2);
width: 30px;
height: 15px;
transition: 0.3s;
}
input[type="checkbox"]:before {
transition: 0.3s;
content: "";
position: absolute;
left: 0;
transform: scale(1.15);
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.4);
width: 15px;
height: 15px;
background-color: rgb(255, 255, 255);
border-radius: 50%;
}
input[type="checkbox"]:checked {
background-color: rgb(99, 127, 211);
}
input[type="checkbox"]:checked::before {
left: 60%;
/* background-color: royalblue; */
}
@media screen and (max-width: 480px) {
.container {
max-width: 80%;
}
}