summaryrefslogtreecommitdiffstats
path: root/devtools/client/themes/fonts.css
blob: 8305e34f38f5bc7a800ac5ec4b3a55bbcf5154ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* 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;
  padding-bottom: 20px;
  width: 100%;
  height: 100%;
}

#sidebar-panel-fontinspector > .devtools-toolbar {
  display: flex;
}

#font-container {
  overflow: auto;
  flex: auto;
}

#all-fonts {
  padding: 0;
  margin: 0;
}

#font-showall {
  cursor: pointer;
  flex-shrink: 0;
}

#font-showall:hover {
  text-decoration: underline;
}

.dim > #font-container,
.font:not(.has-code) .font-css-code,
.font-is-local,
.font-is-remote,
.font.is-local .font-format-url,
#font-template {
  display: none;
}

.font.is-remote .font-is-remote,
.font.is-local .font-is-local {
  display: inline;
}

.font-format::before {
  content: "(";
}

.font-format::after {
  content: ")";
}

.preview-input-toolbar {
  display: flex;
  width: 100%;
}

.font-preview-container {
  overflow-x: auto;
}

#font-preview-text-input {
  margin-top: 1px;
  margin-bottom: 1px;
  padding-top: 0;
  padding-bottom: 0;
  flex: 1;
}

.font {
  padding: 10px 10px;
}

.theme-dark .font {
  border-bottom: 1px solid #444;
}

.theme-light .font {
  border-bottom: 1px solid #DDD;
}

.font:last-of-type {
  border-bottom: 0;
}

.theme-light .font:nth-child(even) {
  background: #F4F4F4;
}

.font-preview {
  margin-left: -4px;
  height: 60px;
  display: block;
}

.font-info {
  display: block;
}

.font-name {
  display: inline;
}

.font-css-code {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 5px;
}

.theme-light .font-css-code,
.theme-light .font-url {
  border: 1px solid #CCC;
  background: white;
}

.theme-dark .font-css-code,
.theme-dark .font-url {
  border: 1px solid #333;
  background: black;
  color: white;
}