From 6e6b2ea87b4e7f3f8d9e578a40895becb36580d9 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Sun, 22 Aug 2021 16:26:19 +0100 Subject: [PATCH] [CSS][Icons] Icons width and height wasn't consistent, problem lied within the SVGs themselves. --- public/assets/css/base.css | 36 ++++------------ public/assets/css/left/left.css | 6 +++ public/assets/css/reset.css | 5 +-- public/assets/icons/logo.svg.twig | 58 ++++++++++++++++++++++++-- public/assets/icons/menu.svg.twig | 58 ++++++++++++++++++++++++-- public/assets/icons/notes.svg.twig | 67 ++++++++++++++++++++++++++++-- 6 files changed, 188 insertions(+), 42 deletions(-) diff --git a/public/assets/css/base.css b/public/assets/css/base.css index e5c25ddd44..449e091e4a 100644 --- a/public/assets/css/base.css +++ b/public/assets/css/base.css @@ -45,7 +45,6 @@ z-index: 1; height: 3rem; - font-size: var(--main-size); display: flex; position: fixed; top: 0; @@ -71,20 +70,18 @@ margin-right: auto; } +#instance h1 { + margin-left: 4px; +} + #instance:focus svg, #instance:hover svg { fill: var(--bg1); transition: var(--cubic-transition); } -.icon-logo { - margin-right: var(--small-size); - fill: var(--white); -} - .panel aside { font-size: var(--medium-size); - display: block; position: absolute; top: 100%; @@ -93,22 +90,15 @@ padding: var(--unit-size); } -.panel aside .footer { - bottom: var(--unit-size); - left: var(--unit-size); - font-size: var(--small-size); -} -#header:above-level.panel[open] ~ * { - display: none; -} - .icon { fill: var(--white); + width: 1em; + height: 1em; } /* CURRENT PAGE LINK */ .active { - border-radius: var(--unit-size); + border-radius: 4px; background: var(--white); color: var(--bg1) !important; transition: var(--cubic-transition); @@ -284,16 +274,6 @@ max-width: 100%; } - /* we need to control panel's view at this size */ - .icon-left, - .icon-right { - display: flex; - align-self: center; - align-items: center; - width: 1em; - height: 1em; - } - /* by default they are hidden */ .panel aside { display: none; @@ -306,7 +286,6 @@ .panel[open] { display: flex; flex-direction: column; - font-size: var(--main-size); } .panel[open] aside { padding: var(--unit-size); @@ -320,7 +299,6 @@ background-repeat: no-repeat; background-size: 100% 100%; min-height: 100%; - } .panel[open] aside .footer { diff --git a/public/assets/css/left/left.css b/public/assets/css/left/left.css index af0ed5cfd2..12d3f75f38 100644 --- a/public/assets/css/left/left.css +++ b/public/assets/css/left/left.css @@ -95,4 +95,10 @@ display: flex; flex-direction: column; } +.sec-nav { + padding-left: var(--unit-size); +} +.footer * { + font-size: var(--small-size); +} diff --git a/public/assets/css/reset.css b/public/assets/css/reset.css index 8abe9820d8..b70698e13b 100644 --- a/public/assets/css/reset.css +++ b/public/assets/css/reset.css @@ -150,7 +150,7 @@ li { a { text-decoration: none; color: var(--white); - border-radius: var(--unit-size); + border-radius: 4px; padding-left: var(--unit-size); padding-right: var(--unit-size); @@ -180,10 +180,9 @@ figcaption a:link { summary:hover > svg, summary:focus > svg { - border-radius: var(--unit-size); + border-radius: 4px; background-color: var(--white); fill: var(--bg1); - border: 2px solid var(--white); transition: var(--cubic-transition); } diff --git a/public/assets/icons/logo.svg.twig b/public/assets/icons/logo.svg.twig index 13105dd328..98efb7dadb 100644 --- a/public/assets/icons/logo.svg.twig +++ b/public/assets/icons/logo.svg.twig @@ -1,6 +1,58 @@ - - + + + + + {{ config('site', 'name') }} - + + + + + + {{ config('site', 'name') }} + + + + diff --git a/public/assets/icons/menu.svg.twig b/public/assets/icons/menu.svg.twig index 38c914d74b..b48b032c8e 100644 --- a/public/assets/icons/menu.svg.twig +++ b/public/assets/icons/menu.svg.twig @@ -1,6 +1,58 @@ + + - -Open left sidepanel. - + + + + + Open left sidepanel. + + + + + Open left sidepanel. + + + diff --git a/public/assets/icons/notes.svg.twig b/public/assets/icons/notes.svg.twig index 05ff4afad6..62abda80fb 100644 --- a/public/assets/icons/notes.svg.twig +++ b/public/assets/icons/notes.svg.twig @@ -1,9 +1,68 @@ + + - - + + + + + Create a note - - + + + + + + + + + Create a note + + + +