diff --git a/src/templates/cheatsheet_template.html b/src/templates/cheatsheet_template.html index e3727e1..6231eac 100644 --- a/src/templates/cheatsheet_template.html +++ b/src/templates/cheatsheet_template.html @@ -117,7 +117,18 @@ margin-bottom: 10px; font-weight: 700; font-size: 2.2rem; + position: absolute; + left: 50%; + right: 0; + margin: 0; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + width: 100vw; + padding: 0; + transform: translateX(-50%); } + body.dark-mode h1 { color: var(--mocha-mauve); } @@ -485,21 +496,6 @@ padding-left: 200px; } - h1 { - position: absolute; - left: 0; - right: 0; - text-align: center; - margin: 0; - font-size: 1.8rem; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - width: 100vw; - padding: 0; - left: 50%; - transform: translateX(-50%); - } #dark-mode-toggle { flex: 0 0 auto;