From ad693e8a0c2463a18c25ce95c8c87b663f94f17e Mon Sep 17 00:00:00 2001 From: inference Date: Mon, 26 Dec 2022 02:14:56 +0000 Subject: [PATCH] Make h2 elements center-aligned on devices with displays less than 600 px wide. --- inf.css | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/inf.css b/inf.css index 2501bb8..f4495a0 100644 --- a/inf.css +++ b/inf.css @@ -3,7 +3,7 @@ /* Copyright 2022-2023 Inference */ /* SPDX-License-Identifier: BSD-3-Clause-Clear */ -/* Version: 0.4.0.4 */ +/* Version: 0.5.0.5 */ h1 { @@ -137,6 +137,7 @@ table, th, td { } @media (max-width: 600px) { + .sidebar { width: 100vw; height: auto; @@ -153,6 +154,10 @@ table, th, td { display: none; } + h2 { + text-align: center; + } + h3 { text-align: center; } @@ -160,9 +165,11 @@ table, th, td { body { margin: 15px; } + } @media (max-width: 300px) { + h3 { text-align: center; } @@ -170,4 +177,5 @@ table, th, td { body { padding-top: 80px; } + }