-
Notifications
You must be signed in to change notification settings - Fork 0
/
responsive.css
102 lines (86 loc) · 1.84 KB
/
responsive.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
@media (max-width:1020px) {
.favourite {
position: absolute;
left: -100%;
transition: all ease-out 1s;
/* display: none; */
}
.favourite__mobile {
transform: translateX(0);
left: 0;
width: 68%;
height: 156%;
}
.favourite__mobile h2 {
display: none;
}
.jokes {
padding-bottom: 0;
}
.dark__theme {
display: block;
position: absolute;
transition: all ease 1.5s;
width: 100%;
height: 116%;
background: rgba(0, 0, 0, 0.3);
}
.favourite__mobile .favourite__jokes {
margin-top: 50px;
}
.container {
max-width: 100%;
}
.jokes {
width: 100%;
}
.open__aside {
display: flex;
position: absolute;
right: 40px;
top: 40px;
gap: 10px;
align-items: center;
z-index: 5;
}
.burger {
background: #333333;
width: 28px;
height: 28px;
border-radius: 50%;
position: relative;
}
.burger span:first-child {
position: absolute;
width: 14px;
height: 2px;
background: #FFFFFF;
border-radius: 2px;
top: 10px;
left: 7px;
transition: all easet 0.5s;
}
.burger span:nth-child(2) {
position: absolute;
width: 14px;
height: 2px;
background: #FFFFFF;
border-radius: 2px;
top: 14px;
left: 7px;
transition: all ease 0.5s;
}
.open__aside.opened .burger span:first-child {
transform: rotate(45deg);
top: 13px;
}
.open__aside.opened .burger span:nth-child(2){
transform: rotate(-45deg);
top: 13px;
}
}
@media (max-width:540px) {
.favourite__mobile {
width: 100%;
}
}