From 7df27836867c7d80af3cc54b6052e5ee01bea387 Mon Sep 17 00:00:00 2001 From: Eliseu Amaro Date: Sat, 27 Nov 2021 20:45:24 +0000 Subject: [PATCH] [CSS] Fixed edit feed icon styling. --- public/assets/default_theme/css/base.css | 28 +------------------ .../assets/default_theme/css/pages/feeds.css | 5 ++++ public/assets/icons/edit.svg.twig | 4 +-- templates/cards/navigation/view.html.twig | 10 +++++-- 4 files changed, 15 insertions(+), 32 deletions(-) diff --git a/public/assets/default_theme/css/base.css b/public/assets/default_theme/css/base.css index b24f98dfe2..3f53537666 100644 --- a/public/assets/default_theme/css/base.css +++ b/public/assets/default_theme/css/base.css @@ -31,7 +31,6 @@ body,html { body,input,textarea,select { color: var(--foreground); - fill: var(--foreground); } :link,:visited { @@ -183,19 +182,6 @@ li { } @media(prefers-color-scheme:dark) { - /*:root {*/ - /* --foreground: #f0f6f6;*/ - /* --background-hard: #141216;*/ - /* --background-card: #131217;*/ - /* --border: #201f25;*/ - /* --accent: #5ddbcf;*/ - /* --shadow: 0 0 12px 0 #01010166;*/ - /* --shadow-inset-accent: inset 0 0 0 2px var(--accent);*/ - /* --background-checkerboard: repeating-conic-gradient(#ffffff66 0 90deg,#ffffff33 0 180deg) 0 0/40px 40px round;*/ - /* --gradient: linear-gradient(10deg,var(--border) 0,transparent 90%) !important;*/ - /* --gradient-backwards: linear-gradient(290deg,var(--border) 0,var(--background-card) 100%) !important;*/ - /*}*/ - .background-image { background-color: var(--background-hard); } @@ -207,19 +193,6 @@ li { } @media(prefers-color-scheme:light) { - /*:root {*/ - /* --foreground: #09090d;*/ - /* --background-hard: #ebebeb;*/ - /* --background-card: #f0f0f0;*/ - /* --border: #d5d5d5;*/ - /* --accent: #a22430;*/ - /* --shadow: 0 0 12px 0 #24243416;*/ - /* --shadow-inset-accent: inset 0 0 0 2px var(--accent);*/ - /* --background-checkerboard: repeating-conic-gradient(#ffffff66 0 90deg,#ffffff33 0 180deg) 0 0/40px 40px round;*/ - /* --gradient: linear-gradient(10deg,var(--background-hard) 0,transparent 60%) !important;*/ - /* --gradient-backwards: linear-gradient(290deg,var(--background-hard) 0,var(--background-card) 100%) !important;*/ - /*}*/ - .background-image { background-color: var(--background-hard); } @@ -233,6 +206,7 @@ li { .icon { align-self: center; + fill: var(--foreground); } .active { diff --git a/public/assets/default_theme/css/pages/feeds.css b/public/assets/default_theme/css/pages/feeds.css index d365bd8e35..de65d93dd4 100644 --- a/public/assets/default_theme/css/pages/feeds.css +++ b/public/assets/default_theme/css/pages/feeds.css @@ -342,3 +342,8 @@ embed header { .note-complementary a { font-weight: bold; } + +.edit-feed-link { + display: block; + float: right; +} diff --git a/public/assets/icons/edit.svg.twig b/public/assets/icons/edit.svg.twig index 83b207dda0..4a6523f1b2 100644 --- a/public/assets/icons/edit.svg.twig +++ b/public/assets/icons/edit.svg.twig @@ -4,6 +4,6 @@ - edit - + Edit + diff --git a/templates/cards/navigation/view.html.twig b/templates/cards/navigation/view.html.twig index 134c632324..1957d67ed2 100644 --- a/templates/cards/navigation/view.html.twig +++ b/templates/cards/navigation/view.html.twig @@ -1,6 +1,11 @@ {% block feeds %}
-

{{ icon('logo', 'icon icon-logo') | raw }} {{ 'Feeds' | trans }}

+

{{ icon('logo', 'icon icon-logo') | raw }}{{ 'Feeds' | trans }} + {% if app.user %} + {# User custom feeds #} + {{ icon('edit', 'icon icon-edit-feed') | raw }} + {% endif %} +