File tree Expand file tree Collapse file tree 7 files changed +68
-9
lines changed Expand file tree Collapse file tree 7 files changed +68
-9
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,27 @@ import styled from 'styled-components';
9
9
10
10
export const Grid = styled . div `
11
11
display: grid;
12
- grid-template-columns: 71px 240px auto 240px;
13
- grid-template-rows: 46px auto 52px;
14
- grid-template-areas:
15
- 'SL SN CI CI'
16
- 'SL CL CD UL'
17
- 'SL UI CD UL';
18
12
height: 100vh;
13
+
14
+ grid-template-columns: 65px auto;
15
+ grid-template-rows: 46px auto;
16
+ grid-template-areas:
17
+ 'SL CI'
18
+ 'SL CD';
19
+
20
+ @media (min-width: 598px) {
21
+ grid-template-columns: 71px 240px auto 240px;
22
+ grid-template-rows: 46px auto 52px;
23
+ grid-template-areas:
24
+ 'SL SN CI CI'
25
+ 'SL CL CD CD'
26
+ 'SL UI CD CD';
27
+ }
28
+
29
+ @media (min-width: 868px) {
30
+ grid-template-areas:
31
+ 'SL SN CI CI'
32
+ 'SL CL CD UL'
33
+ 'SL UI CD UL';
34
+ }
19
35
` ;
Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ export const Container = styled.div`
7
7
flex-direction: column;
8
8
padding: 24px 9.5px 0 16px;
9
9
background-color: var(--secondary);
10
+
11
+ @media (max-width: 598px) {
12
+ display: none;
13
+ }
10
14
` ;
11
15
12
16
export const Category = styled . div `
Original file line number Diff line number Diff line change @@ -6,7 +6,12 @@ export const Container = styled.div<Props>`
6
6
width: 48px;
7
7
height: 48px;
8
8
position: relative;
9
- margin-bottom: 15px;
9
+ margin-bottom: 10px;
10
+
11
+ @media (max-width: 598px) {
12
+ width: 35px;
13
+ height: 35px;
14
+ }
10
15
` ;
11
16
12
17
export const Button = styled . button < Props > `
@@ -18,7 +23,7 @@ export const Button = styled.button<Props>`
18
23
height: 48px;
19
24
border-radius: 50%;
20
25
margin-bottom: 15px;
21
- background-color: ${ ( props ) => ( props . color ? props . color : 'var(--primary)' ) } ;
26
+ background-color: ${ ( props ) => ( props . color ? props . color : 'var(--primary)' ) } ;
22
27
/* ${ ( props ) => ( props . isHome ? 'var(--rocketseat)' : 'var(--primary)' ) } ; */
23
28
position: relative;
24
29
cursor: pointer;
@@ -52,7 +57,7 @@ export const Button = styled.button<Props>`
52
57
font-weight: bold;
53
58
color: var(--white);
54
59
content: '${ ( props ) => props . mentions && props . mentions } ';
55
- display: ${ ( props ) => ( props . mentions && props . mentions > 0 ? 'inline' : 'none' ) }
60
+ display: ${ ( props ) => ( props . mentions && props . mentions > 0 ? 'inline' : 'none' ) } ;
56
61
}
57
62
transition: border-radius 0.2s, background-color 0.2s;
58
63
&.active,
@@ -64,6 +69,25 @@ export const Button = styled.button<Props>`
64
69
visibility: visible;
65
70
opacity: 1;
66
71
}
72
+
73
+ @media (max-width: 598px) {
74
+ width: 30px;
75
+ height: 30px;
76
+ margin-bottom: 10px;
77
+ &::before {
78
+ width: 5px;
79
+ height: 5px;
80
+ left: -13px;
81
+ }
82
+ > img {
83
+ width: 25px;
84
+ height: 25px;
85
+ }
86
+ &::after {
87
+ height: 10px;
88
+ font-size: 7px;
89
+ }
90
+ }
67
91
` ;
68
92
69
93
export const Tooltip = styled . div < Props > `
@@ -108,4 +132,8 @@ export const Tooltip = styled.div<Props>`
108
132
visibility: visible;
109
133
opacity: 1;
110
134
}
135
+
136
+ @media (max-width: 598px) {
137
+ width: 15px;
138
+ }
111
139
` ;
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ export const Container = styled.div`
9
9
background-color: var(--secondary);
10
10
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 0px 0px;
11
11
z-index: 2;
12
+
13
+ @media (max-width: 598px) {
14
+ display: none;
15
+ }
12
16
` ;
13
17
14
18
export const Title = styled . h1 `
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ export const Container = styled.div`
10
10
padding: 10px;
11
11
background-color: var(--quaternary);
12
12
box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 0px 0px;
13
+
14
+ @media (max-width: 598px) {
15
+ display: none;
16
+ }
13
17
` ;
14
18
15
19
export const Profile = styled . div `
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ export const Container = styled.div`
18
18
::-webkit-scrollbar-track {
19
19
background-color: var(--secondary);
20
20
}
21
+ @media (max-width: 868px) {
22
+ display: none;
23
+ }
21
24
` ;
22
25
23
26
export const Role = styled . span `
You can’t perform that action at this time.
0 commit comments