Only show content align button if JS enabled in browser

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)
-rw-r--r-- templates/base.html 3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
...
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
				</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>
...