2016-01-13 08:37:32 +00:00
|
|
|
/* 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/. */
|
|
|
|
|
2016-01-26 16:17:48 +00:00
|
|
|
#sidebar-panel-fontinspector {
|
2016-02-17 16:13:01 +00:00
|
|
|
margin: 0;
|
2015-05-21 16:18:18 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2016-01-26 16:17:48 +00:00
|
|
|
width: 100%;
|
2016-07-15 07:59:21 +00:00
|
|
|
height: 100%;
|
2018-04-02 15:32:51 +00:00
|
|
|
overflow: auto;
|
2018-03-13 20:15:52 +00:00
|
|
|
}
|
|
|
|
|
2016-01-26 16:17:48 +00:00
|
|
|
#font-container {
|
|
|
|
flex: auto;
|
2016-01-13 08:37:32 +00:00
|
|
|
}
|
|
|
|
|
2018-07-03 18:05:40 +00:00
|
|
|
#font-editor summary {
|
|
|
|
-moz-user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
margin-bottom: .7em;
|
|
|
|
width: fit-content;
|
|
|
|
width: -moz-fit-content;
|
|
|
|
}
|
|
|
|
|
|
|
|
#font-editor details .label-open,
|
|
|
|
#font-editor details .label-close {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#font-editor details[open] .label-close {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
#font-editor details:not([open]) .label-open {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
2018-02-13 09:32:04 +00:00
|
|
|
.fonts-list {
|
2013-08-26 08:24:41 +00:00
|
|
|
padding: 0;
|
2013-03-07 04:57:00 +00:00
|
|
|
margin: 0;
|
2018-02-13 10:39:05 +00:00
|
|
|
list-style: none;
|
2013-03-07 04:57:00 +00:00
|
|
|
}
|
|
|
|
|
2018-02-13 10:39:05 +00:00
|
|
|
.font {
|
|
|
|
border: 1px solid var(--theme-splitter-color);
|
|
|
|
border-width: 0 1px 1px 0;
|
|
|
|
display: grid;
|
2018-02-28 20:45:27 +00:00
|
|
|
grid-template-columns: 1fr auto;
|
2018-03-14 15:16:55 +00:00
|
|
|
grid-column-gap: 10px;
|
2018-02-28 20:45:27 +00:00
|
|
|
padding: 10px 20px;
|
2018-06-20 10:09:17 +00:00
|
|
|
overflow: auto;
|
2016-01-13 08:37:32 +00:00
|
|
|
}
|
|
|
|
|
2018-02-13 10:39:05 +00:00
|
|
|
#font-container .theme-twisty {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2018-02-28 20:45:27 +00:00
|
|
|
vertical-align: bottom;
|
2016-01-13 08:37:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.font-preview-container {
|
2018-02-28 20:45:27 +00:00
|
|
|
grid-column: 2;
|
|
|
|
grid-row: 1 / span 2;
|
2018-02-13 10:39:05 +00:00
|
|
|
overflow: hidden;
|
|
|
|
display: grid;
|
|
|
|
place-items: center end;
|
|
|
|
position: relative;
|
2016-01-13 08:37:32 +00:00
|
|
|
}
|
|
|
|
|
2018-02-13 10:39:05 +00:00
|
|
|
.font-preview {
|
|
|
|
height: 50px;
|
|
|
|
display: block;
|
2016-01-13 08:37:32 +00:00
|
|
|
}
|
|
|
|
|
2018-02-13 10:39:05 +00:00
|
|
|
.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;
|
2013-03-07 04:57:00 +00:00
|
|
|
}
|
|
|
|
|
2018-02-28 20:45:27 +00:00
|
|
|
#font-container .font-preview-input {
|
2018-02-13 10:39:05 +00:00
|
|
|
position: absolute;
|
2018-02-28 20:45:27 +00:00
|
|
|
top: 5px;
|
2018-02-13 10:39:05 +00:00
|
|
|
left: 0;
|
|
|
|
width: calc(100% - 5px);
|
2018-02-28 20:45:27 +00:00
|
|
|
height: calc(100% - 10px);
|
2018-02-13 10:39:05 +00:00
|
|
|
background: transparent;
|
|
|
|
color: transparent;
|
2018-02-28 20:45:27 +00:00
|
|
|
border-radius: 0;
|
|
|
|
padding: 0;
|
2013-03-27 22:20:38 +00:00
|
|
|
}
|
|
|
|
|
2018-02-13 10:39:05 +00:00
|
|
|
.font-preview-input::-moz-selection {
|
|
|
|
background: transparent;
|
|
|
|
color: transparent;
|
2013-03-27 22:20:38 +00:00
|
|
|
}
|
|
|
|
|
2018-06-20 10:09:17 +00:00
|
|
|
.font-name,
|
|
|
|
.font-family-name {
|
2018-05-30 10:19:07 +00:00
|
|
|
font-weight: normal;
|
|
|
|
white-space: nowrap;
|
2018-05-28 09:14:12 +00:00
|
|
|
}
|
|
|
|
|
2018-06-20 10:09:17 +00:00
|
|
|
.font-name {
|
|
|
|
margin-bottom: 0.6em;
|
|
|
|
font-size: 1em;
|
|
|
|
color: var(--grey-50);
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-family-name {
|
|
|
|
margin-bottom: 0.2em;
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
2018-02-13 10:39:05 +00:00
|
|
|
.font-css-code {
|
|
|
|
direction: ltr;
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
color: var(--theme-toolbar-color);
|
2018-02-28 20:45:27 +00:00
|
|
|
grid-column: span 2;
|
|
|
|
position: relative;
|
2018-06-26 18:48:18 +00:00
|
|
|
inset-inline-start: -4px;
|
2013-03-07 04:57:00 +00:00
|
|
|
}
|
|
|
|
|
2018-02-13 10:58:08 +00:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
|
2018-04-20 02:13:00 +00:00
|
|
|
.font-control {
|
2018-04-02 15:32:51 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding: 5px 20px;
|
|
|
|
}
|
|
|
|
|
2018-04-20 15:52:08 +00:00
|
|
|
.font-control-family {
|
|
|
|
align-items: flex-start;
|
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-control-box,
|
|
|
|
.font-control-input {
|
|
|
|
flex: 4;
|
|
|
|
min-width: 100px;
|
|
|
|
}
|
|
|
|
|
2018-04-20 02:13:00 +00:00
|
|
|
.font-control-input {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-control-label {
|
|
|
|
display: inline-block;
|
|
|
|
flex: 1;
|
2018-04-20 15:52:08 +00:00
|
|
|
font-size: 12px;
|
2018-04-20 02:13:00 +00:00
|
|
|
min-width: 80px;
|
2018-04-20 15:52:08 +00:00
|
|
|
margin-right: 10px;
|
2018-05-09 15:04:18 +00:00
|
|
|
-moz-user-select: none;
|
|
|
|
}
|
|
|
|
|
2018-06-06 12:06:47 +00:00
|
|
|
.font-family-unused {
|
|
|
|
margin-bottom: .3em;
|
|
|
|
color: var(--grey-50);
|
|
|
|
}
|
|
|
|
|
2018-05-09 15:04:18 +00:00
|
|
|
.font-instance-select:active{
|
|
|
|
outline: none;
|
2018-04-02 15:32:51 +00:00
|
|
|
}
|
|
|
|
|
2018-05-08 12:22:03 +00:00
|
|
|
.font-value-input {
|
2018-04-20 02:13:00 +00:00
|
|
|
margin-left: 10px;
|
2018-07-03 12:44:08 +00:00
|
|
|
text-align: right;
|
2018-04-20 02:13:00 +00:00
|
|
|
width: 60px;
|
2018-04-02 15:32:51 +00:00
|
|
|
}
|
|
|
|
|
2018-07-03 12:44:08 +00:00
|
|
|
/* Do not use browser "invalid" state */
|
|
|
|
.font-value-input:-moz-ui-invalid {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Do not show dotted line focus outline */
|
|
|
|
.font-value-input:-moz-focusring {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Add space between input text from number stepper */
|
|
|
|
.font-value-input[type=number]::-moz-number-spin-box{
|
|
|
|
margin-left: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Do not show number stepper for font-size */
|
|
|
|
.font-value-input[name=font-size] {
|
|
|
|
-moz-appearance: textfield;
|
|
|
|
margin-right: 5px;
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-unit-select {
|
|
|
|
padding: 2px;
|
|
|
|
}
|
|
|
|
|
2018-05-08 12:22:03 +00:00
|
|
|
.font-value-slider {
|
2018-04-02 15:32:51 +00:00
|
|
|
flex: 1;
|
2018-04-20 02:13:00 +00:00
|
|
|
margin: 0;
|
|
|
|
min-width: 50px;
|
|
|
|
}
|
|
|
|
|
2018-05-16 18:15:05 +00:00
|
|
|
/*
|
|
|
|
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] {
|
2018-07-03 12:44:08 +00:00
|
|
|
--notch-size: 3px;
|
2018-05-16 18:15:05 +00:00
|
|
|
/* 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 */
|
2018-07-03 12:44:08 +00:00
|
|
|
background-position: 5px center;
|
2018-05-16 18:15:05 +00:00
|
|
|
/* Repeat the background-image horizontally */
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
/* Size the background to get nine visible notch instances. */
|
2018-07-03 12:44:08 +00:00
|
|
|
background-size: calc(12.5% - var(--notch-size) / 2) 7px;
|
2018-05-16 18:15:05 +00:00
|
|
|
}
|
|
|
|
|
2018-05-09 15:04:18 +00:00
|
|
|
.font-value-slider:-moz-focusring {
|
2018-04-20 02:13:00 +00:00
|
|
|
outline: none;
|
2018-04-02 15:32:51 +00:00
|
|
|
}
|
|
|
|
|
2018-05-08 12:22:03 +00:00
|
|
|
.font-value-slider::-moz-focus-outer {
|
2018-04-02 15:32:51 +00:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2018-05-08 12:22:03 +00:00
|
|
|
.font-value-slider::-moz-range-thumb {
|
2018-04-02 15:32:51 +00:00
|
|
|
background: var(--grey-50);
|
2018-07-03 12:44:08 +00:00
|
|
|
border: 0;
|
2018-04-20 02:13:00 +00:00
|
|
|
}
|
2018-07-03 12:44:08 +00:00
|
|
|
|
2018-05-08 12:22:03 +00:00
|
|
|
.font-value-slider::-moz-range-track {
|
2018-04-20 02:13:00 +00:00
|
|
|
background: var(--grey-30);
|
2018-07-03 12:44:08 +00:00
|
|
|
height: 3px;
|
2018-04-02 15:32:51 +00:00
|
|
|
}
|
|
|
|
|
2018-05-17 16:24:16 +00:00
|
|
|
/*
|
|
|
|
Restyle a native checkbox input to look like a toggle with a "thumb".
|
|
|
|
Build the decoration using solid shapes created with radial- and linear-gradient
|
|
|
|
background images. Animate the position of the "thumb" using background-position.
|
|
|
|
*/
|
|
|
|
.font-value-toggle {
|
|
|
|
/* Reset native checkbox styling. */
|
|
|
|
-moz-appearance: none;
|
|
|
|
--bg: var(--grey-30);
|
|
|
|
--thumb-color: var(--grey-50);
|
|
|
|
--thumb-position: 0% 50%;
|
|
|
|
cursor: pointer;
|
|
|
|
/* Change font-size to scale. */
|
|
|
|
font-size: 140%;
|
|
|
|
width: 2em;
|
|
|
|
height: 1em;
|
|
|
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
|
|
background-image:
|
|
|
|
/* thumb */
|
|
|
|
radial-gradient(circle 0.35em, var(--thumb-color) 100%, transparent 0),
|
|
|
|
/* left circle */
|
|
|
|
radial-gradient(circle 0.5em, var(--bg) 100%, transparent 0),
|
|
|
|
/* middle bar */
|
|
|
|
linear-gradient(var(--bg) , var(--bg)),
|
|
|
|
/* right circle */
|
|
|
|
radial-gradient(circle 0.5em, var(--bg) 100%, transparent 0);
|
|
|
|
|
|
|
|
/* Every shape has a size of 1em x 1em and is positioned with background-position. */
|
|
|
|
background-size: 1em 1em;
|
|
|
|
|
|
|
|
background-position:
|
|
|
|
var(--thumb-position), /* thumb */
|
|
|
|
left center, /* left circle */
|
|
|
|
0.5em center, /* middle bar */
|
|
|
|
right center; /* right circle */
|
|
|
|
|
|
|
|
/* Animate the thumb position between states of the checkbox. */
|
|
|
|
transition: background-position .1s ease-out;
|
|
|
|
}
|
|
|
|
|
|
|
|
.font-value-toggle:checked{
|
|
|
|
--bg: var(--blue-55);
|
|
|
|
--thumb-color: white;
|
|
|
|
--thumb-position: 100% 50%;
|
|
|
|
}
|
|
|
|
|
2018-03-14 15:16:55 +00:00
|
|
|
.font-origin {
|
2018-02-28 20:45:27 +00:00
|
|
|
margin-top: .2em;
|
|
|
|
color: var(--grey-50);
|
2018-03-14 15:16:55 +00:00
|
|
|
justify-self: start;
|
2018-03-14 15:16:55 +00:00
|
|
|
}
|
|
|
|
|
2018-03-14 15:16:55 +00:00
|
|
|
.font-origin.system {
|
|
|
|
text-transform: capitalize;
|
2018-03-17 22:07:13 +00:00
|
|
|
}
|
2018-03-14 15:16:55 +00:00
|
|
|
|
2018-03-14 15:16:55 +00:00
|
|
|
.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;
|
2018-02-13 10:39:05 +00:00
|
|
|
-moz-context-properties: fill;
|
2018-03-14 15:16:55 +00:00
|
|
|
fill: var(--theme-toolbar-color);
|
|
|
|
|
2013-03-07 04:57:00 +00:00
|
|
|
}
|
|
|
|
|
2018-07-03 18:14:09 +00:00
|
|
|
#font-container .accordion {
|
|
|
|
border-top: 1px solid var(--theme-splitter-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
#font-container .accordion + .accordion {
|
|
|
|
border-top: none;
|
2013-03-07 04:57:00 +00:00
|
|
|
}
|