-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
115 lines (99 loc) · 1.82 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
:root {
--blue: #37373b;
--dark-blue: #171f69;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
@font-face {
font-family: "BYekan";
src: url("./fonts/Yekan.ttf");
}
body {
font-family: "BYekan";
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.generator {
background-color: var(--blue);
color: #fff;
padding: 1rem;
width: 90%;
max-width: 400px;
}
.title {
text-align: center;
margin: 0.5rem 0 1rem;
}
.password-container {
background-color: var(--dark-blue);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem;
}
.copy-btn {
background-color: var(--blue);
color: #fff;
padding: 0.4rem;
font-size: 1.2rem;
cursor: pointer;
border: none;
outline: none;
}
.copy-btn:active {
transform: scale(0.95);
}
.password {
font-family: "Courier New", Courier, monospace;
letter-spacing: 1px;
}
.form .form-group {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0.85rem 0;
position: relative;
}
.form label {
cursor: pointer;
}
.form input[type="number"] {
width: 50px;
font-family: "BYekan";
direction: rtl;
}
.form-group.custom-checkbox label::before,
.form-group.custom-checkbox label::after {
content: "";
position: absolute;
width: 20px;
height: 20px;
background-color: #fff;
left: 0;
top: 50%;
transform: translateY(-50%);
}
.form-group.custom-checkbox label::after {
background-color: var(--dark-blue);
transform: translateY(-50%) scale(0.65);
opacity: 0;
}
.custom-checkbox input[type="checkbox"]:checked + label::after {
opacity: 1;
}
.generate-btn {
width: 100%;
font-family: "BYekan";
cursor: pointer;
font-size: 1.1rem;
padding: 0.5rem;
border: none;
outline: none;
background-color: var(--dark-blue);
color: #fff;
}