UNPKG

1.38 kBSCSSView Raw
1@import '../common/styles/theme-functions';
2@import '../common/styles/typography-functions';
3
4@mixin td-json-formatter-typography($config) {
5 .td-key {
6 font: {
7 family: td-font-family($config);
8 size: td-font-size($config, body-1);
9 }
10 }
11}
12
13@mixin td-json-formatter-theme($theme) {
14 $primary: map-get($theme, primary);
15 $accent: map-get($theme, accent);
16 $warn: map-get($theme, warn);
17 $foreground: map-get($theme, foreground);
18 $background: map-get($theme, background);
19
20 .td-json-formatter-wrapper {
21 .function::after,
22 .date::after,
23 .td-object-name::after,
24 .td-array-length::after {
25 content: '\200E';
26 }
27
28 .td-key {
29 &.td-key-node {
30 &:focus,
31 &:hover {
32 background-color: mat-color($background, hover);
33 }
34
35 .td-node-icon {
36 color: mat-color($foreground, secondary-text);
37 }
38 }
39 }
40
41 .key {
42 color: mat-color($primary);
43 }
44
45 .value {
46 .string {
47 color: mat-color($warn);
48 }
49
50 .number {
51 color: mat-color($accent);
52 }
53
54 .boolean {
55 color: mat-color($accent);
56 }
57
58 .null,
59 .undefined {
60 color: mat-color($foreground, disabled-text);
61 }
62
63 .function {
64 color: mat-color($primary);
65 }
66
67 .date {
68 color: mat-color($foreground, text);
69 }
70 }
71 }
72}