From 59abb9e68adfe3cf6d575aef1591ea2817793af6 Mon Sep 17 00:00:00 2001 From: maki Date: Tue, 14 May 2024 12:22:56 -0300 Subject: [PATCH] fix: color de fuente legible en modo oscuro #16288 --- app/assets/stylesheets/application.scss | 3 +++ app/assets/stylesheets/dark.scss | 4 ++++ app/views/posts/index.haml | 8 +++++++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index f70869a5..67fd69cf 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -52,6 +52,9 @@ $sizes: ( --background: #{$black}; --color: #{$cyan}; } + a.black { + color: $white; + } } // TODO: Encontrar la forma de generar esto desde los locales de Rails diff --git a/app/assets/stylesheets/dark.scss b/app/assets/stylesheets/dark.scss index f7f3a09d..4988fdb0 100644 --- a/app/assets/stylesheets/dark.scss +++ b/app/assets/stylesheets/dark.scss @@ -31,4 +31,8 @@ $cyan: #13fefe; } } +a.black { + color: $white; +} + diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index f13324d4..660f8d5f 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -21,7 +21,13 @@ %input.custom-control-input.magenta{ type: 'checkbox', id: schema, name: "layout[]", class: "", value: schema.name, checked: @filter_params[:layout]&.include?(key.to_s) } %label.custom-control-label.font-weight-normal{ for: schema }= schema.humanized_name %button.btn.btn-secondary.mt-3{ type: 'submit' }= t('.filters.submit') - = render 'layouts/details', summary: t('posts.new'), summary_class: "h4 magenta font-weight-bold m-0 px-2", details_class: "d-flex border border-magenta justify-content-between align-items-center w-100 mb-3", open: "+", closed: "+", open_class: "h1 magenta font-weight-bold m-0", closed_class: "h1 magenta font-weight-bold m-0" do + = render 'layouts/details', + summary: t('posts.new'), + summary_class: "h4 magenta font-weight-bold m-0 px-2", + details_class: "d-flex border border-magenta justify-content-between align-items-center w-100 mb-3", + open: "+", closed: "+", + open_class: "h1 magenta font-weight-bold m-0", + closed_class: "h1 magenta font-weight-bold m-0" do %table.table-sm.w-100 %tbody - @site.schema_organization.each do |schema, _|