make devtools tooltips have black background and blue border for readability
[themes.git] / LCARStrek / devtools / common.css
CommitLineData
3d85dbf1 1/* vim:set ts=2 sw=2 sts=2 et: */
9099c61d
RK
2/* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
3d85dbf1 5
d0a8de80
RK
6@import url("splitters.css");
7
3886293f
RK
8/* LCARS-specific rules that should be limited to toolbox but there's no other place to put them */
9window {
10 padding: 0;
56ab361a
RK
11}
12
3886293f
RK
13notification {
14 margin-bottom: 3px;
3d85dbf1 15}
713cf603 16
3886293f 17/* End LCARStrek toolbox rules */
85cfb236 18
d74db938
RK
19:root {
20 font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
dc9d5d64 21 --proportional-font-family: "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
d74db938
RK
22 --monospace-font-family: "Liberation Mono", Consolas, "Courier New", monospace;
23 --monospace-font-size: 12px;
24}
85cfb236 25
3886293f 26.devtools-monospace {
d74db938
RK
27 font-family: var(--monospace-font-family);
28 font-size: var(--monospace-font-size);
85cfb236
RK
29}
30
2e389898 31
82b4252f 32/* Autocomplete Popup */
82b4252f
RK
33
34.devtools-autocomplete-popup {
82b4252f 35 border-radius: 3px;
6dc70335 36 overflow-x: hidden;
6f751fd1 37 max-height: 20rem;
1ad21b1f
RK
38
39 /* Devtools autocompletes display technical english keywords and should be displayed
40 using LTR direction. */
41 direction: ltr !important;
82b4252f
RK
42}
43
1ad21b1f
RK
44/* Reset list styles. */
45.devtools-autocomplete-popup ul {
46 list-style: none;
6f751fd1
RK
47}
48
1ad21b1f
RK
49.devtools-autocomplete-popup ul,
50.devtools-autocomplete-popup li {
51 margin: 0;
6f751fd1
RK
52}
53
1ad21b1f
RK
54.devtools-autocomplete-listbox {
55 background-color: transparent;
56 border-width: 0px !important;
57 margin: 0;
0142a07b
RK
58}
59
1ad21b1f 60.devtools-autocomplete-listbox .autocomplete-item {
82b4252f
RK
61 width: 100%;
62 background-color: transparent;
63 border-radius: 4px;
0142a07b
RK
64}
65
1ad21b1f
RK
66.devtools-autocomplete-listbox .autocomplete-selected {
67/* background-color: rgba(0,0,0,0.2); */
0142a07b
RK
68}
69
1ad21b1f
RK
70.devtools-autocomplete-listbox .autocomplete-item > .initial-value,
71.devtools-autocomplete-listbox .autocomplete-item > .autocomplete-value {
82b4252f 72 margin: 0;
1ad21b1f
RK
73 padding: 0;
74 cursor: default;
0142a07b
RK
75}
76
1ad21b1f 77.devtools-autocomplete-listbox .autocomplete-item > .autocomplete-count {
a21f2959 78 text-align: end;
82b4252f 79}
0142a07b 80
ed88669c
RK
81/* Rest of the dark and light theme */
82
0593e1a1 83.devtools-autocomplete-popup,
ed88669c
RK
84.CodeMirror-hints,
85.CodeMirror-Tern-tooltip {
0593e1a1 86 border: 1px solid #9C9CFF;
ed88669c
RK
87 background-color: #000000;
88}
82b4252f 89
1ad21b1f 90/* Autocomplete list clone used for accessibility. */
445863a2 91
1ad21b1f
RK
92.devtools-autocomplete-list-aria-clone {
93 /* Cannot use display:none or visibility:hidden : screen readers ignore the element. */
94 position: fixed;
95 overflow: hidden;
96 margin: 0;
97 width: 0;
98 height: 0;
82b4252f
RK
99}
100
1ad21b1f
RK
101.devtools-autocomplete-list-aria-clone li {
102 /* Prevent screen readers from prefacing every item with 'bullet'. */
103 list-style-type: none;
0142a07b 104}
82b4252f 105
6184c7f7 106/* links to source code, like displaying `myfile.js:45` */
d74db938
RK
107
108.devtools-source-link {
109 font-family: var(--monospace-font-family);
110 color: var(--theme-text-blue);
111 cursor: pointer;
112 white-space: nowrap;
113 display: flex;
d74db938
RK
114 text-decoration: none;
115 font-size: 11px;
116 width: 12em; /* probably should be changed for each tool */
117}
118
119.devtools-source-link:hover {
120 text-decoration: underline;
121}
122
123.devtools-source-link > .filename {
124 text-overflow: ellipsis;
125 text-align: end;
126 overflow: hidden;
127 margin: 2px 0px;
128 cursor: pointer;
129}
130
131.devtools-source-link > .line-number {
132 flex: none;
133 margin: 2px 0px;
134 cursor: pointer;
135}
6f751fd1
RK
136
137/* Keyboard focus highlight styles */
138
139:-moz-focusring {
140 outline: var(--theme-focus-outline);
141 outline-offset: -1px;
142}
143
144textbox[focused="true"] {
145 border-color: var(--theme-focus-border-color-textbox);
6f751fd1
RK
146/* box-shadow: var(--theme-focus-box-shadow-textbox);*/
147 transition: all 0.2s ease-in-out
148}
149
150textbox :-moz-focusring {
151 box-shadow: none;
152 outline: none;
153}
154
155/* Form fields should already have box-shadow hightlight */
156select:-moz-focusring,
157input[type="radio"]:-moz-focusring,
158input[type="checkbox"]:-moz-focusring,
159checkbox:-moz-focusring {
160 outline: none;
161}
60156ae2
RK
162
163
164:root {
165 --clear-icon-url: url("chrome://devtools/skin/images/clear.svg");
166}
167
168.devtools-button.devtools-clear-icon::before {
169 background-image: var(--clear-icon-url);
170}
171
172.devtools-button.devtools-filter-icon::before {
173 background-image: var(--filter-image);
174}
175
176.devtools-toolbarbutton.devtools-clear-icon {
177 list-style-image: var(--clear-icon-url);
178}
179
180.devtools-option-toolbarbutton {
181 list-style-image: var(--tool-options-image);
182}