From 3c53de24b530f8f99c5a08d16171a9c23b29bc69 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 30 Nov 2020 22:30:04 +0100 Subject: [PATCH] Fix various CSS issues - Fix black text being white on base theme - Fix file/blame button group - Fix label margin in dropdown (regression from graph pr) --- templates/repo/view_file.tmpl | 10 +++++----- web_src/less/_base.less | 19 ++++++++++++++----- 2 files changed, 19 insertions(+), 10 deletions(-) diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 2ad31f8c37d2..86de599fb27c 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -32,15 +32,15 @@ {{if not .ReadmeInList}}
-
- {{.i18n.Tr "repo.file_raw"}} + {{if .Repository.CanEnableEditor}} {{if .CanEditFile}} diff --git a/web_src/less/_base.less b/web_src/less/_base.less index cb91fa118b72..e8ed3748b3cf 100644 --- a/web_src/less/_base.less +++ b/web_src/less/_base.less @@ -628,7 +628,7 @@ a.muted:hover, } &.black { - color: var(--color-body); + color: var(--color-text); &:hover { color: #000000; @@ -1433,6 +1433,19 @@ a.ui.label:hover { color: var(--color-text); } +.ui.button:hover { + background: var(--color-hover); + color: var(--color-text); +} + +.ui.buttons .button:first-child { + border-left: 1px solid var(--color-secondary); +} + +.ui.buttons .button + .button { + border-left: none; +} + .ui.blue.button, .ui.blue.buttons .button, .ui.primary.button, @@ -1617,10 +1630,6 @@ table th[data-sortt-desc] { } } -.dropdown .ui.label { - margin-left: 0 !important; -} - .ui.dropdown .menu .item { border-radius: 0; }