Skip to content

Commit 7c35379

Browse files
committed
Improve display on small screens
Improve display on small screens
1 parent fc0a665 commit 7c35379

File tree

3 files changed

+35
-14
lines changed

3 files changed

+35
-14
lines changed

docs/pages/CV/index.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: minimal
33
content:
4-
width : 80%
4+
width : 90%
55
horizontalPadding: 0px
66
---
77

docs/pages/CV/react-groupedlist.jsx

+1-11
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,7 @@ const GroupedList = () => {
2929
{categories.map((category, index) => (
3030
<div
3131
key={index}
32-
style={{
33-
width: '100%',
34-
color: 'white',
35-
background: category.color,
36-
padding: '10px',
37-
margin: '5px',
38-
'margin-bottom': '25px',
39-
cursor: 'pointer',
40-
display: 'inline-block',
41-
borderRadius: '5px',
42-
}}
32+
className="category-box"
4333
>
4434
<div
4535
style={{

docs/styles.css

+33-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
align-items: center;
2020
}
2121

22+
.vertical-timeline-element {
23+
width: 100%;
24+
}
25+
2226
.vertical-timeline-element-title {
2327
font-size: 18px;
2428
}
@@ -49,16 +53,43 @@
4953
.two-column-layout {
5054
display: flex; /* Use flexbox for a simple two-column layout */
5155
justify-content: space-between;
56+
flex-wrap: wrap;
5257
}
5358

5459
.main-content {
5560
flex:1; /* Take up remaining space in the container */
61+
/*margin-right: 50px;*/
5662
margin-right: 50px;
63+
min-width: 350px;
64+
}
65+
66+
@media only screen and (max-width: 600px) {
67+
.main-content {
68+
flex:1; /* Take up remaining space in the container */
69+
margin-right: 0px;
70+
}
71+
/* .category-box {
72+
max-width: 60%; /* Adjust this value as needed */
73+
/*}
74+
*/
5775
}
5876

5977
.sidebarcv {
60-
margin-right: -150px;
61-
width: 200px; /* Adjust the width of the sidebar as needed */
78+
margin-right: 0px;
79+
width: '100%'; /* Adjust the width of the sidebar as needed */
80+
flex-basis: 300px; /* Set the width of the sidebar */
6281
/* Add any other styling for the sidebar */
6382
}
6483

84+
.category-box {
85+
width: 100%;
86+
color: white;
87+
background: rgb(44, 62, 80);
88+
padding: 10px;
89+
margin: 5px;
90+
margin-bottom: 25px;
91+
cursor: pointer;
92+
display: inline-block;
93+
borderRadius: 5px;
94+
box-sizing: border-box;
95+
}

0 commit comments

Comments
 (0)