forked from Pranav-95/Random-Joke-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
184 lines (150 loc) · 3.33 KB
/
style.css
File metadata and controls
184 lines (150 loc) · 3.33 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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
@import url('https://fonts.googleapis.com/css?family=Muli&display=swap');
/* import font */
* {
box-sizing: border-box
/* padding & border are in width & height */
}
body {
background-color: #C7F2A4;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
display: flex;
/* it will center allign the items */
flex-direction: column;
/*it will align elements in column */
align-items: center;
/* it will also center allign the elements */
justify-content: center;
/* it will center allign, otherwise it will be in left side */
height: 100vh;
/* what will be the height */
margin: 0;
}
/* designing translator */
.goog-logo-link {
display:none !important;
}
.goog-te-gadget {
color: transparent !important;
}
.goog-te-gadget .goog-te-combo {
color: black !important;
font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif ;
font-size: 15px;
padding: 10px 6px;
}
.container {
background-color: azure;
border-radius: 10px;
/* the curve in the corners */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0, 0.1);
padding: 50px 20px;
/* what will be the size of the white box */
max-width: 100%;
width: 700px;
text-align: center;
}
h3 {
margin: 5;
letter-spacing: 4px;
opacity: 5;
}
.joke {
font-size: 30px;
line-height: 40px;
margin: 50px auto;
max-width: 600px;
}
.btn {
background-color: #9f68e0;
border: 0;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1), 0 6px 6px rgba(0, 0, 0, 0, 0.1);
color: #fff;
cursor: pointer;
/* cursor will change */
font-size: 16px;
padding: 14px 40px;
}
.btn:active {
transform: scale(0.98);
/* it will shrink while we click the button */
}
.btn:focus {
outline: 0;
}
.toggle {
width: 4rem;
height: 4rem;
background-color: #b9ec91;
position: absolute;
top: 2rem;
right: 2rem;
display: grid;
place-items: center;
border-radius: 50%;
box-shadow: rgba(135, 240, 87, 0.89) 0px 25px 50px -12px;
cursor: pointer;
}
.toggle i {
font-size: 2rem;
color: #777;
}
/* Dark mode styling*/
body.dark {
background-color: #262626;
color: #ffffff;
}
body.dark .container {
background-color: rgb(21, 29, 29);
box-shadow: 0 10px 20px rgba(231, 228, 228, 0.925), 0 6px 6px rgba(0, 0, 0, 0, 0.1);
}
body.dark .toggle {
background-color: #323232;
box-shadow: rgba(33, 34, 33, 0.89) 0px 25px 50px -12px;
}
body.dark .toggle i {
color: #ffffff;
}
body.dark .btn {
background-color: rgb(99, 94, 94);
box-shadow: 0 5px 15px rgba(255, 253, 253, 0.774), 0 6px 6px rgba(0, 0, 0, 0, 0.1);
color: #fff;
}
body.dark .lds-ring div {
border-color: #fff transparent transparent transparent;
}
/* Loading Spinner */
.lds-ring {
visibility: hidden;
width: 40px;
height: 40px;
}
.lds-ring div {
box-sizing: border-box;
display: block;
position: absolute;
width: 32px;
height: 32px;
margin: 4px;
border: 4px solid #fff;
border-radius: 50%;
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
border-color: #262626 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
animation-delay: -0.15s;
}
@keyframes lds-ring {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}