Skip to content

Commit 28683e7

Browse files
committed
Fix sidebar
1 parent e2ce6d1 commit 28683e7

6 files changed

Lines changed: 47 additions & 37 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
<a class="bd-banner is-fortyfour" href="https://jgthms.com/css-in-44-minutes-ebook" target="_blank">
2-
<p class="bd-banner-title">
2+
<p class="bd-banner-label">
33
New ebook!
44
</p>
55

6-
<p class="bd-banner-text">
7-
My 44-page ebook "<strong>CSS in 44 minutes</strong>" is out! <span class="bd-emoji-bis">😃</span>
8-
</p>
9-
106
<figure class="bd-banner-image">
117
{%
128
include elements/responsive-image.html
@@ -18,7 +14,11 @@
1814
%}
1915
</figure>
2016

17+
<p class="bd-banner-text">
18+
My 44-page ebook "<strong>CSS in 44 minutes</strong>" is out! <span class="bd-emoji-bis">😃</span>
19+
</p>
20+
2121
<span class="button is-success is-rounded">
22-
<strong>Get it now →</strong>
22+
<strong>Buy now →</strong>
2323
</span>
2424
</a>

docs/_includes/global/navbar.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,20 @@
3030
<span class="icon has-text-primary">
3131
<i class="fas fa-book"></i>
3232
</span>
33-
<span>Documentation</span>
33+
<span class="is-hidden-touch is-hidden-widescreen">
34+
Docs
35+
</span>
36+
<span class="is-hidden-desktop-only">
37+
Documentation
38+
</span>
3439
</a>
3540

3641
{% for item in site.data.global.navbar_items %}
3742
<a class="navbar-item bd-navbar-item-{{ item.id }} {% if page.route == item.id %}is-active{% endif %}" href="{{ site.url }}/{{ item.id }}/">
3843
<span class="icon {{ item.color }}">
3944
<i class="{{ item.fa_type }} {{ item.fa_icon }}"></i>
4045
</span>
46+
4147
<span>{{ item.title }}</span>
4248
</a>
4349
{% endfor %}
@@ -47,6 +53,7 @@
4753
<a class="navbar-link" href="{{ site.url }}{{ link.path }}">
4854
{{ link.name }}
4955
</a>
56+
5057
<div id="moreDropdown" class="navbar-dropdown">
5158
{% for link_id in site.data.links.more %}
5259
{% assign link = site.data.links.by_id[link_id] %}
@@ -69,16 +76,18 @@
6976
</div>
7077

7178
<div class="navbar-end">
72-
<a class="navbar-item is-hidden-mobile" href="{{ site.data.meta.github }}" target="_blank">
79+
<a class="navbar-item is-hidden-touch is-hidden-desktop-only" href="{{ site.data.meta.github }}" target="_blank">
7380
<span class="icon" style="color: #333;">
7481
<i class="fab fa-lg fa-github-alt"></i>
7582
</span>
7683
</a>
77-
<a class="navbar-item is-hidden-mobile" href="{{ site.data.meta.twitter }}" target="_blank">
84+
85+
<a class="navbar-item is-hidden-touch is-hidden-desktop-only" href="{{ site.data.meta.twitter }}" target="_blank">
7886
<span class="icon" style="color: #55acee;">
7987
<i class="fab fa-lg fa-twitter"></i>
8088
</span>
8189
</a>
90+
8291
<div class="navbar-item">
8392
<div class="field is-grouped is-grouped-multiline">
8493
<p class="control">

docs/_sass/main.sass

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,11 @@
167167
.bd-header-carbon
168168
margin-top: 1.5rem
169169

170-
+mobile
170+
+touch
171171
.bd-side-background
172172
display: none
173173

174-
+tablet
174+
+desktop
175175
.bd-duo
176176
display: flex
177177
.bd-lead

docs/_sass/patreon.sass

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
.bd-side-sponsors
2-
margin-top: 1.5rem
2+
margin-top: 3rem
3+
text-align: center
34

4-
.bd-side-sponsor-label
5+
.bd-side-sponsor-label,
6+
.bd-banner-label
57
color: $grey-light
68
font-size: 0.75rem
79
margin-bottom: 0.75rem
@@ -17,9 +19,8 @@
1719
.bd-banner
1820
border-radius: $radius-large
1921
display: block
20-
overflow: hidden
21-
margin-top: 1.5rem
22-
padding: 1.5rem
22+
margin-top: 3rem
23+
padding-bottom: 1.5rem
2324
position: relative
2425
text-align: center
2526
transition-duration: $speed
@@ -31,9 +32,9 @@
3132
&.is-patreon
3233
background-color: $patreon-blue
3334
color: $white
34-
&.is-fortyfour
35-
background-color: $white
36-
border: 2px solid $background
35+
// &.is-fortyfour
36+
// background-color: $white
37+
// border: 2px solid $background
3738
.button
3839
transform-origin: center
3940
transition-duration: $speed
@@ -44,7 +45,7 @@
4445
.bd-banner-title
4546
color: currentColor
4647
.button
47-
transform: scale(1.1)
48+
transform: scale(1.05)
4849

4950
.bd-banner-background
5051
+overlay
@@ -61,9 +62,10 @@
6162
margin-bottom: 0.25em
6263

6364
.bd-banner-text
65+
display: none
6466
font-size: 0.875em
6567
line-height: 1.25
66-
padding: 0 0.5em
68+
margin-bottom: 0.5rem
6769
position: relative
6870

6971
.bd-banner-image
@@ -72,6 +74,8 @@
7274
margin-top: 1rem
7375
img
7476
display: inline-block
77+
// left: -8px
78+
// position: relative
7579
vertical-align: top
7680

7781
.bd-banner-button

docs/css/bulma-docs.css

Lines changed: 12 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/css/bulma-docs.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)