-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathdemo.css
86 lines (77 loc) · 2.33 KB
/
demo.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
/* ---- Customizations to the color grid palettes (font and background color) ------------------------------------------------------ */
.ck.ck-color-ui-dropdown {
--ck-color-grid-tile-size: 20px;
}
.ck.ck-color-ui-dropdown .ck-color-grid {
grid-gap: 1px;
}
.ck.ck-color-ui-dropdown .ck-color-grid .ck-button {
border-radius: 0;
}
.ck.ck-color-ui-dropdown .ck-color-grid__tile:hover:not(.ck-disabled),
.ck.ck-color-ui-dropdown .ck-color-grid__tile:focus:not(.ck-disabled) {
z-index: 1;
transform: scale(1.3);
}
/* ---- Mention list styles --------------------------------------------------------------- */
.ck-mentions .mention__item {
display: flex;
align-items: center;
}
.ck-mentions .mention__item img {
border-radius: 100%;
height: 30px;
}
.ck-mentions .mention__item span {
margin-left: 0.5em;
}
.ck-mentions .mention__item.ck-on span {
color: var(--ck-color-base-background);
}
.ck-mentions .mention__item .mention__item__full-name {
color: hsl(0, 0%, 45%);
}
.ck-mentions .mention__item:hover:not(.ck-on) .mention__item__full-name {
color: hsl(0, 0%, 40%);
}
/* ---- Basic CSS reset ------------------------------------------------------ */
*, ::after, ::before {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
}
body,
html {
margin: 0;
padding: 0;
}
.ck.ck-content.ck-editor__editable_inline > :first-child {
margin-top: 0;
}
/* ---- Styles of the demo page ------------------------------------------------------ */
.editor-wrapper {
max-width: 66rem;
margin: 0 auto 2rem auto;
}
.header-wrapper {
padding: 1rem 2rem;
}
/* ---- Styles specific to the feature rich demo ------------------------------------------------------ */
.ck.ck-word-count {
display: flex;
justify-content: flex-end;
background: var(--ck-color-toolbar-background);
padding: var(--ck-spacing-small) var(--ck-spacing-standard);
border: 1px solid var(--ck-color-toolbar-border);
border-top-width: 0;
border-radius: 0 0 var(--ck-border-radius);
font: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);
}
.ck.ck-word-count .ck-word-count__words {
margin-right: var(--ck-spacing-standard);
}
.ck.ck-rounded-corners .ck.ck-editor__main > .ck-editor__editable,
.ck.ck-rounded-corners .ck-source-editing-area textarea {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}