-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
147 lines (130 loc) · 2.75 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
@import url("https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&display=swap");
:root {
--main-theme: #3b4ad8;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
height: 100vh;
background: var(--main-theme);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.main {
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
border: 2px solid rgba(255, 255, 255, 0.18);
box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
padding: 20px;
max-width: 450px;
min-width: 450px;
margin: 20px;
}
.main header {
font-size: 30px;
font-weight: 600;
margin-bottom: 15px;
text-align: center;
}
.main .container {
position: relative;
display: flex;
flex-direction: column;
}
.main .container .quote-icon {
font-size: 20px;
}
.main .container .quote-icon-left {
left: 0;
top: 0;
display: flex;
justify-content: flex-start;
margin-bottom: 5px;
}
.main .container .quote p {
text-align: center;
font-family: "Caveat", cursive;
font-size: 30px;
font-weight: 300;
}
.main .container .quote-icon-right {
right: 0;
bottom: 0;
display: flex;
justify-content: flex-end;
margin-top: 10px;
}
.main .container .author {
font-size: 18px;
font-weight: 200;
font-style: italic;
margin-bottom: 20px;
display: flex;
margin-top: 10px;
justify-content: flex-end;
}
.btns {
display: flex;
justify-content: space-between;
}
.btns .use-btns .refresh-btn {
font-size: 18px;
background: black;
color: var(--main-theme);
padding: 12px;
border-radius: 9999px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-family: "Times New Roman", Times, serif;
transition: 1s ease-in-out;
}
.refresh-btn:hover {
width: 130%;
}
.btns .send-btn {
display: flex;
justify-content: space-between;
align-items: center;
/* added gap between elements so they donʻt bounce around as they were doing before */
gap: 3px;
}
.btns .send-btn .btn {
font-size: 18px;
background: black;
color: var(--main-theme);
padding: 12px;
border: 1px solid var(--main-theme);
border-radius: 9999px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
/* Added transitions to make it less robotic */
transition: 0.3s ease;
}
.btns .send-btn .btn:hover {
/* I Changed something here because itʻs better practise to use "scale" instead of "font-sizes" when youʻre resizing elements on hover */
transform: scale(1.1);
}
footer p a {
color: rgb(223, 215, 215);
text-decoration: none;
transition: 0.3s ease;
}
footer p a:hover {
color: rgb(165, 166, 167);
text-decoration: underline;
}
@media only screen and (max-width: 600px) {
.main {
max-width: 90%;
min-width: 90%;
}
}