From 4bc8dfc6a313a4820591e48a05e0ab211c70a3f9 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 4 Apr 2021 15:31:54 +0200 Subject: [PATCH] Branch page and misc css improvements (#15208) (#15274) - Improve branches page, increase icon size, use octicons, use css vars - Style placeholder color via css var - Slightly increase contrast of input fields and active/hover states - Add styling for select boxes in arc-green --- templates/explore/code.tmpl | 2 +- templates/repo/branch/list.tmpl | 12 ++++++------ web_src/less/_base.less | 15 +++++++++------ web_src/less/_explore.less | 2 +- web_src/less/_form.less | 8 ++++++++ web_src/less/_repository.less | 4 ++-- web_src/less/themes/theme-arc-green.less | 16 ++++------------ 7 files changed, 31 insertions(+), 28 deletions(-) diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl index 2465663a603..b22fe039a2a 100644 --- a/templates/explore/code.tmpl +++ b/templates/explore/code.tmpl @@ -8,7 +8,7 @@
-
+
padding to */ +.ui.form select { + padding: .67857143em 1em; +} + .form { .help { color: #999999; diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less index 42eb5f8f5a6..4d1d36fd6d3 100644 --- a/web_src/less/_repository.less +++ b/web_src/less/_repository.less @@ -1261,7 +1261,7 @@ max-width: 90px; &:last-child { - border-left: 1px solid var(--color-secondary); + border-left: 1px solid var(--color-secondary-dark-2); } } @@ -1280,7 +1280,7 @@ .bar { height: 4px; position: absolute; - background-color: var(--color-secondary); + background-color: var(--color-secondary-dark-2); &.bar-behind { right: 0; diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less index 9f35d4dafe5..99b784fd44d 100644 --- a/web_src/less/themes/theme-arc-green.less +++ b/web_src/less/themes/theme-arc-green.less @@ -87,14 +87,14 @@ --color-footer: #2e323e; --color-timeline: #4c525e; --color-input-text: #d5dbe6; - --color-input-background: #2e323e; + --color-input-background: #292d39; --color-input-border: #454a57; --color-input-border-hover: #505667; --color-navbar: #2a2e3a; --color-light: #00000028; --color-light-border: #ffffff28; - --color-hover: #60606020; - --color-active: #60606040; + --color-hover: #ffffff10; + --color-active: #ffffff16; --color-menu: #2e323e; --color-card: #2e323e; --color-markdown-table-row: #ffffff06; @@ -105,10 +105,7 @@ --color-secondary-bg: #2a2e3a; --color-text-focus: #fff; --color-expand-button: #3c404d; -} - -.repository.branches .commit-divergence .bar { - background: #6a737d; + --color-placeholder-text: #6a737d; } .ui.horizontal.segments > .segment { @@ -119,11 +116,6 @@ background: var(--color-primary-alpha-20) !important; } -::placeholder, -.CodeMirror-placeholder { - color: #6a737d !important; -} - [data-tooltip]::before, [data-tooltip]::after { background: #1b1c1d !important; /* .ui.inverted.popup */