From 1f79ba41bdd99c08a77f18db9d0ca82989417d85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 16 Jan 2018 12:45:09 +0100 Subject: [PATCH] css: separately configurable value for button background color. In particular, had to use a darker color than the default background color of the dark theme as the contrast was too little with danger and info buttons. --- css/m-components.css | 2 +- css/m-dark.css | 1 + css/m-light.css | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/css/m-components.css b/css/m-components.css index 617430b5..d966a9cb 100644 --- a/css/m-components.css +++ b/css/m-components.css @@ -978,7 +978,7 @@ table.m-table tr.m-dim th, table.m-table th.m-dim { } /* Colored button, label */ -div.m-button a, .m-label { color: var(--background-color); } +div.m-button a, .m-label { color: var(--button-background-color); } div.m-button.m-default a, .m-label:not(.m-flat).m-default { background-color: var(--default-color); } div.m-button.m-primary a, .m-label:not(.m-flat).m-primary { background-color: var(--primary-color); } div.m-button.m-success a, .m-label:not(.m-flat).m-success { background-color: var(--success-color); } diff --git a/css/m-dark.css b/css/m-dark.css index b60318cc..6ca682f9 100644 --- a/css/m-dark.css +++ b/css/m-dark.css @@ -62,6 +62,7 @@ --code-background-color: #282e36; --code-note-background-color: rgba(34, 39, 46, 0.5); --console-background-color: #000000; + --button-background-color: #22272e; /* Header */ --header-border-width: 0 0 0.25rem 0; diff --git a/css/m-light.css b/css/m-light.css index 4fca3ed1..d1e742dd 100644 --- a/css/m-light.css +++ b/css/m-light.css @@ -60,6 +60,7 @@ --code-background-color: #fbf0ec; --code-note-background-color: rgba(251, 240, 236, 0.5); --console-background-color: #000000; + --button-background-color: #ffffff; /* Header */ --header-border-width: 0.25rem 0 0 0; -- 2.30.2