Declare shared css var for monospace font

Change-Id: If5ae7c38b6fd560245c53dfd59b21cb8a7d07c5a
This commit is contained in:
Andrew Bonventre 2016-01-05 13:15:35 -05:00
parent 5e6e4ab001
commit 4da21baa80
4 changed files with 4 additions and 3 deletions

View File

@ -52,7 +52,7 @@ limitations under the License.
width: 1.3em;
}
.u-monospace {
font-family: 'Source Code Pro';
font-family: var(--monospace-font-family);
}
.u-green {
color: #388E3C;

View File

@ -115,7 +115,7 @@ limitations under the License.
.summary {
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
font-family: 'Source Code Pro', Menlo, 'Lucida Console', Monaco, monospace;
font-family: var(--monospace-font-family);
overflow-x: auto;
}
gr-file-list {

View File

@ -35,7 +35,7 @@ limitations under the License.
border-bottom: 1px solid #eee;
border-top: 1px solid #eee;
display: flex;
font-family: 'Source Code Pro', monospace;
font-family: var(--monospace-font-family);
overflow-x: auto;
white-space: pre;
}

View File

@ -23,5 +23,6 @@ limitations under the License.
--view-background-color: #fff;
--default-horizontal-margin: 1.25rem;
--max-constrained-width: 980px;
--monospace-font-family: 'Source Code Pro', Menlo, 'Lucida Console', Monaco, monospace;
}
</style>