File tree Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Expand file tree Collapse file tree 1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -2,13 +2,26 @@ import styled from "styled-components";
2
2
3
3
export const TutorialsTableWrapper = styled . div `
4
4
box-shadow:0 2px 16px rgba(0,0,0,0.2);
5
+ overflow-x: auto;
6
+ -webkit-overflow-scrolling: touch;
7
+
8
+ @media (max-width: 768px) {
9
+ margin: 0 -1rem;
10
+ border-radius: 0;
11
+ }
5
12
6
13
table{
7
14
display: table;
8
15
width: 100%;
16
+ min-width: 600px;
9
17
height: auto;
10
18
border-collapse: collapse;
11
19
margin: 3.75rem auto;
20
+
21
+ @media (max-width: 768px) {
22
+ margin: 1rem auto;
23
+ min-width: 700px;
24
+ }
12
25
th {
13
26
color: white;
14
27
}
@@ -26,8 +39,23 @@ export const TutorialsTableWrapper = styled.div`
26
39
th, td {
27
40
border-bottom: 1px solid #F0F0F0;
28
41
padding: 0 0.625rem;
42
+ white-space: nowrap;
43
+
44
+ @media (max-width: 768px) {
45
+ padding: 0 0.5rem;
46
+ font-size: 0.9rem;
47
+ }
48
+
49
+ @media (max-width: 480px) {
50
+ padding: 0 0.375rem;
51
+ font-size: 0.85rem;
52
+ }
53
+
29
54
p{
30
55
margin: 0.5rem 0;
56
+ @media (max-width: 768px) {
57
+ margin: 0.25rem 0;
58
+ }
31
59
}
32
60
span {
33
61
display: block;
@@ -42,6 +70,33 @@ export const TutorialsTableWrapper = styled.div`
42
70
img {
43
71
height: 26px;
44
72
width: auto;
73
+
74
+ @media (max-width: 768px) {
75
+ height: 22px;
76
+ }
77
+
78
+ @media (max-width: 480px) {
79
+ height: 20px;
80
+ }
45
81
}
46
82
}
83
+
84
+ /* Scrollbar styling for better UX */
85
+ &::-webkit-scrollbar {
86
+ height: 8px;
87
+ }
88
+
89
+ &::-webkit-scrollbar-track {
90
+ background: #f1f1f1;
91
+ border-radius: 4px;
92
+ }
93
+
94
+ &::-webkit-scrollbar-thumb {
95
+ background: ${ props => props . theme . secondaryColor } ;
96
+ border-radius: 4px;
97
+ }
98
+
99
+ &::-webkit-scrollbar-thumb:hover {
100
+ background: ${ props => props . theme . primaryColor } ;
101
+ }
47
102
` ;
You can’t perform that action at this time.
0 commit comments