-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
127 lines (109 loc) · 2.26 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
/* ROBOT.GIF from Giphy - https://giphy.com/gifs/robot-cinema-4d-eyedesyn-3o7abtn7DuREEpsyWY */
html {
box-sizing: border-box;
}
body{
margin: 0;
background: #8FD3E3;
}
.container{
height: 100vh;
width:100vw;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: url('./giphybee.gif');
/* background: url('./giphydance.gif'); */
background-size: contain;
background-position: left center;
background-repeat: no-repeat;
}
#jokeBox {
width: 260px;
height: 100px;
border: 3px solid #f2a365;
margin-left: 20px;
margin-top: 40px;
border-radius: 10px;
padding: 20px;
background-color: #fff;
box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
/* overflow: scroll ; */
overflow-y: scroll;
position: relative;
}
#joke {
font-family: 'Dancing Script', cursive; /* Fun font */
/* position: absolute; */
left: 4;
overflow: hidden;
}
.gif {
position: absolute;
top: 0;
right: 0;
bottom: 0;
width: 20vw;
background: url('./giphydance.gif') repeat-y center;
background-size: contain;
}
button {
cursor: pointer;
outline: none;
width: 220px;
height: 60px;
font-family: 'Courier New', Courier, monospace;
font-size: 18px;
color: #fff;
background-color: #ff007f;
border: none;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 10px #ff007f;
transition: all 0.6s ease;
position: relative;
overflow: hidden;
}
button:before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background-color: rgba(255, 255, 255, 0.1);
transform: rotate(45deg);
transition: all 0.5s ease;
}
button:hover:before {
top: -70%;
left: 110%;
}
button:hover {
transform: scale(1.05);
box-shadow: 0 6px 25px rgba(255, 0, 127, 0.7), 0 6px 25px rgba(255, 255, 0, 0.5);
background-color: #00aaff;
}
button:active {
transform: scale(0.95);
}
/* button:active {
transform: scale(0.98);
} */
button:disabled {
cursor: default;
filter: brightness(30%);
}
@media screen and (max-width: 1000px) {
.container {
background-position: center center;
background-size: cover;
}
.gif {
background-position: 0;
background-size: 0;
}
button {
box-shadow: 5px 5px 25px 10px rgba(0, 0, 0, 0.5);
}
}