Rework some CSS constant usage
Usage of the --header-background-color constant in place of #eee was a bit aggressive. This change modifies the styling to use constants that have a more consistent usage (table-header-background-color, for instance) and also introduces another new color, --chip-background-color, for styling chips. Bug: Issue 8809 Change-Id: Ie3acbfa4d221acc4f210f76bbb425a21e7f8b63e
This commit is contained in:
@@ -58,8 +58,9 @@ limitations under the License.
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
ul li {
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: .2em;
|
||||
background: var(--header-background-color);
|
||||
background: var(--chip-background-color);
|
||||
display: inline-block;
|
||||
margin: 0 .2em .4em .2em;
|
||||
padding: .2em .4em;
|
||||
|
@@ -120,7 +120,7 @@ limitations under the License.
|
||||
display: block;
|
||||
}
|
||||
.previewContainer gr-formatted-text {
|
||||
background: var(--header-background-color);
|
||||
background: var(--table-header-background-color);
|
||||
padding: 1em;
|
||||
}
|
||||
.draftsContainer h3 {
|
||||
|
@@ -201,7 +201,7 @@ limitations under the License.
|
||||
display: block;
|
||||
}
|
||||
.target-row td.blame {
|
||||
background: var(--header-background-color);
|
||||
background: var(--diff-selection-background-color);
|
||||
}
|
||||
col.blame {
|
||||
display: none;
|
||||
|
@@ -31,7 +31,7 @@ limitations under the License.
|
||||
}
|
||||
.container {
|
||||
align-items: center;
|
||||
background: var(--header-background-color);
|
||||
background: var(--table-header-background-color);
|
||||
border-radius: .75em;
|
||||
display: inline-flex;
|
||||
padding: 0 .5em;
|
||||
|
@@ -31,7 +31,7 @@ limitations under the License.
|
||||
}
|
||||
.container {
|
||||
align-items: center;
|
||||
background: var(--header-background-color);
|
||||
background: var(--chip-background-color);
|
||||
border-radius: .75em;
|
||||
display: inline-flex;
|
||||
padding: 0 .5em;
|
||||
|
@@ -42,6 +42,8 @@ limitations under the License.
|
||||
--table-header-background-color: #fafafa;
|
||||
--table-subheader-background-color: #eaeaea;
|
||||
|
||||
--chip-background-color: var(--header-background-color);
|
||||
|
||||
--dropdown-background-color: #fff;
|
||||
|
||||
/* Font sizes */
|
||||
|
Reference in New Issue
Block a user