-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
75 lines (65 loc) · 1.45 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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--orange: #fab22a;
}
body {
background-color: var(--orange);
}
.container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: black;
width: 80vmin;
padding: 3rem 2rem;
border-radius: 0.5rem;
box-shadow: 1.5rem 1.5rem 3rem rgba(97, 63, 0, 0.4);
/*Centering the container */
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
#laugh-emoji {
font-size: 3rem;
}
#joke-container {
margin: 1rem 0 2rem 0;
text-align: center;
word-wrap: break-word;
line-height: 1.5rem;
font-size: 1rem;
color: whitesmoke;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
#button {
background-color: var(--orange);
color: black;
padding: 0.5rem 1rem;
border-radius: 0.5rem;
font-size: 1.125rem;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
opacity: 0.9;
}
#button:hover {
cursor: pointer;
opacity: 1;
transition: 0.5s;
}
/* Making it responsive */
/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
.container {
width: 80vmin;
}}
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
.container {
width: 60vmin;
}
}