Skip to content

Commit e2ae0dd

Browse files
patmellonJoelMarcey
authored andcommitted
[PYT-238] Update quickstart module (pytorch#70)
1 parent 213a145 commit e2ae0dd

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

_includes/quick_start_local.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@
8989
<div class="col-md-12 title-block command-mobile-heading">
9090
<div class="option-text">Run this Command:</div>
9191
</div>
92-
<div class="col-md-12" id="command">conda install pytorch torchvision -c pytorch</div>
92+
<div class="command-container">
93+
<div class="col-md-12" id="command">conda install pytorch torchvision -c pytorch</div>
94+
</div>
9395
</div>
9496
</div>
9597
</div>

_sass/quick-start-module.scss

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.quick-starts {
2-
background: $medium_grey;
2+
background: $light_grey;
33

44
@include small-desktop {
55
.start-locally-col {
@@ -50,7 +50,8 @@
5050
}
5151

5252
.option-text {
53-
margin-top: rem(10px);
53+
display: table-cell;
54+
vertical-align: middle;
5455
}
5556

5657
.selected {
@@ -61,6 +62,7 @@
6162
.block {
6263
margin-bottom: rem(1px);
6364
height: rem(40px);
65+
display: table;
6466
}
6567

6668
.title-block {
@@ -89,6 +91,16 @@
8991
padding: rem(15px);
9092
border: 2px solid $light_grey;
9193
word-wrap: break-word;
94+
display: table-cell;
95+
vertical-align: middle;
96+
}
97+
98+
.command-container {
99+
display: table;
100+
width: 100%;
101+
@include desktop {
102+
min-height: rem(84px);
103+
}
92104
}
93105

94106
.command-block {
@@ -177,6 +189,7 @@
177189
color: #929292;
178190
font-size: 1.125em;
179191
letter-spacing: 0.25px;
192+
padding-bottom: rem(15px);
180193
}
181194

182195
h3 {
@@ -207,7 +220,7 @@
207220
position: relative;
208221
background-image: url($baseurl + "/assets/images/chevron-right-orange.svg");
209222
background-size: 6px 13px;
210-
background-position: center right 12px;
223+
background-position: center right 15px;
211224
background-repeat: no-repeat;
212225

213226
@include desktop {
@@ -251,6 +264,7 @@
251264
font-size: rem(18px);
252265
letter-spacing: -0.25px;
253266
line-height: rem(30px);
267+
color: $not_quite_black;
254268

255269
@include small-desktop {
256270
font-size: rem(16px);

0 commit comments

Comments
 (0)