Skip to content

Commit a9b0cd8

Browse files
committed
Make start/interests responsive
1 parent 187f29f commit a9b0cd8

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

app/styles/components/categories-list.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
.categories-list {
2-
flex: 1;
2+
display: flex;
3+
flex-direction: row;
4+
flex-wrap: wrap;
35
margin-bottom: 2em;
46
width: 100%;
57
}

app/styles/components/category-item.scss

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
.category-item {
2-
@include omega(5n);
3-
@include span-columns(2.4);
2+
width: 20%;
3+
@include media($lg-screen) {
4+
width: 25%;
5+
}
6+
@include media($md-screen) {
7+
width: 33%;
8+
}
9+
@include media($sm-screen) {
10+
width: 50%;
11+
}
12+
@include media($xs-screen) {
13+
width: 100%;
14+
}
415

516
text-align: center;
617

0 commit comments

Comments
 (0)