-
-
Notifications
You must be signed in to change notification settings - Fork 135
/
Copy pathTableStyles.vanilla-css
165 lines (163 loc) · 7.04 KB
/
TableStyles.vanilla-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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
/* This CSS code was extracted by hand from CKE build and some colors were altered.
It's not worth to set up proper CKE theme build as we only need this code for the table feature currently.
Feel free to remove it and setup a proper CKE styles build together with a custom theme. */
.ck-hidden{
display:none!important
}
:root{
--ck-color-base-foreground:#fafafa;
--ck-color-base-background:#fff;
--ck-color-base-border:#c4c4c4;
--ck-color-base-action:#61b045;
--ck-color-base-focus:#6cb5f9;
--ck-color-base-text:#333;
--ck-color-base-active:#198cf0;
--ck-color-base-active-focus:#0e7fe1;
--ck-color-focus-border:#47a4f5;
--ck-color-focus-shadow:rgba(119,186,248,.5);
--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);
--ck-color-text:var(--ck-color-base-text);
--ck-color-shadow-drop:rgba(0,0,0,.15);
--ck-color-shadow-inner:rgba(0,0,0,.1);
--ck-focus-outer-shadow-geometry:0 0 0 3px;
--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-shadow);
--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);
--ck-focus-ring:1px solid var(--ck-color-focus-border);
--ck-border-radius:2px;
--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;
--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);
--ck-spacing-unit:0.6em;
--ck-spacing-large:calc(var(--ck-spacing-unit) * 1.5);
--ck-spacing-standard:var(--ck-spacing-unit);
--ck-spacing-medium:calc(var(--ck-spacing-unit) * 0.8);
--ck-spacing-small:calc(var(--ck-spacing-unit) * 0.5);
--ck-spacing-tiny:calc(var(--ck-spacing-unit) * 0.3);
--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit) * 0.16);
--ck-icon-size:calc(var(--ck-line-height-base) * var(--ck-font-size-normal))
}
.ck.ck-icon{
vertical-align:middle;
width:var(--ck-icon-size);
height:var(--ck-icon-size);
font-size:.8333350694em;
will-change:transform
}
.ck.ck-icon,.ck.ck-icon *{
color:inherit;
cursor:inherit
}
.ck.ck-icon *{
fill:currentColor
}
.ck .ck-widget.ck-widget_with-selection-handle{
position:relative
}
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{
visibility:hidden;
position:absolute
}
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{
display:block
}
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{
visibility:visible
}
:root{
--ck-widget-outline-thickness:3px;
--ck-widget-handle-icon-size:16px;
--ck-widget-handle-animation-duration:200ms;
--ck-widget-handle-animation-curve:ease;
--ck-color-widget-blurred-border:#dedede;
--ck-color-widget-hover-border:#ffc83d;
--ck-color-widget-editable-focus-background:var(--ck-color-base-background);
--ck-color-widget-drag-handle-icon-color:var(--ck-color-base-background);
}
.ck .ck-widget{
margin:var(--ck-spacing-standard) 0;
padding:0;
outline-width:var(--ck-widget-outline-thickness);
outline-style:solid;
outline-color:transparent;
transition:outline-color var(--ck-widget-handle-animation-duration) var(--ck-widget-handle-animation-curve)
}
.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{
outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)
}
.ck .ck-widget:hover{
outline-color:var(--ck-color-widget-hover-border)
}
.ck .ck-editor__nested-editable{
border:1px solid transparent
}
.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{
outline:none;
border:var(--ck-focus-ring);
box-shadow:var(--ck-inner-shadow),0 0;
background-color:var(--ck-color-widget-editable-focus-background)
}
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{
padding:4px;
box-sizing:border-box;
background-color:transparent;
opacity:0;
transition:background-color var(--ck-widget-handle-animation-duration) var(--ck-widget-handle-animation-curve),visibility var(--ck-widget-handle-animation-duration) var(--ck-widget-handle-animation-curve),opacity var(--ck-widget-handle-animation-duration) var(--ck-widget-handle-animation-curve);
border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;
transform:translateY(-100%);
left:calc(0px - var(--ck-widget-outline-thickness))
}
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{
opacity:1
}
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{
width:var(--ck-widget-handle-icon-size);
height:var(--ck-widget-handle-icon-size);
color:var(--ck-color-widget-drag-handle-icon-color)
}
.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{
opacity:0;
transition:opacity .3s var(--ck-widget-handle-animation-curve)
}
.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{
opacity:1;
background-color:var(--ck-color-focus-border)
}
.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{
opacity:1
}
.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{
opacity:1;
background-color:var(--ck-color-widget-hover-border)
}
.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{
outline-color:var(--ck-color-widget-blurred-border)
}
.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected .ck-widget__selection-handle,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected .ck-widget__selection-handle:hover,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover .ck-widget__selection-handle,.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover .ck-widget__selection-handle:hover{
background:var(--ck-color-widget-blurred-border)
}
:root{
--ck-color-table-focused-cell-background:#f5fafe
}
.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused{
background:var(--ck-color-table-focused-cell-background);
border-style:none;
outline:1px solid var(--ck-color-focus-border);
outline-offset:-1px
}
.ck-content .table{
display:table;
width: initial;
}
.ck-content .table table{
border-collapse:collapse;
border-spacing:0;
border:1px double #b3b3b3
}
.ck-content .table table td,.ck-content .table table th{
min-width:2em;
padding:.4em;
border-color:#d9d9d9
}
.ck-content .table table th{
font-weight:700;
background:#fafafa
}