Skip to content

Commit 68f8135

Browse files
Fix 'Getting Started' images on mobile (#56)
1 parent 448ddc6 commit 68f8135

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

_layouts/getting_started.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1>Getting started with Indico</h1>
1515
<div class="col-lg-6 col-12">
1616
<a class="option-card" href="https://docs.getindico.io/en/stable/installation/">
1717
<div class="row justify-content-center">
18-
<div class="col-3">
18+
<div class="col-3 xs-hidden">
1919
<img src="{{ '/img/install.png' | relative_url }}">
2020
</div>
2121
<div class="col-9">
@@ -28,7 +28,7 @@ <h4>Install Indico</h4>
2828
<div class="col-lg-6 col-12">
2929
<a class="option-card" href="https://sandbox.getindico.io">
3030
<div class="row justify-content-center">
31-
<div class="col-3">
31+
<div class="col-3 xs-hidden">
3232
<img src="{{ '/img/sandbox.png' | relative_url }}">
3333
</div>
3434
<div class="col-9">

_sass/indico.scss

+31
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ $blue-gradient: linear-gradient(to right, #0054B5, #3DD8FF);
4040
$on-palm: 600px;
4141
$on-laptop: 800px;
4242

43+
$xs: 360px;
4344
$sm: 576px;
4445
$md: 768px;
4546
$lg: 992px;
@@ -1128,6 +1129,30 @@ a.no-decoration {
11281129
margin: 40px 10px;
11291130
}
11301131

1132+
@media(max-width: $sm) {
1133+
.option-card {
1134+
img {
1135+
width: auto;
1136+
height: auto;
1137+
}
1138+
1139+
h4 {
1140+
font-size: 23px;
1141+
}
1142+
}
1143+
}
1144+
1145+
@media(max-width: $xs) {
1146+
.option-card {
1147+
h4 {
1148+
font-size: 18px;
1149+
}
1150+
1151+
p {
1152+
font-size: 15px;
1153+
}
1154+
}
1155+
}
11311156
}
11321157

11331158

@@ -1481,3 +1506,9 @@ a.no-decoration {
14811506
border-radius: 18px;
14821507
}
14831508
}
1509+
1510+
@media (max-width: $xs) {
1511+
.xs-hidden {
1512+
display: none !important;
1513+
}
1514+
}

0 commit comments

Comments
 (0)