Use view-background-color throughout the app

Change-Id: Ib74162411afde7cdb2121f5e7b78e81a97341bfd
This commit is contained in:
Kasper Nilsson
2018-04-16 11:42:56 +02:00
parent 56628163af
commit c4f41031b9
17 changed files with 20 additions and 19 deletions

View File

@@ -250,7 +250,7 @@ limitations under the License.
display: block; display: block;
} }
.row.selected { .row.selected {
background-color: #fff; background-color: var(--view-background-color);
} }
.stats { .stats {
display: none; display: none;

View File

@@ -29,7 +29,7 @@ limitations under the License.
padding: 4.5em 1em 1em 1em; padding: 4.5em 1em 1em 1em;
} }
header { header {
background: #fff; background: var(--view-background-color);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
left: 0; left: 0;
padding: 1em; padding: 1em;

View File

@@ -48,7 +48,7 @@ limitations under the License.
} }
@keyframes fadeOut { @keyframes fadeOut {
0% { background-color: #fff9c4; } 0% { background-color: #fff9c4; }
100% { background-color: #fff; } 100% { background-color: var(--view-background-color); }
} }
#messageControlsContainer { #messageControlsContainer {
align-items: center; align-items: center;

View File

@@ -121,7 +121,7 @@ limitations under the License.
text-decoration: none; text-decoration: none;
} }
.dropdown-content { .dropdown-content {
background-color: #fff; background-color: var(--view-background-color);
box-shadow: 0 1px 5px rgba(0, 0, 0, .3); box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
} }
@media screen and (max-width: 50em) { @media screen and (max-width: 50em) {

View File

@@ -28,7 +28,7 @@ limitations under the License.
display: flex; display: flex;
} }
gr-autocomplete { gr-autocomplete {
background-color: white; background-color: var(--view-background-color);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-radius: 2px 0 0 2px; border-radius: 2px 0 0 2px;
flex: 1; flex: 1;

View File

@@ -57,7 +57,7 @@ limitations under the License.
} }
} }
gr-fixed-panel { gr-fixed-panel {
background-color: #fff; background-color: var(--view-background-color);
border-bottom: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
z-index: 1; z-index: 1;
} }

View File

@@ -87,7 +87,7 @@ limitations under the License.
} }
.blank, .blank,
.content { .content {
background-color: #fff; background-color: var(--view-background-color);
} }
.full-width { .full-width {
width: 100%; width: 100%;

View File

@@ -64,9 +64,10 @@ limitations under the License.
<template> <template>
<style include="shared-styles"> <style include="shared-styles">
:host { :host {
background-color: var(--view-background-color);
display: flex; display: flex;
min-height: 100%;
flex-direction: column; flex-direction: column;
min-height: 100%;
} }
gr-fixed-panel { gr-fixed-panel {
/** /**

View File

@@ -33,7 +33,7 @@ limitations under the License.
bottom: 1.25rem; bottom: 1.25rem;
border-radius: 3px; border-radius: 3px;
box-shadow: 0 1px 3px rgba(0, 0, 0, .3); box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
color: #fff; color: var(--view-background-color);
left: 1.25rem; left: 1.25rem;
padding: 1em 1.5em; padding: 1em 1.5em;
position: fixed; position: fixed;

View File

@@ -46,7 +46,7 @@ limitations under the License.
background-color: #eee; background-color: #eee;
} }
.dropdown-content { .dropdown-content {
background: #fff; background: var(--view-background-color);
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px; box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
} }
</style> </style>

View File

@@ -27,7 +27,7 @@ limitations under the License.
<style include="shared-styles"> <style include="shared-styles">
/* general styles for all buttons */ /* general styles for all buttons */
:host { :host {
--background-color: var(--gr-button-background, #fff); --background-color: var(--gr-button-background, var(--view-background-color));
--button-color: var(--gr-button-color, var(--color-link)); --button-color: var(--gr-button-color, var(--color-link));
display: inline-block; display: inline-block;
font-family: var(--font-family-bold); font-family: var(--font-family-bold);
@@ -66,7 +66,7 @@ limitations under the License.
:host([primary][raised]), :host([primary][raised]),
:host([secondary][raised]) { :host([secondary][raised]) {
--background-color: var(--color-link); --background-color: var(--color-link);
--button-color: #fff; --button-color: var(--view-background-color);
} }
/* Keep below color definition for primary/secondary so that this takes /* Keep below color definition for primary/secondary so that this takes

View File

@@ -43,7 +43,7 @@ limitations under the License.
padding: 0; padding: 0;
} }
.dropdown-content { .dropdown-content {
background-color: #fff; background-color: var(--view-background-color);
box-shadow: 0 1px 5px rgba(0, 0, 0, .3); box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
max-height: 70vh; max-height: 70vh;
margin-top: 2em; margin-top: 2em;

View File

@@ -36,7 +36,7 @@ limitations under the License.
width: 100%; width: 100%;
} }
.dropdown-content { .dropdown-content {
background-color: #fff; background-color: var(--view-background-color);
box-shadow: 0 1px 5px rgba(0, 0, 0, .3); box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
} }
gr-button { gr-button {
@@ -75,7 +75,7 @@ limitations under the License.
} }
li .itemAction:not(.disabled):hover { li .itemAction:not(.disabled):hover {
background-color: #6B82D6; background-color: #6B82D6;
color: #fff; color: var(--view-background-color);
} }
li:focus, li:focus,
li.selected { li.selected {

View File

@@ -55,7 +55,7 @@ limitations under the License.
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px; box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
} }
.inputContainer { .inputContainer {
background-color: #fff; background-color: var(--view-background-color);
padding: .8em; padding: .8em;
@apply --input-style; @apply --input-style;
} }

View File

@@ -23,7 +23,7 @@ limitations under the License.
<template> <template>
<style include="shared-styles"> <style include="shared-styles">
:host { :host {
background: #fff; background: var(--view-background-color);
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px; box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
} }

View File

@@ -27,7 +27,7 @@ limitations under the License.
background-color: var(--tooltip-background-color, #333); background-color: var(--tooltip-background-color, #333);
box-shadow: 0 1px 3px rgba(0, 0, 0, .3); box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
color: #fff; color: var(--view-background-color);
font-size: var(--font-size-small); font-size: var(--font-size-small);
position: absolute; position: absolute;
z-index: 1000; z-index: 1000;

View File

@@ -49,7 +49,7 @@ limitations under the License.
margin: .4em 0; margin: .4em 0;
} }
.navStyles .selected { .navStyles .selected {
background-color: #fff; background-color: var(--view-background-color);
border-bottom: 1px dotted #808080; border-bottom: 1px dotted #808080;
border-top: 1px dotted #808080; border-top: 1px dotted #808080;
font-family: var(--font-family-bold); font-family: var(--font-family-bold);