From e9375f9127854dac33e01ee94f473167be9f039d Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 10 Oct 2023 04:03:49 +0300 Subject: [PATCH] update user menu style --- public/asset/default/css/common.css | 2 +- public/asset/default/css/framework.css | 28 +-- templates/default/user/module.html.twig | 227 +++++------------------- 3 files changed, 59 insertions(+), 198 deletions(-) diff --git a/public/asset/default/css/common.css b/public/asset/default/css/common.css index 5d4291a..4d7fc56 100644 --- a/public/asset/default/css/common.css +++ b/public/asset/default/css/common.css @@ -43,7 +43,7 @@ h1 { h2 { color: #ccc; - font-size: 16px; + font-size: 14px; } input, diff --git a/public/asset/default/css/framework.css b/public/asset/default/css/framework.css index e459f05..7383cc6 100644 --- a/public/asset/default/css/framework.css +++ b/public/asset/default/css/framework.css @@ -81,7 +81,11 @@ a.text-color-white:hover { color: #5785b7; } -.text-color-night { +.text-color-night, +a.text-color-night, +a.text-color-night:active, +a.text-color-night:visited, +a.text-color-night:hover { color: #838695; } @@ -228,15 +232,15 @@ a:visited.background-color-hover-night-light:hover { font-weight: 200 } -.font-size-10 { +.font-size-10-px { font-size: 10px; } -.font-size-12 { +.font-size-12-px { font-size: 12px; } -.font-size-22 { +.font-size-22-px { font-size: 22px; } @@ -342,10 +346,18 @@ a:visited.background-color-hover-night-light:hover { margin-left: 4px; } +.margin-8-px { + margin: 8px; +} + .margin-l-8-px { margin-left: 8px; } +.margin-16-px { + margin: 16px; +} + .margin-l-16-px { margin-left: 16px; } @@ -371,8 +383,8 @@ a:visited.background-color-hover-night-light:hover { margin-left: 96px; } -.margin-l--196-px { - margin-left: -196px; +.margin-l--56-px { + margin-left: -56px; } .margin-y-8-px { @@ -461,10 +473,6 @@ a:visited.background-color-hover-night-light:hover { width: 80px; } -.width-180-px { - width: 180px; -} - .min-width-120-px { min-width: 120px; } diff --git a/templates/default/user/module.html.twig b/templates/default/user/module.html.twig index 82357c1..400fc48 100644 --- a/templates/default/user/module.html.twig +++ b/templates/default/user/module.html.twig @@ -1,188 +1,41 @@ -
-
- {% if route == 'user_dashboard' %} - - - - - - {{ 'Home'|trans }} - - - {% else %} - - - - - - {{ 'Home'|trans }} - - - {% endif %} - {% if route == 'user_profile' %} - - - - - - {{ 'Profile'|trans }} - - - {% else %} - - - - - - {{ 'Profile'|trans }} - - - {% endif %} - {# - {% if route == 'page_stars' %} - - - - - - {{ 'Stars'|trans }} - - - {{ stars }} - - - {% else %} - - - - - - {{ 'Stars'|trans }} - - - {{ stars }} - - - {% endif %} - {% if route == 'page_views' %} - - - - - - {{ 'Views'|trans }} - - - {{ views }} - - - {% else %} - - - - - - {{ 'Views'|trans }} - - - {{ views }} - - - {% endif %} - {% if route == 'page_comments' %} - - - - - - {{ 'Comments'|trans }} - - - {{ comments }} - - - {% else %} - - - - - - {{ 'Comments'|trans }} - - - {{ comments }} - - - {% endif %} - {% if route == 'page_downloads' %} - - - - - - {{ 'Downloads'|trans }} - - - {{ downloads }} - - - {% else %} - - - - - - {{ 'Downloads'|trans }} - - - {{ downloads }} - - - {% endif %} - {% if route == 'page_editions' %} - - - - - - {{ 'Editions'|trans }} - - - {{ editions }} - - - {% else %} - - - - - - {{ 'Editions'|trans }} - - - {{ editions }} - - - {% endif %} - #} - {% if route == 'page_submit' or route == 'torrent_submit' %} - - - - - - {{ 'Submit'|trans }} - - - {% else %} - - - - - - {{ 'Submit'|trans }} - - - {% endif %} -
+
+ {% if route == 'user_dashboard' %} + + + + + + {% else %} + + + + + + {% endif %} + {% if route == 'user_profile' %} + + + + + + {% else %} + + + + + + {% endif %} + {% if route == 'page_submit' or route == 'torrent_submit' %} + + + + + + {% else %} + + + + + + {% endif %}
\ No newline at end of file