Skip to content

Commit 0f070ec

Browse files
committed
update mobile
1 parent ccc3ba6 commit 0f070ec

2 files changed

Lines changed: 50 additions & 45 deletions

File tree

_sass/_theme.scss

Lines changed: 25 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -32,56 +32,36 @@ body {
3232
padding-left: 30px;
3333
}
3434

35-
3635
.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;
4536
width: 100%;
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-
}
60-
}
61-
62-
img.software-logo {
63-
max-width: 120px;
64-
height: auto;
65-
}
66-
67-
/* Tablet + mobile: force 2 columns instead of 3 */
68-
@media screen and (max-width: 900px) {
69-
70-
.software table {
71-
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;
7245
}
73-
74-
.software table tr {
75-
display: flex;
76-
flex-wrap: wrap;
77-
justify-content: center;
46+
47+
tr {
48+
colspan:2;
49+
border:none;
7850
}
79-
80-
.software table td {
81-
width: 48%; /* 2 columns */
82-
margin: 1%;
83-
box-sizing: border-box;
51+
52+
td {
53+
padding-top:20px;
54+
padding-right:40px;
55+
padding-left:40px;
56+
text-align:center;
57+
border:none;
8458
}
59+
60+
}
61+
62+
img.software-logo {
63+
height:70px;
64+
width:auto;
8565
}
8666

8767
img.social-media {

resources.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,31 @@ layout: page
33
title: Resources
44
---
55

6+
<style>
7+
/* Default (desktop) = 3 columns */
8+
.software table td {
9+
width: 33.33%;
10+
}
11+
12+
/* Tablet */
13+
@media screen and (max-width: 900px) {
14+
.software table td {
15+
width: 50%;
16+
}
17+
}
18+
19+
/* Mobile */
20+
@media screen and (max-width: 600px) {
21+
.software table td {
22+
width: 50%;
23+
}
24+
25+
.software table tr {
26+
margin-bottom: 10px;
27+
}
28+
}
29+
</style>
30+
631
Here you will find cutting-edge technologies and resources developed by the Birol Lab to empower researchers in genomics, bioinformatics, life sciences and medical research and designed to streamline *big data* analysis, enhance data interpretation, and accelerate scientific discovery.
732

833
<div class="col software">

0 commit comments

Comments
 (0)