Skip to content

Commit aae9b4f

Browse files
committed
Split reveal.js CSS into another stylesheet
1 parent 46f5dea commit aae9b4f

File tree

4 files changed

+250
-261
lines changed

4 files changed

+250
-261
lines changed

_extensions/live/resources/live-runtime.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

live-runtime/src/css/live-runtime.css

Lines changed: 0 additions & 260 deletions
Original file line numberDiff line numberDiff line change
@@ -317,194 +317,6 @@ pre>code.sourceCode span.tok-function-attributeName,
317317
color: var(--exercise-editor-hl-at);
318318
}
319319

320-
/* Revealjs (to match editor with bootstrap) */
321-
/* Container card */
322-
.reveal .d-none {
323-
display: none !important;
324-
}
325-
326-
.reveal .d-flex {
327-
display: flex !important;
328-
}
329-
330-
.reveal .card.exercise-editor .justify-content-between {
331-
justify-content: space-between !important;
332-
}
333-
334-
.reveal .card.exercise-editor .align-items-center {
335-
align-items: center !important;
336-
}
337-
338-
.reveal .card.exercise-editor .gap-1 {
339-
gap: .25rem !important;
340-
}
341-
342-
.reveal .card.exercise-editor .gap-2 {
343-
gap: .5rem !important;
344-
}
345-
346-
.reveal .card.exercise-editor .gap-3 {
347-
gap: .75rem !important;
348-
}
349-
350-
.reveal .card.exercise-editor {
351-
--exercise-font-size: 1.3rem;
352-
margin: 1rem 0;
353-
border: 1px solid rgba(0, 0, 0, 0.175);
354-
border-radius: 0.375rem;
355-
font-size: var(--exercise-font-size);
356-
overflow: hidden;
357-
}
358-
359-
.reveal .card.exercise-editor .card-header {
360-
padding: 0.5rem 1rem;
361-
background-color: var(--exercise-cap-bg);
362-
border-bottom: 1px solid rgba(0, 0, 0, 0.175);
363-
}
364-
365-
/* Output */
366-
.reveal .cell-output-webr.cell-output-display,
367-
.reveal .cell-output-pyodide.cell-output-display {
368-
text-align: center;
369-
}
370-
371-
/* Button styling */
372-
.quarto-light .reveal .btn.btn-exercise-editor.btn-primary {
373-
--exercise-btn-bg: var(--bs-btn-bg, #0d6efd);
374-
--exercise-btn-color: var(--bs-btn-color, #ffffff);
375-
--exercise-btn-border-color: var(--bs-btn-border-color, #0d6efd);
376-
--exercise-btn-hover-border-color: var(--bs-btn-hover-border-color, #0b5ed7);
377-
--exercise-btn-hover-bg: var(--bs-btn-hover-bg, #0b5ed7);
378-
--exercise-btn-hover-color: var(--bs-btn-hover-color, #ffffff);
379-
}
380-
381-
.quarto-dark .reveal .btn.btn-exercise-editor.btn-primary {
382-
--exercise-btn-bg: var(--bs-btn-bg, #375a7f);
383-
--exercise-btn-color: var(--bs-btn-color, #ffffff);
384-
--exercise-btn-border-color: var(--bs-btn-border-color, #375a7f);
385-
--exercise-btn-hover-border-color: var(--bs-btn-hover-border-color, #2c4866);
386-
--exercise-btn-hover-bg: var(--bs-btn-hover-bg, #2c4866);
387-
--exercise-btn-hover-color: var(--bs-btn-hover-color, #ffffff);
388-
}
389-
390-
.quarto-light .reveal .btn.btn-exercise-editor.btn-outline-dark {
391-
--exercise-btn-bg: var(--bs-btn-bg, transparent);
392-
--exercise-btn-color: var(--bs-btn-color, #333);
393-
--exercise-btn-border-color: var(--bs-btn-border-color, #333);
394-
--exercise-btn-hover-border-color: var(--bs-btn-hover-border-color, #333);
395-
--exercise-btn-hover-bg: var(--bs-btn-hover-bg, #333);
396-
--exercise-btn-hover-color: var(--bs-btn-hover-color, #ffffff);
397-
}
398-
399-
.quarto-dark .reveal .btn.btn-exercise-editor.btn-outline-dark {
400-
--exercise-btn-bg: var(--bs-btn-bg, transparent);
401-
--exercise-btn-color: var(--bs-btn-color, #f8f8f8);
402-
--exercise-btn-border-color: var(--bs-btn-border-color, #f8f8f8);
403-
--exercise-btn-hover-border-color: var(--bs-btn-hover-border-color, #f8f8f8);
404-
--exercise-btn-hover-bg: var(--bs-btn-hover-bg, #f8f8f8);
405-
--exercise-btn-hover-color: var(--bs-btn-hover-color, #000000);
406-
}
407-
408-
/* Hide button label on small devices */
409-
@media only screen and (max-width: 576px) {
410-
:not(.reveal) .card-header .btn-exercise-editor>.btn-label-exercise-editor {
411-
max-width: 0px;
412-
margin-left: -4px;
413-
overflow: hidden;
414-
transition: max-width 0.2s ease-in, margin-left 0.05s ease-out 0.2s;
415-
}
416-
:not(.reveal) .card-header .btn-exercise-editor:hover>.btn-label-exercise-editor {
417-
position: inherit;
418-
max-width: 80px;
419-
margin-left: 0;
420-
transition: max-width 0.2s ease-out 0.05s, margin-left 0.05s ease-in;
421-
}
422-
}
423-
424-
/* Buttons under revealjs */
425-
.reveal .card.exercise-editor .btn-group {
426-
border-radius: .375rem;
427-
position: relative;
428-
display: inline-flex;
429-
vertical-align: middle;
430-
}
431-
432-
.reveal .card.exercise-editor .btn-group>.btn {
433-
position: relative;
434-
flex: 1 1 auto;
435-
}
436-
437-
.reveal .card.exercise-editor .btn-group>:not(.btn-check:first-child)+.btn,
438-
.reveal .card.exercise-editor .btn-group>.btn-group:not(:first-child) {
439-
margin-left: calc(1px*-1)
440-
}
441-
442-
.reveal .card.exercise-editor .btn-group>.btn:not(:last-child):not(.dropdown-toggle),
443-
.reveal .card.exercise-editor .btn-group>.btn.dropdown-toggle-split:first-child,
444-
.reveal .card.exercise-editor .btn-group>.btn-group:not(:last-child)>.btn {
445-
border-top-right-radius: 0;
446-
border-bottom-right-radius: 0
447-
}
448-
449-
.reveal .card.exercise-editor .btn-group>.btn:nth-child(n+3),
450-
.reveal .card.exercise-editor .btn-group>:not(.btn-check)+.btn,
451-
.reveal .card.exercise-editor .btn-group>.btn-group:not(:first-child)>.btn {
452-
border-top-left-radius: 0;
453-
border-bottom-left-radius: 0
454-
}
455-
456-
.reveal .btn.btn-exercise-editor {
457-
display: inline-block;
458-
padding: 0.25rem 0.5rem;
459-
font-size: 1rem;
460-
color: var(--exercise-btn-color);
461-
background-color: var(--exercise-btn-bg);
462-
text-align: center;
463-
text-decoration: none;
464-
vertical-align: middle;
465-
cursor: pointer;
466-
user-select: none;
467-
border: 1px solid var(--exercise-btn-border-color);
468-
border-radius: 0.375rem;
469-
transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
470-
}
471-
472-
.reveal .btn.btn-exercise-editor:hover {
473-
color: var(--exercise-btn-hover-color);
474-
background-color: var(--exercise-btn-hover-bg);
475-
border-color: var(--exercise-btn-hover-border-color);
476-
}
477-
478-
.reveal .btn.btn-exercise-editor:disabled,
479-
.reveal .btn.btn-exercise-editor.disabled,
480-
.reveal .btn-exercise-editor fieldset:disabled .btn {
481-
pointer-events: none;
482-
opacity: 0.65;
483-
}
484-
485-
/* Spinner */
486-
.reveal .card.exercise-editor .spinner-grow {
487-
background-color: currentcolor;
488-
opacity: 0;
489-
display: inline-block;
490-
width: 1.5rem;
491-
height: 1.5rem;
492-
vertical-align: -0.125em;
493-
border-radius: 50%;
494-
animation: 0.75s linear infinite spinner-grow;
495-
}
496-
497-
@keyframes spinner-grow {
498-
0% {
499-
transform: scale(0)
500-
}
501-
502-
50% {
503-
opacity: 1;
504-
transform: none
505-
}
506-
}
507-
508320
/* Output cells */
509321
div.exercise-cell-output.cell-output-stdout pre code,
510322
div.exercise-cell-output.cell-output-stderr pre code {
@@ -567,78 +379,6 @@ div.cell-output-display canvas {
567379
}
568380
}
569381

570-
.reveal .alert.exercise-grade {
571-
font-size: .55em;
572-
position: relative;
573-
padding: 1rem 1rem;
574-
margin: 1rem 0;
575-
border-radius: 0.25rem;
576-
color: var(--exercise-alert-color);
577-
background-color: var(--exercise-alert-bg);
578-
border: 1px solid var(--exercise-alert-border-color);
579-
}
580-
581-
.reveal .alert.exercise-grade .alert-link {
582-
font-weight: 700;
583-
color: var(--exercise-alert-link-color);
584-
}
585-
586-
.quarto-light .reveal .exercise-grade.alert-info {
587-
--exercise-alert-color: #055160;
588-
--exercise-alert-bg: #cff4fc;
589-
--exercise-alert-border-color: #9eeaf9;
590-
--exercise-alert-link-color: #055160;
591-
}
592-
593-
.quarto-light .reveal .exercise-grade.alert-success {
594-
--exercise-alert-color: #0a3622;
595-
--exercise-alert-bg: #d1e7dd;
596-
--exercise-alert-border-color: #a3cfbb;
597-
--exercise-alert-link-color: #0a3622;
598-
}
599-
600-
.quarto-light .reveal .exercise-grade.alert-warning {
601-
--exercise-alert-color: #664d03;
602-
--exercise-alert-bg: #fff3cd;
603-
--exercise-alert-border-color: #ffe69c;
604-
--exercise-alert-link-color: #664d03;
605-
}
606-
607-
.quarto-light .reveal .exercise-grade.alert-danger {
608-
--exercise-alert-color: #58151c;
609-
--exercise-alert-bg: #f8d7da;
610-
--exercise-alert-border-color: #f1aeb5;
611-
--exercise-alert-link-color: #58151c;
612-
}
613-
614-
.quarto-dark .reveal .exercise-grade.alert-info {
615-
--exercise-alert-color: #ffffff;
616-
--exercise-alert-bg: #3498db;
617-
--exercise-alert-border-color: #3498db;
618-
--exercise-alert-link-color: #ffffff;
619-
}
620-
621-
.quarto-dark .reveal .exercise-grade.alert-success {
622-
--exercise-alert-color: #ffffff;
623-
--exercise-alert-bg: #00bc8c;
624-
--exercise-alert-border-color: #00bc8c;
625-
--exercise-alert-link-color: #ffffff;
626-
}
627-
628-
.quarto-dark .reveal .exercise-grade.alert-warning {
629-
--exercise-alert-color: #ffffff;
630-
--exercise-alert-bg: #f39c12;
631-
--exercise-alert-border-color: #f39c12;
632-
--exercise-alert-link-color: #ffffff;
633-
}
634-
635-
.quarto-dark .reveal .exercise-grade.alert-danger {
636-
--exercise-alert-color: #ffffff;
637-
--exercise-alert-bg: #e74c3c;
638-
--exercise-alert-border-color: #e74c3c;
639-
--exercise-alert-link-color: #ffffff;
640-
}
641-
642382
.alert.exercise-grade p:last-child {
643383
margin-bottom: 0;
644384
}

0 commit comments

Comments
 (0)