@@ -1237,3 +1237,108 @@ devtools-toolbar {
1237
1237
opacity : 0% ;
1238
1238
}
1239
1239
}
1240
+
1241
+ /* Syntax highlighting */
1242
+ .webkit-css-property {
1243
+ color : var (--webkit-css-property-color , var (--sys-color-token-property-special )); /* stylelint-disable-line plugin/use_theme_colors */ /* See: crbug.com/1152736 for color variable migration. */
1244
+ }
1245
+
1246
+ .webkit-html-comment {
1247
+ color : var (--sys-color-token-comment );
1248
+ }
1249
+
1250
+ .webkit-html-tag {
1251
+ color : var (--sys-color-token-tag );
1252
+ }
1253
+
1254
+ .webkit-html-tag-name ,
1255
+ .webkit-html-close-tag-name {
1256
+ /* Keep this in sync with view-source.css (.webkit-html-tag) */
1257
+ color : var (--sys-color-token-tag );
1258
+ }
1259
+
1260
+ .webkit-html-pseudo-element {
1261
+ /* This one is non-standard. */
1262
+ color : var (--sys-color-token-pseudo-element );
1263
+ }
1264
+
1265
+ .webkit-html-js-node ,
1266
+ .webkit-html-css-node {
1267
+ color : var (--text-primary );
1268
+ white-space : pre-wrap;
1269
+ }
1270
+
1271
+ .webkit-html-text-node {
1272
+ color : var (--text-primary );
1273
+ unicode-bidi : -webkit-isolate;
1274
+ }
1275
+
1276
+ .webkit-html-entity-value {
1277
+ /* This one is non-standard. */
1278
+ background-color : rgb (0 0 0 / 15% ); /* stylelint-disable-line plugin/use_theme_colors */
1279
+ /* See: crbug.com/1152736 for color variable migration. */
1280
+ unicode-bidi : -webkit-isolate;
1281
+ }
1282
+
1283
+ .webkit-html-doctype {
1284
+ /* Keep this in sync with view-source.css (.webkit-html-doctype) */
1285
+ color : var (--text-secondary );
1286
+ /* See: crbug.com/1152736 for color variable migration. */
1287
+ }
1288
+
1289
+ .webkit-html-attribute-name {
1290
+ /* Keep this in sync with view-source.css (.webkit-html-attribute-name) */
1291
+ color : var (--sys-color-token-attribute );
1292
+ unicode-bidi : -webkit-isolate;
1293
+ }
1294
+
1295
+ .webkit-html-attribute-value {
1296
+ /* Keep this in sync with view-source.css (.webkit-html-attribute-value) */
1297
+ color : var (--sys-color-token-attribute-value );
1298
+ unicode-bidi : -webkit-isolate;
1299
+ word-break : break-all;
1300
+ }
1301
+
1302
+ .devtools-link {
1303
+ color : var (--text-link );
1304
+ text-decoration : underline;
1305
+ outline-offset : 2px ;
1306
+
1307
+ .elements-disclosure & {
1308
+ color : var (--text-link );
1309
+ }
1310
+
1311
+ devtools-icon {
1312
+ vertical-align : baseline;
1313
+ color : var (--sys-color-primary );
1314
+ }
1315
+
1316
+ : focus .selected & devtools-icon {
1317
+ color : var (--sys-color-tonal-container );
1318
+ }
1319
+
1320
+ & : focus-visible {
1321
+ outline-width : unset;
1322
+ }
1323
+
1324
+ & .invalid-link {
1325
+ color : var (--text-disabled );
1326
+ text-decoration : none;
1327
+ }
1328
+
1329
+ & : not (.devtools-link-prevent-click , .invalid-link ) {
1330
+ cursor : pointer;
1331
+ }
1332
+
1333
+ @media (forced-colors : active) {
1334
+ & : not (.devtools-link-prevent-click ) {
1335
+ forced-color-adjust : none;
1336
+ color : linktext;
1337
+ }
1338
+
1339
+ & : focus-visible {
1340
+ background : Highlight;
1341
+ color : HighlightText;
1342
+ }
1343
+ }
1344
+ }
0 commit comments