Introduce deemphasized-text-color

Introduces and standardizes the various shades of medium dark gray used
throughout the app to #616161, or Material Gray 600.

Change-Id: I311155cfdba4381643451233dfafbfbdacd55e90
This commit is contained in:
Kasper Nilsson 2018-04-16 17:04:22 +02:00
parent 2d7663ee69
commit b0d03d047a
27 changed files with 39 additions and 38 deletions

View File

@ -68,7 +68,7 @@ limitations under the License.
display: block; display: block;
} }
.groupPath { .groupPath {
color: #666; color: var(--deemphasized-text-color);
} }
</style> </style>
<style include="gr-form-styles"></style> <style include="gr-form-styles"></style>

View File

@ -112,7 +112,7 @@ limitations under the License.
} }
.comma, .comma,
.placeholder { .placeholder {
color: rgba(0, 0, 0, .54); color: var(--deemphasized-text-color);
} }
@media only screen and (max-width: 50em) { @media only screen and (max-width: 50em) {
:host { :host {

View File

@ -34,7 +34,7 @@ limitations under the License.
display: block; display: block;
} }
.loading { .loading {
color: #666; color: var(--deemphasized-text-color);
padding: 1em var(--default-horizontal-margin); padding: 1em var(--default-horizontal-margin);
} }
gr-change-list { gr-change-list {

View File

@ -30,7 +30,7 @@ limitations under the License.
display: block; display: block;
} }
.loading { .loading {
color: #666; color: var(--deemphasized-text-color);
padding: 1em var(--default-horizontal-margin); padding: 1em var(--default-horizontal-margin);
} }
gr-change-list { gr-change-list {

View File

@ -55,7 +55,7 @@ limitations under the License.
} }
#actionLoadingMessage { #actionLoadingMessage {
align-items: center; align-items: center;
color: #777; color: var(--deemphasized-text-color);
} }
#confirmSubmitDialog .changeSubject { #confirmSubmitDialog .changeSubject {
margin: 1em; margin: 1em;

View File

@ -50,7 +50,7 @@ limitations under the License.
display: block; display: block;
} }
.title { .title {
color: #666; color: var(--deemphasized-text-color);
font-family: var(--font-family-bold); font-family: var(--font-family-bold);
max-width: 20em; max-width: 20em;
word-break: break-word; word-break: break-word;

View File

@ -58,7 +58,7 @@ limitations under the License.
background-color: var(--view-background-color); background-color: var(--view-background-color);
} }
.container.loading { .container.loading {
color: #666; color: var(--deemphasized-text-color);
padding: 1em var(--default-horizontal-margin); padding: 1em var(--default-horizontal-margin);
} }
.header { .header {
@ -119,7 +119,7 @@ limitations under the License.
padding: 0 var(--default-horizontal-margin); padding: 0 var(--default-horizontal-margin);
} }
.changeId { .changeId {
color: #666; color: var(--deemphasized-text-color);
font-family: var(--font-family); font-family: var(--font-family);
margin-top: 1em; margin-top: 1em;
} }

View File

@ -172,7 +172,7 @@ limitations under the License.
text-align: right; text-align: right;
} }
.warning { .warning {
color: #666; color: var(--deemphasized-text-color);
} }
input.show-hide { input.show-hide {
display: none; display: none;
@ -224,7 +224,7 @@ limitations under the License.
display: none; display: none;
} }
.reviewedLabel { .reviewedLabel {
color: rgba(0, 0, 0, .54); color: var(--deemphasized-text-color);
margin-right: 1em; margin-right: 1em;
opacity: 0; opacity: 0;
} }

View File

@ -39,13 +39,13 @@ limitations under the License.
width: 20%; width: 20%;
} }
.labelMessage { .labelMessage {
color: #666; color: var(--deemphasized-text-color);
} }
.placeholder::before { .placeholder::before {
content: ' '; content: ' ';
} }
.selectedValueText { .selectedValueText {
color: rgba(0, 0, 0, .54); color: var(--deemphasized-text-color);
font-style: italic; font-style: italic;
margin: 0 .5em 0 .5em; margin: 0 .5em 0 .5em;
} }

View File

@ -48,7 +48,7 @@ limitations under the License.
} }
.collapsed .contentContainer { .collapsed .contentContainer {
align-items: baseline; align-items: baseline;
color: #777; color: var(--deemphasized-text-color);
display: flex; display: flex;
white-space: nowrap; white-space: nowrap;
} }
@ -127,7 +127,7 @@ limitations under the License.
margin-bottom: .4em; margin-bottom: .4em;
} }
.date { .date {
color: #666; color: var(--deemphasized-text-color);
position: absolute; position: absolute;
right: var(--default-horizontal-margin); right: var(--default-horizontal-margin);
top: 10px; top: 10px;

View File

@ -65,11 +65,11 @@ limitations under the License.
display: inline-block; display: inline-block;
} }
.strikethrough { .strikethrough {
color: #666; color: var(--deemphasized-text-color);
text-decoration: line-through; text-decoration: line-through;
} }
.status { .status {
color: #666; color: var(--deemphasized-text-color);
font-family: var(--font-family-bold); font-family: var(--font-family-bold);
margin-left: .25em; margin-left: .25em;
} }

View File

@ -82,7 +82,7 @@ limitations under the License.
padding-top: .1em; padding-top: .1em;
} }
.peopleListLabel { .peopleListLabel {
color: #666; color: var(--deemphasized-text-color);
margin-top: .2em; margin-top: .2em;
min-width: 7em; min-width: 7em;
padding-right: .5em; padding-right: .5em;

View File

@ -65,7 +65,7 @@ limitations under the License.
margin: 0; margin: 0;
} }
.headerMiddle { .headerMiddle {
color: #666; color: var(--deemphasized-text-color);
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
} }
@ -88,7 +88,7 @@ limitations under the License.
} }
a.date:link, a.date:link,
a.date:visited { a.date:visited {
color: #666; color: var(--deemphasized-text-color);
} }
.actions { .actions {
display: flex; display: flex;
@ -214,7 +214,7 @@ limitations under the License.
#deleteBtn { #deleteBtn {
display: none; display: none;
--gr-button: { --gr-button: {
color: #666; color: var(--deemphasized-text-color);
padding: 0; padding: 0;
} }
} }

View File

@ -102,7 +102,7 @@ limitations under the License.
text-decoration: none; text-decoration: none;
} }
.loading { .loading {
color: #777; color: var(--deemphasized-text-color);
font-size: 2rem; font-size: 2rem;
height: 100%; height: 100%;
padding: 1em var(--default-horizontal-margin); padding: 1em var(--default-horizontal-margin);

View File

@ -110,7 +110,7 @@ limitations under the License.
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
color: #666; color: var(--deemphasized-text-color);
padding: 0 .5em; padding: 0 .5em;
text-align: right; text-align: right;
} }
@ -164,7 +164,7 @@ limitations under the License.
.contextControl gr-button { .contextControl gr-button {
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
--gr-button-color: rgba(0,0,0,.54); --gr-button-color: var(--deemphasized-text-color);
--gr-button: { --gr-button: {
padding: .2em; padding: .2em;
} }

View File

@ -33,12 +33,12 @@ limitations under the License.
max-width: 15em; max-width: 15em;
} }
.arrow { .arrow {
color: rgba(0,0,0,.7); color: var(--deemphasized-text-color);
margin: 0 .5em; margin: 0 .5em;
} }
gr-dropdown-list { gr-dropdown-list {
--trigger-style: { --trigger-style: {
color: rgba(0,0,0,.7); color: var(--deemphasized-text-color);
text-transform: none; text-transform: none;
font-family: var(--font-family); font-family: var(--font-family);
} }

View File

@ -26,7 +26,7 @@ limitations under the License.
<style include="shared-styles"></style> <style include="shared-styles"></style>
<style include="gr-form-styles"> <style include="gr-form-styles">
th { th {
color: #666; color: var(--deemphasized-text-color);
text-align: left; text-align: left;
} }
#emailTable .emailColumn { #emailTable .emailColumn {

View File

@ -37,7 +37,7 @@ limitations under the License.
outline: 1px solid var(--border-color); outline: 1px solid var(--border-color);
} }
.projectFilter { .projectFilter {
color: #777; color: var(--deemphasized-text-color);
font-style: italic; font-style: italic;
margin-left: 1em; margin-left: 1em;
} }

View File

@ -48,7 +48,7 @@ limitations under the License.
gr-button.remove { gr-button.remove {
--gr-button: { --gr-button: {
border: 0; border: 0;
color: #666; color: var(--deemphasized-text-color);
font-size: 1.7rem; font-size: 1.7rem;
font-weight: normal; font-weight: normal;
height: .6em; height: .6em;

View File

@ -73,7 +73,7 @@ limitations under the License.
precedence when disabled. */ precedence when disabled. */
:host([disabled]) { :host([disabled]) {
--background-color: var(--table-subheader-background-color); --background-color: var(--table-subheader-background-color);
--button-color: #a8a8a8; --button-color: var(--deemphasized-text-color);
cursor: default; cursor: default;
} }
@ -101,7 +101,7 @@ limitations under the License.
transition: border-top-color 200ms; transition: border-top-color 200ms;
} }
:host([down-arrow]) paper-button:hover .downArrow { :host([down-arrow]) paper-button:hover .downArrow {
border-top-color: #666; border-top-color: var(--deemphasized-text-color);
} }
</style> </style>
<paper-button <paper-button

View File

@ -39,7 +39,7 @@ limitations under the License.
font: inherit; font: inherit;
} }
label { label {
color: #777; color: var(--deemphasized-text-color);
display: inline-block; display: inline-block;
font-family: var(--font-family-bold); font-family: var(--font-family-bold);
overflow: hidden; overflow: hidden;

View File

@ -45,7 +45,7 @@ limitations under the License.
gr-button.remove { gr-button.remove {
--gr-button: { --gr-button: {
border: 0; border: 0;
color: #666; color: var(--deemphasized-text-color);
font-size: 1.7rem; font-size: 1.7rem;
font-weight: normal; font-weight: normal;
height: .6em; height: .6em;

View File

@ -32,6 +32,7 @@ limitations under the License.
--expanded-background-color: #eee; --expanded-background-color: #eee;
--view-background-color: #fff; --view-background-color: #fff;
--default-horizontal-margin: 1rem; --default-horizontal-margin: 1rem;
--deemphasized-text-color: #757575;
--font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
--font-family-bold: 'Roboto Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; --font-family-bold: 'Roboto Medium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
--monospace-font-family: 'Roboto Mono', Menlo, 'Lucida Console', Monaco, monospace; --monospace-font-family: 'Roboto Mono', Menlo, 'Lucida Console', Monaco, monospace;

View File

@ -37,7 +37,7 @@ limitations under the License.
display: inline-block; display: inline-block;
} }
.gr-form-styles .title { .gr-form-styles .title {
color: #666; color: var(--deemphasized-text-color);
font-family: var(--font-family-bold); font-family: var(--font-family-bold);
padding-right: .5em; padding-right: .5em;
width: 15em; width: 15em;
@ -46,7 +46,7 @@ limitations under the License.
font-size: var(--font-size-normal); font-size: var(--font-size-normal);
} }
.gr-form-styles th { .gr-form-styles th {
color: #666; color: var(--deemphasized-text-color);
text-align: left; text-align: left;
vertical-align: bottom; vertical-align: bottom;
} }

View File

@ -36,7 +36,7 @@ limitations under the License.
content: ' *'; content: ' *';
} }
.loading { .loading {
color: #666; color: var(--deemphasized-text-color);
padding: 1em var(--default-horizontal-margin); padding: 1em var(--default-horizontal-margin);
} }
@media only screen and (max-width: 67em) { @media only screen and (max-width: 67em) {

View File

@ -53,7 +53,7 @@ limitations under the License.
width: 70%; width: 70%;
} }
.genericList .loadingMsg { .genericList .loadingMsg {
color: #666; color: var(--deemphasized-text-color);
display: block; display: block;
padding: 1em var(--default-horizontal-margin); padding: 1em var(--default-horizontal-margin);
} }

View File

@ -80,7 +80,7 @@ limitations under the License.
font-family: var(--font-family-bold); font-family: var(--font-family-bold);
} }
iron-icon { iron-icon {
color: #757575; color: var(--deemphasized-text-color);
--iron-icon-height: 20px; --iron-icon-height: 20px;
--iron-icon-width: 20px; --iron-icon-width: 20px;
} }
@ -89,7 +89,7 @@ limitations under the License.
display: none !important; display: none !important;
} }
.separator { .separator {
border-left: 1px solid rgba(0, 0, 0, .3); border-left: 1px solid var(--deemphasized-text-color);
height: 20px; height: 20px;
margin: 0 8px; margin: 0 8px;
} }