UX: move monospace font to variable (#24762)
This commit is contained in:
parent
001d2176e5
commit
0139481188
|
@ -132,7 +132,7 @@
|
|||
}
|
||||
|
||||
.markdown {
|
||||
font-family: monospace;
|
||||
font-family: var(--d-font-family--monospace);
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
|
|
|
@ -531,7 +531,7 @@
|
|||
width: 100%;
|
||||
}
|
||||
textarea {
|
||||
font-family: monospace;
|
||||
font-family: var(--d-font-family--monospace);
|
||||
resize: none;
|
||||
border-radius: 0;
|
||||
box-shadow: none;
|
||||
|
|
|
@ -514,8 +514,7 @@ pre.onebox code {
|
|||
white-space: pre-wrap;
|
||||
overflow-y: auto;
|
||||
word-break: break-word;
|
||||
font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono",
|
||||
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
|
||||
font-family: var(--d-font-family--monospace);
|
||||
box-sizing: border-box;
|
||||
|
||||
.show-more {
|
||||
|
|
|
@ -855,7 +855,7 @@
|
|||
border: 0;
|
||||
cursor: auto;
|
||||
outline: none;
|
||||
font-family: monospace;
|
||||
font-family: var(--d-font-family--monospace);
|
||||
&:focus {
|
||||
box-shadow: none;
|
||||
border-color: var(--primary-low);
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
--d-button-border-radius: var(--d-border-radius);
|
||||
--d-input-border-radius: var(--d-border-radius);
|
||||
--d-content-background: initial;
|
||||
--d-font-family--monospace: Consolas, Menlo, Monaco, "Lucida Console",
|
||||
"Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono",
|
||||
"Courier New", monospace;
|
||||
}
|
||||
|
||||
// --------------------------------------------------
|
||||
|
|
|
@ -35,8 +35,7 @@ body.dragging {
|
|||
/***********************/
|
||||
code,
|
||||
pre {
|
||||
font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono",
|
||||
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace;
|
||||
font-family: var(--d-font-family--monospace);
|
||||
}
|
||||
|
||||
// this removes the unwanted top margin on a paragraph under a heading
|
||||
|
|
Loading…
Reference in New Issue