Skip to content

Commit bcb9109

Browse files
zalcodeMuhammad Rizalnovalagung
authored
fix: navigation blocked by some button attribute on mobile devices (#289)
* fix: navigation blocked by some button attribute on mobile devices and impact on all content * feat: add contributor --------- Co-authored-by: Muhammad Rizal <rizal@ruangguru.com> Co-authored-by: novalagung <hello@novalagung.com>
1 parent b8c20b8 commit bcb9109

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

content/CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Berikut merupakan *hall of fame* kontributor yang sudah berbaik hati menyisihkan
6565
1. [MH Rohman Masyhar](https://github.com/rohmanhm)
6666
1. [Muhammad Faris 'Afif](https://github.com/muhfaris)
6767
1. [Muhammad Ridho](https://github.com/reedho)
68+
1. [Muhammad Rizal](https://github.com/zalcode)
6869
1. [Muhammad Zulfan Wahyudin](https://github.com/mzulfanw)
6970
1. [Mulia Nasution](https://github.com/mul14)
7071
1. [nekonako](https://github.com/nekonako)

content/style-website-v4.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ body .book.font-family-1, .book-summary {
128128
box-shadow: inset 0 0 0 2px #008cff;
129129
}
130130

131-
/* make the sidebar wider, and adjust the content to match it */
132-
.book-summary {
133-
left: -470px;
134-
width: 470px;
135-
}
136131
@media (min-width: 600px) {
137132
.book.with-summary .book-body {
138133
left: 470px;
139134
}
135+
/* make the sidebar wider, and adjust the content to match it */
136+
.book-summary {
137+
left: -470px;
138+
width: 470px;
139+
}
140140
}
141141

142142
.book-header {

etc/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func webbookPostAdjustment() {
170170

171171
// ==== inject github stars button
172172
buttonToFind := `</body>`
173-
buttonReplacement := `<div style="position: fixed; top: 5px; right: 30px; padding: 10px; background-color: rgba(255, 255, 255, 0.7);">
173+
buttonReplacement := `<div style="margin-left: 50px; margin-right: 20px; position: fixed; top: 5px; right: 30px; padding: 10px; background-color: rgba(255, 255, 255, 0.7);">
174174
<a class="github-button" href="https://github.com/sponsors/novalagung" data-color-scheme="no-preference: light; light: light; dark: dark;" data-icon="octicon-heart" data-size="large" aria-label="Sponsor @novalagung on GitHub">Sponsor</a>&nbsp;
175175
<a class="github-button" href="https://github.com/novalagung/dasarpemrogramangolang" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star novalagung/dasarpemrogramangolang on GitHub">Star</a>&nbsp;
176176
<a class="github-button" href="https://github.com/novalagung" data-size="large" aria-label="Follow @novalagung on GitHub">Follow @novalagung</a>

0 commit comments

Comments
 (0)