Skip to content

Commit ccc3ba6

Browse files
committed
Update _theme.scss
1 parent 8a55da4 commit ccc3ba6

1 file changed

Lines changed: 43 additions & 23 deletions

File tree

_sass/_theme.scss

Lines changed: 43 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,38 +32,58 @@ body {
3232
padding-left: 30px;
3333
}
3434

35+
3536
.col.software {
37+
width: 100%;
38+
text-align: center;
39+
height: 100%;
40+
padding-left: 20px; // ↓ reduce from 50
41+
padding-right: 20px;
42+
43+
table {
44+
border: none;
3645
width: 100%;
37-
text-align:center;
38-
height:100%;
39-
padding-left:50px;
40-
padding-right:50px;
41-
42-
table {
43-
align:center;
44-
border:none;
45-
}
46-
47-
tr {
48-
colspan:2;
49-
border:none;
50-
}
51-
52-
td {
53-
padding-top:20px;
54-
padding-right:40px;
55-
padding-left:40px;
56-
text-align:center;
57-
border:none;
58-
}
59-
46+
}
47+
48+
tr {
49+
border: none;
50+
}
51+
52+
td {
53+
padding-top: 20px;
54+
padding-right: 15px; // ↓ reduce from 40
55+
padding-left: 15px;
56+
text-align: center;
57+
border: none;
58+
box-sizing: border-box; // IMPORTANT
59+
}
6060
}
6161

6262
img.software-logo {
6363
max-width: 120px;
6464
height: auto;
6565
}
6666

67+
/* Tablet + mobile: force 2 columns instead of 3 */
68+
@media screen and (max-width: 900px) {
69+
70+
.software table {
71+
width: 100%;
72+
}
73+
74+
.software table tr {
75+
display: flex;
76+
flex-wrap: wrap;
77+
justify-content: center;
78+
}
79+
80+
.software table td {
81+
width: 48%; /* 2 columns */
82+
margin: 1%;
83+
box-sizing: border-box;
84+
}
85+
}
86+
6787
img.social-media {
6888
height: 1.3em;
6989
display: inline;

0 commit comments

Comments
 (0)