From a9403ece2d2bbb15f2a7e67caccb4cf55a6cc4f3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <256895@studenti.unimore.it> Date: Wed, 21 Apr 2021 16:04:00 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Improve=20icon=20centering?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/ButtonSidebar.module.css | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/code/frontend/src/components/ButtonSidebar.module.css b/code/frontend/src/components/ButtonSidebar.module.css index 2ff7153..84de26e 100644 --- a/code/frontend/src/components/ButtonSidebar.module.css +++ b/code/frontend/src/components/ButtonSidebar.module.css @@ -12,11 +12,12 @@ background-color: var(--bg-button-off); color: var(--fg-button-off); - font-size: large; display: flex; flex-direction: row; - gap: 10px; + gap: 20px; + + font-size: large; /* Hackerino per ignorare il padding */ width: calc(100% + 10px); @@ -32,11 +33,13 @@ .ButtonIcon { font-size: x-large; - /* TODO: non so quanto sia una buona idea, ma funziona accettabilmente */ line-height: 0; - vertical-align: sub; + + /* Hackerino per centrare le icone */ + position: relative; + top: 2px; } .ButtonText { - text-align: center; -} \ No newline at end of file + +}