-
Notifications
You must be signed in to change notification settings - Fork 67
/
iframe.css
75 lines (63 loc) · 1.6 KB
/
iframe.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
/* ---- 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 specific to the mobile editor demo (iframe) ------------------------------------------------------ */
/* These are to allow rounded corners around the <iframe>. */
body.mobile-support-iframe {
background: transparent;
overflow: hidden;
}
/* Set minimal height for editor content to fit the whole space of smartphone placeholder */
.ck.ck-editor .ck-content {
min-height: 810.5px;
/* This is the exact width of the <iframe> */
}
@media screen and (max-width: 800px) {
.ck.ck-editor .ck-content {
height: calc(100vh - 40px);
}
}
@media screen and (width: 395px) {
.ck.ck-editor .ck-content {
/* Match the radius of the frame */
--ck-border-radius: 0 0 38px 38px;
}
}
/* Set heading dropdown label width narrower width to fit Todo list in main toolbar */
.ck.ck-editor .ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label {
width: 70px;
}
/* Set max-width for nested toolbar */
.ck.ck-editor .ck.ck-toolbar-dropdown > .ck-dropdown__panel {
max-width: 90vw;
}
/* Set smaller heading sizes in editors content */
.ck.ck-content h1 {
font-size: 1.6em;
}
.ck.ck-content h2 {
font-size: 1.45em;
}
.ck.ck-content h3 {
font-size: 1.3em;
}
.ck.ck-content h4 {
font-size: 1.22em;
}
.ck.ck-content h5 {
font-size: 1.06em;
}
.ck.ck-content h6 {
font-size: 1em;
}