| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550 |
- /*
- ArozOS Office Suite - shared chrome stylesheet
- Used by Docs, Sheets and Slides. Provides the menubar, toolbar,
- statusbar, dialogs, toasts and context menus plus the light/dark
- theme variables.
- Theme: add class "dark" to <body> for dark mode.
- App accent: set data-officeapp="docs|sheets|slides" on <body>.
- */
- :root {
- --of-bg: #f4f5f7;
- --of-chrome-bg: #ffffff;
- --of-chrome-bg2: #f7f8f9;
- --of-fg: #202124;
- --of-fg-soft: #5f6368;
- --of-border: #d8dbe0;
- --of-shadow: rgba(30, 35, 40, 0.18);
- --of-accent: #2185d0;
- --of-accent-soft: rgba(33, 133, 208, 0.12);
- --of-danger: #d0342c;
- --of-paper: #ffffff;
- --of-paper-shadow: rgba(60, 64, 67, 0.25);
- --of-hover: rgba(60, 64, 67, 0.08);
- --of-active: rgba(60, 64, 67, 0.14);
- --of-scrollbar: #c3c7cc;
- --of-warn-bg: #fdf3d8;
- --of-warn-fg: #6b5210;
- --of-warn-border: #e5cf94;
- }
- body.dark {
- --of-bg: #1e1f22;
- --of-chrome-bg: #2b2d31;
- --of-chrome-bg2: #26282c;
- --of-fg: #e8eaed;
- --of-fg-soft: #9aa0a6;
- --of-border: #3f4247;
- --of-shadow: rgba(0, 0, 0, 0.55);
- --of-accent-soft: rgba(33, 133, 208, 0.22);
- --of-paper: #26282c;
- --of-paper-shadow: rgba(0, 0, 0, 0.5);
- --of-hover: rgba(232, 234, 237, 0.08);
- --of-active: rgba(232, 234, 237, 0.15);
- --of-scrollbar: #4d5157;
- --of-warn-bg: #3a3423;
- --of-warn-fg: #f0dda6;
- --of-warn-border: #5e5433;
- }
- /* Per-app accent colors */
- body[data-officeapp="docs"] { --of-accent: #2185d0; --of-accent-soft: rgba(33,133,208,.14); }
- body[data-officeapp="sheets"] { --of-accent: #1e9e40; --of-accent-soft: rgba(30,158,64,.14); }
- body[data-officeapp="slides"] { --of-accent: #e07b1f; --of-accent-soft: rgba(224,123,31,.16); }
- body.dark[data-officeapp="docs"] { --of-accent: #5aa9e6; }
- body.dark[data-officeapp="sheets"] { --of-accent: #4cc06a; }
- body.dark[data-officeapp="slides"] { --of-accent: #f29d4e; }
- html, body {
- margin: 0;
- padding: 0;
- height: 100%;
- }
- body.of-app {
- display: flex;
- flex-direction: column;
- overflow: hidden;
- background: var(--of-bg);
- color: var(--of-fg);
- font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
- font-size: 14px;
- -webkit-tap-highlight-color: transparent;
- }
- .of-app ::-webkit-scrollbar { width: 10px; height: 10px; }
- .of-app ::-webkit-scrollbar-thumb { background: var(--of-scrollbar); border-radius: 5px; }
- .of-app ::-webkit-scrollbar-track { background: transparent; }
- /* ============ Menubar ============ */
- .of-menubar {
- display: flex;
- align-items: center;
- gap: 2px;
- padding: 2px 8px;
- background: var(--of-chrome-bg);
- border-bottom: 1px solid var(--of-border);
- user-select: none;
- flex: 0 0 auto;
- position: relative;
- z-index: 900;
- }
- .of-menubar .of-appicon {
- width: 20px;
- height: 20px;
- margin-right: 6px;
- flex: 0 0 auto;
- }
- .of-menu {
- position: relative;
- padding: 4px 10px;
- border-radius: 4px;
- cursor: pointer;
- color: var(--of-fg);
- white-space: nowrap;
- }
- .of-menu:hover, .of-menu.open { background: var(--of-hover); }
- .of-menu.open { background: var(--of-active); }
- .of-menu-drop {
- display: none;
- position: absolute;
- min-width: 220px;
- max-height: calc(100vh - 60px);
- overflow-y: auto;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 6px;
- box-shadow: 0 4px 16px var(--of-shadow);
- padding: 4px;
- z-index: 950;
- }
- .of-menu-drop { top: 100%; left: 0; }
- .of-menu.open > .of-menu-drop { display: block; }
- .of-menu-item {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 6px 10px;
- border-radius: 4px;
- cursor: pointer;
- position: relative;
- color: var(--of-fg);
- white-space: nowrap;
- }
- .of-menu-item:hover { background: var(--of-hover); }
- .of-menu-item.disabled { opacity: 0.45; pointer-events: none; }
- .of-menu-item i.icon {
- width: 16px !important;
- margin: 0 !important;
- color: var(--of-fg-soft);
- font-size: 13px !important;
- /* the icon box is 1em tall; with the item's 20px line-height the
- glyph sat at the top of a taller line and showed below the label's
- middle. A 1em line keeps it inside the box the flex row centres. */
- line-height: 1;
- }
- .of-menu-item .of-mi-label { flex: 1 1 auto; }
- /* a menu entry shown as a picture of its choice (it.html): line samples */
- .of-menu-item .of-mi-html { display: flex; align-items: center; gap: 10px; min-height: 18px; }
- .of-menu-item .of-mi-key {
- color: var(--of-fg-soft);
- font-size: 12px;
- margin-left: 18px;
- }
- .of-menu-item .of-mi-check {
- width: 16px;
- text-align: center;
- color: var(--of-accent);
- font-weight: bold;
- }
- .of-menu-item.open { background: var(--of-hover); }
- .of-menu-sep {
- height: 1px;
- background: var(--of-border);
- margin: 4px 6px;
- }
- .of-menu-item.of-has-sub::after {
- content: "\203A";
- color: var(--of-fg-soft);
- margin-left: 6px;
- }
- .of-docname {
- margin-left: auto;
- padding: 3px 10px;
- font-size: 13px;
- color: var(--of-fg-soft);
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- max-width: 40%;
- }
- .of-docname .of-dirty-dot { color: var(--of-accent); font-weight: bold; }
- /* ============ Toolbar ============ */
- .of-toolbar {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- gap: 2px;
- padding: 4px 8px;
- background: var(--of-chrome-bg);
- border-bottom: 1px solid var(--of-border);
- flex: 0 0 auto;
- user-select: none;
- position: relative;
- z-index: 800;
- }
- .of-tbtn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- min-width: 28px;
- height: 28px;
- padding: 0 5px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- cursor: pointer;
- font-size: 13px;
- font-family: inherit;
- }
- .of-tbtn:hover { background: var(--of-hover); }
- .of-tbtn:active, .of-tbtn.active { background: var(--of-accent-soft); color: var(--of-accent); }
- .of-tbtn i.icon { margin: 0 !important; font-size: 14px !important; line-height: 1 !important; }
- .of-tbtn:disabled { opacity: 0.4; pointer-events: none; }
- .of-tsep {
- width: 1px;
- height: 20px;
- background: var(--of-border);
- margin: 0 5px;
- flex: 0 0 auto;
- }
- .of-tselect, .of-tinput {
- height: 28px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- font-size: 13px;
- font-family: inherit;
- padding: 0 6px;
- outline: none;
- }
- .of-tselect:focus, .of-tinput:focus { border-color: var(--of-accent); }
- .of-tcolor {
- width: 28px;
- height: 28px;
- padding: 2px;
- border: none;
- border-radius: 4px;
- background: transparent;
- cursor: pointer;
- }
- /* ============ Title bar (office.js buildMenubar) ============ */
- /* Quick access buttons, the File menu and the ribbon's tabs on one line,
- as in Office. It keeps .of-menubar, which the menu code keys off. */
- .of-titlebar {
- height: 40px;
- box-sizing: border-box;
- padding: 0 6px 0 10px;
- gap: 4px;
- border-bottom: none;
- }
- .of-titlebar .of-appicon { margin-right: 4px; }
- .of-qat { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
- .of-qbtn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 30px;
- height: 30px;
- padding: 0;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg-soft);
- cursor: pointer;
- flex: 0 0 auto;
- }
- .of-qbtn:hover { background: var(--of-hover); color: var(--of-fg); }
- .of-qbtn:disabled { opacity: 0.35; pointer-events: none; }
- .of-qbtn i.icon { margin: 0 !important; font-size: 14px !important; line-height: 1 !important; }
- .of-qatsep { height: 22px; margin: 0 6px 0 4px; }
- /* the tabs never shrink - ribbon.js fitStrip() tightens them or swaps
- them for the picker instead - and the document name gives way first */
- .of-tabstrip {
- display: flex;
- align-items: stretch;
- align-self: stretch;
- flex: 0 0 auto;
- }
- .of-titlebar .of-docname { flex: 0 1 auto; min-width: 0; }
- body.of-tb-tight .of-titlebar .of-rb-tab,
- body.of-tb-tight .of-titlebar .of-menu { padding: 0 7px; }
- body.of-tb-tight .of-autosave .of-rb-swlbl { display: none; }
- body.of-tb-pick .of-titlebar .of-rb-tab { display: none !important; }
- body.of-tb-pick .of-rb-tabpick { display: inline-flex; }
- .of-titlebar .of-menu,
- .of-rb-tab {
- position: relative;
- display: inline-flex;
- align-items: center;
- padding: 0 11px;
- margin: 5px 0;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- font: inherit;
- font-size: 14px;
- white-space: nowrap;
- cursor: pointer;
- flex: 0 0 auto;
- }
- .of-rb-tab:hover { background: var(--of-hover); }
- .of-rb-tab.active { color: var(--of-accent); font-weight: 600; }
- .of-rb-tab.active::after {
- content: "";
- position: absolute;
- left: 10px;
- right: 10px;
- bottom: -5px;
- height: 3px;
- border-radius: 3px 3px 0 0;
- background: var(--of-accent);
- }
- /* a contextual tab (Picture Format, Table, ...) wears the accent */
- .of-rb-tab.of-rb-ctx { color: var(--of-accent); }
- .of-rb-tab.of-rb-ctx::before {
- content: "";
- position: absolute;
- left: 4px;
- right: 4px;
- top: -5px;
- height: 3px;
- border-radius: 0 0 3px 3px;
- background: var(--of-accent-soft);
- }
- .of-rb-tabpick {
- display: none;
- align-items: center;
- gap: 4px;
- margin: 5px 0;
- padding: 0 10px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- font: inherit;
- font-size: 13.5px;
- font-weight: 600;
- cursor: pointer;
- white-space: nowrap;
- }
- .of-rb-tabpick i.icon { margin: 0 !important; font-size: 11px !important; color: var(--of-fg-soft); }
- .of-titleextras { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
- .of-titleextras:empty { display: none; }
- .of-rb-mintoggle i.icon { font-size: 12px !important; }
- /* the AutoSave switch (and any ribbon on/off option) */
- .of-rb-switch {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- height: 30px;
- padding: 0 6px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg-soft);
- font: inherit;
- font-size: 12.5px;
- cursor: pointer;
- flex: 0 0 auto;
- white-space: nowrap;
- }
- .of-rb-switch:hover { background: var(--of-hover); color: var(--of-fg); }
- .of-rb-sw {
- position: relative;
- width: 30px;
- height: 16px;
- border-radius: 8px;
- background: var(--of-scrollbar);
- transition: background 0.15s ease;
- flex: 0 0 auto;
- }
- .of-rb-knob {
- position: absolute;
- top: 2px;
- left: 2px;
- width: 12px;
- height: 12px;
- border-radius: 50%;
- background: #fff;
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
- transition: left 0.15s ease;
- }
- .of-rb-switch.on .of-rb-sw { background: var(--of-accent); }
- .of-rb-switch.on .of-rb-knob { left: 16px; }
- /* ============ Ribbon (common/ribbon.js) ============ */
- .of-toolbar.of-ribbon {
- display: block;
- padding: 4px 6px;
- border-bottom: 1px solid var(--of-border);
- box-shadow: inset 0 1px 0 var(--of-border);
- }
- .of-rb-panel {
- display: flex;
- align-items: stretch;
- flex-wrap: nowrap;
- overflow: hidden;
- min-height: 64px;
- }
- .of-rb-group {
- position: relative;
- display: flex;
- align-items: stretch;
- flex: 0 0 auto;
- padding: 0 7px;
- }
- .of-rb-group:first-child { padding-left: 2px; }
- .of-rb-group + .of-rb-group::before {
- content: "";
- position: absolute;
- left: 0;
- top: 6px;
- bottom: 6px;
- width: 1px;
- background: var(--of-border);
- }
- .of-rb-gbody { display: flex; align-items: center; gap: 4px; }
- .of-rb-rows {
- display: flex;
- flex-direction: column;
- justify-content: center;
- gap: 4px;
- }
- .of-rb-row { display: flex; align-items: center; gap: 2px; }
- .of-rb-stack {
- display: flex;
- flex-direction: column;
- justify-content: center;
- gap: 1px;
- }
- .of-rb-stack .of-rb-btn { justify-content: flex-start; height: 21px; }
- .of-rb-vsep {
- width: 1px;
- height: 18px;
- margin: 0 4px;
- background: var(--of-border);
- flex: 0 0 auto;
- }
- .of-ribbon .of-tselect, .of-ribbon .of-tinput, .of-rb-popup .of-tselect, .of-rb-popup .of-tinput { height: 27px; }
- .of-rb-btn.of-rb-withlabel { gap: 6px; padding: 0 7px; }
- .of-rb-lbl { font-size: 12.5px; white-space: nowrap; }
- .of-rb-txt { font-size: 12px; font-weight: 600; letter-spacing: -0.02em; }
- .of-rb-btn:disabled, .of-rb-big:disabled { opacity: 0.38; pointer-events: none; }
- .of-rb-dd { gap: 1px; padding: 0 3px 0 5px; }
- .of-tbtn .of-rb-caret, .of-rb-caretbtn i.icon {
- font-size: 9px !important;
- width: auto !important;
- opacity: 0.65;
- }
- .of-rb-split { display: inline-flex; align-items: stretch; flex: 0 0 auto; }
- .of-rb-split > .of-rb-btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
- .of-rb-caretbtn {
- min-width: 15px;
- width: 15px;
- padding: 0;
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- }
- .of-rb-split:hover > .of-rb-btn { background: var(--of-hover); }
- .of-rb-split:hover > .of-rb-btn:hover { background: var(--of-active); }
- /* colour button: the tool icon over a bar of the current colour */
- .of-rb-cface { flex-direction: column; gap: 1px; padding-top: 2px; }
- .of-rb-cface i.icon { font-size: 13px !important; height: auto; }
- /* the big form: the bar sits under the icon in the top half */
- .of-rb-bigcolor .of-rb-bigtop.of-rb-cface { flex-direction: column; justify-content: center; gap: 2px; padding-top: 3px; }
- .of-rb-bigcolor .of-rb-bigicon { height: 24px; }
- .of-rb-bigcolor .of-rb-cbar { width: 22px; }
- body.of-narrow .of-rb-bigcolor .of-rb-bigicon { height: auto; }
- body.of-narrow .of-rb-bigcolor .of-rb-cbar { width: 16px; }
- .of-rb-cbar {
- width: 16px;
- height: 4px;
- border-radius: 1px;
- pointer-events: none;
- }
- .of-rb-cbar.none {
- background: linear-gradient(to top left, transparent 42%, #d0342c 45%, #d0342c 55%, transparent 58%),
- var(--of-chrome-bg2) !important;
- outline: 1px solid var(--of-border);
- }
- /* big button: icon over label */
- .of-rb-big, .of-rb-gbtn {
- display: inline-flex;
- flex-direction: column;
- align-items: center;
- justify-content: flex-start;
- gap: 4px;
- min-width: 50px;
- height: 62px;
- padding: 7px 6px 2px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- font: inherit;
- cursor: pointer;
- flex: 0 0 auto;
- box-sizing: border-box;
- }
- .of-rb-big:hover, .of-rb-gbtn:hover, .of-rb-gbtn.open { background: var(--of-hover); }
- .of-rb-big.active { background: var(--of-accent-soft); color: var(--of-accent); }
- .of-rb-bigicon { display: flex; align-items: center; justify-content: center; height: 26px; }
- .of-rb-bigicon i.icon, .of-rb-gbtn > i.icon {
- margin: 0 !important;
- font-size: 21px !important;
- line-height: 1 !important;
- height: auto;
- color: var(--of-fg);
- }
- .of-rb-big.active .of-rb-bigicon i.icon { color: var(--of-accent); }
- .of-rb-bigicon svg { width: 24px; height: 24px; }
- .of-rb-biglbl, .of-rb-gbtnlbl {
- font-size: 12px;
- line-height: 1.2;
- white-space: nowrap;
- color: var(--of-fg);
- }
- .of-rb-biglbl i.icon, .of-rb-gbtnlbl i.icon { margin: 0 !important; font-size: 9px !important; opacity: 0.65; }
- /* a big split button: the icon half runs the command, the label half
- opens the menu - two buttons that light up separately */
- .of-rb-bigsplit {
- display: inline-flex;
- flex-direction: column;
- align-items: stretch;
- height: 62px;
- min-width: 50px;
- border-radius: 4px;
- flex: 0 0 auto;
- }
- .of-rb-bigtop, .of-rb-bigbot {
- display: flex;
- justify-content: center;
- border: none;
- background: transparent;
- color: var(--of-fg);
- font: inherit;
- cursor: pointer;
- padding: 0 6px;
- }
- .of-rb-bigtop { flex: 0 0 37px; align-items: center; padding-top: 5px; border-radius: 4px 4px 0 0; }
- .of-rb-bigbot {
- flex: 1 1 auto;
- align-items: flex-start;
- gap: 2px;
- padding-top: 2px;
- border-radius: 0 0 4px 4px;
- }
- .of-rb-bigbot i.icon { margin: 0 !important; font-size: 9px !important; opacity: 0.65; line-height: 15px; }
- .of-rb-bigsplit:hover { box-shadow: inset 0 0 0 1px var(--of-border); }
- .of-rb-bigtop:hover, .of-rb-bigbot:hover { background: var(--of-hover); }
- .of-rb-bigsplit.active .of-rb-bigtop { background: var(--of-accent-soft); color: var(--of-accent); }
- .of-rb-bigsplit.active .of-rb-bigicon i.icon { color: var(--of-accent); }
- .of-rb-bigtop:disabled, .of-rb-bigbot:disabled { opacity: 0.38; pointer-events: none; }
- /* a big split button with the caret under the label (Office's Paste) */
- .of-rb-caretbelow .of-rb-bigbot { flex-direction: column; align-items: center; gap: 0; padding-top: 1px; }
- .of-rb-caretbelow .of-rb-bigbot i.icon { line-height: 9px; height: 9px; }
- /* Home > Clipboard: a big Paste, then Cut / Copy / Format Painter as icons
- one under the other, and the dialog launcher in the corner */
- .of-rb-gbody { position: relative; }
- .of-rb-haslaunch > .of-rb-gbody, .of-rb-popup .of-rb-gbody:has(> .of-rb-launch) { padding-right: 12px; }
- .of-rb-launch {
- position: absolute;
- right: -5px;
- bottom: 0;
- display: flex;
- align-items: center;
- justify-content: center;
- width: 14px;
- height: 14px;
- padding: 0;
- border: none;
- border-radius: 2px;
- background: transparent;
- color: var(--of-fg-soft);
- cursor: pointer;
- }
- .of-rb-launch .of-ic { width: 10px; height: 10px; stroke-width: 2.2; }
- .of-rb-launch:hover { background: var(--of-active); color: var(--of-fg); }
- .of-rb-clipboard .of-rb-stack { gap: 0; align-items: flex-start; }
- .of-rb-clipboard .of-rb-stack .of-rb-btn { justify-content: center; min-width: 26px; padding: 0 4px; }
- .of-rb-clipboard .of-rb-stack .of-rb-btn .of-ic { width: 17px; height: 17px; stroke-width: 1.4; color: var(--of-fg-soft); }
- .of-rb-clipboard .of-rb-stack .of-rb-btn.active .of-ic { color: var(--of-accent); }
- .of-rb-clipboard .of-rb-split > .of-rb-btn:first-child { min-width: 24px; padding: 0 1px 0 4px; }
- .of-rb-clipboard .of-rb-caretbtn { min-width: 13px; width: 13px; }
- .of-rb-paste .of-rb-bigicon .of-ic { width: 30px; height: 30px; stroke-width: 1.3; }
- .of-ic .clipb { fill: var(--of-chrome-bg); stroke: #d48a1a; stroke-width: 1.6; }
- .of-ic .clipk { fill: var(--of-chrome-bg); }
- .of-ic .paper { fill: var(--of-chrome-bg); }
- body.dark .of-ic .clipb { stroke: #e9a647; }
- /* a group folded into a button of its own when room is short */
- .of-rb-gbtn { display: none; }
- .of-rb-collapsed > .of-rb-gbody { display: none; }
- .of-rb-collapsed > .of-rb-gbtn { display: inline-flex; }
- .of-rb-popup {
- position: fixed;
- z-index: 1450;
- padding: 6px 8px;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 6px;
- box-shadow: 0 6px 20px var(--of-shadow);
- user-select: none;
- }
- /* gallery: a row of previews and a button with every choice */
- .of-rb-gallery {
- display: flex;
- align-items: stretch;
- align-self: center;
- height: 58px;
- border: 1px solid var(--of-border);
- border-radius: 6px;
- background: var(--of-chrome-bg2);
- overflow: hidden;
- flex: 0 0 auto;
- }
- .of-rb-gitems { display: flex; gap: 4px; padding: 3px; }
- .of-rb-gtile {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 2px;
- height: 50px;
- padding: 2px 4px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg);
- color: var(--of-fg);
- font: inherit;
- font-size: 11.5px;
- overflow: hidden;
- cursor: pointer;
- box-sizing: border-box;
- flex: 0 0 auto;
- }
- .of-rb-gtile:hover { border-color: var(--of-fg-soft); }
- .of-rb-gtile.active {
- border-color: var(--of-accent);
- box-shadow: 0 0 0 1px var(--of-accent);
- background: var(--of-accent-soft);
- }
- .of-rb-gmore {
- width: 20px;
- padding: 0;
- border: none;
- border-left: 1px solid var(--of-border);
- background: transparent;
- color: var(--of-fg-soft);
- cursor: pointer;
- }
- .of-rb-gmore:hover { background: var(--of-hover); color: var(--of-fg); }
- .of-rb-gmore i.icon { margin: 0 !important; font-size: 10px !important; }
- .of-rb-gpop {
- position: fixed;
- z-index: 1460;
- display: flex;
- flex-wrap: wrap;
- gap: 6px;
- max-width: min(600px, 94vw);
- max-height: 70vh;
- overflow-y: auto;
- padding: 8px;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 6px;
- box-shadow: 0 6px 20px var(--of-shadow);
- user-select: none;
- }
- .of-rb-gextra {
- flex: 1 0 100%;
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 7px 8px;
- border: none;
- border-top: 1px solid var(--of-border);
- border-radius: 0;
- background: transparent;
- color: var(--of-fg);
- font: inherit;
- font-size: 13px;
- text-align: left;
- cursor: pointer;
- }
- .of-rb-gextra:hover { background: var(--of-hover); }
- .of-rb-gextra i.icon { margin: 0; color: var(--of-fg-soft); }
- /* drawn icons (common/icons.js): strokes in the text colour, accents in
- the app's colour */
- .of-ic {
- display: block;
- width: 16px;
- height: 16px;
- fill: none;
- stroke: currentColor;
- stroke-width: 1.6;
- stroke-linecap: round;
- stroke-linejoin: round;
- overflow: visible;
- flex: 0 0 auto;
- }
- .of-ic text { fill: currentColor; stroke: none; font-family: Arial, "Liberation Sans", sans-serif; }
- .of-ic .acc { fill: var(--of-accent); stroke: none; }
- .of-ic .accs { stroke: var(--of-accent); }
- .of-ic .acct { fill: var(--of-accent); }
- .of-ic .fillc { fill: currentColor; stroke: none; }
- /* a mark drawn on an accent fill (the arrow of a table insert) */
- .of-ic .onacc { stroke: #fff; stroke-width: 1.8; }
- /* a destructive command's cross */
- .of-ic .dels { stroke: var(--of-danger); stroke-width: 2.2; }
- .of-rb-bigicon .of-ic, .of-rb-gbtn > .of-ic { width: 26px; height: 26px; stroke-width: 1.4; }
- .of-qbtn .of-ic { width: 15px; height: 15px; }
- .of-menu-item .of-ic { width: 15px; height: 15px; color: var(--of-fg-soft); }
- /* an item's own drawn icon (it.svg) fills the column a font icon takes */
- .of-menu-item .of-ic.of-mi-ic { width: 16px; height: 16px; stroke-width: 1.5; }
- /* the "desktop only" / "phone only" switches on controls */
- [data-desktop="hide"] { display: none !important; }
- /* a minimized ribbon: tabs only; clicking one shows it over the document */
- body.of-rb-min .of-ribbon { display: none; }
- body.of-rb-min.of-rb-peek .of-ribbon {
- display: block;
- position: absolute;
- left: 0;
- right: 0;
- top: 40px;
- z-index: 880;
- box-shadow: 0 6px 16px var(--of-shadow);
- }
- /* ============ Foreign-format banner ============ */
- /* Sits between the toolbar and the workspace while the open document lives
- in a format that is not the app's own container (.docx, .pptx, .csv, ...).
- office.js builds and shows it; see updateForeignBanner(). */
- .of-fmtbanner {
- display: flex;
- align-items: center;
- gap: 10px;
- flex: 0 0 auto;
- padding: 7px 10px 7px 12px;
- background: var(--of-warn-bg);
- color: var(--of-warn-fg);
- border-bottom: 1px solid var(--of-warn-border);
- font-size: 13px;
- line-height: 1.35;
- }
- .of-fmtbanner > i.icon {
- flex: 0 0 auto;
- margin: 0;
- opacity: 0.85;
- }
- .of-fmtbanner .of-fmtbanner-msg {
- flex: 1 1 auto;
- min-width: 0;
- }
- .of-fmtbanner .of-fmtbanner-btn {
- flex: 0 0 auto;
- display: inline-flex;
- align-items: center;
- gap: 6px;
- padding: 4px 12px;
- border: 1px solid var(--of-warn-border);
- border-radius: 4px;
- background: var(--of-chrome-bg);
- color: var(--of-warn-fg);
- font: inherit;
- font-weight: 600;
- cursor: pointer;
- white-space: nowrap;
- }
- .of-fmtbanner .of-fmtbanner-btn:hover { background: var(--of-hover); }
- .of-fmtbanner .of-fmtbanner-btn i.icon { margin: 0; }
- .of-fmtbanner .of-fmtbanner-x {
- flex: 0 0 auto;
- width: 22px;
- height: 22px;
- padding: 0;
- border: none;
- border-radius: 3px;
- background: transparent;
- color: inherit;
- font-size: 17px;
- line-height: 1;
- opacity: 0.6;
- cursor: pointer;
- }
- .of-fmtbanner .of-fmtbanner-x:hover { background: var(--of-hover); opacity: 1; }
- /* ============ Workspace ============ */
- .of-workspace {
- flex: 1 1 auto;
- position: relative;
- overflow: auto;
- outline: none;
- }
- /* ============ Statusbar ============ */
- .of-statusbar {
- display: flex;
- align-items: center;
- gap: 14px;
- padding: 2px 10px;
- background: var(--of-chrome-bg);
- border-top: 1px solid var(--of-border);
- font-size: 12px;
- color: var(--of-fg-soft);
- user-select: none;
- flex: 0 0 auto;
- min-height: 24px;
- }
- .of-status-msg { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
- .of-status-msg.error { color: var(--of-danger); }
- .of-status-items { display: flex; gap: 14px; flex: 1 1 auto; overflow: hidden; }
- .of-status-zoom { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
- .of-status-zoom button {
- border: none;
- background: transparent;
- color: var(--of-fg-soft);
- cursor: pointer;
- width: 22px;
- height: 20px;
- border-radius: 3px;
- font-size: 13px;
- line-height: 1;
- }
- .of-status-zoom button:hover { background: var(--of-hover); color: var(--of-fg); }
- .of-status-zoom .of-zoom-val { min-width: 42px; text-align: center; cursor: pointer; }
- /* ============ Dialogs ============ */
- .of-dialog-overlay {
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.35);
- z-index: 1500;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .of-dialog {
- background: var(--of-chrome-bg);
- color: var(--of-fg);
- border-radius: 8px;
- box-shadow: 0 8px 32px var(--of-shadow);
- min-width: 320px;
- max-width: min(560px, 92vw);
- max-height: 86vh;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- }
- .of-dialog.wide { max-width: min(860px, 94vw); }
- .of-dialog-title {
- padding: 12px 16px;
- font-size: 15px;
- font-weight: 600;
- border-bottom: 1px solid var(--of-border);
- }
- .of-dialog-body {
- padding: 14px 16px;
- overflow-y: auto;
- flex: 1 1 auto;
- }
- .of-clip-pane { width: 360px; max-width: 100%; }
- .of-clip-hint { color: var(--of-fg-soft); font-size: 12.5px; margin-bottom: 8px; }
- .of-clip-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; }
- .of-clip-empty { padding: 22px 8px; text-align: center; color: var(--of-fg-soft); font-size: 13px; line-height: 1.5; }
- .of-clip-item {
- position: relative;
- display: flex;
- flex-direction: column;
- gap: 3px;
- padding: 7px 30px 7px 9px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- cursor: pointer;
- outline: none;
- }
- .of-clip-item:hover, .of-clip-item:focus { border-color: var(--of-accent); background: var(--of-hover); }
- .of-clip-app { font-size: 11px; color: var(--of-fg-soft); }
- .of-clip-prev {
- font-size: 13px;
- line-height: 1.35;
- color: var(--of-fg);
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 3;
- -webkit-box-orient: vertical;
- word-break: break-word;
- }
- .of-clip-prev img { display: block; max-width: 100%; max-height: 72px; object-fit: contain; }
- .of-clip-del {
- position: absolute;
- top: 5px;
- right: 4px;
- width: 22px;
- height: 22px;
- padding: 0;
- border: none;
- border-radius: 3px;
- background: transparent;
- color: var(--of-fg-soft);
- cursor: pointer;
- }
- .of-clip-del:hover { background: var(--of-active); color: var(--of-fg); }
- .of-clip-del i.icon { margin: 0; }
- .of-dialog-body label { display: block; margin: 8px 0 4px; color: var(--of-fg-soft); font-size: 13px; }
- .of-dim { color: var(--of-fg-soft); font-size: 12px; }
- .of-dialog-body input[type="text"], .of-dialog-body input[type="number"], .of-dialog-body select, .of-dialog-body textarea {
- width: 100%;
- box-sizing: border-box;
- padding: 7px 9px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- font-family: inherit;
- font-size: 13px;
- outline: none;
- }
- .of-dialog-body input:focus, .of-dialog-body select:focus, .of-dialog-body textarea:focus { border-color: var(--of-accent); }
- .of-dialog-actions {
- display: flex;
- justify-content: flex-end;
- gap: 8px;
- padding: 10px 16px;
- border-top: 1px solid var(--of-border);
- }
- .of-btn {
- padding: 7px 16px;
- border-radius: 4px;
- border: 1px solid var(--of-border);
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- cursor: pointer;
- font-size: 13px;
- font-family: inherit;
- }
- .of-btn:hover { background: var(--of-hover); }
- .of-btn.primary {
- background: var(--of-accent);
- border-color: var(--of-accent);
- color: #fff;
- }
- .of-btn.primary:hover { filter: brightness(1.08); }
- .of-btn.danger { color: var(--of-danger); }
- /* ============ Toast ============ */
- .of-toast-holder {
- position: fixed;
- bottom: 40px;
- left: 50%;
- transform: translateX(-50%);
- z-index: 1800;
- display: flex;
- flex-direction: column;
- gap: 6px;
- align-items: center;
- pointer-events: none;
- }
- .of-toast {
- background: var(--of-fg);
- color: var(--of-bg);
- padding: 8px 18px;
- border-radius: 6px;
- font-size: 13px;
- box-shadow: 0 4px 14px var(--of-shadow);
- opacity: 0;
- transition: opacity 0.18s ease;
- max-width: 80vw;
- }
- .of-toast.show { opacity: 0.95; }
- .of-toast.error { background: var(--of-danger); color: #fff; }
- /* ============ Context menu / floating submenus ============ */
- .of-context-menu {
- position: fixed;
- z-index: 1600;
- min-width: 190px;
- max-height: calc(100vh - 12px);
- overflow-y: auto;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 6px;
- box-shadow: 0 4px 16px var(--of-shadow);
- padding: 4px;
- user-select: none;
- }
- /* ============ Floating text-edit bar ============ */
- .of-textedit-bar {
- position: fixed;
- z-index: 1400;
- display: flex;
- align-items: center;
- gap: 3px;
- padding: 4px 6px;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 6px;
- box-shadow: 0 4px 16px var(--of-shadow);
- user-select: none;
- }
- .of-te-btn {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 26px;
- height: 26px;
- border: none;
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- cursor: pointer;
- }
- .of-te-btn:hover { background: var(--of-hover); }
- .of-te-btn i.icon { margin: 0 !important; font-size: 13px !important; }
- .of-te-font {
- height: 26px;
- max-width: 130px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- font-size: 12px;
- outline: none;
- }
- .of-te-size {
- width: 52px;
- height: 26px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- font-size: 12px;
- padding: 0 4px;
- outline: none;
- }
- .of-te-color {
- width: 26px;
- height: 26px;
- padding: 2px;
- border: none;
- border-radius: 4px;
- background: transparent;
- cursor: pointer;
- }
- .of-te-sep {
- width: 1px;
- height: 18px;
- background: var(--of-border);
- margin: 0 3px;
- }
- /* two-line layout: the bar stacks .of-te-row lines */
- .of-textedit-bar { flex-direction: column; align-items: stretch; }
- .of-te-row {
- display: flex;
- align-items: center;
- gap: 3px;
- }
- .of-te-row + .of-te-row { margin-top: 3px; }
- /* table tool section: divider line above the extra row */
- .of-te-hr {
- height: 1px;
- background: var(--of-border);
- margin: 4px 0 3px;
- }
- /* color buttons: tool icon with the current color as a bar underneath */
- .of-te-cbtn { flex-direction: column; gap: 1px; padding-top: 3px; }
- .of-te-cbtn i.icon { font-size: 11px !important; line-height: 1; height: auto; }
- .of-te-cbar {
- width: 16px;
- height: 3px;
- border-radius: 1px;
- background: #202124;
- pointer-events: none;
- }
- /* split colour control: swatch button (applies current) + caret (picker) */
- .of-te-split { display: inline-flex; align-items: stretch; }
- .of-te-split .of-te-cmain {
- border-top-right-radius: 0;
- border-bottom-right-radius: 0;
- }
- .of-te-ccaret {
- width: 13px;
- min-width: 13px;
- padding: 0;
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- border-left: 1px solid var(--of-border);
- color: var(--of-fg-soft);
- }
- .of-te-ccaret i.icon { font-size: 9px !important; }
- /* ============ Keyboard shortcuts help (hotkeys.js) ============ */
- .of-hk-help { max-height: 60vh; overflow-y: auto; }
- .of-hk-group {
- margin: 10px 0 4px;
- font-size: 11px;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- color: var(--of-fg-soft);
- }
- .of-hk-group:first-child { margin-top: 0; }
- .of-hk-table { width: 100%; border-collapse: collapse; }
- .of-hk-table td { padding: 3px 6px; font-size: 13px; }
- .of-hk-combo { width: 200px; white-space: nowrap; }
- .of-hk-combo kbd {
- display: inline-block;
- padding: 1px 6px;
- border: 1px solid var(--of-border);
- border-bottom-width: 2px;
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- font-family: inherit;
- font-size: 11.5px;
- }
- /* ============ Color picker (colorpicker.js) ============ */
- .of-cp-panel {
- position: fixed;
- z-index: 2100;
- width: 236px;
- padding: 10px;
- background: var(--of-chrome-bg);
- border: 1px solid var(--of-border);
- border-radius: 8px;
- box-shadow: 0 8px 28px var(--of-shadow);
- user-select: none;
- -webkit-user-select: none;
- }
- .of-cp-none {
- display: flex;
- align-items: center;
- gap: 8px;
- width: 100%;
- margin-bottom: 8px;
- padding: 5px 8px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- font-size: 12.5px;
- cursor: pointer;
- }
- .of-cp-none:hover { background: var(--of-hover); }
- .of-cp-none i.icon { margin: 0; color: var(--of-fg-soft); }
- .of-cp-label {
- margin: 8px 0 4px;
- font-size: 10.5px;
- letter-spacing: 0.08em;
- text-transform: uppercase;
- color: var(--of-fg-soft);
- }
- .of-cp-grid {
- display: grid;
- grid-template-columns: repeat(10, 1fr);
- gap: 2px;
- }
- .of-cp-cell {
- width: 19px;
- height: 19px;
- padding: 0;
- border: 1px solid rgba(128, 128, 128, 0.3);
- border-radius: 2px;
- cursor: pointer;
- position: relative;
- }
- .of-cp-cell:hover {
- transform: scale(1.18);
- box-shadow: 0 1px 5px var(--of-shadow);
- z-index: 1;
- }
- .of-cp-cell.sel {
- outline: 2px solid var(--of-accent);
- outline-offset: 1px;
- z-index: 1;
- }
- .of-cp-customrow {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: 2px;
- }
- .of-cp-add {
- display: inline-flex;
- align-items: center;
- justify-content: center;
- width: 19px;
- height: 19px;
- padding: 0;
- border: 1px dashed var(--of-fg-soft);
- border-radius: 2px;
- background: transparent;
- color: var(--of-fg-soft);
- font-size: 13px;
- line-height: 1;
- cursor: pointer;
- }
- .of-cp-add:hover { background: var(--of-hover); }
- .of-cp-add i.icon { margin: 0; font-size: 10px; }
- .of-cp-sv {
- position: relative;
- width: 100%;
- height: 130px;
- border-radius: 4px;
- cursor: crosshair;
- margin-bottom: 10px;
- touch-action: none;
- }
- .of-cp-hue {
- position: relative;
- width: 100%;
- height: 12px;
- border-radius: 6px;
- cursor: ew-resize;
- margin-bottom: 10px;
- touch-action: none;
- background: linear-gradient(to right,
- #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
- }
- .of-cp-dot {
- position: absolute;
- width: 12px;
- height: 12px;
- border: 2px solid #fff;
- border-radius: 50%;
- box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
- transform: translate(-50%, -50%);
- pointer-events: none;
- }
- .of-cp-hexrow { display: flex; align-items: center; gap: 6px; }
- .of-cp-preview {
- width: 26px;
- height: 26px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- flex: 0 0 auto;
- }
- .of-cp-hex {
- flex: 1;
- min-width: 0;
- padding: 4px 6px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg2);
- color: var(--of-fg);
- font-family: Consolas, monospace;
- font-size: 12.5px;
- }
- .of-cp-actions {
- display: flex;
- justify-content: flex-end;
- gap: 6px;
- margin-top: 10px;
- }
- .of-cp-btn {
- padding: 5px 14px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: transparent;
- color: var(--of-fg);
- font-size: 12.5px;
- cursor: pointer;
- }
- .of-cp-btn:hover { background: var(--of-hover); }
- .of-cp-btn.of-cp-ok {
- background: var(--of-accent);
- border-color: var(--of-accent);
- color: #fff;
- }
- /* toolbar swatch button (replaces <input type="color">) */
- .of-cp-swatchbtn {
- display: inline-flex;
- width: 28px;
- height: 26px;
- padding: 3px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- background: var(--of-chrome-bg);
- cursor: pointer;
- flex: 0 0 auto;
- }
- .of-cp-swatchbtn:hover { border-color: var(--of-fg-soft); }
- .of-cp-swatchbtn .of-cp-chip {
- flex: 1;
- border-radius: 2px;
- pointer-events: none;
- }
- /* "no color" state: gray field with a diagonal slash */
- .of-cp-swatchbtn .of-cp-chip.none {
- background:
- linear-gradient(to top left,
- transparent 44%, #d0342c 46%, #d0342c 54%, transparent 56%),
- var(--of-chrome-bg2);
- }
- /* ============ Drawing canvas (sketch.js) ============ */
- .of-sketch-bar {
- display: flex;
- flex-wrap: wrap;
- align-items: center;
- gap: 2px;
- margin-bottom: 8px;
- }
- .of-sketch-pens { display: flex; gap: 1px; }
- .of-sketch-bar .of-tbtn.active { background: var(--of-accent-soft); color: var(--of-accent); }
- .of-sketch-bar .of-tbtn:disabled { opacity: 0.35; }
- .of-dialog-body .of-sketch-bar .of-tselect { width: auto; height: 28px; padding: 0 6px; }
- .of-sketch-paper {
- position: relative;
- max-width: 100%;
- margin-bottom: 6px;
- border: 1px solid var(--of-border);
- border-radius: 4px;
- /* paper: drawings are made for white pages */
- background: #ffffff;
- background-image: radial-gradient(circle, rgba(60, 64, 67, 0.16) 1px, transparent 1.2px);
- background-size: 20px 20px;
- cursor: crosshair;
- touch-action: none;
- overflow: hidden;
- }
- .of-sketch-paper.erasing { cursor: cell; }
- .of-sketch-paper canvas { display: block; touch-action: none; }
- /* ============ Busy overlay ============ */
- /* OfficeApp.beginDrag: invisible, catches every pointer event of a drag */
- .of-drag-overlay {
- position: fixed;
- inset: 0;
- z-index: 3000;
- background: transparent;
- touch-action: none;
- user-select: none;
- }
- .of-busy-overlay {
- position: fixed;
- inset: 0;
- background: rgba(0, 0, 0, 0.3);
- z-index: 2000;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-direction: column;
- gap: 12px;
- color: #fff;
- }
- .of-busy-overlay .of-spinner {
- width: 34px;
- height: 34px;
- border: 3px solid rgba(255, 255, 255, 0.3);
- border-top-color: #fff;
- border-radius: 50%;
- animation: of-spin 0.8s linear infinite;
- }
- @keyframes of-spin { to { transform: rotate(360deg); } }
- /* ============ Save progress (closing a window) ============ */
- /* Holds the screen while a window that is about to close writes its file,
- with a bar that follows the upload, so a long save never looks frozen. */
- .of-saveprog-overlay {
- position: fixed;
- inset: 0;
- z-index: 2100;
- background: rgba(0, 0, 0, 0.32);
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 16px;
- }
- .of-saveprog {
- width: min(340px, 100%);
- padding: 16px 18px 18px;
- border-radius: 8px;
- border: 1px solid var(--of-border);
- background: var(--of-chrome-bg);
- color: var(--of-fg);
- box-shadow: 0 8px 28px var(--of-shadow);
- font-size: 13px;
- }
- .of-saveprog-title {
- font-weight: 600;
- margin-bottom: 10px;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .of-saveprog-bar {
- position: relative;
- height: 6px;
- border-radius: 3px;
- background: var(--of-border);
- overflow: hidden;
- }
- .of-saveprog-fill {
- height: 100%;
- width: 0;
- border-radius: 3px;
- background: var(--of-accent);
- transition: width 0.2s ease;
- }
- /* the server is writing: no more numbers to show, so the bar keeps moving */
- .of-saveprog-bar.busy::after {
- content: "";
- position: absolute;
- top: 0;
- bottom: 0;
- width: 30%;
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
- animation: of-saveprog-sweep 1.1s linear infinite;
- }
- @keyframes of-saveprog-sweep { from { left: -30%; } to { left: 100%; } }
- .of-saveprog-msg {
- margin-top: 8px;
- color: var(--of-fg-soft);
- min-height: 1.2em;
- }
- /* ============ Progress panel ============ */
- /* The non-blocking counterpart of the busy overlay: it sits in the corner
- of the editing area and leaves the document usable underneath. */
- .of-progress-panel {
- position: fixed;
- z-index: 1400;
- min-width: 210px;
- max-width: 280px;
- padding: 10px 12px 12px;
- border: 1px solid var(--of-border);
- border-radius: 6px;
- background: var(--of-chrome-bg);
- color: var(--of-fg);
- box-shadow: 0 4px 16px var(--of-shadow);
- font-size: 12.5px;
- }
- .of-progress-panel .of-pp-title {
- font-weight: 600;
- margin-bottom: 2px;
- }
- .of-progress-panel .of-pp-msg {
- color: var(--of-fg-soft);
- margin-bottom: 8px;
- min-height: 1.2em;
- }
- .of-progress-panel .of-pp-bar {
- height: 4px;
- border-radius: 2px;
- background: var(--of-border);
- overflow: hidden;
- }
- .of-progress-panel .of-pp-fill {
- height: 100%;
- width: 0;
- border-radius: 2px;
- background: var(--of-accent);
- transition: width 0.2s ease;
- }
- /* ============ Print ============ */
- @media print {
- .of-menubar, .of-toolbar, .of-statusbar, .of-noprint,
- .of-toast-holder, .of-dialog-overlay, .of-context-menu { display: none !important; }
- body.of-app { display: block; overflow: visible; background: #fff; }
- .of-workspace { overflow: visible; }
- }
- /* ============ Touch / small screens ============ */
- @media (max-width: 640px) {
- .of-docname { display: none; }
- .of-toolbar { overflow-x: auto; flex-wrap: nowrap; }
- .of-menu { padding: 6px 8px; }
- .of-statusbar { gap: 8px; padding: 2px 6px; }
- .of-status-msg { max-width: 45%; }
- .of-status-items { gap: 8px; }
- .of-fmtbanner { flex-wrap: wrap; font-size: 12.5px; }
- .of-dialog { min-width: 0; width: 94vw; }
- }
- /* Phone width (ribbon.js sets body.of-narrow): the simplified layout -
- one picker for the tabs, and the active tab as a single line of icons
- that scrolls sideways. Galleries and controls marked mobile:false are
- left out; desktop:false controls stand in for them. */
- body.of-narrow .of-titlebar { padding: 0 4px 0 6px; gap: 2px; }
- body.of-narrow .of-titlebar .of-rb-tab,
- body.of-narrow .of-autosave,
- body.of-narrow .of-qatsep,
- body.of-narrow .of-rb-mintoggle,
- body.of-narrow .of-docname { display: none !important; }
- body.of-narrow .of-rb-tabpick { display: inline-flex; }
- body.of-narrow .of-titlebar .of-menu { padding: 0 9px; }
- body.of-narrow .of-titleextras { margin-left: auto; }
- body.of-narrow .of-tabstrip { flex: 0 1 auto; }
- body.of-narrow.of-rb-min .of-ribbon { display: block; }
- body.of-narrow .of-toolbar.of-ribbon { padding: 3px 4px; }
- body.of-narrow .of-rb-panel {
- min-height: 0;
- overflow-x: auto;
- overflow-y: hidden;
- scrollbar-width: none;
- -webkit-overflow-scrolling: touch;
- }
- body.of-narrow .of-rb-panel::-webkit-scrollbar { display: none; }
- body.of-narrow .of-rb-gbody,
- body.of-narrow .of-rb-rows,
- body.of-narrow .of-rb-stack { flex-direction: row; align-items: center; gap: 2px; }
- body.of-narrow .of-rb-group { padding: 0 5px; }
- body.of-narrow .of-rb-group + .of-rb-group::before { top: 8px; bottom: 8px; }
- body.of-narrow .of-rb-stack .of-rb-btn { height: 34px; }
- body.of-narrow .of-rb-withlabel .of-rb-lbl { display: none; }
- body.of-narrow .of-rb-btn.of-rb-withlabel { padding: 0 5px; }
- body.of-narrow .of-rb-big {
- flex-direction: row;
- min-width: 34px;
- height: 34px;
- padding: 0 6px;
- gap: 2px;
- }
- body.of-narrow .of-rb-bigicon { height: auto; }
- body.of-narrow .of-rb-bigicon i.icon { font-size: 15px !important; }
- body.of-narrow .of-rb-bigicon svg { width: 18px; height: 18px; }
- body.of-narrow .of-rb-biglbl { font-size: 0; }
- body.of-narrow .of-rb-biglbl i.icon { font-size: 9px !important; }
- body.of-narrow .of-rb-bigsplit { flex-direction: row; height: 34px; min-width: 0; }
- body.of-narrow .of-rb-bigtop { flex: 0 0 auto; padding: 0 5px; }
- body.of-narrow .of-rb-bigbot { flex: 0 0 auto; align-items: center; padding: 0 4px; }
- body.of-narrow .of-rb-bigbot .of-rb-biglbl { display: none; }
- body.of-narrow .of-rb-collapsed > .of-rb-gbody { display: flex; }
- body.of-narrow .of-rb-collapsed > .of-rb-gbtn { display: none; }
- body.of-narrow .of-rb-launch { display: none; }
- body.of-narrow .of-rb-haslaunch > .of-rb-gbody { padding-right: 0; }
- body.of-narrow [data-mobile="hide"] { display: none !important; }
- body.of-narrow [data-desktop="hide"] { display: inline-flex !important; }
- body.of-narrow select[data-desktop="hide"] { display: inline-block !important; }
- body.of-narrow .of-tbtn { min-width: 32px; height: 34px; }
- body.of-narrow .of-rb-caretbtn { min-width: 16px; width: 16px; }
- body.of-narrow .of-ribbon .of-tselect { height: 32px; max-width: 120px; }
- @media (pointer: coarse) {
- .of-tbtn { min-width: 34px; height: 34px; }
- .of-menu-item { padding: 9px 10px; }
- .of-status-zoom button { width: 28px; height: 26px; }
- .of-rb-caretbtn { min-width: 18px; width: 18px; }
- .of-qbtn { width: 34px; height: 34px; }
- }
|