Add css vars for elevation

Use the new css vars everywhere for box-shadow.

Apply elevation instead of border to commit message container.

Change-Id: I57e484c5340709cdd5a111e0fbf5d5d38de0aa14
This commit is contained in:
Ben Rohlfs
2020-01-09 09:27:51 +01:00
parent 59b5a1cbb3
commit 434b7a368f
14 changed files with 21 additions and 15 deletions

View File

@@ -32,7 +32,7 @@ limitations under the License.
background-color: var(--tooltip-background-color);
bottom: 1.25rem;
border-radius: var(--border-radius);
box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
box-shadow: var(--elevation-level-2);
color: var(--view-background-color);
left: 1.25rem;
position: fixed;

View File

@@ -59,7 +59,7 @@ limitations under the License.
}
.dropdown-content {
background: var(--dropdown-background-color);
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
box-shadow: var(--elevation-level-2);
border-radius: var(--border-radius);
max-height: 50vh;
overflow: auto;

View File

@@ -47,7 +47,7 @@ limitations under the License.
display: block;
margin: 0 4px 4px 4px;
white-space: normal;
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
box-shadow: var(--elevation-level-2);
border-radius: var(--border-radius);
/** This is required for firefox to continue the inheritance */
-webkit-user-select: inherit;

View File

@@ -44,7 +44,7 @@ limitations under the License.
}
.dropdown-content {
background-color: var(--dropdown-background-color);
box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
box-shadow: var(--elevation-level-2);
max-height: 70vh;
margin-top: var(--spacing-xxl);
min-width: 266px;

View File

@@ -37,7 +37,7 @@ limitations under the License.
}
.dropdown-content {
background-color: var(--dropdown-background-color);
box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
box-shadow: var(--elevation-level-2);
}
gr-button {
@apply --gr-button;

View File

@@ -33,8 +33,9 @@ limitations under the License.
}
.viewer {
background-color: var(--view-background-color);
border: 1px solid var(--border-color);
border: 1px solid var(--view-background-color);
border-radius: var(--border-radius);
box-shadow: var(--elevation-level-1);
padding: var(--spacing-m);
}
.editor iron-autogrow-textarea {

View File

@@ -50,7 +50,7 @@ limitations under the License.
cursor: pointer;
}
#dropdown {
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
box-shadow: var(--elevation-level-2);
}
.inputContainer {
background-color: var(--dialog-background-color);

View File

@@ -41,7 +41,7 @@ limitations under the License.
}
.fixedAtTop {
border-bottom: 1px solid #a4a4a4;
box-shadow: 0 4px 4px rgba(0,0,0,0.1);
box-shadow: var(--elevation-level-2);
}
</style>
<header id="header" class$="[[_computeHeaderClass(_headerFloating, _topLast)]]">

View File

@@ -36,7 +36,7 @@ limitations under the License.
}
#hovercard {
background: var(--dialog-background-color);
box-shadow: rgba(0, 0, 0, 0.3) 0 1px 3px;
box-shadow: var(--elevation-level-2);
padding: var(--spacing-l);
}
</style>

View File

@@ -26,9 +26,7 @@ limitations under the License.
:host {
background: var(--dialog-background-color);
border-radius: var(--border-radius);
box-shadow: 0 11px 15px -7px rgba(0,0,0,.2),
0 24px 38px 3px rgba(0,0,0,.14),
0 9px 46px 8px rgba(0,0,0,.12);
box-shadow: var(--elevation-level-5);
}
@media screen and (max-width: 50em) {

View File

@@ -26,7 +26,7 @@ limitations under the License.
--gr-tooltip-arrow-center-offset: 0;
background-color: var(--tooltip-background-color);
box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
box-shadow: var(--elevation-level-2);
color: var(--tooltip-text-color);
font-size: var(--font-size-small);
position: absolute;