Use the same border color throughout the app
With this change, all CSS border declarations that specify some shade of gray are modified to use the one unified --border-color declaration in app-theme.html. Further followup with UX is required to ensure that the shade of gray chosen is the correct one -- for now, the most-used one is used. Change-Id: I2134ebf4a459ba040e01856c11389780307d8648
This commit is contained in:
parent
4f9fa0f9bc
commit
c828098853
@ -36,7 +36,7 @@ limitations under the License.
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
fieldset {
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
.name {
|
||||
align-items: center;
|
||||
@ -46,7 +46,7 @@ limitations under the License.
|
||||
#deletedContainer {
|
||||
align-items: center;
|
||||
background: #f6f6f6;
|
||||
border-bottom: 1px dotted #d1d2d3;
|
||||
border-bottom: 1px dotted var(--border-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
min-height: 3em;
|
||||
|
@ -40,7 +40,7 @@ limitations under the License.
|
||||
gr-autocomplete {
|
||||
border: none;
|
||||
--gr-autocomplete: {
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 2px;
|
||||
font-size: var(--font-size-normal);
|
||||
height: 2em;
|
||||
|
@ -64,7 +64,7 @@ limitations under the License.
|
||||
text-decoration: underline;
|
||||
}
|
||||
th {
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-family: var(--font-family-bold);
|
||||
text-align: left;
|
||||
}
|
||||
|
@ -41,11 +41,11 @@ limitations under the License.
|
||||
}
|
||||
.rules {
|
||||
background: #fafafa;
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
border-bottom: 0;
|
||||
}
|
||||
.editing .rules {
|
||||
border-bottom: 1px solid #d1d2d3;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.title {
|
||||
margin-bottom: .3em;
|
||||
@ -72,7 +72,7 @@ limitations under the License.
|
||||
}
|
||||
.deleted #deletedContainer {
|
||||
align-items: baseline;
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: .7em;
|
||||
|
@ -29,7 +29,7 @@ limitations under the License.
|
||||
<template>
|
||||
<style include="shared-styles">
|
||||
:host {
|
||||
border-bottom: 1px solid #d1d2d3;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
padding: .7em;
|
||||
display: block;
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ limitations under the License.
|
||||
}
|
||||
gr-user-header,
|
||||
gr-repo-header {
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
nav {
|
||||
align-items: center;
|
||||
|
@ -40,7 +40,7 @@ limitations under the License.
|
||||
display: none;
|
||||
}
|
||||
gr-user-header {
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
@media only screen and (max-width: 50em) {
|
||||
.loading {
|
||||
|
@ -64,7 +64,7 @@ limitations under the License.
|
||||
.header {
|
||||
align-items: center;
|
||||
background-color: #fafafa;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
padding: .55em var(--default-horizontal-margin);
|
||||
z-index: 99; /* Less than gr-overlay's backdrop */
|
||||
@ -128,7 +128,7 @@ limitations under the License.
|
||||
padding-right: 1em;
|
||||
}
|
||||
.changeMetadata {
|
||||
border-right: 1px solid #ddd;
|
||||
border-right: 1px solid var(--border-color);
|
||||
font-size: .95rem;
|
||||
padding: 1em 0;
|
||||
}
|
||||
@ -189,7 +189,7 @@ limitations under the License.
|
||||
}
|
||||
hr {
|
||||
border: 0;
|
||||
border-top: 1px solid #ddd;
|
||||
border-top: 1px solid var(--border-color);
|
||||
height: 0;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
@ -242,7 +242,7 @@ limitations under the License.
|
||||
}
|
||||
paper-tabs {
|
||||
background-color: #fafafa;
|
||||
border-top: 1px solid #ddd;
|
||||
border-top: 1px solid var(--border-color);
|
||||
height: 3rem;
|
||||
--paper-tabs-selection-bar-color: var(--color-link);
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ limitations under the License.
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.file {
|
||||
border-top: 1px solid #ddd;
|
||||
border-top: 1px solid var(--border-color);
|
||||
font-family: var(--font-family-bold);
|
||||
margin: 10px 0 3px;
|
||||
padding: 10px 0 5px;
|
||||
|
@ -46,7 +46,7 @@ limitations under the License.
|
||||
width: 73ch; /* Add a char to account for the border. */
|
||||
|
||||
--iron-autogrow-textarea {
|
||||
border: 1px solid #cdcdcd;
|
||||
border: 1px solid var(--border-color);
|
||||
box-sizing: border-box;
|
||||
font-family: var(--monospace-font-family);
|
||||
}
|
||||
|
@ -41,7 +41,7 @@ limitations under the License.
|
||||
width: 73ch; /* Add a char to account for the border. */
|
||||
|
||||
--iron-autogrow-textarea {
|
||||
border: 1px solid #cdcdcd;
|
||||
border: 1px solid var(--border-color);
|
||||
box-sizing: border-box;
|
||||
font-family: var(--monospace-font-family);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ limitations under the License.
|
||||
.patchInfo-header {
|
||||
align-items: center;
|
||||
background-color: #fafafa;
|
||||
border-top: 1px solid #ddd;
|
||||
border-top: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
padding: 6px var(--default-horizontal-margin);
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ limitations under the License.
|
||||
}
|
||||
.row {
|
||||
align-items: center;
|
||||
border-top: 1px solid #ddd;
|
||||
border-top: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
min-height: 2.25em;
|
||||
padding: .2em var(--default-horizontal-margin) .2em calc(var(--default-horizontal-margin) - .35rem);
|
||||
@ -90,7 +90,7 @@ limitations under the License.
|
||||
}
|
||||
.file-row.expanded {
|
||||
background-color: #eeeeee;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
position: -webkit-sticky;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
|
@ -30,7 +30,7 @@ limitations under the License.
|
||||
}
|
||||
header {
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #cdcdcd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
left: 0;
|
||||
padding: 1em;
|
||||
position: absolute;
|
||||
|
@ -31,7 +31,7 @@ limitations under the License.
|
||||
<style include="gr-voting-styles"></style>
|
||||
<style include="shared-styles">
|
||||
:host {
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: block;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
@ -136,7 +136,7 @@ limitations under the License.
|
||||
padding: .5em 0 0 0;
|
||||
}
|
||||
.score {
|
||||
border: 1px solid rgba(0,0,0,.12);
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 3px;
|
||||
color: #000;
|
||||
display: inline-block;
|
||||
|
@ -33,8 +33,8 @@ limitations under the License.
|
||||
.header {
|
||||
align-items: center;
|
||||
background-color: #fafafa;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
border-top: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
min-height: 3.2em;
|
||||
@ -52,7 +52,7 @@ limitations under the License.
|
||||
}
|
||||
#messageControlsContainer {
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
height: 2.25em;
|
||||
justify-content: center;
|
||||
|
@ -99,7 +99,7 @@ limitations under the License.
|
||||
}
|
||||
hr {
|
||||
border: 0;
|
||||
border-top: 1px solid #ddd;
|
||||
border-top: 1px solid var(--border-color);
|
||||
height: 0;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ limitations under the License.
|
||||
max-height: 100%;
|
||||
}
|
||||
section {
|
||||
border-top: 1px solid #cdcdcd;
|
||||
border-top: 1px solid var(--border-color);
|
||||
flex-shrink: 0;
|
||||
padding: .5em 1.5em;
|
||||
width: 100%;
|
||||
|
@ -36,8 +36,8 @@ limitations under the License.
|
||||
.header {
|
||||
align-items: center;
|
||||
background-color: #fafafa;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
border-top: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: left;
|
||||
min-height: 3.2em;
|
||||
|
@ -36,7 +36,7 @@ limitations under the License.
|
||||
}
|
||||
header {
|
||||
align-items: center;
|
||||
border-bottom: 1px solid #cdcdcd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ limitations under the License.
|
||||
}
|
||||
gr-autocomplete {
|
||||
background-color: white;
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 2px 0 0 2px;
|
||||
flex: 1;
|
||||
font: inherit;
|
||||
|
@ -46,7 +46,7 @@ limitations under the License.
|
||||
width: 73ch; /* Add a char to account for the border. */
|
||||
|
||||
--iron-autogrow-textarea {
|
||||
border: 1px solid #cdcdcd;
|
||||
border: 1px solid var(--border-color);
|
||||
box-sizing: border-box;
|
||||
font-family: var(--monospace-font-family);
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ limitations under the License.
|
||||
padding: 1em 1.5em;
|
||||
}
|
||||
.header {
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-family: var(--font-family-bold);
|
||||
}
|
||||
.mainContainer {
|
||||
@ -65,7 +65,7 @@ limitations under the License.
|
||||
flex: 1;
|
||||
}
|
||||
.actions {
|
||||
border-top: 1px solid #ddd;
|
||||
border-top: 1px solid var(--border-color);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
@ -53,12 +53,12 @@ limitations under the License.
|
||||
gr-diff {
|
||||
border: none;
|
||||
--diff-container-styles: {
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
}
|
||||
gr-fixed-panel {
|
||||
background-color: #fff;
|
||||
border-bottom: 1px #eee solid;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
z-index: 1;
|
||||
}
|
||||
header,
|
||||
|
@ -58,7 +58,7 @@ limitations under the License.
|
||||
}
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
border-right: 1px solid #ddd;
|
||||
border-right: 1px solid var(--border-color);
|
||||
table-layout: fixed;
|
||||
}
|
||||
.lineNum {
|
||||
|
@ -54,7 +54,7 @@ limitations under the License.
|
||||
}
|
||||
gr-autocomplete {
|
||||
--gr-autocomplete: {
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 2px;
|
||||
font-size: var(--font-size-normal);
|
||||
height: 2em;
|
||||
@ -62,7 +62,7 @@ limitations under the License.
|
||||
}
|
||||
}
|
||||
input {
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 2px;
|
||||
font-size: var(--font-size-normal);
|
||||
height: 2em;
|
||||
|
@ -39,7 +39,7 @@ limitations under the License.
|
||||
}
|
||||
gr-fixed-panel {
|
||||
background-color: #ebf5fb;
|
||||
border-bottom: 1px #ddd solid;
|
||||
border-bottom: 1px var(--border-color) solid;
|
||||
z-index: 1;
|
||||
}
|
||||
header,
|
||||
@ -62,7 +62,7 @@ limitations under the License.
|
||||
}
|
||||
}
|
||||
.textareaWrapper {
|
||||
border: 1px solid #ddd;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 3px;
|
||||
margin: var(--default-horizontal-margin);
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ limitations under the License.
|
||||
gr-main-header {
|
||||
background-color: var(--header-background-color);
|
||||
padding: 0 var(--default-horizontal-margin);
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
gr-main-header.shadow {
|
||||
/* Make it obvious for shadow dom testing */
|
||||
|
@ -38,7 +38,7 @@ limitations under the License.
|
||||
text-align: center;
|
||||
}
|
||||
.checkboxContainer:hover {
|
||||
outline: 1px solid #ddd;
|
||||
outline: 1px solid var(--border-color);
|
||||
}
|
||||
</style>
|
||||
<div class="gr-form-styles">
|
||||
|
@ -46,7 +46,7 @@ limitations under the License.
|
||||
height: auto;
|
||||
}
|
||||
.preferredControl:hover {
|
||||
outline: 1px solid #d1d2d3;
|
||||
outline: 1px solid var(--border-color);
|
||||
}
|
||||
</style>
|
||||
<div class="gr-form-styles">
|
||||
|
@ -37,7 +37,7 @@ limitations under the License.
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
header {
|
||||
border-bottom: 1px solid #cdcdcd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-family: var(--font-family-bold);
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ limitations under the License.
|
||||
text-align: center;
|
||||
}
|
||||
.notifControl:hover {
|
||||
outline: 1px solid #ddd;
|
||||
outline: 1px solid var(--border-color);
|
||||
}
|
||||
.projectFilter {
|
||||
color: #777;
|
||||
|
@ -35,7 +35,7 @@ limitations under the License.
|
||||
margin: 0 .25em;
|
||||
}
|
||||
paper-input:not(.borderless) {
|
||||
border: 1px solid #ddd;
|
||||
border: 1px solid var(--border-color);
|
||||
}
|
||||
paper-input {
|
||||
height: 100%;
|
||||
|
@ -32,7 +32,7 @@ limitations under the License.
|
||||
max-height: 90vh;
|
||||
}
|
||||
header {
|
||||
border-bottom: 1px solid #cdcdcd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
flex-shrink: 0;
|
||||
font-family: var(--font-family-bold);
|
||||
}
|
||||
|
@ -55,8 +55,8 @@ limitations under the License.
|
||||
.commands {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-top: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
border-top: 1px solid var(--border-color);
|
||||
padding: .5em;
|
||||
}
|
||||
gr-copy-clipboard {
|
||||
|
@ -74,7 +74,7 @@ limitations under the License.
|
||||
}
|
||||
}
|
||||
paper-item:not(:last-of-type) {
|
||||
border-bottom: 1px solid #ddd;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.bottomContent {
|
||||
color: rgba(0,0,0,.54);
|
||||
|
@ -23,7 +23,7 @@ limitations under the License.
|
||||
<style include="shared-styles">
|
||||
#nav {
|
||||
background-color: #f5f5f5;
|
||||
border: 1px solid #eee;
|
||||
border: 1px solid var(--border-color);
|
||||
border-top: none;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
|
@ -26,7 +26,6 @@ limitations under the License.
|
||||
--border-color: #ddd;
|
||||
|
||||
/* Following are not part of plugin API. */
|
||||
--search-border-color: #ddd;
|
||||
--selection-background-color: #f1f5fb;
|
||||
--selection-border-color: #cadcfa;
|
||||
--default-text-color: #000;
|
||||
|
@ -76,7 +76,7 @@ limitations under the License.
|
||||
.gr-form-styles input:not([type="checkbox"]),
|
||||
.gr-form-styles select,
|
||||
.gr-form-styles textarea {
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 2px;
|
||||
font-size: var(--font-size-normal);
|
||||
height: 2em;
|
||||
@ -94,7 +94,7 @@ limitations under the License.
|
||||
height: auto;
|
||||
min-height: 2em;
|
||||
--iron-autogrow-textarea: {
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 2px;
|
||||
box-sizing: border-box;
|
||||
font-size: var(--font-size-normal);
|
||||
@ -104,7 +104,7 @@ limitations under the License.
|
||||
.gr-form-styles gr-autocomplete {
|
||||
border: none;
|
||||
--gr-autocomplete: {
|
||||
border: 1px solid #d1d2d3;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: 2px;
|
||||
font-size: var(--font-size-normal);
|
||||
height: 2em;
|
||||
|
@ -26,15 +26,15 @@ limitations under the License.
|
||||
width: 100%;
|
||||
}
|
||||
.genericList tr.table {
|
||||
border-bottom: 1px solid #eee;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
.genericList td {
|
||||
flex-shrink: 0;
|
||||
padding: .3em .5em;
|
||||
}
|
||||
.genericList th {
|
||||
background-color: #ddd;
|
||||
border-bottom: 1px solid #eee;
|
||||
background-color: var(--border-color);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
font-family: var(--font-family-bold);
|
||||
padding: .3em .5em;
|
||||
text-align: left;
|
||||
|
Loading…
x
Reference in New Issue
Block a user