-
Notifications
You must be signed in to change notification settings - Fork 6
/
propertylist.css
114 lines (94 loc) · 2.6 KB
/
propertylist.css
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
/**
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
* For licensing, see LICENSE.md.
*/
.ck-inspector {
--ck-inspector-color-property-list-property-name: #D0363F;
--ck-inspector-color-property-list-property-value-true: green;
--ck-inspector-color-property-list-property-value-false: red;
--ck-inspector-color-property-list-property-value-unknown: #888;
--ck-inspector-color-property-list-background: #F5F5F5;
--ck-inspector-color-property-list-title-collapser: #727272;
}
.ck-inspector .ck-inspector-property-list {
display: grid;
grid-template-columns: auto 1fr;
background: var(--ck-inspector-color-white);
& > *:nth-of-type(odd) {
background: var(--ck-inspector-color-property-list-background);
}
& > *:nth-of-type(even) {
background: var(--ck-inspector-color-white);
}
& dt {
padding: 0 .7em 0 1.2em;
min-width: 15em;
&.ck-inspector-property-list__title_collapsible button {
display: inline-block;
overflow: hidden;
vertical-align: middle;
margin-left: -9px;
margin-right: .3em;
width: 0;
height: 0;
border-style: solid;
border-width: 3.5px 0 3.5px 6px;
border-color: transparent transparent transparent var(--ck-inspector-color-property-list-title-collapser);
transition: transform .2s ease-in-out;
transform: rotate(0deg);
}
&.ck-inspector-property-list__title_expanded button {
transform: rotate(90deg);
}
&.ck-inspector-property-list__title_collapsed + dd + .ck-inspector-property-list {
display: none;
}
& .ck-inspector-property-list__title__color-box {
width: 12px;
height: 12px;
vertical-align: text-top;
display: inline-block;
margin-right: 3px;
border-radius: 2px;
border: 1px solid black;
}
&.ck-inspector-property-list__title_clickable label:hover {
text-decoration: underline;
cursor: pointer;
}
}
& dt label {
color: var(--ck-inspector-color-property-list-property-name);
}
& dd {
padding-right: .7em;
}
& dd input {
width: 100%;
&[value="false"] {
color: var(--ck-inspector-color-property-list-property-value-false);
}
&[value="true"] {
color: var(--ck-inspector-color-property-list-property-value-true);
}
&[value="undefined"],
&[value="function() {…}"] {
color: var(--ck-inspector-color-property-list-property-value-unknown);
}
&[value="function() {…}"] {
font-style: italic;
}
}
/* Sub properties */
& .ck-inspector-property-list {
grid-column: 1/-1;
margin-left: 1em;
background: transparent;
& > *:nth-of-type(odd) {
background: transparent;
}
& > *:nth-of-type(even) {
background: transparent;
}
}
}