Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS color enhancements #21534

Merged
merged 11 commits into from
Oct 23, 2022
32 changes: 26 additions & 6 deletions web_src/less/_base.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
--height-loading: 12rem;
/* base colors */
--color-primary: #4183c4;
--color-primary-contrast: #ffffff;
--color-primary-dark-1: #3876b3;
--color-primary-dark-2: #31699f;
--color-primary-dark-3: #2b5c8b;
Expand Down Expand Up @@ -166,6 +167,8 @@
--color-small-accent: var(--color-primary-light-6);
--color-accent: var(--color-primary-light-4);
--color-active-line: #fffbdd;

accent-color: var(--color-primary);
}

:root * {
Expand Down Expand Up @@ -230,10 +233,10 @@ progress::-webkit-progress-bar {
background: var(--color-secondary-dark-1);
}
progress::-webkit-progress-value {
background-color: var(--color-secondary-dark-4);
background-color: var(--color-primary);
silverwind marked this conversation as resolved.
Show resolved Hide resolved
}
progress::-moz-progress-bar {
background: var(--color-secondary-dark-4);
background: var(--color-primary);
silverwind marked this conversation as resolved.
Show resolved Hide resolved
}

* {
Expand All @@ -260,6 +263,22 @@ progress::-moz-progress-bar {
background: transparent;
}

input[type="file"] {
padding-top: 6px !important;
padding-bottom: 6px !important;
}
::file-selector-button {
border: 1px solid var(--color-light-border);
color: var(--color-text-light);
background: var(--color-light);
border-radius: var(--border-radius);
padding: 5px 10px;
}
::file-selector-button:hover {
color: var(--color-text);
background: var(--color-hover);
}

::selection {
background: var(--color-primary-light-1) !important;
color: var(--color-white) !important;
Expand Down Expand Up @@ -1598,11 +1617,11 @@ footer {

.activity-bar-graph {
background-color: var(--color-primary);
color: #fff;
color: var(--color-primary-contrast);
}

.activity-bar-graph-alt {
color: #fff;
color: var(--color-primary-contrast);
}

.archived-icon {
Expand Down Expand Up @@ -1898,7 +1917,8 @@ a.ui.label:hover {

.ui.primary.button,
.ui.primary.buttons .button {
background-color: var(--color-primary) !important;
background-color: var(--color-primary);
color: var(--color-primary-contrast);
}

.ui.primary.button:hover,
Expand All @@ -1914,7 +1934,7 @@ a.ui.label:hover {
.ui.basic.primary.button,
.ui.basic.primary.buttons .button {
box-shadow: inset 0 0 0 1px var(--color-primary) !important;
color: #fff !important;
color: var(--color-primary-contrast) !important;
}

.ui.basic.primary.button:hover,
Expand Down
8 changes: 4 additions & 4 deletions web_src/less/_review.less
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ a.blob-excerpt {

a.blob-excerpt:hover {
background: var(--color-primary);
color: #fff;
color: var(--color-primary-contrast);
}

// See the comment of createCommentEasyMDE() for the review editor
Expand Down Expand Up @@ -244,7 +244,7 @@ a.blob-excerpt:hover {

#review-box .review-comments-counter {
background-color: var(--color-primary-light-4);
color: #fff;
color: var(--color-primary-contrast);
}

#review-box:hover .review-comments-counter {
Expand Down Expand Up @@ -275,11 +275,11 @@ a.blob-excerpt:hover {
.viewed-file-form {
display: flex;
align-items: center;
border: 1px none;
padding: 4px 8px;
margin: -8px 0; // just like other buttons in the diff box header
border-radius: .285rem; // just like .ui.tiny.button
font-size: .857rem; // just like .ui.tiny.button
border: 1px solid transparent;
silverwind marked this conversation as resolved.
Show resolved Hide resolved
}

.viewed-file-form input {
Expand All @@ -288,7 +288,7 @@ a.blob-excerpt:hover {

.viewed-file-checked-form {
background-color: var(--color-small-accent);
border: 1px solid var(--color-accent);
border-color: var(--color-accent);
}

#viewed-files-summary {
Expand Down
2 changes: 1 addition & 1 deletion web_src/less/_tribute.less
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
.tribute-container li.highlight,
.tribute-container li:hover {
background: var(--color-primary) !important;
color: #ffffff !important;
color: var(--color-primary-contrast) !important;
}

.tribute-item {
Expand Down