-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathresponsive.css
More file actions
97 lines (78 loc) · 1.52 KB
/
Copy pathresponsive.css
File metadata and controls
97 lines (78 loc) · 1.52 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
/* ========= RESPONSIVE DESIGN ========= */
/* Medium screens (tablets, small laptops) */
@media (max-width: 1024px) {
.videos {
width: calc(100vw - 220px);
}
.video {
width: calc(33.333% - 12px);
}
.navbar .searchbar {
max-width: 480px;
}
}
/* Tablets & big phones (portrait) */
@media (max-width: 768px) {
.navbar {
flex-wrap: wrap;
height: auto;
padding: 8px 12px;
}
.navbar .logo {
margin-left: 0;
}
.navbar .searchbar {
order: 3;
width: 100%;
margin: 8px 0 4px;
}
.search {
width: 100%;
}
.navigation-icons {
order: 2;
}
.mainbody {
flex-direction: column;
height: auto;
overflow: visible;
}
.categories {
width: 100%;
height: auto;
max-height: 220px;
overflow-y: auto;
border-bottom: 1px solid var(--border-color);
}
.videos {
width: 100%;
height: auto;
overflow-y: visible;
}
.video {
width: calc(50% - 12px);
}
}
/* Small phones (iPhone etc.) */
@media (max-width: 480px) {
.logo img {
width: 80px;
}
.navbar .searchbar {
margin: 6px 0 2px;
}
/* Hide mic icon on very small screens to save space */
.mic-icon {
display: none;
}
.video {
width: 100%;
margin-right: 0;
}
.category {
padding: 0 16px;
}
.categories {
max-height: 180px;
}
}