-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
158 lines (137 loc) · 2.56 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
@import url('https://fonts.googleapis.com/css2?family=Madimi+One&family=Poppins&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Ysabeau+Infant:ital,wght@0,1..1000;1,1..1000&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Ysabeau Infant", sans-serif;
}
html,
body {
height: 100%;
width: 100%;
}
body {
display: flex;
justify-content: center;
align-items: center;
padding: 21px;
min-height: 100vh;
background-color: #C4BCB2;
}
.quote-box {
padding: 30px 30px 25px;
max-width: 480px;
border-radius: 10px;
display: flex;
flex-direction: column;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
text-align: center;
border: 1px solid #1C1C19;
animation: grow 0.5s ease-in-out forwards;
}
.quote-box header {
text-align: center;
font-size: 35px;
font-weight: 600;
}
.quote {
margin: 25px 0;
display: flex;
justify-self: center;
color: #1C1C19;
animation: fade 2s ease-in-out forwards alternate;
}
.quote i {
font-size: 16px;
}
.quote i:first-child{
margin: 3px 10px 0 0;
}
.quote i:last-child{
display: flex;
align-items: flex-end;
margin: 0 0 3px 10px;
}
.quote p {
font-size: 22px;
text-align: center;
word-break: break-all;
}
.author {
display: flex;
justify-content: flex-end;
margin-top: 20px;
font-size: 18px;
font-style: italic;
animation: fade 2s ease-in-out forwards alternate;
}
.author span {
margin: -7px 5px 0 0;
font-family: monospace;
}
.buttons {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
flex-wrap: wrap;
gap: 12px;
}
.buttons .links {
display: flex;
}
.buttons .links i {
height: 47px;
margin: 0 5px;
font-size: 21px;
display: flex;
justify-content: center;
align-items: center;
width: 47px;
border: 2px solid #1C1C19;
color: #1C1C19;
cursor: pointer;
border-radius: 50%;
transition: all 0.3s ease;
}
.buttons .links i:hover {
background-color: #1C1C19;
color: #C4BCB2;
}
.generate-btn {
background-color: #1C1C19;
color: #C4BCB2;
padding: 12px 22px;
width: fit-content;
border: 2px solid transparent;
font-size: 18px;
border-radius: 5px;
cursor: pointer;
margin-top: 20px;
transition: all 0.5s ease;
}
.generate-btn.loading {
opacity: 0.7;
pointer-events: none;
}
.generate-btn:hover {
border-color: #1C1C19;
color: #1C1C19;
background: transparent;
}
@keyframes grow {
from {
transform: scale(0.8);
}
to {
transform: scale(1);
}
}
@keyframes fade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}