| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188 |
- /*
- ArozOS Office - Slides
- App-specific styles. Light + dark theming via the --of-* variables
- from ../common/office.css (dark mode = body.dark).
- */
- /* ============ Layout ============ */
- #workspace {
- display: flex;
- flex-direction: row;
- overflow: hidden;
- }
- /* ---- Thumbnail rail ---- */
- #slRail {
- flex: 0 0 180px;
- width: 180px;
- display: flex;
- flex-direction: column;
- background: var(--of-chrome-bg2);
- border-right: 1px solid var(--of-border);
- overflow: hidden;
- user-select: none;
- }
- #slThumbs {
- flex: 1 1 auto;
- overflow-y: auto;
- overflow-x: hidden;
- padding: 10px 8px 4px 8px;
- }
- .sl-thumb {
- display: flex;
- align-items: flex-start;
- gap: 5px;
- margin-bottom: 10px;
- position: relative;
- cursor: pointer;
- }
- .sl-thumb-num {
- flex: 0 0 14px;
- width: 14px;
- text-align: right;
- font-size: 11px;
- color: var(--of-fg-soft);
- padding-top: 2px;
- }
- /* The preview takes whatever width the rail can spare - which is not a
- number this stylesheet can know, because the scrollbar's width is the
- platform's business and it eats into it. So the box is fluid and holds
- the slide's shape, and the scale that fits a 960px slide inside it is
- measured and set as --sl-thumb-scale (fitThumbs() in slides.js). A
- hard-coded scale here is how the right edge of every preview came to be
- clipped by the width of a scrollbar. */
- .sl-thumb-view {
- position: relative;
- flex: 1 1 auto;
- min-width: 0;
- aspect-ratio: 960 / 540;
- overflow: hidden;
- border: 2px solid var(--of-border);
- border-radius: 4px;
- background: #fff;
- box-sizing: content-box;
- }
- /* focusing a thumbnail selects it, so the active border is already the
- focus indicator - the browser's own outline would only double it up */
- .sl-thumb:focus { outline: none; }
- .sl-thumb.active .sl-thumb-view {
- border-color: var(--of-accent);
- box-shadow: 0 0 0 1px var(--of-accent);
- }
- .sl-thumb-mini {
- position: absolute;
- left: 0;
- top: 0;
- width: 960px;
- height: 540px;
- transform: scale(var(--sl-thumb-scale, 0.141667));
- transform-origin: 0 0;
- pointer-events: none;
- }
- .sl-thumb.drop-before::before,
- .sl-thumb.drop-after::after {
- content: "";
- position: absolute;
- left: 16px;
- right: 0;
- height: 3px;
- border-radius: 2px;
- background: var(--of-accent);
- z-index: 5;
- }
- .sl-thumb.drop-before::before { top: -7px; }
- .sl-thumb.drop-after::after { bottom: -7px; }
- .sl-thumb.dragging { opacity: 0.45; }
- /* ---- Center column ---- */
- #slMain {
- flex: 1 1 auto;
- min-width: 0;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- #slCanvasArea {
- flex: 1 1 auto;
- overflow: auto;
- display: flex;
- position: relative;
- }
- #slCanvasWrap {
- margin: auto;
- padding: 20px;
- flex: 0 0 auto;
- box-sizing: content-box;
- }
- #slCanvas {
- position: relative;
- width: 960px;
- height: 540px;
- transform-origin: 0 0;
- box-shadow: 0 3px 18px var(--of-paper-shadow);
- background: #fff;
- user-select: none;
- }
- #slCanvas.sl-drawmode { cursor: crosshair; }
- /* ---- Notes bar ---- */
- #slNotes {
- flex: 0 0 auto;
- border-top: 1px solid var(--of-border);
- background: var(--of-chrome-bg);
- }
- #slNotesHead {
- display: flex;
- align-items: center;
- gap: 6px;
- padding: 4px 12px;
- font-size: 12px;
- color: var(--of-fg-soft);
- cursor: pointer;
- user-select: none;
- }
- #slNotesHead:hover { color: var(--of-fg); }
- #slNotesHead i.icon { margin: 0 !important; font-size: 11px !important; transition: transform 0.15s ease; }
- #slNotes.collapsed #slNotesHead i.icon { transform: rotate(-90deg); }
- #slNotesText {
- display: block;
- width: 100%;
- box-sizing: border-box;
- height: 86px;
- resize: none;
- border: none;
- outline: none;
- padding: 4px 14px 10px 14px;
- background: transparent;
- color: var(--of-fg);
- font-family: inherit;
- font-size: 13px;
- line-height: 1.45;
- }
- #slNotes.collapsed #slNotesText { display: none; }
- /* ============ Slide surface & objects ============ */
- /* A slide carries a document font of its own rather than inheriting the
- app's UI font. Two reasons, and they are the same reason: a deck must
- not change shape depending on which OS the editor happens to run on,
- and the PDF export can only put text in the PDF *as text* when the
- font it was laid out in is one a PDF can show. Arial and Liberation
- Sans are metrically identical to each other and to PDF's Helvetica, so
- this stack resolves to the same metrics on Windows, macOS and Linux.
- Behind them come the fonts the suite ships (common/fonts/fonts.css),
- which is what carries everything Arial has no glyph for - CJK above
- all. The browser picks per character, and because those files travel
- with the app the exporter can embed the very bytes the screen was
- drawn with. Without them CJK would fall to whatever the machine has,
- and a system font cannot be embedded: the text could only reach the
- PDF as a picture of itself.
- Keep this list in step with OfficeFonts.FALLBACK (common/fonts.js).
- Text that states its own font (anything imported) overrides this, and
- goes through OfficeFonts.stack() so it gets the same tail. */
- .sl-slidebase, #slCanvas {
- font-family: Arial, "Liberation Sans", Helvetica, "Noto Sans",
- "Noto Sans TC", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", sans-serif;
- }
- .sl-slidebase {
- position: absolute;
- inset: 0;
- overflow: hidden;
- }
- #slSlideLayer { position: absolute; inset: 0; }
- #slOverlay {
- position: absolute;
- inset: 0;
- pointer-events: none;
- z-index: 600;
- }
- .sl-obj { position: absolute; box-sizing: border-box; }
- .sl-obj > svg { display: block; width: 100%; height: 100%; overflow: visible; }
- .sl-obj img { display: block; width: 100%; height: 100%; pointer-events: none; }
- /* A column flex box so a text object can be anchored to the top, middle or
- bottom of its frame the way PowerPoint anchors one - and so paragraph
- margins add up instead of collapsing, which is also what PowerPoint does
- with its space-before / space-after. */
- .sl-text-in {
- width: 100%;
- min-height: 100%;
- box-sizing: border-box;
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- outline: none;
- word-wrap: break-word;
- overflow-wrap: break-word;
- white-space: pre-wrap;
- line-height: 1.3;
- padding: 2px 4px;
- cursor: default;
- }
- /* imported paragraphs carry their own spacing; keep the browser from
- adding any of its own on top */
- .sl-text-in > div { margin: 0; }
- .sl-text-in ul, .sl-text-in ol {
- margin: 0;
- padding-left: 1.3em;
- white-space: normal;
- }
- .sl-text-in li { text-align: left; }
- /* picture frame: the wrapper clips a cropped, rounded or masked image */
- .sl-img-wrap {
- position: relative;
- width: 100%;
- height: 100%;
- overflow: hidden;
- }
- /* ---- image crop tool ----
- the whole picture is shown ghosted, with the part that will be kept
- drawn over it at full strength inside the crop rectangle */
- #slCrop { position: absolute; inset: 0; }
- /* the picture being cropped is drawn by the tool, not by the slide */
- .sl-obj.sl-cropping { visibility: hidden; }
- .sl-crop-ghost {
- position: absolute;
- overflow: hidden;
- opacity: 0.32;
- pointer-events: auto;
- cursor: move;
- }
- .sl-crop-ghost img { display: block; width: 100%; height: 100%; }
- /* no border here on purpose: it would sit inside the box and shift the
- kept part of the picture out of line with the ghost behind it. The
- black grips are what marks the edge, as in Slides/Docs. */
- .sl-crop-rect {
- position: absolute;
- overflow: hidden;
- box-sizing: border-box;
- pointer-events: auto;
- cursor: move;
- }
- .sl-crop-rect > img { position: absolute; display: block; }
- .sl-croph {
- position: absolute;
- background: #202124;
- box-sizing: border-box;
- pointer-events: auto;
- z-index: 620;
- }
- body.dark .sl-croph { background: #f1f3f4; }
- body.dark .sl-croph[data-ch="nw"], body.dark .sl-croph[data-ch="ne"],
- body.dark .sl-croph[data-ch="sw"], body.dark .sl-croph[data-ch="se"] {
- border-color: #f1f3f4 !important;
- }
- .sl-croph[data-ch="n"], .sl-croph[data-ch="s"] { cursor: ns-resize; }
- .sl-croph[data-ch="e"], .sl-croph[data-ch="w"] { cursor: ew-resize; }
- .sl-croph[data-ch="nw"], .sl-croph[data-ch="se"] { cursor: nwse-resize; }
- .sl-croph[data-ch="ne"], .sl-croph[data-ch="sw"] { cursor: nesw-resize; }
- .sl-editing, .sl-editing * { user-select: text !important; }
- /* table column / row resize bars (only present in table edit mode) */
- .sl-tbl-rz {
- position: absolute;
- z-index: 30;
- user-select: none !important;
- }
- .sl-tbl-rz-col { top: 0; bottom: 0; width: 7px; cursor: col-resize; }
- .sl-tbl-rz-row { left: 0; right: 0; height: 7px; cursor: row-resize; }
- .sl-tbl-rz:hover { background: var(--of-accent-soft); }
- .sl-editing .sl-text-in, .sl-editing .sl-shape-text { cursor: text; }
- .sl-obj.sl-editing { outline: 1px dashed var(--of-accent); }
- .sl-shape-rich {
- display: flex;
- flex-direction: column;
- align-items: stretch;
- text-align: inherit;
- }
- .sl-shape-rich > div { margin: 0; }
- .sl-shape-text {
- position: absolute;
- inset: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- text-align: center;
- padding: 6px 10px;
- box-sizing: border-box;
- outline: none;
- word-wrap: break-word;
- overflow-wrap: break-word;
- white-space: pre-wrap;
- line-height: 1.25;
- pointer-events: none;
- }
- .sl-editing .sl-shape-text { pointer-events: auto; }
- /* tables */
- table.sl-table {
- border-collapse: collapse;
- width: 100%;
- height: 100%;
- table-layout: fixed;
- background: transparent;
- }
- .sl-table td, .sl-table th {
- border: 1px solid rgba(128, 128, 128, 0.55);
- padding: 3px 8px;
- vertical-align: top;
- overflow: hidden;
- word-wrap: break-word;
- white-space: pre-wrap;
- font-weight: normal;
- text-align: left;
- outline: none;
- }
- .sl-table tr.sl-thead td {
- font-weight: 600;
- border-bottom-width: 2px;
- }
- /* chart */
- .sl-chart-box { width: 100%; height: 100%; overflow: hidden; }
- .sl-chart-box svg { display: block; width: 100%; height: 100%; }
- /* ============ Selection overlay ============ */
- .sl-frame {
- position: absolute;
- border: 1.5px solid var(--of-accent);
- box-sizing: border-box;
- pointer-events: none;
- }
- .sl-frame.sl-frame-line { border: none; }
- .sl-h {
- position: absolute;
- background: #ffffff;
- border: 1.5px solid var(--of-accent);
- border-radius: 50%;
- box-sizing: border-box;
- pointer-events: auto;
- z-index: 610;
- }
- body.dark .sl-h { background: #2b2d31; }
- .sl-h[data-h="n"], .sl-h[data-h="s"] { cursor: ns-resize; }
- .sl-h[data-h="e"], .sl-h[data-h="w"] { cursor: ew-resize; }
- .sl-h[data-h="nw"], .sl-h[data-h="se"] { cursor: nwse-resize; }
- .sl-h[data-h="ne"], .sl-h[data-h="sw"] { cursor: nesw-resize; }
- /* The rotate knob gets a cursor that says rotate. There is no keyword for
- it, so it is drawn here - a circular arrow with a white halo so it reads
- on a dark picture as well as on the page, with grab as the fallback for
- anything that will not take a custom cursor. .sl-rotating keeps it while
- the drag runs, because the pointer leaves the knob almost immediately. */
- .sl-h[data-h="rot"],
- #slCanvas.sl-rotating,
- #slCanvas.sl-rotating * {
- cursor: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3E%3Cg%20fill='none'%20stroke='%23fff'%20stroke-width='4'%20stroke-linejoin='round'%20stroke-linecap='round'%3E%3Cpath%20d='M7.05%2016.95A7%207%200%201%201%2016.95%2016.95'/%3E%3Cpath%20d='M13.98%2019.92L18.93%2018.93L14.97%2014.97Z'/%3E%3C/g%3E%3Cpath%20d='M7.05%2016.95A7%207%200%201%201%2016.95%2016.95'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'/%3E%3Cpath%20d='M13.98%2019.92L18.93%2018.93L14.97%2014.97Z'%20fill='%23000'/%3E%3C/svg%3E") 12 12, grab;
- }
- .sl-h[data-h="p1"], .sl-h[data-h="p2"] { cursor: move; }
- /* the adjustment handle: a callout's tip, a rounded corner - yellow and
- diamond-shaped, as in PowerPoint and Google Slides */
- .sl-h.sl-h-adj {
- background: #fbbc04;
- border-color: #8a6100;
- border-radius: 1px;
- transform: rotate(45deg);
- cursor: pointer;
- z-index: 611;
- }
- body.dark .sl-h.sl-h-adj { background: #fbbc04; }
- .sl-rot-stem {
- position: absolute;
- background: var(--of-accent);
- pointer-events: none;
- }
- /* guides + marquee */
- .sl-guide {
- position: absolute;
- background: #e8452c;
- display: none;
- pointer-events: none;
- z-index: 620;
- }
- #slGuideV { top: 0; bottom: 0; left: 480px; }
- #slGuideH { left: 0; right: 0; top: 270px; }
- #slMarquee {
- position: absolute;
- border: 1px dashed var(--of-accent);
- background: var(--of-accent-soft);
- display: none;
- pointer-events: none;
- z-index: 620;
- }
- /* ============ Ribbon extras ============ */
- .of-tinput.sl-num { width: 52px; text-align: center; }
- .of-tselect.sl-fontsel { width: 136px; }
- /* Slideshow, in the title bar: a split button in the app's colour */
- .sl-present-split { display: inline-flex; align-items: stretch; height: 30px; }
- .sl-present-btn, .sl-present-more {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- border: none;
- background: var(--of-accent);
- color: #fff;
- font: inherit;
- font-size: 13px;
- font-weight: 600;
- cursor: pointer;
- }
- .sl-present-btn { padding: 0 12px 0 10px; border-radius: 15px 0 0 15px; }
- .sl-present-more { padding: 0 9px 0 7px; border-radius: 0 15px 15px 0; border-left: 1px solid rgba(255, 255, 255, 0.35); }
- .sl-present-btn:hover, .sl-present-more:hover { filter: brightness(1.08); }
- .sl-present-btn i.icon, .sl-present-more i.icon { margin: 0 !important; font-size: 12px !important; }
- body.of-narrow .sl-present-btn span { display: none; }
- body.of-narrow .sl-present-btn { padding: 0 9px; }
- /* Design > Themes: a small slide in the theme's colours */
- .sl-themes .of-rb-gtile { padding: 3px; gap: 2px; }
- .sl-themeprev {
- position: relative;
- display: block;
- width: 100%;
- flex: 1 1 auto;
- border-radius: 2px;
- overflow: hidden;
- box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
- }
- .sl-themeprev-aa { position: absolute; left: 6px; top: 3px; font-size: 14px; font-weight: 600; line-height: 1.1; }
- .sl-themeprev-bar { position: absolute; left: 6px; bottom: 5px; width: 34%; height: 3px; border-radius: 2px; }
- .sl-themeprev-name { font-size: 10.5px; color: var(--of-fg-soft); white-space: nowrap; line-height: 1.1; }
- .of-rb-gpop .sl-themeprev { height: 44px; }
- .of-rb-gpop.sl-themes .of-rb-gtile { height: 64px; }
- /* Transitions / Animations: the effect pictured */
- .sl-effects .of-rb-gtile { gap: 3px; }
- .sl-effect-ic { width: 22px !important; height: 22px !important; }
- .sl-effect-name { font-size: 11px; white-space: nowrap; }
- /* status bar: Normal / Slide overview */
- .of-status-item[data-sid="views"] { margin-left: auto; }
- .sl-viewbtns { display: inline-flex; gap: 2px; }
- .sl-viewbtn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 26px;
- height: 20px;
- padding: 0;
- border: none;
- border-radius: 3px;
- background: transparent;
- color: var(--of-fg-soft);
- cursor: pointer;
- }
- .sl-viewbtn:hover { background: var(--of-hover); color: var(--of-fg); }
- .sl-viewbtn.active { background: var(--of-accent-soft); color: var(--of-accent); }
- .sl-viewbtn .of-ic { width: 15px; height: 15px; }
- /* the format painter is armed */
- #slCanvas.sl-painting, #slCanvas.sl-painting .sl-obj { cursor: copy !important; }
- /* Find and replace */
- .sl-findrep .ps-check { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--of-fg); }
- .sl-findrep .fr-msg { margin-top: 8px; min-height: 1.3em; }
- /* ============ Slide overview (View > Slide overview) ============ */
- #slOverview { display: none; }
- body.sl-overview-on #slRail,
- body.sl-overview-on #slMain,
- body.sl-overview-on #slFormatPanel { display: none !important; }
- body.sl-overview-on #slOverview {
- position: relative;
- display: flex;
- flex-direction: column;
- flex: 1 1 auto;
- min-width: 0;
- min-height: 0;
- background: var(--of-bg);
- }
- .sl-ov-grid {
- flex: 1 1 auto;
- min-height: 0;
- overflow-y: auto;
- display: grid;
- grid-template-columns: repeat(auto-fill, var(--sl-ov-w, 220px));
- grid-auto-rows: max-content;
- gap: 26px 30px;
- align-content: start;
- padding: 28px 36px 90px;
- }
- .sl-ov-card {
- position: relative;
- width: var(--sl-ov-w, 220px);
- outline: none;
- cursor: pointer;
- user-select: none;
- }
- .sl-ov-view {
- position: relative;
- width: 100%;
- aspect-ratio: 960 / 540;
- overflow: hidden;
- border-radius: 4px;
- background: #fff;
- box-shadow: 0 0 0 1px var(--of-border), 0 1px 3px var(--of-paper-shadow);
- transition: box-shadow 0.12s ease;
- }
- .sl-ov-card:hover .sl-ov-view { box-shadow: 0 0 0 1px var(--of-fg-soft), 0 2px 8px var(--of-paper-shadow); }
- .sl-ov-card.active .sl-ov-view { box-shadow: 0 0 0 3px var(--of-accent), 0 2px 8px var(--of-paper-shadow); }
- .sl-ov-card:focus-visible .sl-ov-view { box-shadow: 0 0 0 3px var(--of-accent), 0 0 0 6px var(--of-accent-soft); }
- .sl-ov-mini {
- position: absolute;
- left: 0;
- top: 0;
- width: 960px;
- height: 540px;
- transform: scale(var(--sl-ov-scale, 0.229));
- transform-origin: 0 0;
- pointer-events: none;
- }
- .sl-ov-meta {
- display: flex;
- align-items: center;
- gap: 6px;
- margin-top: 6px;
- color: var(--of-fg-soft);
- font-size: 12px;
- }
- .sl-ov-card.active .sl-ov-num { color: var(--of-accent); font-weight: 600; }
- .sl-ov-flag { display: inline-flex; opacity: 0.75; }
- .sl-ov-flag .of-ic { width: 13px; height: 13px; }
- .sl-ov-card.dragging { opacity: 0.4; }
- .sl-ov-card.drop-before::before,
- .sl-ov-card.drop-after::after {
- content: "";
- position: absolute;
- top: 0;
- width: 4px;
- height: calc(var(--sl-ov-w, 220px) * 0.5625);
- border-radius: 2px;
- background: var(--of-accent);
- }
- .sl-ov-card.drop-before::before { left: -17px; }
- .sl-ov-card.drop-after::after { right: -17px; }
- .sl-ov-add {
- width: var(--sl-ov-w, 220px);
- aspect-ratio: 960 / 540;
- border: 2px dashed var(--of-border);
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg-soft);
- font-size: 20px;
- cursor: pointer;
- }
- .sl-ov-add:hover { border-color: var(--of-accent); color: var(--of-accent); }
- .sl-ov-add i.icon { margin: 0; }
- /* the size control floats at the bottom, as in Google Slides */
- .sl-ov-zoom {
- position: absolute;
- left: 50%;
- bottom: 16px;
- transform: translateX(-50%);
- display: flex;
- align-items: center;
- gap: 2px;
- padding: 3px;
- border-radius: 20px;
- background: var(--of-chrome-bg);
- box-shadow: 0 2px 10px var(--of-shadow);
- }
- .sl-ov-zoom button {
- width: 32px;
- height: 30px;
- border: none;
- border-radius: 15px;
- background: transparent;
- color: var(--of-fg);
- cursor: pointer;
- }
- .sl-ov-zoom button:hover { background: var(--of-hover); }
- .sl-ov-zoom button i.icon { margin: 0; font-size: 12px; }
- .sl-ov-zoomic { display: inline-flex; padding: 0 4px; color: var(--of-fg-soft); }
- .sl-ov-zoomic .of-ic { width: 16px; height: 16px; }
- /* ============ Dialog helpers ============ */
- .sl-grid-table { border-collapse: collapse; }
- .sl-grid-table td { padding: 2px; }
- .sl-grid-table input {
- width: 92px;
- padding: 5px 7px;
- border: 1px solid var(--of-border);
- border-radius: 3px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- font-size: 12px;
- font-family: inherit;
- outline: none;
- box-sizing: border-box;
- }
- .sl-grid-table input:focus { border-color: var(--of-accent); }
- .sl-grid-tools { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
- .sl-grid-tools .of-btn { padding: 4px 10px; font-size: 12px; }
- .sl-dialog-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
- .sl-dialog-row > div { flex: 1 1 auto; }
- .sl-swatch-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
- /* theme picker swatches (Design dialog) */
- .sl-theme-grid { display: flex; flex-wrap: wrap; gap: 10px; }
- .sl-theme-card {
- width: 128px;
- cursor: pointer;
- border: 2px solid var(--of-border);
- border-radius: 6px;
- overflow: hidden;
- text-align: center;
- }
- .sl-theme-card.active { border-color: var(--of-accent); }
- .sl-theme-card .sl-theme-prev {
- height: 68px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 13px;
- font-weight: 600;
- }
- .sl-theme-card .sl-theme-name {
- font-size: 12px;
- padding: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- }
- /* ============ Present mode ============ */
- .slp-overlay {
- position: fixed;
- inset: 0;
- background: #000;
- z-index: 3000;
- overflow: hidden;
- cursor: default;
- }
- .slp-stage {
- position: absolute;
- left: 50%;
- top: 50%;
- width: 960px;
- height: 540px;
- transform-origin: center center;
- background: #fff;
- overflow: hidden;
- }
- .slp-hud {
- position: absolute;
- font-family: "Segoe UI", Arial, sans-serif;
- font-size: 15px;
- color: rgba(255, 255, 255, 0.55);
- background: rgba(0, 0, 0, 0.35);
- padding: 3px 10px;
- border-radius: 4px;
- user-select: none;
- z-index: 3010;
- }
- .slp-timer { top: 12px; right: 14px; font-variant-numeric: tabular-nums; }
- .slp-counter { bottom: 12px; right: 14px; }
- .slp-nav { bottom: 12px; left: 14px; padding: 0; background: transparent; }
- .slp-btn {
- border: none;
- background: rgba(0, 0, 0, 0.35);
- color: rgba(255, 255, 255, 0.7);
- width: 34px;
- height: 30px;
- border-radius: 4px;
- cursor: pointer;
- margin-right: 4px;
- }
- .slp-btn:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
- .slp-btn i.icon { margin: 0 !important; }
- /* laser pointer (L key) */
- .slp-laser {
- display: none;
- position: fixed;
- width: 16px;
- height: 16px;
- margin: -8px 0 0 -8px;
- border-radius: 50%;
- background: radial-gradient(circle, rgba(255, 60, 60, 0.95) 0%, rgba(255, 60, 60, 0.45) 55%, transparent 70%);
- box-shadow: 0 0 12px 4px rgba(255, 60, 60, 0.45);
- pointer-events: none;
- z-index: 3020;
- }
- /* slide entry transitions */
- @keyframes slpTrFade { from { opacity: 0; } to { opacity: 1; } }
- @keyframes slpTrSlide {
- from { opacity: 0; transform: translate(-40%, -50%) scale(var(--slp-sc, 1)); }
- to { opacity: 1; transform: translate(-50%, -50%) scale(var(--slp-sc, 1)); }
- }
- @keyframes slpTrZoom {
- from { opacity: 0; transform: translate(-50%, -50%) scale(calc(var(--slp-sc, 1) * 0.75)); }
- to { opacity: 1; transform: translate(-50%, -50%) scale(var(--slp-sc, 1)); }
- }
- .slp-stage.slp-tr-fade { animation: slpTrFade 0.45s ease both; }
- .slp-stage.slp-tr-slide { animation: slpTrSlide 0.45s ease both; }
- .slp-stage.slp-tr-zoom { animation: slpTrZoom 0.45s ease both; }
- /* object entrance animations (click-to-reveal) */
- @keyframes slpAnimFade { from { opacity: 0; } to { opacity: 1; } }
- @keyframes slpAnimSlide {
- from { opacity: 0; translate: -60px 0; }
- to { opacity: 1; translate: 0 0; }
- }
- @keyframes slpAnimZoom {
- from { opacity: 0; scale: 0.5; }
- to { opacity: 1; scale: 1; }
- }
- .slp-anim-fade { animation: slpAnimFade 0.4s ease both; }
- .slp-anim-slide { animation: slpAnimSlide 0.4s ease both; }
- .slp-anim-zoom { animation: slpAnimZoom 0.4s ease both; }
- /* embedded media: inert while editing / in thumbnails, live in present */
- .sl-media { display: block; width: 100%; height: 100%; }
- #slSlideLayer .sl-media,
- .sl-thumb-mini .sl-media,
- #slPrintArea .sl-media { pointer-events: none; }
- .sl-audio-box {
- display: flex;
- align-items: center;
- gap: 8px;
- width: 100%;
- height: 100%;
- background: rgba(127, 127, 127, 0.12);
- border-radius: 8px;
- padding: 6px 10px;
- box-sizing: border-box;
- }
- .sl-audio-box i.icon { color: var(--of-fg-soft); flex: 0 0 auto; }
- .sl-audio-box audio { flex: 1 1 auto; height: 36px; }
- .slp-end {
- position: absolute;
- inset: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- color: rgba(255, 255, 255, 0.6);
- font-size: 20px;
- font-family: "Segoe UI", Arial, sans-serif;
- z-index: 3005;
- }
- /* ============ Print ============ */
- /* Inline links inside slide text: Semantic UI's global anchor reset strips
- the underline and recolors, so restore the classic link look on every
- slide surface (editor layer, thumbnails, print pages, present stage,
- presenter popup - they all carry .sl-slidebase). */
- .sl-slidebase a[href] {
- color: #1a73e8;
- text-decoration: underline;
- cursor: pointer;
- }
- #slPrintArea { display: none; }
- @media print {
- #workspace { display: none !important; }
- #slPrintArea { display: block !important; }
- .sl-print-page {
- position: relative;
- width: 960px;
- height: 540px;
- overflow: hidden;
- page-break-after: always;
- break-inside: avoid;
- }
- }
- /* ============ Small screens ============ */
- @media (max-width: 700px) {
- #slRail { flex: 0 0 120px; width: 120px; }
- }
- /* Phone width: the slide on top and fitted to the width, the slides as a
- filmstrip underneath it, and the notes folded away until asked for. */
- body.of-narrow #workspace { flex-direction: column; }
- body.of-narrow #slMain { order: 1; flex: 1 1 auto; min-height: 0; }
- body.of-narrow #slRail {
- order: 2;
- flex: 0 0 auto;
- width: auto;
- height: 86px;
- border-right: none;
- border-top: 1px solid var(--of-border);
- }
- body.of-narrow #slThumbs {
- display: flex;
- flex-direction: row;
- gap: 8px;
- overflow-x: auto;
- overflow-y: hidden;
- padding: 8px 8px 6px;
- }
- body.of-narrow .sl-thumb { flex: 0 0 auto; width: 116px; margin: 0; }
- body.of-narrow .sl-thumb-num { display: none; }
- body.of-narrow #slCanvasWrap { padding: 10px; }
- body.of-narrow #slNotesText { height: 64px; }
- body.of-narrow #slFormatPanel {
- position: fixed;
- left: 0;
- right: 0;
- bottom: 0;
- max-height: 60vh;
- z-index: 900;
- }
- body.of-narrow .sl-ov-grid {
- gap: 16px 14px;
- padding: 14px 12px 80px;
- grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
- }
- body.of-narrow .sl-ov-card, body.of-narrow .sl-ov-add { width: 100%; }
- /* ============ Picture tools (slides_image.js) ============ */
- /* the floating picture bar reuses the text bar's chrome so the two feel
- like one family; only the label and the split crop control differ */
- .sl-imagebar-label {
- display: inline-flex;
- align-items: center;
- gap: 4px;
- padding: 0 6px 0 2px;
- font-size: 12px;
- color: var(--of-fg-soft);
- white-space: nowrap;
- }
- .sl-imagebar-label i.icon { margin: 0 !important; font-size: 12px !important; }
- .sl-imagebar .of-te-btn.active { background: var(--of-accent-soft); color: var(--of-accent); }
- /* crop + caret read as one split button */
- .sl-imagebar-crop { border-radius: 4px 0 0 4px !important; }
- .sl-imagebar-caret { width: 16px !important; border-radius: 0 4px 4px 0 !important; }
- .sl-imagebar-caret i.icon { font-size: 10px !important; }
- /* ---- crop shape grid ---- */
- /* ---- New slide layout picker ---- */
- /* Every layout as a preview of itself, at the scale the rail uses. The
- previews are real slides, rendered by renderSlideContent. */
- .sl-layoutpick {
- position: fixed;
- z-index: 1500;
- display: grid;
- grid-template-columns: repeat(3, 140px);
- gap: 4px;
- padding: 8px;
- max-height: calc(100vh - 90px);
- overflow-y: auto;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 6px;
- box-shadow: 0 6px 22px var(--of-shadow);
- user-select: none;
- }
- .sl-layoutpick-cell {
- display: block;
- padding: 6px;
- border: none;
- border-radius: 5px;
- background: transparent;
- color: var(--of-fg);
- font-family: inherit;
- font-size: 11.5px;
- text-align: center;
- cursor: pointer;
- }
- .sl-layoutpick-cell:hover { background: var(--of-hover); }
- .sl-layoutpick-view {
- position: relative;
- width: 128px;
- height: 72px;
- margin: 0 auto;
- overflow: hidden;
- border: 1px solid var(--of-border);
- border-radius: 3px;
- background: #fff;
- box-sizing: content-box;
- }
- .sl-layoutpick-cell:hover .sl-layoutpick-view { border-color: var(--of-accent); }
- .sl-layoutpick-mini {
- position: absolute;
- left: 0;
- top: 0;
- width: 960px;
- height: 540px;
- transform: scale(0.13333);
- transform-origin: 0 0;
- pointer-events: none;
- }
- .sl-layoutpick-label {
- margin-top: 5px;
- color: var(--of-fg-soft);
- line-height: 1.25;
- }
- /* Outline every box in a preview, or the layout is a few grey smudges and
- you cannot tell one from the next. The mini is the whole 960px slide
- scaled to 128, so the outline has to be stated at slide scale: 7px lands
- at about one. A mid grey rather than a theme colour, because what is
- behind it is the deck's own background, which may be light or dark. */
- .sl-layoutpick-mini .sl-obj {
- outline: 7px solid #b7bcc2;
- outline-offset: -3px;
- }
- /* ---- Insert > Shape picker ---- */
- /* Categories down the left, the shapes of the one in hand as icons on the
- right. Same chrome as the crop-shape grid above it, because they are the
- same act of choosing an outline. */
- .sl-shapepick {
- position: fixed;
- z-index: 1500;
- display: flex;
- align-items: stretch;
- padding: 5px;
- gap: 5px;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 6px;
- box-shadow: 0 6px 22px var(--of-shadow);
- user-select: none;
- }
- .sl-shapepick-cats {
- display: flex;
- flex-direction: column;
- gap: 2px;
- padding-right: 5px;
- border-right: 1px solid var(--of-border);
- }
- .sl-shapepick-cat {
- display: flex;
- align-items: center;
- gap: 7px;
- min-width: 132px;
- padding: 6px 8px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- font-family: inherit;
- font-size: 12.5px;
- text-align: left;
- cursor: pointer;
- }
- .sl-shapepick-cat i.icon { margin: 0 !important; font-size: 12px !important; opacity: 0.75; }
- .sl-shapepick-cat span { flex: 1 1 auto; }
- .sl-shapepick-cat .sl-shapepick-more { opacity: 0.4; }
- .sl-shapepick-cat:hover { background: var(--of-hover); }
- .sl-shapepick-cat.active { background: var(--of-accent-soft); color: var(--of-accent); }
- .sl-shapepick-grid {
- display: grid;
- grid-template-columns: repeat(10, 30px);
- grid-auto-rows: 30px;
- gap: 1px;
- max-height: 300px;
- overflow-y: auto;
- }
- .sl-shapepick-cell {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 30px;
- height: 30px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- cursor: pointer;
- }
- .sl-shapepick-cell:hover { background: var(--of-hover); color: var(--of-accent); }
- .sl-shapegrid {
- position: fixed;
- z-index: 1500;
- padding: 6px;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 6px;
- box-shadow: 0 6px 22px var(--of-shadow);
- user-select: none;
- }
- .sl-shapegrid-none {
- display: flex;
- align-items: center;
- gap: 8px;
- width: 100%;
- padding: 5px 8px;
- margin-bottom: 4px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- font-family: inherit;
- font-size: 12px;
- text-align: left;
- cursor: pointer;
- }
- .sl-shapegrid-cells {
- display: grid;
- grid-template-columns: repeat(6, 32px);
- gap: 2px;
- border-top: 1px solid var(--of-border);
- padding-top: 5px;
- }
- .sl-shapegrid-cell {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 32px;
- height: 32px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- cursor: pointer;
- }
- .sl-shapegrid-none:hover, .sl-shapegrid-cell:hover { background: var(--of-hover); }
- .sl-shapegrid-none.active, .sl-shapegrid-cell.active {
- background: var(--of-accent-soft);
- color: var(--of-accent);
- }
- /* ---- format side panel ---- */
- #slFormatPanel {
- flex: 0 0 268px;
- width: 268px;
- display: flex;
- flex-direction: column;
- overflow-y: auto;
- background: var(--of-chrome-bg);
- border-left: 1px solid var(--of-border);
- user-select: none;
- }
- .sl-fp-title {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 12px 12px 10px 14px;
- font-size: 14px;
- font-weight: 600;
- color: var(--of-fg);
- }
- .sl-fp-title i.icon { margin: 0 !important; color: var(--of-accent); }
- .sl-fp-title span { flex: 1 1 auto; }
- .sl-fp-close {
- border: none;
- background: transparent;
- color: var(--of-fg-soft);
- cursor: pointer;
- padding: 2px;
- border-radius: 4px;
- }
- .sl-fp-close:hover { background: var(--of-hover); color: var(--of-fg); }
- .sl-fp-close i.icon { margin: 0 !important; }
- .sl-fp-empty { padding: 10px 14px; color: var(--of-fg-soft); font-size: 12px; }
- .sl-fp-section { border-top: 1px solid var(--of-border); }
- .sl-fp-head {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 10px 14px;
- font-size: 13px;
- color: var(--of-fg);
- cursor: pointer;
- }
- .sl-fp-head:hover { background: var(--of-hover); }
- .sl-fp-head i.icon { margin: 0 !important; font-size: 11px !important; transition: transform 0.15s ease; }
- .sl-fp-section.closed .sl-fp-head i.icon { transform: rotate(-90deg); }
- .sl-fp-body { padding: 0 14px 12px 14px; }
- .sl-fp-section.closed .sl-fp-body { display: none; }
- .sl-fp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
- .sl-fp-field { margin-bottom: 8px; min-width: 0; }
- .sl-fp-field label {
- display: block;
- margin-bottom: 3px;
- font-size: 11px;
- color: var(--of-fg-soft);
- }
- .sl-fp-inputrow { display: flex; align-items: center; gap: 4px; }
- .sl-fp-num {
- flex: 1 1 auto;
- min-width: 0;
- height: 28px;
- padding: 0 6px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- font-family: inherit;
- font-size: 12px;
- outline: none;
- }
- .sl-fp-num:focus { border-color: var(--of-accent); }
- .sl-fp-unit { flex: 0 0 auto; font-size: 11px; color: var(--of-fg-soft); min-width: 26px; }
- .sl-fp-range { flex: 1 1 auto; min-width: 0; accent-color: var(--of-accent); }
- .sl-fp-check {
- display: flex;
- align-items: center;
- gap: 6px;
- margin: 2px 0 10px;
- font-size: 12px;
- color: var(--of-fg);
- cursor: pointer;
- }
- .sl-fp-iconbtn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 30px;
- height: 28px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- cursor: pointer;
- }
- .sl-fp-iconbtn:hover { background: var(--of-hover); }
- .sl-fp-iconbtn.active { background: var(--of-accent-soft); color: var(--of-accent); border-color: var(--of-accent); }
- .sl-fp-iconbtn i.icon { margin: 0 !important; font-size: 12px !important; }
- /* re-colour swatches: the picture itself seen through each filter, so the
- preview is literally the result */
- .sl-fp-swatches { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
- .sl-fp-swatch {
- display: block;
- padding: 0;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg-soft);
- cursor: pointer;
- overflow: hidden;
- }
- .sl-fp-swatch img {
- display: block;
- width: 100%;
- height: 42px;
- object-fit: cover;
- background: var(--of-chrome-bg2);
- }
- .sl-fp-swatch span {
- display: block;
- padding: 2px 3px 3px;
- font-size: 9px;
- line-height: 1.15;
- text-align: center;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .sl-fp-swatch:hover { border-color: var(--of-accent); }
- .sl-fp-swatch.active { border-color: var(--of-accent); box-shadow: 0 0 0 1px var(--of-accent); color: var(--of-accent); }
- /* ---- line menus (slides_lines.js): the toolbar glyphs and menu samples
- are SVG drawn in currentColor, so they follow the theme ---- */
- .sl-linebtn .sl-line-ico { display: block; }
- .of-mi-html .sl-line-ico { color: var(--of-fg); }
- .of-mi-html .sl-mi-text { font-size: 12px; color: var(--of-fg-soft); min-width: 32px; }
|