Skip to content

Commit 9b59821

Browse files
author
JT
committed
center feature text at 768
1 parent 37ad19b commit 9b59821

3 files changed

Lines changed: 27 additions & 2 deletions

File tree

website/source/index.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
<div class="feature" id="feature-auto">
2222
<div class="container">
2323
<div class="row">
24-
<div class="col-lg-7 col-md-7">
24+
<div class="col-lg-7 col-md-7 col-sm-12">
2525
<h2 class="feature-t">Automatically build infrastructure from code</h2>
2626
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vestibulum nibh vitae quam dapibus, nec sodales dolor sodales. Class aptent taciti sociosqu ad litora.</p>
2727
</div>
28-
<div class="col-lg-5 col-md-5">
28+
<div class="col-lg-5 col-md-5 col-sm-12">
2929
<h3 class="terminal-text">$ terraform apply</h3>
3030
</div>
3131
</div>

website/source/stylesheets/_home.less

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,14 @@
443443

444444

445445
@media (max-width: 992px) {
446+
447+
.feature{
448+
h2,p{
449+
text-align: center !important;
450+
padding-left: 0 !important;
451+
}
452+
}
453+
446454
#demos{
447455
.terminals{
448456
.terminal-item{
@@ -462,6 +470,14 @@
462470
}
463471

464472
@media (max-width: 768px) {
473+
474+
.feature{
475+
h2,p{
476+
text-align: center;
477+
}
478+
}
479+
480+
465481
#demos{
466482
.terminals{
467483
.terminal-item{

website/source/stylesheets/main.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,11 +1022,20 @@ body.page-home #footer {
10221022
}
10231023
}
10241024
@media (max-width: 992px) {
1025+
.feature h2,
1026+
.feature p {
1027+
text-align: center !important;
1028+
padding-left: 0 !important;
1029+
}
10251030
#demos .terminals .terminal-item > header .right {
10261031
padding-left: 54px;
10271032
}
10281033
}
10291034
@media (max-width: 768px) {
1035+
.feature h2,
1036+
.feature p {
1037+
text-align: center;
1038+
}
10301039
#demos .terminals .terminal-item > header .left span.icn {
10311040
padding-bottom: 15px;
10321041
}

0 commit comments

Comments
 (0)