diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-09 06:17:38 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-09 06:17:38 +0200 |
| commit | 92a7ace69f9ec5c4542c5136fb8cf3426a3ae0fa (patch) | |
| tree | 1c64e00111e35f056f7c165a1940b12ce184853a /templates/base.html | |
| parent | 7c61337095ecdab903b5aab23351992ab321079f (diff) | |
| download | mitjafelicijan.com-92a7ace69f9ec5c4542c5136fb8cf3426a3ae0fa.tar.gz | |
Only show content align button if JS enabled in browser
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html index 42b434b..d449492 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -75,6 +75,8 @@ | |||
| 75 | 75 | ||
| 76 | .content-center { margin: 0 auto; } | 76 | .content-center { margin: 0 auto; } |
| 77 | 77 | ||
| 78 | #content_align_button { display: none; } | ||
| 79 | |||
| 78 | /* Hotfixes for strange behaviour. */ | 80 | /* Hotfixes for strange behaviour. */ |
| 79 | article iframe { margin: 0!important; } | 81 | article iframe { margin: 0!important; } |
| 80 | pre code span { display: initial !important; } | 82 | pre code span { display: initial !important; } |
| @@ -103,6 +105,7 @@ | |||
| 103 | </nav> | 105 | </nav> |
| 104 | <nav> | 106 | <nav> |
| 105 | <button id="content_align_button">center</button> | 107 | <button id="content_align_button">center</button> |
| 108 | <script>content_align_button.style.display = "block";</script> | ||
| 106 | </nav> | 109 | </nav> |
| 107 | </div> | 110 | </div> |
| 108 | </header> | 111 | </header> |
