gecko-dev/devtools/client/themes/fonts.css

240 lines
4.6 KiB
CSS
Raw Normal View History

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#sidebar-panel-fontinspector {
margin: 0;
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
overflow: auto;
}
#font-container {
flex: auto;
}
.fonts-list {
padding: 0;
margin: 0;
list-style: none;
}
.font {
border: 1px solid var(--theme-splitter-color);
border-width: 0 1px 1px 0;
display: grid;
grid-template-columns: 1fr auto;
grid-column-gap: 10px;
padding: 10px 20px;
}
#font-container .theme-twisty {
display: inline-block;
cursor: pointer;
vertical-align: bottom;
}
.font-preview-container {
grid-column: 2;
grid-row: 1 / span 2;
overflow: hidden;
display: grid;
place-items: center end;
position: relative;
}
.font-preview {
height: 50px;
display: block;
}
.font-preview:hover {
cursor: text;
background-image: linear-gradient(to right,
var(--grey-40) 3px, transparent 3px, transparent);
background-size: 6px 1px;
background-repeat: repeat-x;
background-position-y: 45px;
}
#font-container .font-preview-input {
position: absolute;
top: 5px;
left: 0;
width: calc(100% - 5px);
height: calc(100% - 10px);
background: transparent;
color: transparent;
border-radius: 0;
padding: 0;
}
.font-preview-input::-moz-selection {
background: transparent;
color: transparent;
}
.font-name {
margin: 0;
font-size: 1.2em;
font-weight: normal;
white-space: nowrap;
}
.font-css-code {
direction: ltr;
margin: 0;
overflow: hidden;
text-overflow: ellipsis;
color: var(--theme-toolbar-color);
grid-column: span 2;
position: relative;
offset-inline-start: -4px;
}
.font-css-code-expander::before {
content: "\2026";
display: inline-block;
width: 12px;
height: 8px;
margin: 0 2px;
line-height: 3px;
color: var(--theme-body-color-inactive);
border-radius: 3px;
border-style: solid;
border-width: 1px;
text-align: center;
vertical-align: middle;
}
.font-control {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-items: center;
padding: 5px 20px;
}
.font-control-family {
align-items: flex-start;
padding-top: 10px;
padding-bottom: 10px;
}
.font-control-box,
.font-control-input {
flex: 4;
min-width: 100px;
}
.font-control-input {
display: flex;
flex-wrap: nowrap;
align-items: center;
}
.font-control-label {
display: inline-block;
flex: 1;
font-size: 12px;
min-width: 80px;
margin-right: 10px;
-moz-user-select: none;
}
.font-instance-select:active{
outline: none;
}
.font-value-input {
margin-left: 10px;
width: 60px;
}
.font-value-slider {
flex: 1;
margin: 0;
min-width: 50px;
}
/*
The value of font-weight goes from 100 to 900 in increments of 100.
Decorate the slider for font-weight to have 9 vertical notches using a linear gradient.
*/
.font-value-slider[name=font-weight] {
--notch-size: 2px;
/* Draw a vertical line to get one notch per background-image instance */
background-image: linear-gradient(90deg, var(--grey-30) var(--notch-size), transparent 0);
/* Offset the background so the notch aligns with the center of the slider thumb */
background-position: 7px center;
/* Repeat the background-image horizontally */
background-repeat: repeat-x;
/* Size the background to get nine visible notch instances. */
background-size: calc(12.5% - var(--notch-size)) 90%;
}
.font-value-slider:-moz-focusring {
outline: none;
}
.font-value-slider::-moz-focus-outer {
border: 0;
}
.font-value-slider::-moz-range-thumb {
background: var(--grey-50);
border-color: rgba(0, 0, 0, 0);
}
.font-value-slider::-moz-range-track {
background: var(--grey-30);
}
.font-value-slider:focus::-moz-range-thumb {
background: var(--blue-55);
}
.font-origin {
margin-top: .2em;
color: var(--grey-50);
justify-self: start;
}
.font-origin.system {
text-transform: capitalize;
}
.font-origin.remote {
display: grid;
grid-template-columns: 1fr 20px;
}
.font-origin.remote .url {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.font-origin .copy-icon {
border: 0;
padding: 0;
position: relative;
cursor: pointer;
width: 12px;
height: 12px;
place-self: center;
background: url(chrome://devtools/skin/images/copy.svg) no-repeat;
background-size: 12px;
background-position-x: -1px;
-moz-context-properties: fill;
fill: var(--theme-toolbar-color);
}
#font-container .devtools-sidepanel-no-result + .accordion {
border-block-start: 1px solid var(--theme-splitter-color);
}