Skip to content

Commit ea00c81

Browse files
committed
[chores:ui] Fixed spacing of deploy buttons
1 parent 058ac72 commit ea00c81

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

content/pages/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,17 @@ <h1 class="title is-spaced is-size-3-mobile">
4343
</p>
4444
<p class="button-container">
4545
<a
46-
class="button with-text is-orange"
46+
class="button with-text is-orange is-block-mobile"
4747
href="{filename}features.html"
4848
>
4949
<span class="fas fa-bolt"></span>
5050
<span>Features</span>
5151
</a>
52-
<a class="button with-text is-white" href="{filename}demo.html">
52+
<a class="button with-text is-white is-block-mobile" href="{filename}demo.html">
5353
<i class="fas fa-regular fa-circle-play"></i>
5454
<span>Try the Demo</span>
5555
</a>
56-
<a class="button with-text is-inverted" href="{filename}deploy.html">
56+
<a class="button with-text is-inverted is-block-mobile" href="{filename}deploy.html">
5757
<i class="fas fa-cloud-arrow-up"></i>
5858
<span>Deploy</span>
5959
</a>

css/theme.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,14 @@ $weight-semibold: 600;
6969
$control-border-width: 1px,
7070
$input-shadow: none,
7171
$navbar-breakpoint: 800px,
72-
$tablet: 450px,
7372
$footer-padding: 1.5rem,
7473
$media-spacing: 0.7rem,
7574
$media-spacing-large: 1.1rem
7675
);
7776

7877
@use "sass:color";
78+
@use "bulma/sass/utilities/mixins" as bulma-mixins;
79+
@use "bulma/sass/utilities/initial-variables" as bulma-vars;
7980
@use "@fortawesome/fontawesome-free/scss/variables" with (
8081
$font-path: "../webfonts",
8182
$font-display: swap
@@ -466,6 +467,14 @@ body {
466467
p.button-container .button {
467468
margin: 5px;
468469
}
470+
// Adjustment for the main call to action buttons in
471+
// home page which look terrible on mobile
472+
p.button-container .button.is-block-mobile {
473+
@include bulma-mixins.until(bulma-vars.$tablet) {
474+
margin: 1rem auto;
475+
max-width: 55%;
476+
}
477+
}
469478
#top-feature-container {
470479
min-height: var(--km);
471480
}

theme/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
<span>Demo</span>
162162
</a>
163163
<a
164-
class="button is-inverted with-text"
164+
class="button is-inverted with-text ml-1"
165165
href="{{ SITEURL }}/deploy/"
166166
>
167167
<span class="fas fa-cloud-arrow-up"></span>

0 commit comments

Comments
 (0)