This repository has been archived by the owner on Jun 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathlist.css
81 lines (66 loc) · 1.93 KB
/
list.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
/*
* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
@import "../../../mixins/_disabled.css";
@import "../../../mixins/_rounded.css";
@import "../../../mixins/_shadow.css";
.ck.ck-list {
@mixin ck-rounded-corners;
list-style-type: none;
background: var(--ck-color-list-background);
}
.ck.ck-list__item {
cursor: default;
min-width: 12em;
& .ck-button {
min-height: unset;
width: 100%;
text-align: left;
border-radius: 0;
border: 0;
/* List items should have the same height. Use absolute units to make sure it is so
because e.g. different heading styles may have different height
https://github.com/ckeditor/ckeditor5-heading/issues/63 */
padding:
calc(.2*var(--ck-line-height-base)*var(--ck-font-size-base))
calc(.4*var(--ck-line-height-base)*var(--ck-font-size-base));
& .ck-button__label {
/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */
line-height: calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base));
}
&:active {
box-shadow: none;
}
&.ck-on {
background: var(--ck-color-list-button-on-background);
color: var(--ck-color-list-button-on-text);
&:hover:not(ck-disabled) {
background: var(--ck-color-list-button-on-background-focus);
}
&:active {
box-shadow: none;
}
}
&:hover:not(.ck-disabled) {
background: var(--ck-color-list-button-hover-background);
}
}
/* It's unnecessary to change the background/text of a switch toggle; it has different ways
of conveying its state (like the switcher) */
& .ck-switchbutton {
&.ck-on {
background: var(--ck-color-list-background);
color: inherit;
&:hover:not(ck-disabled) {
background: var(--ck-color-list-button-hover-background);
color: inherit;
}
}
}
}
.ck.ck-list__separator {
height: 1px;
width: 100%;
background: var(--ck-color-base-border);
}