summaryrefslogtreecommitdiff
path: root/lib/ckeditor5/sample/styles.css
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ckeditor5/sample/styles.css')
-rw-r--r--lib/ckeditor5/sample/styles.css965
1 files changed, 500 insertions, 465 deletions
diff --git a/lib/ckeditor5/sample/styles.css b/lib/ckeditor5/sample/styles.css
index 218ca9d..c7cbf76 100644
--- a/lib/ckeditor5/sample/styles.css
+++ b/lib/ckeditor5/sample/styles.css
@@ -1,465 +1,500 @@
1/** 1/**
2 * @license Copyright (c) 2014-2021, CKSource - Frederico Knabben. All rights reserved. 2 * @license Copyright (c) 2014-2022, CKSource Holding sp. z o.o. All rights reserved.
3 * This file is licensed under the terms of the MIT License (see LICENSE.md). 3 * This file is licensed under the terms of the MIT License (see LICENSE.md).
4 */ 4 */
5 5
6 :root { 6:root {
7 --ck-sample-base-spacing: 2em; 7 --ck-sample-base-spacing: 2em;
8 --ck-sample-color-white: #fff; 8 --ck-sample-color-white: #fff;
9 --ck-sample-color-green: #279863; 9 --ck-sample-color-green: #279863;
10 --ck-sample-color-blue: #1a9aef; 10 --ck-sample-color-blue: #1a9aef;
11 --ck-sample-container-width: 1285px; 11 --ck-sample-container-width: 1285px;
12 --ck-sample-sidebar-width: 350px; 12 --ck-sample-sidebar-width: 350px;
13 --ck-sample-editor-min-height: 400px; 13 --ck-sample-editor-min-height: 400px;
14 --ck-sample-editor-z-index: 10; 14 --ck-sample-editor-z-index: 10;
15} 15}
16 16
17/* --------- EDITOR STYLES ---------------------------------------------------------------------------------------- */ 17/* --------- EDITOR STYLES ---------------------------------------------------------------------------------------- */
18 18
19.editor__editable, 19.editor__editable,
20/* Classic build. */ 20/* Classic build. */
21main .ck-editor[role='application'] .ck.ck-content, 21main .ck-editor[role='application'] .ck.ck-content,
22/* Decoupled document build. */ 22/* Decoupled document build. */
23.ck.editor__editable[role='textbox'], 23.ck.editor__editable[role='textbox'],
24.ck.ck-editor__editable[role='textbox'], 24.ck.ck-editor__editable[role='textbox'],
25/* Inline & Balloon build. */ 25/* Inline & Balloon build. */
26.ck.editor[role='textbox'] { 26.ck.editor[role='textbox'] {
27 width: 100%; 27 width: 100%;
28 background: #fff; 28 background: #fff;
29 font-size: 1em; 29 font-size: 1em;
30 line-height: 1.6em; 30 line-height: 1.6em;
31 min-height: var(--ck-sample-editor-min-height); 31 min-height: var(--ck-sample-editor-min-height);
32 padding: 1.5em 2em; 32 padding: 1.5em 2em;
33} 33}
34 34
35.ck.ck-editor__editable { 35main .ck-editor[role='application'] {
36 background: #fff; 36 overflow: auto;
37 border: 1px solid hsl(0, 0%, 70%); 37}
38 width: 100%; 38
39} 39.ck.ck-editor__editable {
40 40 background: #fff;
41.ck.ck-editor { 41 border: 1px solid hsl(0, 0%, 70%);
42 /* To enable toolbar wrapping. */ 42 width: 100%;
43 width: 100%; 43}
44 overflow-x: hidden; 44
45} 45/* Because of sidebar `position: relative`, Edge is overriding the outline of a focused editor. */
46 46.ck.ck-editor__editable {
47/* Because of sidebar `position: relative`, Edge is overriding the outline of a focused editor. */ 47 position: relative;
48.ck.ck-editor__editable { 48 z-index: var(--ck-sample-editor-z-index);
49 position: relative; 49}
50 z-index: var(--ck-sample-editor-z-index); 50
51} 51.editor-container {
52 52 display: flex;
53/* --------- DECOUPLED (DOCUMENT) BUILD. ---------------------------------------------*/ 53 flex-direction: row;
54body[data-editor='DecoupledDocumentEditor'] .document-editor__toolbar { 54 flex-wrap: nowrap;
55 width: 100%; 55 position: relative;
56} 56 width: 100%;
57 57 justify-content: center;
58body[ data-editor='DecoupledDocumentEditor'] .collaboration-demo__editable, 58}
59body[ data-editor='DecoupledDocumentEditor'] .row-editor .editor { 59
60 width: 18.5cm; 60/* --------- DECOUPLED (DOCUMENT) BUILD. ---------------------------------------------*/
61 height: 100%; 61body[data-editor='DecoupledDocumentEditor'] .document-editor__toolbar {
62 min-height: 26.25cm; 62 width: 100%;
63 padding: 1.75cm 1.5cm; 63}
64 margin: 2.5rem; 64
65 border: 1px hsl( 0, 0%, 82.7% ) solid; 65body[data-editor='DecoupledDocumentEditor'] .collaboration-demo__editable,
66 background-color: var(--ck-sample-color-white); 66body[data-editor='DecoupledDocumentEditor'] .row-editor .editor {
67 box-shadow: 0 0 5px hsla( 0, 0%, 0%, .1 ); 67 /* A pixel is added for each of the border. */
68} 68 width: calc(21cm + 2px);
69 69 min-height: calc(29.7cm + 2px);
70body[ data-editor='DecoupledDocumentEditor'] .row-editor { 70 /* To avoid having extra scrolls inside the editor container. */
71 display: flex; 71 height: fit-content;
72 position: relative; 72 padding: 2cm 1.2cm;
73 justify-content: center; 73 margin: 2.5rem;
74 overflow-y: auto; 74 border: 1px hsl( 0, 0%, 82.7% ) solid;
75 background-color: #f2f2f2; 75 background-color: var(--ck-sample-color-white);
76 border: 1px solid hsl(0, 0%, 77%); 76 box-shadow: 0 0 5px hsla( 0, 0%, 0%, .1 );
77} 77 box-sizing: border-box;
78 78}
79body[data-editor='DecoupledDocumentEditor'] .sidebar { 79
80 background: transparent; 80body[data-editor='DecoupledDocumentEditor'] .row-editor {
81 border: 0; 81 display: flex;
82 box-shadow: none; 82 position: relative;
83} 83 justify-content: center;
84 84 overflow-y: auto;
85/* --------- COMMENTS & TRACK CHANGES FEATURE ---------------------------------------------------------------------- */ 85 background-color: #f2f2f2;
86.sidebar { 86 border: 1px solid hsl(0, 0%, 77%);
87 padding: 0 15px; 87 /* Limit the max-height of the editor to avoid scrolling from bottom to top to see the toolbar. */
88 position: relative; 88 max-height: 700px;
89 min-width: var(--ck-sample-sidebar-width); 89}
90 max-width: var(--ck-sample-sidebar-width); 90
91 font-size: 20px; 91body[data-editor='DecoupledDocumentEditor'] .sidebar {
92 border: 1px solid hsl(0, 0%, 77%); 92 background: transparent;
93 background: hsl(0, 0%, 98%); 93 border: 0;
94 border-left: 0; 94 box-shadow: none;
95 overflow: hidden; 95}
96 min-height: 100%; 96
97 flex-grow: 1; 97/* --------- COMMENTS & TRACK CHANGES FEATURE ---------------------------------------------------------------------- */
98} 98.sidebar {
99 99 padding: 0 15px;
100/* Do not inherit styles related to the editable editor content. See line 25.*/ 100 position: relative;
101.sidebar .ck-content[role='textbox'], 101 min-width: var(--ck-sample-sidebar-width);
102.ck.ck-annotation-wrapper .ck-content[role='textbox'] { 102 max-width: var(--ck-sample-sidebar-width);
103 min-height: unset; 103 font-size: 20px;
104 width: unset; 104 border: 1px solid hsl(0, 0%, 77%);
105 padding: 0; 105 background: hsl(0, 0%, 98%);
106 background: transparent; 106 border-left: 0;
107} 107 overflow: hidden;
108 108 min-height: 100%;
109.sidebar.narrow { 109 flex-grow: 1;
110 min-width: 60px; 110}
111 flex-grow: 0; 111
112} 112/* Do not inherit styles related to the editable editor content. See line 25.*/
113 113.sidebar .ck-content[role='textbox'],
114.sidebar.hidden { 114.ck.ck-annotation-wrapper .ck-content[role='textbox'] {
115 display: none !important; 115 min-height: unset;
116} 116 width: unset;
117 117 padding: 0;
118#sidebar-display-toggle { 118 background: transparent;
119 position: absolute; 119}
120 z-index: 1; 120
121 width: 30px; 121.sidebar.narrow {
122 height: 30px; 122 min-width: 60px;
123 text-align: center; 123 flex-grow: 0;
124 left: 15px; 124}
125 top: 30px; 125
126 border: 0; 126.sidebar.hidden {
127 padding: 0; 127 display: none !important;
128 color: hsl( 0, 0%, 50% ); 128}
129 transition: 250ms ease color; 129
130 background-color: transparent; 130#sidebar-display-toggle {
131} 131 position: absolute;
132 132 z-index: 1;
133#sidebar-display-toggle:hover { 133 width: 30px;
134 color: hsl( 0, 0%, 30% ); 134 height: 30px;
135 cursor: pointer; 135 text-align: center;
136} 136 left: 15px;
137 137 top: 30px;
138#sidebar-display-toggle:focus, 138 border: 0;
139#sidebar-display-toggle:active { 139 padding: 0;
140 outline: none; 140 color: hsl( 0, 0%, 50% );
141 border: 1px solid #a9d29d; 141 transition: 250ms ease color;
142} 142 background-color: transparent;
143 143}
144#sidebar-display-toggle svg { 144
145 fill: currentColor; 145#sidebar-display-toggle:hover {
146} 146 color: hsl( 0, 0%, 30% );
147 147 cursor: pointer;
148/* --------- COLLABORATION FEATURES (USERS) ------------------------------------------------------------------------ */ 148}
149.row-presence { 149
150 width: 100%; 150#sidebar-display-toggle:focus,
151 border: 1px solid hsl(0, 0%, 77%); 151#sidebar-display-toggle:active {
152 border-bottom: 0; 152 outline: none;
153 background: hsl(0, 0%, 98%); 153 border: 1px solid #a9d29d;
154 padding: var(--ck-spacing-small); 154}
155 155
156 /* Make `border-bottom` as `box-shadow` to not overlap with the editor border. */ 156#sidebar-display-toggle svg {
157 box-shadow: 0 1px 0 0 hsl(0, 0%, 77%); 157 fill: currentColor;
158 158}
159 /* Make `z-index` bigger than `.editor` to properly display tooltips. */ 159
160 z-index: 20; 160/* --------- COLLABORATION FEATURES (USERS) ------------------------------------------------------------------------ */
161} 161.row-presence {
162 162 width: 100%;
163.ck.ck-presence-list { 163 border: 1px solid hsl(0, 0%, 77%);
164 flex: 1; 164 border-bottom: 0;
165 padding: 1.25rem .75rem; 165 background: hsl(0, 0%, 98%);
166} 166 padding: var(--ck-spacing-small);
167 167
168.presence .ck.ck-presence-list__counter { 168 /* Make `border-bottom` as `box-shadow` to not overlap with the editor border. */
169 order: 2; 169 box-shadow: 0 1px 0 0 hsl(0, 0%, 77%);
170 margin-left: var(--ck-spacing-large) 170
171} 171 /* Make `z-index` bigger than `.editor` to properly display tooltips. */
172 172 z-index: 20;
173/* --------- REAL TIME COLLABORATION FEATURES (SHARE TOPBAR CONTAINER) --------------------------------------------- */ 173}
174.collaboration-demo__row { 174
175 display: flex; 175.ck.ck-presence-list {
176 position: relative; 176 flex: 1;
177 justify-content: center; 177 padding: 1.25rem .75rem;
178 overflow-y: auto; 178}
179 background-color: #f2f2f2; 179
180 border: 1px solid hsl(0, 0%, 77%); 180.presence .ck.ck-presence-list__counter {
181} 181 order: 2;
182 182 margin-left: var(--ck-spacing-large)
183body[ data-editor='InlineEditor'] .collaboration-demo__row { 183}
184 border: 0; 184
185} 185/* --------- REAL TIME COLLABORATION FEATURES (SHARE TOPBAR CONTAINER) --------------------------------------------- */
186 186.collaboration-demo__row {
187.collaboration-demo__container { 187 display: flex;
188 max-width: var(--ck-sample-container-width); 188 position: relative;
189 margin: 0 auto; 189 justify-content: center;
190 padding: 1.25rem; 190 overflow-y: auto;
191} 191 background-color: #f2f2f2;
192 192 border: 1px solid hsl(0, 0%, 77%);
193.presence, .collaboration-demo__row { 193}
194 transition: .2s opacity; 194
195} 195body[data-editor='InlineEditor'] .collaboration-demo__row {
196 196 border: 0;
197.collaboration-demo__topbar { 197}
198 background: #fff; 198
199 border: 1px solid var(--ck-color-toolbar-border); 199.collaboration-demo__container {
200 display: flex; 200 max-width: var(--ck-sample-container-width);
201 justify-content: space-between; 201 margin: 0 auto;
202 align-items: center; 202 padding: 1.25rem;
203 border-bottom: 0; 203}
204 border-radius: 4px 4px 0 0; 204
205} 205.presence, .collaboration-demo__row {
206 206 transition: .2s opacity;
207.collaboration-demo__topbar .btn { 207}
208 margin-right: 1em; 208
209 outline-offset: 2px; 209.collaboration-demo__topbar {
210 outline-width: 2px; 210 background: #fff;
211 background-color: var( --ck-sample-color-blue ); 211 border: 1px solid var(--ck-color-toolbar-border);
212} 212 display: flex;
213 213 justify-content: space-between;
214.collaboration-demo__topbar .btn:focus, 214 align-items: center;
215.collaboration-demo__topbar .btn:hover { 215 border-bottom: 0;
216 border-color: var( --ck-sample-color-blue ); 216 border-radius: 4px 4px 0 0;
217} 217}
218 218
219.collaboration-demo__share { 219.collaboration-demo__topbar .btn {
220 display: flex; 220 margin-right: 1em;
221 align-items: center; 221 outline-offset: 2px;
222 padding: 1.25rem .75rem 222 outline-width: 2px;
223} 223 background-color: var( --ck-sample-color-blue );
224 224}
225.collaboration-demo__share-description p { 225
226 margin: 0; 226.collaboration-demo__topbar .btn:focus,
227 font-weight: bold; 227.collaboration-demo__topbar .btn:hover {
228 font-size: 0.9em; 228 border-color: var( --ck-sample-color-blue );
229} 229}
230 230
231.collaboration-demo__share input { 231.collaboration-demo__share {
232 height: auto; 232 display: flex;
233 font-size: 0.9em; 233 align-items: center;
234 min-width: 220px; 234 padding: 1.25rem .75rem
235 margin: 0 10px; 235}
236 border-radius: 4px; 236
237 border: 1px solid var(--ck-color-toolbar-border) 237.collaboration-demo__share-description p {
238} 238 margin: 0;
239 239 font-weight: bold;
240.collaboration-demo__share button, 240 font-size: 0.9em;
241.collaboration-demo__share input { 241}
242 height: 40px; 242
243 padding: 5px 10px; 243.collaboration-demo__share input {
244} 244 height: auto;
245 245 font-size: 0.9em;
246.collaboration-demo__share button { 246 min-width: 220px;
247 position: relative; 247 margin: 0 10px;
248} 248 border-radius: 4px;
249 249 border: 1px solid var(--ck-color-toolbar-border)
250.collaboration-demo__share button:focus { 250}
251 outline: none; 251
252} 252.collaboration-demo__share button,
253 253.collaboration-demo__share input {
254.collaboration-demo__share button[data-tooltip]::before, 254 height: 40px;
255.collaboration-demo__share button[data-tooltip]::after { 255 padding: 5px 10px;
256 position: absolute; 256}
257 visibility: hidden; 257
258 opacity: 0; 258.collaboration-demo__share button {
259 pointer-events: none; 259 position: relative;
260 transition: all .15s cubic-bezier(.5,1,.25,1); 260}
261 z-index: 1; 261
262} 262.collaboration-demo__share button:focus {
263 263 outline: none;
264.collaboration-demo__share button[data-tooltip]::before { 264}
265 content: attr(data-tooltip); 265
266 padding: 5px 15px; 266.collaboration-demo__share button[data-tooltip]::before,
267 border-radius: 3px; 267.collaboration-demo__share button[data-tooltip]::after {
268 background: #111; 268 position: absolute;
269 color: #fff; 269 visibility: hidden;
270 text-align: center; 270 opacity: 0;
271 font-size: 11px; 271 pointer-events: none;
272 top: 100%; 272 transition: all .15s cubic-bezier(.5,1,.25,1);
273 left: 50%; 273 z-index: 1;
274 margin-top: 5px; 274}
275 transform: translateX(-50%); 275
276} 276.collaboration-demo__share button[data-tooltip]::before {
277 277 content: attr(data-tooltip);
278.collaboration-demo__share button[data-tooltip]::after { 278 padding: 5px 15px;
279 content: ''; 279 border-radius: 3px;
280 border: 5px solid transparent; 280 background: #111;
281 width: 0; 281 color: #fff;
282 font-size: 0; 282 text-align: center;
283 line-height: 0; 283 font-size: 11px;
284 top: 100%; 284 top: 100%;
285 left: 50%; 285 left: 50%;
286 transform: translateX(-50%); 286 margin-top: 5px;
287 border-bottom: 5px solid #111; 287 transform: translateX(-50%);
288 border-top: none; 288}
289} 289
290 290.collaboration-demo__share button[data-tooltip]::after {
291.collaboration-demo__share button[data-tooltip]:hover:before, 291 content: '';
292.collaboration-demo__share button[data-tooltip]:hover:after { 292 border: 5px solid transparent;
293 visibility: visible; 293 width: 0;
294 opacity: 1; 294 font-size: 0;
295} 295 line-height: 0;
296 296 top: 100%;
297.collaboration-demo--ready { 297 left: 50%;
298 overflow: visible; 298 transform: translateX(-50%);
299 height: auto; 299 border-bottom: 5px solid #111;
300} 300 border-top: none;
301 301}
302.collaboration-demo--ready .presence, 302
303.collaboration-demo--ready .collaboration-demo__row { 303.collaboration-demo__share button[data-tooltip]:hover:before,
304 opacity: 1; 304.collaboration-demo__share button[data-tooltip]:hover:after {
305} 305 visibility: visible;
306 306 opacity: 1;
307/* --------- PAGINATION FEATURE ------------------------------------------------------------------------------------ */ 307}
308 308
309/* Pagination view line must be stacked at least at the same level as the editor, 309.collaboration-demo--ready {
310 otherwise it will be hidden underneath. */ 310 overflow: visible;
311.ck.ck-pagination-view-line { 311 height: auto;
312 z-index: var(--ck-sample-editor-z-index); 312}
313} 313
314 314.collaboration-demo--ready .presence,
315/* --------- SAMPLE GENERIC STYLES (not related to CKEditor) ------------------------------------------------------- */ 315.collaboration-demo--ready .collaboration-demo__row {
316body, html { 316 opacity: 1;
317 padding: 0; 317}
318 margin: 0; 318
319 319/* --------- PAGINATION FEATURE ------------------------------------------------------------------------------------ */
320 font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; 320
321 font-size: 16px; 321/* Pagination view line must be stacked at least at the same level as the editor,
322 line-height: 1.5; 322 otherwise it will be hidden underneath. */
323} 323.ck.ck-pagination-view-line {
324 324 z-index: var(--ck-sample-editor-z-index);
325body { 325}
326 height: 100%; 326
327 color: #2D3A4A; 327/* --------- REVISION HISTORY FEATURE ------------------------------------------------------------------------------ */
328} 328
329 329.revision-viewer-container {
330body * { 330 display: none;
331 box-sizing: border-box; 331}
332} 332
333 333.revision-viewer-sidebar {
334a { 334 position: relative;
335 color: #38A5EE; 335 min-width: 310px;
336} 336 overflow: hidden;
337 337 background: var(--ck-color-toolbar-background);
338header .centered { 338 border: 1px solid var(--ck-color-toolbar-border);
339 display: flex; 339 margin-left: -1px;
340 flex-flow: row nowrap; 340}
341 justify-content: space-between; 341
342 align-items: center; 342/* A case when Pagination and Revision History features are enabled in the editor. */
343 min-height: 8em; 343/* Move the square with page number from the Pagination plugin to the left side, so that it does not cover the RH sidebar. */
344} 344body[data-revision-history='true'] .ck.ck-pagination-view-line::after {
345 345 transform: translateX(-100%) !important;
346header h1 a { 346 left: -1px !important;
347 font-size: 20px; 347 right: unset !important;
348 display: flex; 348}
349 align-items: center; 349
350 color: #2D3A4A; 350/* --------- SAMPLE GENERIC STYLES (not related to CKEditor) ------------------------------------------------------- */
351 text-decoration: none; 351body, html {
352} 352 padding: 0;
353 353 margin: 0;
354header h1 img { 354
355 display: block; 355 font-family: sans-serif, Arial, Verdana, "Trebuchet MS", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
356 height: 64px; 356 font-size: 16px;
357} 357 line-height: 1.5;
358 358}
359header nav ul { 359
360 margin: 0; 360body {
361 padding: 0; 361 height: 100%;
362 list-style-type: none; 362 color: #2D3A4A;
363} 363}
364 364
365header nav ul li { 365body * {
366 display: inline-block; 366 box-sizing: border-box;
367} 367}
368 368
369header nav ul li + li { 369a {
370 margin-left: 1em; 370 color: #38A5EE;
371} 371}
372 372
373header nav ul li a { 373header .centered {
374 font-weight: bold; 374 display: flex;
375 text-decoration: none; 375 flex-flow: row nowrap;
376 color: #2D3A4A; 376 justify-content: space-between;
377} 377 align-items: center;
378 378 min-height: 8em;
379header nav ul li a:hover { 379}
380 text-decoration: underline; 380
381} 381header h1 a {
382 382 font-size: 20px;
383main .message { 383 display: flex;
384 padding: 0 0 var(--ck-sample-base-spacing); 384 align-items: center;
385 background: var(--ck-sample-color-green); 385 color: #2D3A4A;
386 color: var(--ck-sample-color-white); 386 text-decoration: none;
387} 387}
388 388
389main .message::after { 389header h1 img {
390 content: ""; 390 display: block;
391 z-index: -1; 391 height: 64px;
392 display: block; 392}
393 height: 10em; 393
394 width: 100%; 394header nav ul {
395 background: var(--ck-sample-color-green); 395 margin: 0;
396 position: absolute; 396 padding: 0;
397 left: 0; 397 list-style-type: none;
398} 398}
399 399
400main .message h2 { 400header nav ul li {
401 position: relative; 401 display: inline-block;
402 padding-top: 1em; 402}
403 font-size: 2em; 403
404} 404header nav ul li + li {
405 405 margin-left: 1em;
406.centered { 406}
407 /* Hide overlapping comments. */ 407
408 overflow: hidden; 408header nav ul li a {
409 max-width: var(--ck-sample-container-width); 409 font-weight: bold;
410 margin: 0 auto; 410 text-decoration: none;
411 padding: 0 var(--ck-sample-base-spacing); 411 color: #2D3A4A;
412} 412}
413 413
414.row { 414header nav ul li a:hover {
415 display: flex; 415 text-decoration: underline;
416 position: relative; 416}
417} 417
418 418main .message {
419.btn { 419 padding: 0 0 var(--ck-sample-base-spacing);
420 cursor: pointer; 420 background: var(--ck-sample-color-green);
421 padding: 8px 16px; 421 color: var(--ck-sample-color-white);
422 font-size: 1rem; 422}
423 user-select: none; 423
424 border-radius: 4px; 424main .message::after {
425 transition: color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,opacity .2s ease-in-out; 425 content: "";
426 background-color: var(--ck-sample-color-button-blue); 426 z-index: -1;
427 border-color: var(--ck-sample-color-button-blue); 427 display: block;
428 color: var(--ck-sample-color-white); 428 height: 10em;
429 display: inline-block; 429 width: 100%;
430} 430 background: var(--ck-sample-color-green);
431 431 position: absolute;
432.btn--tiny { 432 left: 0;
433 padding: 6px 12px; 433}
434 font-size: .8rem; 434
435} 435main .message h2 {
436 436 position: relative;
437footer { 437 padding-top: 1em;
438 margin: calc(2*var(--ck-sample-base-spacing)) var(--ck-sample-base-spacing); 438 font-size: 2em;
439 font-size: .8em; 439}
440 text-align: center; 440
441 color: rgba(0,0,0,.4); 441.centered {
442} 442 /* Hide overlapping comments. */
443 443 overflow: hidden;
444/* --------- RWD --------------------------------------------------------------------------------------------------- */ 444 max-width: var(--ck-sample-container-width);
445@media screen and ( max-width: 800px ) { 445 margin: 0 auto;
446 :root { 446 padding: 0 var(--ck-sample-base-spacing);
447 --ck-sample-base-spacing: 1em; 447}
448 } 448
449 449.row {
450 header h1 { 450 display: flex;
451 width: 100%; 451 position: relative;
452 } 452}
453 453
454 header h1 img { 454.btn {
455 height: 40px; 455 cursor: pointer;
456 } 456 padding: 8px 16px;
457 457 font-size: 1rem;
458 header nav ul { 458 user-select: none;
459 text-align: right; 459 border-radius: 4px;
460 } 460 transition: color .2s ease-in-out,background-color .2s ease-in-out,border-color .2s ease-in-out,opacity .2s ease-in-out;
461 461 background-color: var(--ck-sample-color-button-blue);
462 main .message h2 { 462 border-color: var(--ck-sample-color-button-blue);
463 font-size: 1.5em; 463 color: var(--ck-sample-color-white);
464 } 464 display: inline-block;
465} 465}
466
467.btn--tiny {
468 padding: 6px 12px;
469 font-size: .8rem;
470}
471
472footer {
473 margin: calc(2*var(--ck-sample-base-spacing)) var(--ck-sample-base-spacing);
474 font-size: .8em;
475 text-align: center;
476 color: rgba(0,0,0,.4);
477}
478
479/* --------- RWD --------------------------------------------------------------------------------------------------- */
480@media screen and ( max-width: 800px ) {
481 :root {
482 --ck-sample-base-spacing: 1em;
483 }
484
485 header h1 {
486 width: 100%;
487 }
488
489 header h1 img {
490 height: 40px;
491 }
492
493 header nav ul {
494 text-align: right;
495 }
496
497 main .message h2 {
498 font-size: 1.5em;
499 }
500}