Skip to content

Commit 3081038

Browse files
committed
Show sponsor logos by 1- or 2-columns depending on min-width
1 parent 2a64a37 commit 3081038

File tree

1 file changed

+23
-36
lines changed

1 file changed

+23
-36
lines changed

app/assets/stylesheets/custom.scss

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -37,48 +37,35 @@ div #README{
3737
.snsb iframe {
3838
margin: 0 !important;
3939
}
40-
40+
41+
// Sponsor section
4142
.sponsors_logo {
42-
ul{
43-
padding: 0;
44-
margin: 0;
45-
width: 100%;
46-
font-size: 0;
47-
}
48-
li{
49-
padding: 0;
50-
margin: 10px 0px 10px 1px;
51-
list-style-type:none;
52-
display: inline-block;
53-
width: 21%;
54-
font-size: 12px;
55-
}
43+
ul{
44+
padding-left: 0px;
45+
}
46+
li{
47+
list-style-type: none;
48+
display: inline-block;
49+
padding-top: 20px;
50+
width: 300px;
51+
height: 120px;
5652

57-
a{
58-
text-decoration: none;
59-
cursor: none;
53+
@media only screen and (min-width: 560px) {
54+
padding: 20px 0px 0px 0px;
55+
margin: 0px 0px 0px 0px;
56+
width: 220px;
57+
height: 100px;
58+
}
59+
@media only screen and (min-width: 720px) {
60+
padding: 0px 20px 0px 20px;
61+
margin: 20px 0px 0px 0px;
62+
width: 320px;
63+
height: 100px;
6064
}
6165
img{
6266
width:100%;
63-
&:hover {
64-
cursor: pointer;
65-
}
66-
}
67-
}
68-
69-
@media only screen and (max-width:720px) {
70-
.sponsors_logo{
71-
li{
72-
width: 46%;
73-
}
74-
}
75-
}
76-
@media only screen and (max-width:560px) {
77-
.sponsors_logo{
78-
li{
79-
width: 90%;
80-
}
8167
}
68+
}
8269
}
8370

8471
// Customized by @coderdojo-tokyo

0 commit comments

Comments
 (0)