office.css 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550
  1. /*
  2. ArozOS Office Suite - shared chrome stylesheet
  3. Used by Docs, Sheets and Slides. Provides the menubar, toolbar,
  4. statusbar, dialogs, toasts and context menus plus the light/dark
  5. theme variables.
  6. Theme: add class "dark" to <body> for dark mode.
  7. App accent: set data-officeapp="docs|sheets|slides" on <body>.
  8. */
  9. :root {
  10. --of-bg: #f4f5f7;
  11. --of-chrome-bg: #ffffff;
  12. --of-chrome-bg2: #f7f8f9;
  13. --of-fg: #202124;
  14. --of-fg-soft: #5f6368;
  15. --of-border: #d8dbe0;
  16. --of-shadow: rgba(30, 35, 40, 0.18);
  17. --of-accent: #2185d0;
  18. --of-accent-soft: rgba(33, 133, 208, 0.12);
  19. --of-danger: #d0342c;
  20. --of-paper: #ffffff;
  21. --of-paper-shadow: rgba(60, 64, 67, 0.25);
  22. --of-hover: rgba(60, 64, 67, 0.08);
  23. --of-active: rgba(60, 64, 67, 0.14);
  24. --of-scrollbar: #c3c7cc;
  25. --of-warn-bg: #fdf3d8;
  26. --of-warn-fg: #6b5210;
  27. --of-warn-border: #e5cf94;
  28. }
  29. body.dark {
  30. --of-bg: #1e1f22;
  31. --of-chrome-bg: #2b2d31;
  32. --of-chrome-bg2: #26282c;
  33. --of-fg: #e8eaed;
  34. --of-fg-soft: #9aa0a6;
  35. --of-border: #3f4247;
  36. --of-shadow: rgba(0, 0, 0, 0.55);
  37. --of-accent-soft: rgba(33, 133, 208, 0.22);
  38. --of-paper: #26282c;
  39. --of-paper-shadow: rgba(0, 0, 0, 0.5);
  40. --of-hover: rgba(232, 234, 237, 0.08);
  41. --of-active: rgba(232, 234, 237, 0.15);
  42. --of-scrollbar: #4d5157;
  43. --of-warn-bg: #3a3423;
  44. --of-warn-fg: #f0dda6;
  45. --of-warn-border: #5e5433;
  46. }
  47. /* Per-app accent colors */
  48. body[data-officeapp="docs"] { --of-accent: #2185d0; --of-accent-soft: rgba(33,133,208,.14); }
  49. body[data-officeapp="sheets"] { --of-accent: #1e9e40; --of-accent-soft: rgba(30,158,64,.14); }
  50. body[data-officeapp="slides"] { --of-accent: #e07b1f; --of-accent-soft: rgba(224,123,31,.16); }
  51. body.dark[data-officeapp="docs"] { --of-accent: #5aa9e6; }
  52. body.dark[data-officeapp="sheets"] { --of-accent: #4cc06a; }
  53. body.dark[data-officeapp="slides"] { --of-accent: #f29d4e; }
  54. html, body {
  55. margin: 0;
  56. padding: 0;
  57. height: 100%;
  58. }
  59. body.of-app {
  60. display: flex;
  61. flex-direction: column;
  62. overflow: hidden;
  63. background: var(--of-bg);
  64. color: var(--of-fg);
  65. font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  66. font-size: 14px;
  67. -webkit-tap-highlight-color: transparent;
  68. }
  69. .of-app ::-webkit-scrollbar { width: 10px; height: 10px; }
  70. .of-app ::-webkit-scrollbar-thumb { background: var(--of-scrollbar); border-radius: 5px; }
  71. .of-app ::-webkit-scrollbar-track { background: transparent; }
  72. /* ============ Menubar ============ */
  73. .of-menubar {
  74. display: flex;
  75. align-items: center;
  76. gap: 2px;
  77. padding: 2px 8px;
  78. background: var(--of-chrome-bg);
  79. border-bottom: 1px solid var(--of-border);
  80. user-select: none;
  81. flex: 0 0 auto;
  82. position: relative;
  83. z-index: 900;
  84. }
  85. .of-menubar .of-appicon {
  86. width: 20px;
  87. height: 20px;
  88. margin-right: 6px;
  89. flex: 0 0 auto;
  90. }
  91. .of-menu {
  92. position: relative;
  93. padding: 4px 10px;
  94. border-radius: 4px;
  95. cursor: pointer;
  96. color: var(--of-fg);
  97. white-space: nowrap;
  98. }
  99. .of-menu:hover, .of-menu.open { background: var(--of-hover); }
  100. .of-menu.open { background: var(--of-active); }
  101. .of-menu-drop {
  102. display: none;
  103. position: absolute;
  104. min-width: 220px;
  105. max-height: calc(100vh - 60px);
  106. overflow-y: auto;
  107. background: var(--of-chrome-bg);
  108. border: 1px solid var(--of-border);
  109. border-radius: 6px;
  110. box-shadow: 0 4px 16px var(--of-shadow);
  111. padding: 4px;
  112. z-index: 950;
  113. }
  114. .of-menu-drop { top: 100%; left: 0; }
  115. .of-menu.open > .of-menu-drop { display: block; }
  116. .of-menu-item {
  117. display: flex;
  118. align-items: center;
  119. gap: 8px;
  120. padding: 6px 10px;
  121. border-radius: 4px;
  122. cursor: pointer;
  123. position: relative;
  124. color: var(--of-fg);
  125. white-space: nowrap;
  126. }
  127. .of-menu-item:hover { background: var(--of-hover); }
  128. .of-menu-item.disabled { opacity: 0.45; pointer-events: none; }
  129. .of-menu-item i.icon {
  130. width: 16px !important;
  131. margin: 0 !important;
  132. color: var(--of-fg-soft);
  133. font-size: 13px !important;
  134. /* the icon box is 1em tall; with the item's 20px line-height the
  135. glyph sat at the top of a taller line and showed below the label's
  136. middle. A 1em line keeps it inside the box the flex row centres. */
  137. line-height: 1;
  138. }
  139. .of-menu-item .of-mi-label { flex: 1 1 auto; }
  140. /* a menu entry shown as a picture of its choice (it.html): line samples */
  141. .of-menu-item .of-mi-html { display: flex; align-items: center; gap: 10px; min-height: 18px; }
  142. .of-menu-item .of-mi-key {
  143. color: var(--of-fg-soft);
  144. font-size: 12px;
  145. margin-left: 18px;
  146. }
  147. .of-menu-item .of-mi-check {
  148. width: 16px;
  149. text-align: center;
  150. color: var(--of-accent);
  151. font-weight: bold;
  152. }
  153. .of-menu-item.open { background: var(--of-hover); }
  154. .of-menu-sep {
  155. height: 1px;
  156. background: var(--of-border);
  157. margin: 4px 6px;
  158. }
  159. .of-menu-item.of-has-sub::after {
  160. content: "\203A";
  161. color: var(--of-fg-soft);
  162. margin-left: 6px;
  163. }
  164. .of-docname {
  165. margin-left: auto;
  166. padding: 3px 10px;
  167. font-size: 13px;
  168. color: var(--of-fg-soft);
  169. overflow: hidden;
  170. text-overflow: ellipsis;
  171. white-space: nowrap;
  172. max-width: 40%;
  173. }
  174. .of-docname .of-dirty-dot { color: var(--of-accent); font-weight: bold; }
  175. /* ============ Toolbar ============ */
  176. .of-toolbar {
  177. display: flex;
  178. align-items: center;
  179. flex-wrap: wrap;
  180. gap: 2px;
  181. padding: 4px 8px;
  182. background: var(--of-chrome-bg);
  183. border-bottom: 1px solid var(--of-border);
  184. flex: 0 0 auto;
  185. user-select: none;
  186. position: relative;
  187. z-index: 800;
  188. }
  189. .of-tbtn {
  190. display: inline-flex;
  191. align-items: center;
  192. justify-content: center;
  193. min-width: 28px;
  194. height: 28px;
  195. padding: 0 5px;
  196. border: none;
  197. border-radius: 4px;
  198. background: transparent;
  199. color: var(--of-fg);
  200. cursor: pointer;
  201. font-size: 13px;
  202. font-family: inherit;
  203. }
  204. .of-tbtn:hover { background: var(--of-hover); }
  205. .of-tbtn:active, .of-tbtn.active { background: var(--of-accent-soft); color: var(--of-accent); }
  206. .of-tbtn i.icon { margin: 0 !important; font-size: 14px !important; line-height: 1 !important; }
  207. .of-tbtn:disabled { opacity: 0.4; pointer-events: none; }
  208. .of-tsep {
  209. width: 1px;
  210. height: 20px;
  211. background: var(--of-border);
  212. margin: 0 5px;
  213. flex: 0 0 auto;
  214. }
  215. .of-tselect, .of-tinput {
  216. height: 28px;
  217. border: 1px solid var(--of-border);
  218. border-radius: 4px;
  219. background: var(--of-chrome-bg2);
  220. color: var(--of-fg);
  221. font-size: 13px;
  222. font-family: inherit;
  223. padding: 0 6px;
  224. outline: none;
  225. }
  226. .of-tselect:focus, .of-tinput:focus { border-color: var(--of-accent); }
  227. .of-tcolor {
  228. width: 28px;
  229. height: 28px;
  230. padding: 2px;
  231. border: none;
  232. border-radius: 4px;
  233. background: transparent;
  234. cursor: pointer;
  235. }
  236. /* ============ Title bar (office.js buildMenubar) ============ */
  237. /* Quick access buttons, the File menu and the ribbon's tabs on one line,
  238. as in Office. It keeps .of-menubar, which the menu code keys off. */
  239. .of-titlebar {
  240. height: 40px;
  241. box-sizing: border-box;
  242. padding: 0 6px 0 10px;
  243. gap: 4px;
  244. border-bottom: none;
  245. }
  246. .of-titlebar .of-appicon { margin-right: 4px; }
  247. .of-qat { display: flex; align-items: center; gap: 1px; flex: 0 0 auto; }
  248. .of-qbtn {
  249. display: inline-flex;
  250. align-items: center;
  251. justify-content: center;
  252. width: 30px;
  253. height: 30px;
  254. padding: 0;
  255. border: none;
  256. border-radius: 4px;
  257. background: transparent;
  258. color: var(--of-fg-soft);
  259. cursor: pointer;
  260. flex: 0 0 auto;
  261. }
  262. .of-qbtn:hover { background: var(--of-hover); color: var(--of-fg); }
  263. .of-qbtn:disabled { opacity: 0.35; pointer-events: none; }
  264. .of-qbtn i.icon { margin: 0 !important; font-size: 14px !important; line-height: 1 !important; }
  265. .of-qatsep { height: 22px; margin: 0 6px 0 4px; }
  266. /* the tabs never shrink - ribbon.js fitStrip() tightens them or swaps
  267. them for the picker instead - and the document name gives way first */
  268. .of-tabstrip {
  269. display: flex;
  270. align-items: stretch;
  271. align-self: stretch;
  272. flex: 0 0 auto;
  273. }
  274. .of-titlebar .of-docname { flex: 0 1 auto; min-width: 0; }
  275. body.of-tb-tight .of-titlebar .of-rb-tab,
  276. body.of-tb-tight .of-titlebar .of-menu { padding: 0 7px; }
  277. body.of-tb-tight .of-autosave .of-rb-swlbl { display: none; }
  278. body.of-tb-pick .of-titlebar .of-rb-tab { display: none !important; }
  279. body.of-tb-pick .of-rb-tabpick { display: inline-flex; }
  280. .of-titlebar .of-menu,
  281. .of-rb-tab {
  282. position: relative;
  283. display: inline-flex;
  284. align-items: center;
  285. padding: 0 11px;
  286. margin: 5px 0;
  287. border: none;
  288. border-radius: 4px;
  289. background: transparent;
  290. color: var(--of-fg);
  291. font: inherit;
  292. font-size: 14px;
  293. white-space: nowrap;
  294. cursor: pointer;
  295. flex: 0 0 auto;
  296. }
  297. .of-rb-tab:hover { background: var(--of-hover); }
  298. .of-rb-tab.active { color: var(--of-accent); font-weight: 600; }
  299. .of-rb-tab.active::after {
  300. content: "";
  301. position: absolute;
  302. left: 10px;
  303. right: 10px;
  304. bottom: -5px;
  305. height: 3px;
  306. border-radius: 3px 3px 0 0;
  307. background: var(--of-accent);
  308. }
  309. /* a contextual tab (Picture Format, Table, ...) wears the accent */
  310. .of-rb-tab.of-rb-ctx { color: var(--of-accent); }
  311. .of-rb-tab.of-rb-ctx::before {
  312. content: "";
  313. position: absolute;
  314. left: 4px;
  315. right: 4px;
  316. top: -5px;
  317. height: 3px;
  318. border-radius: 0 0 3px 3px;
  319. background: var(--of-accent-soft);
  320. }
  321. .of-rb-tabpick {
  322. display: none;
  323. align-items: center;
  324. gap: 4px;
  325. margin: 5px 0;
  326. padding: 0 10px;
  327. border: 1px solid var(--of-border);
  328. border-radius: 4px;
  329. background: var(--of-chrome-bg2);
  330. color: var(--of-fg);
  331. font: inherit;
  332. font-size: 13.5px;
  333. font-weight: 600;
  334. cursor: pointer;
  335. white-space: nowrap;
  336. }
  337. .of-rb-tabpick i.icon { margin: 0 !important; font-size: 11px !important; color: var(--of-fg-soft); }
  338. .of-titleextras { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
  339. .of-titleextras:empty { display: none; }
  340. .of-rb-mintoggle i.icon { font-size: 12px !important; }
  341. /* the AutoSave switch (and any ribbon on/off option) */
  342. .of-rb-switch {
  343. display: inline-flex;
  344. align-items: center;
  345. gap: 6px;
  346. height: 30px;
  347. padding: 0 6px;
  348. border: none;
  349. border-radius: 4px;
  350. background: transparent;
  351. color: var(--of-fg-soft);
  352. font: inherit;
  353. font-size: 12.5px;
  354. cursor: pointer;
  355. flex: 0 0 auto;
  356. white-space: nowrap;
  357. }
  358. .of-rb-switch:hover { background: var(--of-hover); color: var(--of-fg); }
  359. .of-rb-sw {
  360. position: relative;
  361. width: 30px;
  362. height: 16px;
  363. border-radius: 8px;
  364. background: var(--of-scrollbar);
  365. transition: background 0.15s ease;
  366. flex: 0 0 auto;
  367. }
  368. .of-rb-knob {
  369. position: absolute;
  370. top: 2px;
  371. left: 2px;
  372. width: 12px;
  373. height: 12px;
  374. border-radius: 50%;
  375. background: #fff;
  376. box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  377. transition: left 0.15s ease;
  378. }
  379. .of-rb-switch.on .of-rb-sw { background: var(--of-accent); }
  380. .of-rb-switch.on .of-rb-knob { left: 16px; }
  381. /* ============ Ribbon (common/ribbon.js) ============ */
  382. .of-toolbar.of-ribbon {
  383. display: block;
  384. padding: 4px 6px;
  385. border-bottom: 1px solid var(--of-border);
  386. box-shadow: inset 0 1px 0 var(--of-border);
  387. }
  388. .of-rb-panel {
  389. display: flex;
  390. align-items: stretch;
  391. flex-wrap: nowrap;
  392. overflow: hidden;
  393. min-height: 64px;
  394. }
  395. .of-rb-group {
  396. position: relative;
  397. display: flex;
  398. align-items: stretch;
  399. flex: 0 0 auto;
  400. padding: 0 7px;
  401. }
  402. .of-rb-group:first-child { padding-left: 2px; }
  403. .of-rb-group + .of-rb-group::before {
  404. content: "";
  405. position: absolute;
  406. left: 0;
  407. top: 6px;
  408. bottom: 6px;
  409. width: 1px;
  410. background: var(--of-border);
  411. }
  412. .of-rb-gbody { display: flex; align-items: center; gap: 4px; }
  413. .of-rb-rows {
  414. display: flex;
  415. flex-direction: column;
  416. justify-content: center;
  417. gap: 4px;
  418. }
  419. .of-rb-row { display: flex; align-items: center; gap: 2px; }
  420. .of-rb-stack {
  421. display: flex;
  422. flex-direction: column;
  423. justify-content: center;
  424. gap: 1px;
  425. }
  426. .of-rb-stack .of-rb-btn { justify-content: flex-start; height: 21px; }
  427. .of-rb-vsep {
  428. width: 1px;
  429. height: 18px;
  430. margin: 0 4px;
  431. background: var(--of-border);
  432. flex: 0 0 auto;
  433. }
  434. .of-ribbon .of-tselect, .of-ribbon .of-tinput, .of-rb-popup .of-tselect, .of-rb-popup .of-tinput { height: 27px; }
  435. .of-rb-btn.of-rb-withlabel { gap: 6px; padding: 0 7px; }
  436. .of-rb-lbl { font-size: 12.5px; white-space: nowrap; }
  437. .of-rb-txt { font-size: 12px; font-weight: 600; letter-spacing: -0.02em; }
  438. .of-rb-btn:disabled, .of-rb-big:disabled { opacity: 0.38; pointer-events: none; }
  439. .of-rb-dd { gap: 1px; padding: 0 3px 0 5px; }
  440. .of-tbtn .of-rb-caret, .of-rb-caretbtn i.icon {
  441. font-size: 9px !important;
  442. width: auto !important;
  443. opacity: 0.65;
  444. }
  445. .of-rb-split { display: inline-flex; align-items: stretch; flex: 0 0 auto; }
  446. .of-rb-split > .of-rb-btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
  447. .of-rb-caretbtn {
  448. min-width: 15px;
  449. width: 15px;
  450. padding: 0;
  451. border-top-left-radius: 0;
  452. border-bottom-left-radius: 0;
  453. }
  454. .of-rb-split:hover > .of-rb-btn { background: var(--of-hover); }
  455. .of-rb-split:hover > .of-rb-btn:hover { background: var(--of-active); }
  456. /* colour button: the tool icon over a bar of the current colour */
  457. .of-rb-cface { flex-direction: column; gap: 1px; padding-top: 2px; }
  458. .of-rb-cface i.icon { font-size: 13px !important; height: auto; }
  459. /* the big form: the bar sits under the icon in the top half */
  460. .of-rb-bigcolor .of-rb-bigtop.of-rb-cface { flex-direction: column; justify-content: center; gap: 2px; padding-top: 3px; }
  461. .of-rb-bigcolor .of-rb-bigicon { height: 24px; }
  462. .of-rb-bigcolor .of-rb-cbar { width: 22px; }
  463. body.of-narrow .of-rb-bigcolor .of-rb-bigicon { height: auto; }
  464. body.of-narrow .of-rb-bigcolor .of-rb-cbar { width: 16px; }
  465. .of-rb-cbar {
  466. width: 16px;
  467. height: 4px;
  468. border-radius: 1px;
  469. pointer-events: none;
  470. }
  471. .of-rb-cbar.none {
  472. background: linear-gradient(to top left, transparent 42%, #d0342c 45%, #d0342c 55%, transparent 58%),
  473. var(--of-chrome-bg2) !important;
  474. outline: 1px solid var(--of-border);
  475. }
  476. /* big button: icon over label */
  477. .of-rb-big, .of-rb-gbtn {
  478. display: inline-flex;
  479. flex-direction: column;
  480. align-items: center;
  481. justify-content: flex-start;
  482. gap: 4px;
  483. min-width: 50px;
  484. height: 62px;
  485. padding: 7px 6px 2px;
  486. border: none;
  487. border-radius: 4px;
  488. background: transparent;
  489. color: var(--of-fg);
  490. font: inherit;
  491. cursor: pointer;
  492. flex: 0 0 auto;
  493. box-sizing: border-box;
  494. }
  495. .of-rb-big:hover, .of-rb-gbtn:hover, .of-rb-gbtn.open { background: var(--of-hover); }
  496. .of-rb-big.active { background: var(--of-accent-soft); color: var(--of-accent); }
  497. .of-rb-bigicon { display: flex; align-items: center; justify-content: center; height: 26px; }
  498. .of-rb-bigicon i.icon, .of-rb-gbtn > i.icon {
  499. margin: 0 !important;
  500. font-size: 21px !important;
  501. line-height: 1 !important;
  502. height: auto;
  503. color: var(--of-fg);
  504. }
  505. .of-rb-big.active .of-rb-bigicon i.icon { color: var(--of-accent); }
  506. .of-rb-bigicon svg { width: 24px; height: 24px; }
  507. .of-rb-biglbl, .of-rb-gbtnlbl {
  508. font-size: 12px;
  509. line-height: 1.2;
  510. white-space: nowrap;
  511. color: var(--of-fg);
  512. }
  513. .of-rb-biglbl i.icon, .of-rb-gbtnlbl i.icon { margin: 0 !important; font-size: 9px !important; opacity: 0.65; }
  514. /* a big split button: the icon half runs the command, the label half
  515. opens the menu - two buttons that light up separately */
  516. .of-rb-bigsplit {
  517. display: inline-flex;
  518. flex-direction: column;
  519. align-items: stretch;
  520. height: 62px;
  521. min-width: 50px;
  522. border-radius: 4px;
  523. flex: 0 0 auto;
  524. }
  525. .of-rb-bigtop, .of-rb-bigbot {
  526. display: flex;
  527. justify-content: center;
  528. border: none;
  529. background: transparent;
  530. color: var(--of-fg);
  531. font: inherit;
  532. cursor: pointer;
  533. padding: 0 6px;
  534. }
  535. .of-rb-bigtop { flex: 0 0 37px; align-items: center; padding-top: 5px; border-radius: 4px 4px 0 0; }
  536. .of-rb-bigbot {
  537. flex: 1 1 auto;
  538. align-items: flex-start;
  539. gap: 2px;
  540. padding-top: 2px;
  541. border-radius: 0 0 4px 4px;
  542. }
  543. .of-rb-bigbot i.icon { margin: 0 !important; font-size: 9px !important; opacity: 0.65; line-height: 15px; }
  544. .of-rb-bigsplit:hover { box-shadow: inset 0 0 0 1px var(--of-border); }
  545. .of-rb-bigtop:hover, .of-rb-bigbot:hover { background: var(--of-hover); }
  546. .of-rb-bigsplit.active .of-rb-bigtop { background: var(--of-accent-soft); color: var(--of-accent); }
  547. .of-rb-bigsplit.active .of-rb-bigicon i.icon { color: var(--of-accent); }
  548. .of-rb-bigtop:disabled, .of-rb-bigbot:disabled { opacity: 0.38; pointer-events: none; }
  549. /* a big split button with the caret under the label (Office's Paste) */
  550. .of-rb-caretbelow .of-rb-bigbot { flex-direction: column; align-items: center; gap: 0; padding-top: 1px; }
  551. .of-rb-caretbelow .of-rb-bigbot i.icon { line-height: 9px; height: 9px; }
  552. /* Home > Clipboard: a big Paste, then Cut / Copy / Format Painter as icons
  553. one under the other, and the dialog launcher in the corner */
  554. .of-rb-gbody { position: relative; }
  555. .of-rb-haslaunch > .of-rb-gbody, .of-rb-popup .of-rb-gbody:has(> .of-rb-launch) { padding-right: 12px; }
  556. .of-rb-launch {
  557. position: absolute;
  558. right: -5px;
  559. bottom: 0;
  560. display: flex;
  561. align-items: center;
  562. justify-content: center;
  563. width: 14px;
  564. height: 14px;
  565. padding: 0;
  566. border: none;
  567. border-radius: 2px;
  568. background: transparent;
  569. color: var(--of-fg-soft);
  570. cursor: pointer;
  571. }
  572. .of-rb-launch .of-ic { width: 10px; height: 10px; stroke-width: 2.2; }
  573. .of-rb-launch:hover { background: var(--of-active); color: var(--of-fg); }
  574. .of-rb-clipboard .of-rb-stack { gap: 0; align-items: flex-start; }
  575. .of-rb-clipboard .of-rb-stack .of-rb-btn { justify-content: center; min-width: 26px; padding: 0 4px; }
  576. .of-rb-clipboard .of-rb-stack .of-rb-btn .of-ic { width: 17px; height: 17px; stroke-width: 1.4; color: var(--of-fg-soft); }
  577. .of-rb-clipboard .of-rb-stack .of-rb-btn.active .of-ic { color: var(--of-accent); }
  578. .of-rb-clipboard .of-rb-split > .of-rb-btn:first-child { min-width: 24px; padding: 0 1px 0 4px; }
  579. .of-rb-clipboard .of-rb-caretbtn { min-width: 13px; width: 13px; }
  580. .of-rb-paste .of-rb-bigicon .of-ic { width: 30px; height: 30px; stroke-width: 1.3; }
  581. .of-ic .clipb { fill: var(--of-chrome-bg); stroke: #d48a1a; stroke-width: 1.6; }
  582. .of-ic .clipk { fill: var(--of-chrome-bg); }
  583. .of-ic .paper { fill: var(--of-chrome-bg); }
  584. body.dark .of-ic .clipb { stroke: #e9a647; }
  585. /* a group folded into a button of its own when room is short */
  586. .of-rb-gbtn { display: none; }
  587. .of-rb-collapsed > .of-rb-gbody { display: none; }
  588. .of-rb-collapsed > .of-rb-gbtn { display: inline-flex; }
  589. .of-rb-popup {
  590. position: fixed;
  591. z-index: 1450;
  592. padding: 6px 8px;
  593. background: var(--of-chrome-bg);
  594. border: 1px solid var(--of-border);
  595. border-radius: 6px;
  596. box-shadow: 0 6px 20px var(--of-shadow);
  597. user-select: none;
  598. }
  599. /* gallery: a row of previews and a button with every choice */
  600. .of-rb-gallery {
  601. display: flex;
  602. align-items: stretch;
  603. align-self: center;
  604. height: 58px;
  605. border: 1px solid var(--of-border);
  606. border-radius: 6px;
  607. background: var(--of-chrome-bg2);
  608. overflow: hidden;
  609. flex: 0 0 auto;
  610. }
  611. .of-rb-gitems { display: flex; gap: 4px; padding: 3px; }
  612. .of-rb-gtile {
  613. display: flex;
  614. flex-direction: column;
  615. align-items: center;
  616. justify-content: center;
  617. gap: 2px;
  618. height: 50px;
  619. padding: 2px 4px;
  620. border: 1px solid var(--of-border);
  621. border-radius: 4px;
  622. background: var(--of-chrome-bg);
  623. color: var(--of-fg);
  624. font: inherit;
  625. font-size: 11.5px;
  626. overflow: hidden;
  627. cursor: pointer;
  628. box-sizing: border-box;
  629. flex: 0 0 auto;
  630. }
  631. .of-rb-gtile:hover { border-color: var(--of-fg-soft); }
  632. .of-rb-gtile.active {
  633. border-color: var(--of-accent);
  634. box-shadow: 0 0 0 1px var(--of-accent);
  635. background: var(--of-accent-soft);
  636. }
  637. .of-rb-gmore {
  638. width: 20px;
  639. padding: 0;
  640. border: none;
  641. border-left: 1px solid var(--of-border);
  642. background: transparent;
  643. color: var(--of-fg-soft);
  644. cursor: pointer;
  645. }
  646. .of-rb-gmore:hover { background: var(--of-hover); color: var(--of-fg); }
  647. .of-rb-gmore i.icon { margin: 0 !important; font-size: 10px !important; }
  648. .of-rb-gpop {
  649. position: fixed;
  650. z-index: 1460;
  651. display: flex;
  652. flex-wrap: wrap;
  653. gap: 6px;
  654. max-width: min(600px, 94vw);
  655. max-height: 70vh;
  656. overflow-y: auto;
  657. padding: 8px;
  658. background: var(--of-chrome-bg);
  659. border: 1px solid var(--of-border);
  660. border-radius: 6px;
  661. box-shadow: 0 6px 20px var(--of-shadow);
  662. user-select: none;
  663. }
  664. .of-rb-gextra {
  665. flex: 1 0 100%;
  666. display: flex;
  667. align-items: center;
  668. gap: 8px;
  669. padding: 7px 8px;
  670. border: none;
  671. border-top: 1px solid var(--of-border);
  672. border-radius: 0;
  673. background: transparent;
  674. color: var(--of-fg);
  675. font: inherit;
  676. font-size: 13px;
  677. text-align: left;
  678. cursor: pointer;
  679. }
  680. .of-rb-gextra:hover { background: var(--of-hover); }
  681. .of-rb-gextra i.icon { margin: 0; color: var(--of-fg-soft); }
  682. /* drawn icons (common/icons.js): strokes in the text colour, accents in
  683. the app's colour */
  684. .of-ic {
  685. display: block;
  686. width: 16px;
  687. height: 16px;
  688. fill: none;
  689. stroke: currentColor;
  690. stroke-width: 1.6;
  691. stroke-linecap: round;
  692. stroke-linejoin: round;
  693. overflow: visible;
  694. flex: 0 0 auto;
  695. }
  696. .of-ic text { fill: currentColor; stroke: none; font-family: Arial, "Liberation Sans", sans-serif; }
  697. .of-ic .acc { fill: var(--of-accent); stroke: none; }
  698. .of-ic .accs { stroke: var(--of-accent); }
  699. .of-ic .acct { fill: var(--of-accent); }
  700. .of-ic .fillc { fill: currentColor; stroke: none; }
  701. /* a mark drawn on an accent fill (the arrow of a table insert) */
  702. .of-ic .onacc { stroke: #fff; stroke-width: 1.8; }
  703. /* a destructive command's cross */
  704. .of-ic .dels { stroke: var(--of-danger); stroke-width: 2.2; }
  705. .of-rb-bigicon .of-ic, .of-rb-gbtn > .of-ic { width: 26px; height: 26px; stroke-width: 1.4; }
  706. .of-qbtn .of-ic { width: 15px; height: 15px; }
  707. .of-menu-item .of-ic { width: 15px; height: 15px; color: var(--of-fg-soft); }
  708. /* an item's own drawn icon (it.svg) fills the column a font icon takes */
  709. .of-menu-item .of-ic.of-mi-ic { width: 16px; height: 16px; stroke-width: 1.5; }
  710. /* the "desktop only" / "phone only" switches on controls */
  711. [data-desktop="hide"] { display: none !important; }
  712. /* a minimized ribbon: tabs only; clicking one shows it over the document */
  713. body.of-rb-min .of-ribbon { display: none; }
  714. body.of-rb-min.of-rb-peek .of-ribbon {
  715. display: block;
  716. position: absolute;
  717. left: 0;
  718. right: 0;
  719. top: 40px;
  720. z-index: 880;
  721. box-shadow: 0 6px 16px var(--of-shadow);
  722. }
  723. /* ============ Foreign-format banner ============ */
  724. /* Sits between the toolbar and the workspace while the open document lives
  725. in a format that is not the app's own container (.docx, .pptx, .csv, ...).
  726. office.js builds and shows it; see updateForeignBanner(). */
  727. .of-fmtbanner {
  728. display: flex;
  729. align-items: center;
  730. gap: 10px;
  731. flex: 0 0 auto;
  732. padding: 7px 10px 7px 12px;
  733. background: var(--of-warn-bg);
  734. color: var(--of-warn-fg);
  735. border-bottom: 1px solid var(--of-warn-border);
  736. font-size: 13px;
  737. line-height: 1.35;
  738. }
  739. .of-fmtbanner > i.icon {
  740. flex: 0 0 auto;
  741. margin: 0;
  742. opacity: 0.85;
  743. }
  744. .of-fmtbanner .of-fmtbanner-msg {
  745. flex: 1 1 auto;
  746. min-width: 0;
  747. }
  748. .of-fmtbanner .of-fmtbanner-btn {
  749. flex: 0 0 auto;
  750. display: inline-flex;
  751. align-items: center;
  752. gap: 6px;
  753. padding: 4px 12px;
  754. border: 1px solid var(--of-warn-border);
  755. border-radius: 4px;
  756. background: var(--of-chrome-bg);
  757. color: var(--of-warn-fg);
  758. font: inherit;
  759. font-weight: 600;
  760. cursor: pointer;
  761. white-space: nowrap;
  762. }
  763. .of-fmtbanner .of-fmtbanner-btn:hover { background: var(--of-hover); }
  764. .of-fmtbanner .of-fmtbanner-btn i.icon { margin: 0; }
  765. .of-fmtbanner .of-fmtbanner-x {
  766. flex: 0 0 auto;
  767. width: 22px;
  768. height: 22px;
  769. padding: 0;
  770. border: none;
  771. border-radius: 3px;
  772. background: transparent;
  773. color: inherit;
  774. font-size: 17px;
  775. line-height: 1;
  776. opacity: 0.6;
  777. cursor: pointer;
  778. }
  779. .of-fmtbanner .of-fmtbanner-x:hover { background: var(--of-hover); opacity: 1; }
  780. /* ============ Workspace ============ */
  781. .of-workspace {
  782. flex: 1 1 auto;
  783. position: relative;
  784. overflow: auto;
  785. outline: none;
  786. }
  787. /* ============ Statusbar ============ */
  788. .of-statusbar {
  789. display: flex;
  790. align-items: center;
  791. gap: 14px;
  792. padding: 2px 10px;
  793. background: var(--of-chrome-bg);
  794. border-top: 1px solid var(--of-border);
  795. font-size: 12px;
  796. color: var(--of-fg-soft);
  797. user-select: none;
  798. flex: 0 0 auto;
  799. min-height: 24px;
  800. }
  801. .of-status-msg { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  802. .of-status-msg.error { color: var(--of-danger); }
  803. .of-status-items { display: flex; gap: 14px; flex: 1 1 auto; overflow: hidden; }
  804. .of-status-zoom { display: flex; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; }
  805. .of-status-zoom button {
  806. border: none;
  807. background: transparent;
  808. color: var(--of-fg-soft);
  809. cursor: pointer;
  810. width: 22px;
  811. height: 20px;
  812. border-radius: 3px;
  813. font-size: 13px;
  814. line-height: 1;
  815. }
  816. .of-status-zoom button:hover { background: var(--of-hover); color: var(--of-fg); }
  817. .of-status-zoom .of-zoom-val { min-width: 42px; text-align: center; cursor: pointer; }
  818. /* ============ Dialogs ============ */
  819. .of-dialog-overlay {
  820. position: fixed;
  821. inset: 0;
  822. background: rgba(0, 0, 0, 0.35);
  823. z-index: 1500;
  824. display: flex;
  825. align-items: center;
  826. justify-content: center;
  827. }
  828. .of-dialog {
  829. background: var(--of-chrome-bg);
  830. color: var(--of-fg);
  831. border-radius: 8px;
  832. box-shadow: 0 8px 32px var(--of-shadow);
  833. min-width: 320px;
  834. max-width: min(560px, 92vw);
  835. max-height: 86vh;
  836. display: flex;
  837. flex-direction: column;
  838. overflow: hidden;
  839. }
  840. .of-dialog.wide { max-width: min(860px, 94vw); }
  841. .of-dialog-title {
  842. padding: 12px 16px;
  843. font-size: 15px;
  844. font-weight: 600;
  845. border-bottom: 1px solid var(--of-border);
  846. }
  847. .of-dialog-body {
  848. padding: 14px 16px;
  849. overflow-y: auto;
  850. flex: 1 1 auto;
  851. }
  852. .of-clip-pane { width: 360px; max-width: 100%; }
  853. .of-clip-hint { color: var(--of-fg-soft); font-size: 12.5px; margin-bottom: 8px; }
  854. .of-clip-list { display: flex; flex-direction: column; gap: 6px; max-height: 52vh; overflow: auto; }
  855. .of-clip-empty { padding: 22px 8px; text-align: center; color: var(--of-fg-soft); font-size: 13px; line-height: 1.5; }
  856. .of-clip-item {
  857. position: relative;
  858. display: flex;
  859. flex-direction: column;
  860. gap: 3px;
  861. padding: 7px 30px 7px 9px;
  862. border: 1px solid var(--of-border);
  863. border-radius: 4px;
  864. cursor: pointer;
  865. outline: none;
  866. }
  867. .of-clip-item:hover, .of-clip-item:focus { border-color: var(--of-accent); background: var(--of-hover); }
  868. .of-clip-app { font-size: 11px; color: var(--of-fg-soft); }
  869. .of-clip-prev {
  870. font-size: 13px;
  871. line-height: 1.35;
  872. color: var(--of-fg);
  873. overflow: hidden;
  874. display: -webkit-box;
  875. -webkit-line-clamp: 3;
  876. -webkit-box-orient: vertical;
  877. word-break: break-word;
  878. }
  879. .of-clip-prev img { display: block; max-width: 100%; max-height: 72px; object-fit: contain; }
  880. .of-clip-del {
  881. position: absolute;
  882. top: 5px;
  883. right: 4px;
  884. width: 22px;
  885. height: 22px;
  886. padding: 0;
  887. border: none;
  888. border-radius: 3px;
  889. background: transparent;
  890. color: var(--of-fg-soft);
  891. cursor: pointer;
  892. }
  893. .of-clip-del:hover { background: var(--of-active); color: var(--of-fg); }
  894. .of-clip-del i.icon { margin: 0; }
  895. .of-dialog-body label { display: block; margin: 8px 0 4px; color: var(--of-fg-soft); font-size: 13px; }
  896. .of-dim { color: var(--of-fg-soft); font-size: 12px; }
  897. .of-dialog-body input[type="text"], .of-dialog-body input[type="number"], .of-dialog-body select, .of-dialog-body textarea {
  898. width: 100%;
  899. box-sizing: border-box;
  900. padding: 7px 9px;
  901. border: 1px solid var(--of-border);
  902. border-radius: 4px;
  903. background: var(--of-chrome-bg2);
  904. color: var(--of-fg);
  905. font-family: inherit;
  906. font-size: 13px;
  907. outline: none;
  908. }
  909. .of-dialog-body input:focus, .of-dialog-body select:focus, .of-dialog-body textarea:focus { border-color: var(--of-accent); }
  910. .of-dialog-actions {
  911. display: flex;
  912. justify-content: flex-end;
  913. gap: 8px;
  914. padding: 10px 16px;
  915. border-top: 1px solid var(--of-border);
  916. }
  917. .of-btn {
  918. padding: 7px 16px;
  919. border-radius: 4px;
  920. border: 1px solid var(--of-border);
  921. background: var(--of-chrome-bg2);
  922. color: var(--of-fg);
  923. cursor: pointer;
  924. font-size: 13px;
  925. font-family: inherit;
  926. }
  927. .of-btn:hover { background: var(--of-hover); }
  928. .of-btn.primary {
  929. background: var(--of-accent);
  930. border-color: var(--of-accent);
  931. color: #fff;
  932. }
  933. .of-btn.primary:hover { filter: brightness(1.08); }
  934. .of-btn.danger { color: var(--of-danger); }
  935. /* ============ Toast ============ */
  936. .of-toast-holder {
  937. position: fixed;
  938. bottom: 40px;
  939. left: 50%;
  940. transform: translateX(-50%);
  941. z-index: 1800;
  942. display: flex;
  943. flex-direction: column;
  944. gap: 6px;
  945. align-items: center;
  946. pointer-events: none;
  947. }
  948. .of-toast {
  949. background: var(--of-fg);
  950. color: var(--of-bg);
  951. padding: 8px 18px;
  952. border-radius: 6px;
  953. font-size: 13px;
  954. box-shadow: 0 4px 14px var(--of-shadow);
  955. opacity: 0;
  956. transition: opacity 0.18s ease;
  957. max-width: 80vw;
  958. }
  959. .of-toast.show { opacity: 0.95; }
  960. .of-toast.error { background: var(--of-danger); color: #fff; }
  961. /* ============ Context menu / floating submenus ============ */
  962. .of-context-menu {
  963. position: fixed;
  964. z-index: 1600;
  965. min-width: 190px;
  966. max-height: calc(100vh - 12px);
  967. overflow-y: auto;
  968. background: var(--of-chrome-bg);
  969. border: 1px solid var(--of-border);
  970. border-radius: 6px;
  971. box-shadow: 0 4px 16px var(--of-shadow);
  972. padding: 4px;
  973. user-select: none;
  974. }
  975. /* ============ Floating text-edit bar ============ */
  976. .of-textedit-bar {
  977. position: fixed;
  978. z-index: 1400;
  979. display: flex;
  980. align-items: center;
  981. gap: 3px;
  982. padding: 4px 6px;
  983. background: var(--of-chrome-bg);
  984. border: 1px solid var(--of-border);
  985. border-radius: 6px;
  986. box-shadow: 0 4px 16px var(--of-shadow);
  987. user-select: none;
  988. }
  989. .of-te-btn {
  990. display: inline-flex;
  991. align-items: center;
  992. justify-content: center;
  993. width: 26px;
  994. height: 26px;
  995. border: none;
  996. border-radius: 4px;
  997. background: transparent;
  998. color: var(--of-fg);
  999. cursor: pointer;
  1000. }
  1001. .of-te-btn:hover { background: var(--of-hover); }
  1002. .of-te-btn i.icon { margin: 0 !important; font-size: 13px !important; }
  1003. .of-te-font {
  1004. height: 26px;
  1005. max-width: 130px;
  1006. border: 1px solid var(--of-border);
  1007. border-radius: 4px;
  1008. background: var(--of-chrome-bg2);
  1009. color: var(--of-fg);
  1010. font-size: 12px;
  1011. outline: none;
  1012. }
  1013. .of-te-size {
  1014. width: 52px;
  1015. height: 26px;
  1016. border: 1px solid var(--of-border);
  1017. border-radius: 4px;
  1018. background: var(--of-chrome-bg2);
  1019. color: var(--of-fg);
  1020. font-size: 12px;
  1021. padding: 0 4px;
  1022. outline: none;
  1023. }
  1024. .of-te-color {
  1025. width: 26px;
  1026. height: 26px;
  1027. padding: 2px;
  1028. border: none;
  1029. border-radius: 4px;
  1030. background: transparent;
  1031. cursor: pointer;
  1032. }
  1033. .of-te-sep {
  1034. width: 1px;
  1035. height: 18px;
  1036. background: var(--of-border);
  1037. margin: 0 3px;
  1038. }
  1039. /* two-line layout: the bar stacks .of-te-row lines */
  1040. .of-textedit-bar { flex-direction: column; align-items: stretch; }
  1041. .of-te-row {
  1042. display: flex;
  1043. align-items: center;
  1044. gap: 3px;
  1045. }
  1046. .of-te-row + .of-te-row { margin-top: 3px; }
  1047. /* table tool section: divider line above the extra row */
  1048. .of-te-hr {
  1049. height: 1px;
  1050. background: var(--of-border);
  1051. margin: 4px 0 3px;
  1052. }
  1053. /* color buttons: tool icon with the current color as a bar underneath */
  1054. .of-te-cbtn { flex-direction: column; gap: 1px; padding-top: 3px; }
  1055. .of-te-cbtn i.icon { font-size: 11px !important; line-height: 1; height: auto; }
  1056. .of-te-cbar {
  1057. width: 16px;
  1058. height: 3px;
  1059. border-radius: 1px;
  1060. background: #202124;
  1061. pointer-events: none;
  1062. }
  1063. /* split colour control: swatch button (applies current) + caret (picker) */
  1064. .of-te-split { display: inline-flex; align-items: stretch; }
  1065. .of-te-split .of-te-cmain {
  1066. border-top-right-radius: 0;
  1067. border-bottom-right-radius: 0;
  1068. }
  1069. .of-te-ccaret {
  1070. width: 13px;
  1071. min-width: 13px;
  1072. padding: 0;
  1073. border-top-left-radius: 0;
  1074. border-bottom-left-radius: 0;
  1075. border-left: 1px solid var(--of-border);
  1076. color: var(--of-fg-soft);
  1077. }
  1078. .of-te-ccaret i.icon { font-size: 9px !important; }
  1079. /* ============ Keyboard shortcuts help (hotkeys.js) ============ */
  1080. .of-hk-help { max-height: 60vh; overflow-y: auto; }
  1081. .of-hk-group {
  1082. margin: 10px 0 4px;
  1083. font-size: 11px;
  1084. letter-spacing: 0.08em;
  1085. text-transform: uppercase;
  1086. color: var(--of-fg-soft);
  1087. }
  1088. .of-hk-group:first-child { margin-top: 0; }
  1089. .of-hk-table { width: 100%; border-collapse: collapse; }
  1090. .of-hk-table td { padding: 3px 6px; font-size: 13px; }
  1091. .of-hk-combo { width: 200px; white-space: nowrap; }
  1092. .of-hk-combo kbd {
  1093. display: inline-block;
  1094. padding: 1px 6px;
  1095. border: 1px solid var(--of-border);
  1096. border-bottom-width: 2px;
  1097. border-radius: 4px;
  1098. background: var(--of-chrome-bg2);
  1099. font-family: inherit;
  1100. font-size: 11.5px;
  1101. }
  1102. /* ============ Color picker (colorpicker.js) ============ */
  1103. .of-cp-panel {
  1104. position: fixed;
  1105. z-index: 2100;
  1106. width: 236px;
  1107. padding: 10px;
  1108. background: var(--of-chrome-bg);
  1109. border: 1px solid var(--of-border);
  1110. border-radius: 8px;
  1111. box-shadow: 0 8px 28px var(--of-shadow);
  1112. user-select: none;
  1113. -webkit-user-select: none;
  1114. }
  1115. .of-cp-none {
  1116. display: flex;
  1117. align-items: center;
  1118. gap: 8px;
  1119. width: 100%;
  1120. margin-bottom: 8px;
  1121. padding: 5px 8px;
  1122. border: 1px solid var(--of-border);
  1123. border-radius: 4px;
  1124. background: transparent;
  1125. color: var(--of-fg);
  1126. font-size: 12.5px;
  1127. cursor: pointer;
  1128. }
  1129. .of-cp-none:hover { background: var(--of-hover); }
  1130. .of-cp-none i.icon { margin: 0; color: var(--of-fg-soft); }
  1131. .of-cp-label {
  1132. margin: 8px 0 4px;
  1133. font-size: 10.5px;
  1134. letter-spacing: 0.08em;
  1135. text-transform: uppercase;
  1136. color: var(--of-fg-soft);
  1137. }
  1138. .of-cp-grid {
  1139. display: grid;
  1140. grid-template-columns: repeat(10, 1fr);
  1141. gap: 2px;
  1142. }
  1143. .of-cp-cell {
  1144. width: 19px;
  1145. height: 19px;
  1146. padding: 0;
  1147. border: 1px solid rgba(128, 128, 128, 0.3);
  1148. border-radius: 2px;
  1149. cursor: pointer;
  1150. position: relative;
  1151. }
  1152. .of-cp-cell:hover {
  1153. transform: scale(1.18);
  1154. box-shadow: 0 1px 5px var(--of-shadow);
  1155. z-index: 1;
  1156. }
  1157. .of-cp-cell.sel {
  1158. outline: 2px solid var(--of-accent);
  1159. outline-offset: 1px;
  1160. z-index: 1;
  1161. }
  1162. .of-cp-customrow {
  1163. display: flex;
  1164. flex-wrap: wrap;
  1165. align-items: center;
  1166. gap: 2px;
  1167. }
  1168. .of-cp-add {
  1169. display: inline-flex;
  1170. align-items: center;
  1171. justify-content: center;
  1172. width: 19px;
  1173. height: 19px;
  1174. padding: 0;
  1175. border: 1px dashed var(--of-fg-soft);
  1176. border-radius: 2px;
  1177. background: transparent;
  1178. color: var(--of-fg-soft);
  1179. font-size: 13px;
  1180. line-height: 1;
  1181. cursor: pointer;
  1182. }
  1183. .of-cp-add:hover { background: var(--of-hover); }
  1184. .of-cp-add i.icon { margin: 0; font-size: 10px; }
  1185. .of-cp-sv {
  1186. position: relative;
  1187. width: 100%;
  1188. height: 130px;
  1189. border-radius: 4px;
  1190. cursor: crosshair;
  1191. margin-bottom: 10px;
  1192. touch-action: none;
  1193. }
  1194. .of-cp-hue {
  1195. position: relative;
  1196. width: 100%;
  1197. height: 12px;
  1198. border-radius: 6px;
  1199. cursor: ew-resize;
  1200. margin-bottom: 10px;
  1201. touch-action: none;
  1202. background: linear-gradient(to right,
  1203. #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
  1204. }
  1205. .of-cp-dot {
  1206. position: absolute;
  1207. width: 12px;
  1208. height: 12px;
  1209. border: 2px solid #fff;
  1210. border-radius: 50%;
  1211. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
  1212. transform: translate(-50%, -50%);
  1213. pointer-events: none;
  1214. }
  1215. .of-cp-hexrow { display: flex; align-items: center; gap: 6px; }
  1216. .of-cp-preview {
  1217. width: 26px;
  1218. height: 26px;
  1219. border: 1px solid var(--of-border);
  1220. border-radius: 4px;
  1221. flex: 0 0 auto;
  1222. }
  1223. .of-cp-hex {
  1224. flex: 1;
  1225. min-width: 0;
  1226. padding: 4px 6px;
  1227. border: 1px solid var(--of-border);
  1228. border-radius: 4px;
  1229. background: var(--of-chrome-bg2);
  1230. color: var(--of-fg);
  1231. font-family: Consolas, monospace;
  1232. font-size: 12.5px;
  1233. }
  1234. .of-cp-actions {
  1235. display: flex;
  1236. justify-content: flex-end;
  1237. gap: 6px;
  1238. margin-top: 10px;
  1239. }
  1240. .of-cp-btn {
  1241. padding: 5px 14px;
  1242. border: 1px solid var(--of-border);
  1243. border-radius: 4px;
  1244. background: transparent;
  1245. color: var(--of-fg);
  1246. font-size: 12.5px;
  1247. cursor: pointer;
  1248. }
  1249. .of-cp-btn:hover { background: var(--of-hover); }
  1250. .of-cp-btn.of-cp-ok {
  1251. background: var(--of-accent);
  1252. border-color: var(--of-accent);
  1253. color: #fff;
  1254. }
  1255. /* toolbar swatch button (replaces <input type="color">) */
  1256. .of-cp-swatchbtn {
  1257. display: inline-flex;
  1258. width: 28px;
  1259. height: 26px;
  1260. padding: 3px;
  1261. border: 1px solid var(--of-border);
  1262. border-radius: 4px;
  1263. background: var(--of-chrome-bg);
  1264. cursor: pointer;
  1265. flex: 0 0 auto;
  1266. }
  1267. .of-cp-swatchbtn:hover { border-color: var(--of-fg-soft); }
  1268. .of-cp-swatchbtn .of-cp-chip {
  1269. flex: 1;
  1270. border-radius: 2px;
  1271. pointer-events: none;
  1272. }
  1273. /* "no color" state: gray field with a diagonal slash */
  1274. .of-cp-swatchbtn .of-cp-chip.none {
  1275. background:
  1276. linear-gradient(to top left,
  1277. transparent 44%, #d0342c 46%, #d0342c 54%, transparent 56%),
  1278. var(--of-chrome-bg2);
  1279. }
  1280. /* ============ Drawing canvas (sketch.js) ============ */
  1281. .of-sketch-bar {
  1282. display: flex;
  1283. flex-wrap: wrap;
  1284. align-items: center;
  1285. gap: 2px;
  1286. margin-bottom: 8px;
  1287. }
  1288. .of-sketch-pens { display: flex; gap: 1px; }
  1289. .of-sketch-bar .of-tbtn.active { background: var(--of-accent-soft); color: var(--of-accent); }
  1290. .of-sketch-bar .of-tbtn:disabled { opacity: 0.35; }
  1291. .of-dialog-body .of-sketch-bar .of-tselect { width: auto; height: 28px; padding: 0 6px; }
  1292. .of-sketch-paper {
  1293. position: relative;
  1294. max-width: 100%;
  1295. margin-bottom: 6px;
  1296. border: 1px solid var(--of-border);
  1297. border-radius: 4px;
  1298. /* paper: drawings are made for white pages */
  1299. background: #ffffff;
  1300. background-image: radial-gradient(circle, rgba(60, 64, 67, 0.16) 1px, transparent 1.2px);
  1301. background-size: 20px 20px;
  1302. cursor: crosshair;
  1303. touch-action: none;
  1304. overflow: hidden;
  1305. }
  1306. .of-sketch-paper.erasing { cursor: cell; }
  1307. .of-sketch-paper canvas { display: block; touch-action: none; }
  1308. /* ============ Busy overlay ============ */
  1309. /* OfficeApp.beginDrag: invisible, catches every pointer event of a drag */
  1310. .of-drag-overlay {
  1311. position: fixed;
  1312. inset: 0;
  1313. z-index: 3000;
  1314. background: transparent;
  1315. touch-action: none;
  1316. user-select: none;
  1317. }
  1318. .of-busy-overlay {
  1319. position: fixed;
  1320. inset: 0;
  1321. background: rgba(0, 0, 0, 0.3);
  1322. z-index: 2000;
  1323. display: flex;
  1324. align-items: center;
  1325. justify-content: center;
  1326. flex-direction: column;
  1327. gap: 12px;
  1328. color: #fff;
  1329. }
  1330. .of-busy-overlay .of-spinner {
  1331. width: 34px;
  1332. height: 34px;
  1333. border: 3px solid rgba(255, 255, 255, 0.3);
  1334. border-top-color: #fff;
  1335. border-radius: 50%;
  1336. animation: of-spin 0.8s linear infinite;
  1337. }
  1338. @keyframes of-spin { to { transform: rotate(360deg); } }
  1339. /* ============ Save progress (closing a window) ============ */
  1340. /* Holds the screen while a window that is about to close writes its file,
  1341. with a bar that follows the upload, so a long save never looks frozen. */
  1342. .of-saveprog-overlay {
  1343. position: fixed;
  1344. inset: 0;
  1345. z-index: 2100;
  1346. background: rgba(0, 0, 0, 0.32);
  1347. display: flex;
  1348. align-items: center;
  1349. justify-content: center;
  1350. padding: 16px;
  1351. }
  1352. .of-saveprog {
  1353. width: min(340px, 100%);
  1354. padding: 16px 18px 18px;
  1355. border-radius: 8px;
  1356. border: 1px solid var(--of-border);
  1357. background: var(--of-chrome-bg);
  1358. color: var(--of-fg);
  1359. box-shadow: 0 8px 28px var(--of-shadow);
  1360. font-size: 13px;
  1361. }
  1362. .of-saveprog-title {
  1363. font-weight: 600;
  1364. margin-bottom: 10px;
  1365. overflow: hidden;
  1366. text-overflow: ellipsis;
  1367. white-space: nowrap;
  1368. }
  1369. .of-saveprog-bar {
  1370. position: relative;
  1371. height: 6px;
  1372. border-radius: 3px;
  1373. background: var(--of-border);
  1374. overflow: hidden;
  1375. }
  1376. .of-saveprog-fill {
  1377. height: 100%;
  1378. width: 0;
  1379. border-radius: 3px;
  1380. background: var(--of-accent);
  1381. transition: width 0.2s ease;
  1382. }
  1383. /* the server is writing: no more numbers to show, so the bar keeps moving */
  1384. .of-saveprog-bar.busy::after {
  1385. content: "";
  1386. position: absolute;
  1387. top: 0;
  1388. bottom: 0;
  1389. width: 30%;
  1390. background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  1391. animation: of-saveprog-sweep 1.1s linear infinite;
  1392. }
  1393. @keyframes of-saveprog-sweep { from { left: -30%; } to { left: 100%; } }
  1394. .of-saveprog-msg {
  1395. margin-top: 8px;
  1396. color: var(--of-fg-soft);
  1397. min-height: 1.2em;
  1398. }
  1399. /* ============ Progress panel ============ */
  1400. /* The non-blocking counterpart of the busy overlay: it sits in the corner
  1401. of the editing area and leaves the document usable underneath. */
  1402. .of-progress-panel {
  1403. position: fixed;
  1404. z-index: 1400;
  1405. min-width: 210px;
  1406. max-width: 280px;
  1407. padding: 10px 12px 12px;
  1408. border: 1px solid var(--of-border);
  1409. border-radius: 6px;
  1410. background: var(--of-chrome-bg);
  1411. color: var(--of-fg);
  1412. box-shadow: 0 4px 16px var(--of-shadow);
  1413. font-size: 12.5px;
  1414. }
  1415. .of-progress-panel .of-pp-title {
  1416. font-weight: 600;
  1417. margin-bottom: 2px;
  1418. }
  1419. .of-progress-panel .of-pp-msg {
  1420. color: var(--of-fg-soft);
  1421. margin-bottom: 8px;
  1422. min-height: 1.2em;
  1423. }
  1424. .of-progress-panel .of-pp-bar {
  1425. height: 4px;
  1426. border-radius: 2px;
  1427. background: var(--of-border);
  1428. overflow: hidden;
  1429. }
  1430. .of-progress-panel .of-pp-fill {
  1431. height: 100%;
  1432. width: 0;
  1433. border-radius: 2px;
  1434. background: var(--of-accent);
  1435. transition: width 0.2s ease;
  1436. }
  1437. /* ============ Print ============ */
  1438. @media print {
  1439. .of-menubar, .of-toolbar, .of-statusbar, .of-noprint,
  1440. .of-toast-holder, .of-dialog-overlay, .of-context-menu { display: none !important; }
  1441. body.of-app { display: block; overflow: visible; background: #fff; }
  1442. .of-workspace { overflow: visible; }
  1443. }
  1444. /* ============ Touch / small screens ============ */
  1445. @media (max-width: 640px) {
  1446. .of-docname { display: none; }
  1447. .of-toolbar { overflow-x: auto; flex-wrap: nowrap; }
  1448. .of-menu { padding: 6px 8px; }
  1449. .of-statusbar { gap: 8px; padding: 2px 6px; }
  1450. .of-status-msg { max-width: 45%; }
  1451. .of-status-items { gap: 8px; }
  1452. .of-fmtbanner { flex-wrap: wrap; font-size: 12.5px; }
  1453. .of-dialog { min-width: 0; width: 94vw; }
  1454. }
  1455. /* Phone width (ribbon.js sets body.of-narrow): the simplified layout -
  1456. one picker for the tabs, and the active tab as a single line of icons
  1457. that scrolls sideways. Galleries and controls marked mobile:false are
  1458. left out; desktop:false controls stand in for them. */
  1459. body.of-narrow .of-titlebar { padding: 0 4px 0 6px; gap: 2px; }
  1460. body.of-narrow .of-titlebar .of-rb-tab,
  1461. body.of-narrow .of-autosave,
  1462. body.of-narrow .of-qatsep,
  1463. body.of-narrow .of-rb-mintoggle,
  1464. body.of-narrow .of-docname { display: none !important; }
  1465. body.of-narrow .of-rb-tabpick { display: inline-flex; }
  1466. body.of-narrow .of-titlebar .of-menu { padding: 0 9px; }
  1467. body.of-narrow .of-titleextras { margin-left: auto; }
  1468. body.of-narrow .of-tabstrip { flex: 0 1 auto; }
  1469. body.of-narrow.of-rb-min .of-ribbon { display: block; }
  1470. body.of-narrow .of-toolbar.of-ribbon { padding: 3px 4px; }
  1471. body.of-narrow .of-rb-panel {
  1472. min-height: 0;
  1473. overflow-x: auto;
  1474. overflow-y: hidden;
  1475. scrollbar-width: none;
  1476. -webkit-overflow-scrolling: touch;
  1477. }
  1478. body.of-narrow .of-rb-panel::-webkit-scrollbar { display: none; }
  1479. body.of-narrow .of-rb-gbody,
  1480. body.of-narrow .of-rb-rows,
  1481. body.of-narrow .of-rb-stack { flex-direction: row; align-items: center; gap: 2px; }
  1482. body.of-narrow .of-rb-group { padding: 0 5px; }
  1483. body.of-narrow .of-rb-group + .of-rb-group::before { top: 8px; bottom: 8px; }
  1484. body.of-narrow .of-rb-stack .of-rb-btn { height: 34px; }
  1485. body.of-narrow .of-rb-withlabel .of-rb-lbl { display: none; }
  1486. body.of-narrow .of-rb-btn.of-rb-withlabel { padding: 0 5px; }
  1487. body.of-narrow .of-rb-big {
  1488. flex-direction: row;
  1489. min-width: 34px;
  1490. height: 34px;
  1491. padding: 0 6px;
  1492. gap: 2px;
  1493. }
  1494. body.of-narrow .of-rb-bigicon { height: auto; }
  1495. body.of-narrow .of-rb-bigicon i.icon { font-size: 15px !important; }
  1496. body.of-narrow .of-rb-bigicon svg { width: 18px; height: 18px; }
  1497. body.of-narrow .of-rb-biglbl { font-size: 0; }
  1498. body.of-narrow .of-rb-biglbl i.icon { font-size: 9px !important; }
  1499. body.of-narrow .of-rb-bigsplit { flex-direction: row; height: 34px; min-width: 0; }
  1500. body.of-narrow .of-rb-bigtop { flex: 0 0 auto; padding: 0 5px; }
  1501. body.of-narrow .of-rb-bigbot { flex: 0 0 auto; align-items: center; padding: 0 4px; }
  1502. body.of-narrow .of-rb-bigbot .of-rb-biglbl { display: none; }
  1503. body.of-narrow .of-rb-collapsed > .of-rb-gbody { display: flex; }
  1504. body.of-narrow .of-rb-collapsed > .of-rb-gbtn { display: none; }
  1505. body.of-narrow .of-rb-launch { display: none; }
  1506. body.of-narrow .of-rb-haslaunch > .of-rb-gbody { padding-right: 0; }
  1507. body.of-narrow [data-mobile="hide"] { display: none !important; }
  1508. body.of-narrow [data-desktop="hide"] { display: inline-flex !important; }
  1509. body.of-narrow select[data-desktop="hide"] { display: inline-block !important; }
  1510. body.of-narrow .of-tbtn { min-width: 32px; height: 34px; }
  1511. body.of-narrow .of-rb-caretbtn { min-width: 16px; width: 16px; }
  1512. body.of-narrow .of-ribbon .of-tselect { height: 32px; max-width: 120px; }
  1513. @media (pointer: coarse) {
  1514. .of-tbtn { min-width: 34px; height: 34px; }
  1515. .of-menu-item { padding: 9px 10px; }
  1516. .of-status-zoom button { width: 28px; height: 26px; }
  1517. .of-rb-caretbtn { min-width: 18px; width: 18px; }
  1518. .of-qbtn { width: 34px; height: 34px; }
  1519. }