-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
107 lines (96 loc) · 2.01 KB
/
main.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
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap");
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
flex-direction: column-reverse;
font-family: 'Poppins', sans-serif;
user-select: none;
background-color: rgb(161, 132, 132);
overflow: hidden;
}
* {
box-sizing: border-box;
}
.pg-container {
background-color: white;
width: 40%;
min-height: 30%;
border-radius: 0.3rem;
padding: 2rem;
text-align: center;
box-shadow: 0 0px 10px rgba(15, 14, 14, 0.705);
}
.pg-txt {
width: 100%;
height: 70px;
background-color: rgb(91, 146, 146);
display: flex;
border-radius: 0.3rem;
position: relative;
padding: 0.5rem;
color: white;
}
#pg-btn {
position: absolute;
bottom: 10px;
right: 0%;
padding: 0.4rem 0.5rem;
border-radius: 0.3rem;
font-size: 0.9rem;
background-color: darkorchid;
color: white;
border: none;
cursor: pointer;
outline: none;
opacity: 0;
transition: all 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
font-family: inherit;
transform: translateY(10px);
}
.pg-txt:hover #pg-btn {
opacity: 1;
transform: translateY(0px);
}
.pg-control {
width: 100%;
display: flex;
justify-content: space-between;
margin: 0.5rem;
}
#generator {
width: 80%;
padding: 0.4rem 0.4rem;
font-size: 1.1rem;
border-radius: 0.5rem;
border: none;
cursor: pointer;
outline: none;
background-color: yellowgreen;
transition: all 0.45s;
font-family: inherit;
}
#generator:hover {
background-color: rgb(128, 170, 43);
}
#generator:active {
transform: scale(0.9);
}
.copyBox {
position: absolute;
top: 10px;
right: 10px;
background-color: rgb(193, 245, 141);
padding: 0.6rem 1rem;
border-radius: 0.4rem;
animation: slide 0.4s;
}
@keyframes slide {
from {
transform: translateX(200px);
}
to {
transform: translateX(0px);
}
}