cascade.css 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990
  1. :root {
  2. --main-bright-color: #00B5E2;
  3. --main-dark-color: #002B49;
  4. --secondary-bright-color: #FFFFFF;
  5. --secondary-dark-color: #212322;
  6. --danger-color: #CC1111;
  7. --warning-color: #CC8800;
  8. --success-color: #5CB85C;
  9. --regular-font: "GalanoGrotesqueW00-Regular";
  10. --base-font-size: 16px;
  11. }
  12. @font-face {
  13. font-family: "GalanoGrotesqueW00-Regular";
  14. src: url("GalanoGrotesqueW00-Regular.woff2") format("woff2");
  15. }
  16. :root[lang="bg"], :root[lang="ru"], :root[lang="uk"], :root[lang="el"], :root[lang="he"] {
  17. --regular-font: "Helvetica";
  18. }
  19. /*
  20. * resets and base style
  21. */
  22. * {
  23. margin: 0;
  24. padding: 0;
  25. box-sizing: border-box;
  26. text-decoration: none;
  27. list-style: none;
  28. color: inherit;
  29. font-family: var(--regular-font), "sans-serif";
  30. border: none;
  31. font-size: 100%;
  32. background: none;
  33. outline: none;
  34. -webkit-appearance: none;
  35. -webkit-text-size-adjust: none;
  36. }
  37. html {
  38. height: 100%;
  39. width: 100%;
  40. max-width: 1366px;
  41. margin: 0 auto;
  42. background: #fff linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0 ,.5), rgba(0, 0, 0, .8));
  43. }
  44. body {
  45. background: var(--secondary-bright-color);
  46. color: var(--secondary-dark-color);
  47. font-size: var(--base-font-size);
  48. cursor: default;
  49. display: inline-flex;
  50. flex-direction: column;
  51. min-height: 100%;
  52. min-width: 100%;
  53. }
  54. abbr[title], acronym[title] {
  55. text-decoration: dotted underline;
  56. }
  57. /*
  58. * scaffholding
  59. */
  60. #menubar {
  61. background-color: var(--main-bright-color);
  62. background-image: url("logo.svg");
  63. background-position: 10px center;
  64. background-size: 50px 50px;
  65. background-repeat: no-repeat;
  66. padding: 0 1em 0 70px;
  67. min-height: 70px;
  68. display: flex;
  69. align-items: center;
  70. color: var(--secondary-bright-color);
  71. flex: 0;
  72. width: 100%;
  73. box-shadow: inset 0 0 1px var(--main-dark-color);
  74. }
  75. #menubar > * {
  76. flex: 1 1 auto;
  77. }
  78. #menubar .hostname {
  79. font-weight: bold;
  80. font-size: 2em;
  81. white-space: nowrap;
  82. overflow: hidden;
  83. text-overflow: ellipsis;
  84. }
  85. #menubar .distversion {
  86. flex: 3;
  87. }
  88. #indicators {
  89. flex: 1 1 25%;
  90. text-align: right;
  91. }
  92. #indicators > * {
  93. background: var(--secondary-bright-color);
  94. color: var(--main-bright-color);
  95. display: inline-block;
  96. font-size: .85em;
  97. line-height: 1.5em;
  98. padding: 0 .5em;
  99. margin: .125em;
  100. border-radius: 1em;
  101. cursor: pointer;
  102. white-space: nowrap;
  103. }
  104. #indicators > [data-style="inactive"] {
  105. background: var(--main-bright-color);
  106. color: var(--secondary-bright-color);
  107. border: 2px solid var(--secondary-bright-color);
  108. line-height: calc(1.5em - 4px);
  109. padding: 0 calc(.5em - 2px);
  110. }
  111. #menubar h2,
  112. .skiplink {
  113. display: none;
  114. }
  115. #modemenu {
  116. background: var(--main-bright-color);
  117. padding: .5rem 1rem;
  118. display: flex;
  119. align-items: center;
  120. color: var(--secondary-bright-color);
  121. box-shadow: inset 0 0 1px var(--main-dark-color);
  122. font-size: 1rem;
  123. flex-wrap: wrap;
  124. }
  125. #modemenu > * {
  126. margin: .125rem;
  127. }
  128. #modemenu > .active {
  129. font-weight: bold;
  130. border-bottom: 2px solid var(--secondary-bright-color);
  131. }
  132. #maincontainer {
  133. flex-direction: row;
  134. display: inline-flex;
  135. flex: 1 0 auto;
  136. }
  137. #mainmenu {
  138. flex: 1 1 100px;
  139. max-width: 250px;
  140. background: var(--main-dark-color);
  141. color: var(--main-bright-color);
  142. padding: 1em;
  143. }
  144. #mainmenu:empty {
  145. max-width: 0;
  146. padding: 1em 0;
  147. transition: all .2s ease-in-out;
  148. }
  149. #mainmenu > div {
  150. position: sticky;
  151. top: 1em;
  152. }
  153. #mainmenu ul {
  154. padding: 0;
  155. margin: 0 0 0 .5em;
  156. line-height: 1.5em;
  157. }
  158. #mainmenu ul > li {
  159. list-style: none;
  160. }
  161. #mainmenu li > ul {
  162. max-height: 0;
  163. overflow: hidden;
  164. transition: max-height .1s ease-in-out;
  165. }
  166. #mainmenu li.selected > a {
  167. color: var(--secondary-bright-color);
  168. }
  169. #mainmenu ul:not(.active) > li.selected > ul,
  170. #mainmenu li.active > ul {
  171. max-height: 3000px;
  172. transition: max-height 1s ease-in-out;
  173. margin: 0 0 .5em .5em;
  174. }
  175. #mainmenu .l1 > li > a {
  176. font-weight: bold;
  177. font-size: 1.05em;
  178. }
  179. #maincontent {
  180. flex: 10;
  181. padding: 1em 1em 0 1em;
  182. }
  183. body > .luci {
  184. flex: 0;
  185. font-size: .7em;
  186. padding: .25em;
  187. text-align: right;
  188. background: var(--main-bright-color);
  189. color: var(--secondary-bright-color);
  190. margin: 0;
  191. }
  192. /*
  193. * modal
  194. */
  195. body.modal-overlay-active {
  196. overflow: hidden;
  197. }
  198. body.modal-overlay-active #modal_overlay {
  199. left: 0;
  200. right: 0;
  201. opacity: 1;
  202. }
  203. #modal_overlay {
  204. position: fixed;
  205. top: 0;
  206. bottom: 0;
  207. left: -10000px;
  208. right: 10000px;
  209. background: rgba(0, 0, 0, 0.7);
  210. z-index: 10000;
  211. overflow-y: scroll;
  212. -webkit-overflow-scrolling: touch;
  213. transition: opacity .125s ease-in;
  214. opacity: 0;
  215. }
  216. #modal_overlay > .modal {
  217. max-width: 1300px;
  218. width: 80%;
  219. margin: 10% auto 5rem auto;
  220. background: var(--secondary-bright-color);
  221. box-shadow: 0 0 3px 1px var(--main-bright-color);
  222. padding: .5em;
  223. border-radius: .25em;
  224. display: flex;
  225. flex-direction: column;
  226. }
  227. .modal > h4:first-child {
  228. padding: .5rem;
  229. margin: -.5rem -.5rem .5rem -.5rem;
  230. background: var(--main-bright-color);
  231. color: var(--secondary-bright-color);
  232. border-radius: .25rem .25rem 0 0;
  233. }
  234. .modal > *:first-child:last-child {
  235. margin: .5em 0 !important;
  236. }
  237. .modal .cbi-section > legend:first-child { font-size: 120%; }
  238. .modal .button-row {
  239. display: flex;
  240. justify-content: space-between;
  241. }
  242. .modal .button-row > :not(:last-child) {
  243. margin-right: .5em;
  244. }
  245. .modal .button-row > :first-child {
  246. margin-right: auto;
  247. }
  248. /*
  249. * table layout
  250. */
  251. table {
  252. width: 100%;
  253. margin: 0 0 1rem 0;
  254. position: relative;
  255. border-collapse: collapse;
  256. }
  257. tr.cbi-section-table-titles[data-title]::before {
  258. font-weight: bold;
  259. border-top: none;
  260. }
  261. tr[data-title]::before {
  262. content: attr(data-title);
  263. display: table-cell;
  264. border-top: 1px solid var(--main-dark-color);
  265. padding: .5em;
  266. }
  267. th {
  268. text-align: left;
  269. font-weight: bold;
  270. padding: .5em;
  271. /* word-break: break-word; */
  272. }
  273. .cbi-section-table-descr th {
  274. opacity: .8;
  275. font-size: 90%;
  276. font-weight: normal;
  277. }
  278. td {
  279. border-top: 1px solid var(--main-dark-color);
  280. padding: .5em;
  281. vertical-align: middle;
  282. }
  283. td input:not([type]),
  284. td input[type="text"],
  285. td input[type="password"],
  286. td select,
  287. td .cbi-dropdown:not(.btn):not(.cbi-button),
  288. td .cbi-dynlist,
  289. td .control-group {
  290. min-width: auto;
  291. width: 100%;
  292. }
  293. tr.drag-over-above {
  294. box-shadow: 0 -6px 6px var(--main-bright-color);
  295. }
  296. tr.drag-over-below {
  297. box-shadow: 0 6px 6px var(--main-bright-color);
  298. }
  299. tr.placeholder {
  300. height: 4em;
  301. position: relative;
  302. }
  303. tr.placeholder > td {
  304. position: absolute;
  305. left: 0;
  306. right: 0;
  307. bottom: 0;
  308. text-align: center;
  309. line-height: 3em;
  310. font-size: 90%;
  311. opacity: .8;
  312. }
  313. /*
  314. * view specific table invariants
  315. */
  316. #cbi-wireless-wifi-device .ifacebadge {
  317. flex-direction: column;
  318. justify-content: space-around;
  319. }
  320. .assoclist td,
  321. [data-page="admin-status-overview"] td {
  322. font-size: .9rem;
  323. vertical-align: middle;
  324. }
  325. .assoclist td:nth-of-type(3) > span {
  326. display: block;
  327. max-width: 270px;
  328. font-size: .8rem;
  329. }
  330. .assoclist td:nth-of-type(5) > span {
  331. font-size: .8rem;
  332. }
  333. .assoclist td > .ifacebadge {
  334. flex-wrap: wrap;
  335. justify-content: space-around;
  336. max-width: 120px;
  337. padding: .2em;
  338. }
  339. .assoclist td > .ifacebadge::after {
  340. overflow: hidden;
  341. text-overflow: ellipsis;
  342. }
  343. .assoclist td > .ifacebadge > img {
  344. margin: 0 25px;
  345. }
  346. .assoclist td > .ifacebadge[data-ssid][data-ifname] > span {
  347. display: none;
  348. }
  349. .assoclist td > .ifacebadge[data-ssid][data-ifname]::after {
  350. content: attr(data-ssid) " (" attr(data-ifname) ")";
  351. }
  352. [data-page="admin-status-overview"] td:nth-of-type(3) {
  353. min-width: 100px;
  354. }
  355. [data-page="admin-network-firewall"] table > tr > *:nth-child(1) {
  356. flex: 1 1 30%;
  357. }
  358. [data-page="admin-network-wireless"] .cbi-section-actions > div {
  359. display: flex;
  360. }
  361. [data-page="admin-network-wireless"] .cbi-section-actions > div > * {
  362. flex: 1;
  363. }
  364. [data-page="admin-status-processes"] table td:nth-of-type(3),
  365. [data-tab="leases"] table td[data-name="duid"] {
  366. word-break: break-word;
  367. }
  368. /*
  369. * uci changelog
  370. */
  371. .uci-change-list {
  372. font-size: 90%;
  373. white-space: pre;
  374. overflow: hidden;
  375. }
  376. .uci-change-list del,
  377. .uci-change-list ins,
  378. .uci-change-list var,
  379. .uci-change-legend-label del,
  380. .uci-change-legend-label ins,
  381. .uci-change-legend-label var {
  382. text-decoration: none;
  383. font-family: monospace;
  384. font-style: normal;
  385. border: 1px solid #ccc;
  386. background: #eee;
  387. padding: 2px;
  388. display: block;
  389. line-height: 15px;
  390. margin-bottom: 1px;
  391. }
  392. .uci-change-list h5 {
  393. margin: .5em 0 .25em 0;
  394. }
  395. .uci-change-list ins,
  396. .uci-change-legend-label ins {
  397. border-color: #0f0;
  398. background: #cfc;
  399. }
  400. .uci-change-list del,
  401. .uci-change-legend-label del {
  402. border-color: #f00;
  403. background: #fcc;
  404. }
  405. .uci-change-list var,
  406. .uci-change-legend-label var {
  407. border-color: #ccc;
  408. background: #eee;
  409. }
  410. .uci-change-list var ins,
  411. .uci-change-list var del {
  412. display: inline-block;
  413. border: none;
  414. width: 100%;
  415. padding: 0;
  416. }
  417. .uci-change-legend {
  418. margin: .5em 0 0 0;
  419. display: flex;
  420. flex-wrap: wrap;
  421. }
  422. .uci-change-legend-label {
  423. flex: 1 1 10em;
  424. white-space: nowrap;
  425. }
  426. .uci-change-legend-label > ins,
  427. .uci-change-legend-label > del,
  428. .uci-change-legend-label > var {
  429. float: left;
  430. margin-right: 4px;
  431. width: 16px;
  432. height: 16px;
  433. display: block;
  434. position: relative;
  435. }
  436. .uci-change-legend-label var ins,
  437. .uci-change-legend-label var del {
  438. border: none;
  439. position: absolute;
  440. top: 2px;
  441. left: 2px;
  442. right: 2px;
  443. bottom: 2px;
  444. }
  445. /*
  446. * alignment helpers
  447. */
  448. .left {
  449. text-align: left !important;
  450. }
  451. .right {
  452. text-align: right !important;
  453. }
  454. .center {
  455. text-align: center !important;
  456. }
  457. .top {
  458. vertical-align: top !important;
  459. }
  460. .bottom {
  461. vertical-align: bottom !important;
  462. }
  463. .middle {
  464. vertical-align: middle !important;
  465. }
  466. .nowrap {
  467. white-space: nowrap !important;
  468. }
  469. .hidden {
  470. display: none !important;
  471. }
  472. /*
  473. * legacy hacks
  474. */
  475. [width="33%"] {
  476. width: 33%;
  477. max-width: 33%;
  478. }
  479. [width="50%"] {
  480. width: 50%;
  481. max-width: 50%;
  482. }
  483. [data-name="_freq"] select {
  484. min-width: auto;
  485. }
  486. .cbi-value-field > div:first-child + br {
  487. display: none;
  488. }
  489. /*
  490. * typography
  491. */
  492. h1, h2, h3, h4, h5, h6,
  493. .cbi-section > legend:first-child {
  494. font-weight: bold;
  495. margin: 0 0 1rem 0;
  496. }
  497. strong, b {
  498. font-weight: bold;
  499. }
  500. h1 { font-size: 160%; }
  501. h2 { font-size: 150%; }
  502. h3 { font-size: 140%; }
  503. h4 { font-size: 130%; }
  504. h5 { font-size: 120%; }
  505. h6 { font-size: 110%; }
  506. .cbi-section > legend:first-child { font-size: 140%; }
  507. p, ul, textarea {
  508. margin: 0 0 1em 0;
  509. }
  510. p > textarea:last-child {
  511. margin: 0;
  512. }
  513. var {
  514. color: var(--main-dark-color);
  515. font-weight: bold;
  516. }
  517. code {
  518. font-family: monospace;
  519. color: var(--main-dark-color);
  520. }
  521. pre {
  522. font-family: monospace;
  523. margin: 0 0 1em 0;
  524. font-size: .9rem;
  525. box-shadow: inset 0 0 2px var(--main-dark-color);
  526. padding: .25rem;
  527. overflow: auto;
  528. }
  529. big {
  530. font-size: 110%;
  531. }
  532. small {
  533. font-size: 95%;
  534. }
  535. ul {
  536. padding: 0 0 0 1.5em;
  537. }
  538. ul > li {
  539. list-style: disc;
  540. }
  541. p > a {
  542. text-decoration: underline;
  543. }
  544. /*
  545. * widgets
  546. */
  547. .ifacebox, .ifacebadge, .zonebadge {
  548. display: inline-flex;
  549. line-height: 1.8em;
  550. padding: 0 .25em;
  551. margin: .25em;
  552. box-shadow: 0px 0px 2px var(--main-dark-color);
  553. font-size: .9em;
  554. border-radius: .5em;
  555. overflow: hidden;
  556. font-size: .8rem;
  557. vertical-align: text-top;
  558. background: var(--secondary-bright-color);
  559. align-items: center;
  560. color: var(--secondary-dark-color);
  561. vertical-align: middle;
  562. }
  563. .zonebadge > .ifacebadge {
  564. margin: .125em -.125em .125em .35em;
  565. }
  566. .zonebadge > .ifacebadge > img
  567. {
  568. margin: .125em 0 .125em .25em;
  569. }
  570. .ifacebox {
  571. display: inline-flex;
  572. flex-direction: column;
  573. padding: 0;
  574. text-align: center;
  575. width: 100%;
  576. max-width: 150px;
  577. }
  578. .ifacebox-head {
  579. background: var(--main-bright-color);
  580. width: 100%;
  581. }
  582. .ifacebox-body {
  583. text-align: center;
  584. padding: .3em .25em .25em .25em;
  585. white-space: nowrap;
  586. }
  587. .ifacebadge {
  588. display: inline-flex;
  589. align-items: center;
  590. }
  591. .ifacebadge.large {
  592. line-height: 1.3em;
  593. }
  594. .ifacebadge > img {
  595. vertical-align: text-bottom;
  596. margin: .25em;
  597. height: 16px;
  598. }
  599. .ifacebadge > * {
  600. margin-left: .25em;
  601. }
  602. .network-status-table {
  603. display: inline-flex;
  604. flex-wrap: wrap;
  605. width: 100%;
  606. margin: 0 -.2em 1em -.2em;
  607. }
  608. .network-status-table > .ifacebox {
  609. max-width: none;
  610. flex: 1 1 45%;
  611. margin: .25em;
  612. min-width: 250px;
  613. }
  614. .network-status-table > .ifacebox .ifacebadge {
  615. font-size: 100%;
  616. max-width: none;
  617. flex: 1 1 45%;
  618. margin: .2em;
  619. }
  620. .network-status-table .ifacebox-body > div {
  621. display: flex;
  622. flex-wrap: wrap;
  623. margin: .3em -.1em -.1em -.1em;
  624. }
  625. .cbi-tooltip-container {
  626. cursor: help;
  627. }
  628. .cbi-tooltip {
  629. position: absolute;
  630. z-index: 10000;
  631. left: -10000px;
  632. box-shadow: 0 0 2px rgba(0, 0, 0, .7);
  633. border-radius: 3px;
  634. background: var(--secondary-bright-color);
  635. white-space: pre;
  636. padding: 2px 5px;
  637. opacity: 0;
  638. transition: opacity .25s ease-in;
  639. font-size: .8rem;
  640. }
  641. .cbi-tooltip.error {
  642. color: var(--danger-color);
  643. }
  644. .cbi-tooltip-container:hover .cbi-tooltip:not(:empty) {
  645. left: auto;
  646. opacity: 1;
  647. transition: opacity .25s ease-in;
  648. }
  649. .zone-forwards {
  650. display: flex;
  651. align-items: center;
  652. }
  653. .cbi-progressbar {
  654. border-radius: .25em;
  655. position: relative;
  656. min-width: 20rem;
  657. height: 1.5em;
  658. box-shadow: 0 0 2px var(--main-dark-color);
  659. overflow: hidden;
  660. margin: .125rem 0;
  661. }
  662. .cbi-progressbar > div {
  663. background: var(--main-bright-color);
  664. height: 100%;
  665. transition: width .25s ease-in;
  666. width: 0%;
  667. }
  668. .cbi-progressbar::after {
  669. position: absolute;
  670. bottom: 0;
  671. top: 0;
  672. right: 0;
  673. left: 0;
  674. text-align: center;
  675. text-shadow: 0 0 2px var(--secondary-bright-color);
  676. content: attr(title);
  677. white-space: nowrap;
  678. line-height: 1.5em;
  679. }
  680. .cbi-tabmenu {
  681. padding: 0;
  682. margin: 0 -.5em 1em -.5em;
  683. font-weight: bold;
  684. color: var(--main-dark-color);
  685. }
  686. .cbi-tabmenu > li {
  687. display: inline-flex;
  688. white-space: nowrap;
  689. opacity: 1;
  690. height: 1.8em;
  691. max-height: none;
  692. overflow: visible;
  693. }
  694. .cbi-tabmenu > li > a {
  695. flex: 1;
  696. margin: .1em .5em;
  697. }
  698. .cbi-tabmenu > .cbi-tab > a {
  699. border-bottom: 2px solid var(--main-dark-color);
  700. }
  701. [data-tab] {
  702. opacity: 0;
  703. max-height: 0;
  704. transition: opacity .25s ease-in-out;
  705. overflow: hidden;
  706. }
  707. [data-tab-active="true"] {
  708. opacity: 1;
  709. height: auto;
  710. max-height: none;
  711. overflow: visible;
  712. }
  713. .alert-message:not(.modal) {
  714. box-shadow: 0 0 3px var(--secondary-dark-color);
  715. padding: .5em;
  716. margin: 0 0 1em 0;
  717. background: var(--warning-color);
  718. color: var(--secondary-bright-color);
  719. transition: opacity .4s ease;
  720. }
  721. .alert-message + .alert-message {
  722. margin: -.5em 0 1em 0;
  723. }
  724. .alert-message.info {
  725. background: var(--main-bright-color);
  726. }
  727. .alert-message.warning {
  728. background: var(--warning-color);
  729. }
  730. .alert-message.danger {
  731. background: var(--danger-color);
  732. }
  733. .alert-message.success {
  734. background: var(--success-color);
  735. }
  736. .alert-message .btn {
  737. box-shadow: 0 0 2px var(--secondary-bright-color);
  738. }
  739. .alert-message .btn:hover {
  740. box-shadow: 0 0 4px 1px var(--secondary-bright-color);
  741. }
  742. @keyframes fade-in {
  743. 0% { opacity: 0; }
  744. 100% { opacity: 1; }
  745. }
  746. @keyframes fade-out {
  747. 0% { opacity: 1; }
  748. 100% { opacity: 0; }
  749. }
  750. .fade-in {
  751. animation: fade-in .4s ease;
  752. }
  753. .fade-out {
  754. animation: fade-out .4s ease;
  755. opacity: 0;
  756. }
  757. /*
  758. * forms
  759. */
  760. button, .btn {
  761. background: var(--main-bright-color);
  762. color: var(--secondary-bright-color);
  763. line-height: 1.5em;
  764. border-radius: .25em;
  765. cursor: pointer;
  766. box-shadow: 0 0 2px var(--main-dark-color);
  767. padding: 0 .5em;
  768. display: inline-block;
  769. }
  770. button:hover, .btn:hover {
  771. box-shadow: 0 0 6px var(--main-bright-color);
  772. }
  773. button + button, .btn + .btn, button + .btn, .btn + button, select + button {
  774. margin-left: .25em;
  775. }
  776. button.important {
  777. background: var(--main-dark-color);
  778. }
  779. button[disabled], button.disabled, .btn[disabled], .btn.disabled {
  780. pointer-events: none;
  781. opacity: .6;
  782. }
  783. .cbi-button-apply, .cbi-button-positive {
  784. background: var(--main-dark-color);
  785. }
  786. .cbi-button-negative, .cbi-button-remove {
  787. background: var(--danger-color);
  788. }
  789. input[type="checkbox"],
  790. input[type="radio"] {
  791. --bd-color: var(--main-dark-color);
  792. --fg-color: var(--main-dark-color);
  793. appearance: none;
  794. -webkit-appearance: none;
  795. width: 1em;
  796. height: 1em;
  797. color: var(--fg-color);
  798. position: relative;
  799. display: inline-block;
  800. cursor: pointer;
  801. background: none;
  802. border: none;
  803. }
  804. input[type="checkbox"]::before,
  805. input[type="checkbox"]::after,
  806. input[type="radio"]::before,
  807. input[type="radio"]::after {
  808. position: absolute;
  809. content: "";
  810. margin: .15em 0;
  811. }
  812. input[type="checkbox"]::before,
  813. input[type="radio"]::before {
  814. top: 0;
  815. left: 0;
  816. width: 1em;
  817. height: 1em;
  818. box-shadow: 0 0 2px var(--bd-color) !important;
  819. border-radius: .25em;
  820. }
  821. input[type="radio"],
  822. input[type="radio"]::before {
  823. border-radius: 50%;
  824. }
  825. input[type="checkbox"]::after,
  826. input[type="radio"]::after {
  827. top: .15em;
  828. left: .15em;
  829. width: .7em;
  830. height: .7em;
  831. }
  832. input[type="checkbox"]:checked::after,
  833. input[type="radio"]:checked::after {
  834. --checkmark-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><path d='m2.5 7.4 7.5 7.5-2.5 2.4L0 10Zm15-5L20 4.9 7.5 17.3 5 15Z'/></svg>");
  835. -webkit-mask: var(--checkmark-icon) center/cover no-repeat;
  836. mask: var(--checkmark-icon) center/cover no-repeat;
  837. background: var(--fg-color);
  838. }
  839. input[type="radio"]:checked:after {
  840. --checkmark-icon: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='10' cy='10' r='7'/></svg>");
  841. }
  842. input[type="checkbox"].cbi-input-invalid,
  843. input[type="radio"].cbi-input-invalid {
  844. --bd-color: var(--danger-color);
  845. --fg-color: var(--danger-color);
  846. }
  847. input:not([type]),
  848. input[type="text"],
  849. input[type="password"],
  850. select,
  851. .cbi-dropdown:not(.btn):not(.cbi-button) {
  852. border-bottom: 2px solid transparent;
  853. box-shadow: inset 0 0 1px var(--main-dark-color);
  854. padding: 0 .2rem;
  855. line-height: 1.5rem;
  856. min-height: calc(1.5rem + 2px);
  857. min-width: 20rem;
  858. border-radius: .25em;
  859. }
  860. input:not([type]):focus,
  861. input[type="text"]:focus,
  862. input[type="password"]:focus,
  863. select:focus,
  864. .cbi-dropdown:not(.btn):not(.cbi-button):focus,
  865. .cbi-dropdown[open]:not(.btn):not(.cbi-button) {
  866. border-color: var(--main-dark-color);
  867. }
  868. input[disabled]:not([type]),
  869. input[disabled][type="text"],
  870. input[disabled][type="password"],
  871. select[disabled],
  872. .cbi-dynlist[disabled] {
  873. opacity: .6;
  874. pointer-events: none;
  875. }
  876. input:not([type]) + .btn, input:not([type]) + button,
  877. input[type="text"] + .btn, input[type="text"] + button,
  878. input[type="password"] + .btn, input[type="password"] + button {
  879. margin: 0 0 2px -1px;
  880. background: var(--main-dark-color);
  881. border-radius: 0 .25em .25em 0;
  882. }
  883. .control-group > select + .btn, .control-group > select + button {
  884. margin-left: .25em;
  885. }
  886. .control-group > input:not([type]) + .btn, .control-group > input:not([type]) + button,
  887. .control-group > input[type="text"] + .btn, .control-group > input[type="text"] + button,
  888. .control-group > input[type="password"] + .btn, .control-group > input[type="password"] + button {
  889. margin: .125em .125em calc(.125em + 2px) calc(-.125em - .25em) !important;
  890. }
  891. select {
  892. padding: .1rem 0;
  893. -webkit-appearance: menulist;
  894. }
  895. textarea {
  896. width: 100%;
  897. box-shadow: inset 0 0 2px var(--main-dark-color);
  898. font-family: monospace;
  899. font-size: .9rem;
  900. padding: .2rem;
  901. }
  902. .cbi-input-invalid,
  903. .cbi-input-invalid:focus {
  904. color: var(--danger-color);
  905. border-color: var(--danger-color) !important;
  906. box-shadow: inset 0 0 2px var(--danger-color);
  907. }
  908. .control-group {
  909. display: inline-flex;
  910. margin: 0 -.125rem;
  911. min-width: 20.25em;
  912. }
  913. .control-group > *,
  914. .control-group > .cbi-dropdown > ul > li {
  915. justify-content: space-around;
  916. }
  917. .control-group > * {
  918. margin: .125rem !important;
  919. min-width: auto !important;
  920. }
  921. .control-group > select,
  922. .control-group > input:not([type]),
  923. .control-group > input[type="text"],
  924. .control-group > input[type="password"] {
  925. flex: 10;
  926. }
  927. .cbi-value {
  928. display: flex;
  929. flex-wrap: wrap;
  930. margin: 0 0 1em 0;
  931. }
  932. .cbi-value > label:first-child {
  933. flex: 1 1 40%;
  934. padding: 0 .5em 0 0;
  935. }
  936. .cbi-value > .cbi-value-field {
  937. flex: 2 2 55%;
  938. }
  939. .cbi-value > .cbi-section {
  940. flex: 1 1 100%;
  941. }
  942. .cbi-map-descr,
  943. .cbi-tab-descr,
  944. .cbi-section-descr,
  945. .cbi-value-description,
  946. .cbi-value[data-widget="CBI.DummyValue"] > div:first-child {
  947. opacity: .8;
  948. font-size: .9rem;
  949. padding: .2em 0;
  950. }
  951. .cbi-map-descr a,
  952. .cbi-value-description a {
  953. color: var(--main-bright-color);
  954. text-decoration: none;
  955. outline: 0;
  956. }
  957. .cbi-map-descr a:hover,
  958. .cbi-value-description a:hover {
  959. color: var(--main-bright-color);
  960. text-decoration: underline;
  961. outline: 0;
  962. }
  963. .cbi-map-descr,
  964. .cbi-tab-descr,
  965. .cbi-section-descr,
  966. .cbi-section-table,
  967. .cbi-section-create {
  968. margin: 0 0 1em 0;
  969. }
  970. .cbi-dynlist {
  971. display: inline-block;
  972. font-size: 90%;
  973. min-height: calc(1.5em + 2px);
  974. line-height: 1.5em;
  975. min-width: 20rem;
  976. flex-wrap: wrap;
  977. }
  978. .cbi-dynlist > .item {
  979. box-shadow: 0 0 2px var(--main-dark-color);
  980. margin: .3em 0;
  981. padding: .15em 2em .15em .2em;
  982. border-radius: .25em;
  983. position: relative;
  984. overflow: hidden;
  985. transition: box-shadow .25s ease-in-out;
  986. pointer-events: auto; /* needed for drag-and-drop in UIDynamicList */
  987. flex: 1 1 100%;
  988. word-break: break-all;
  989. cursor: move; /* drag-and-drop */
  990. user-select: text; /* text selection in drag-and-drop */
  991. }
  992. .cbi-dynlist > .item::after {
  993. content: "-";
  994. top: 0;
  995. right: 0;
  996. bottom: 0;
  997. width: 1.6rem;
  998. background: var(--main-bright-color);
  999. display: flex;
  1000. align-items: center;
  1001. justify-content: space-around;
  1002. position: absolute;
  1003. box-shadow: 0 0 2px var(--main-dark-color);
  1004. text-align: center;
  1005. color: var(--secondary-bright-color);
  1006. cursor: pointer;
  1007. pointer-events: all;
  1008. }
  1009. /* indication line for drag-and-drop in UIDynamicList*/
  1010. .cbi-dynlist > .item.drag-over {
  1011. border-top: 1px solid black;
  1012. }
  1013. /* Make item being dragged in UIDynamicList partially transparent*/
  1014. .cbi-dynlist > .item.dragging {
  1015. opacity: 0.5;
  1016. }
  1017. /* prevent pointer changing when over the span element in UIDynamicList */
  1018. .cbi-dynlist > .item > span {
  1019. pointer-events: none;
  1020. }
  1021. .cbi-dynlist[disabled] > .item::after {
  1022. pointer-events: none;
  1023. }
  1024. .cbi-dynlist > .item:hover {
  1025. box-shadow: 0 0 2px var(--main-bright-color);
  1026. }
  1027. .cbi-dynlist > .add-item {
  1028. flex: 1;
  1029. display: flex;
  1030. }
  1031. /* indication line for drag-and-drop in UIDynamicList*/
  1032. .cbi-dynlist > .add-item > .cbi-input-text.drag-over {
  1033. border-top: 1px solid black;
  1034. }
  1035. /* indication line for drag-and-drop in UIDynamicList*/
  1036. .cbi-dynlist > .add-item > .cbi-button-add.drag-over {
  1037. border-top: 1px solid black;
  1038. }
  1039. .cbi-dynlist > .add-item > input {
  1040. flex: 1;
  1041. min-width: 18.5rem;
  1042. border-radius: .25rem 0 0 .25rem;
  1043. }
  1044. .cbi-dynlist > .add-item > .btn {
  1045. flex: 0 0 1.6rem;
  1046. margin: 0 0 2px -1px;
  1047. width: 1.6rem;
  1048. text-align: center;
  1049. }
  1050. .cbi-dropdown {
  1051. display: inline-flex !important;
  1052. cursor: pointer;
  1053. height: auto;
  1054. position: relative;
  1055. padding: 0 !important;
  1056. }
  1057. .cbi-dropdown:not(.btn):not(.cbi-button) {
  1058. box-shadow: inset 0 0 1px var(--main-dark-color);
  1059. }
  1060. .cbi-dropdown > ul {
  1061. margin: 0 !important;
  1062. padding: 0;
  1063. list-style: none;
  1064. overflow-x: hidden;
  1065. overflow-y: auto;
  1066. display: flex;
  1067. width: 100%;
  1068. }
  1069. .cbi-dropdown.btn > ul:not(.dropdown) {
  1070. padding-left: .5em;
  1071. }
  1072. .cbi-dropdown.btn.spinning > ul:not(.dropdown) {
  1073. padding-left: 0;
  1074. }
  1075. .cbi-dropdown.btn > ul.dropdown > li {
  1076. color: var(--main-dark-color);
  1077. }
  1078. .cbi-dropdown > ul.preview {
  1079. display: none;
  1080. }
  1081. .cbi-dropdown > .open,
  1082. .cbi-dropdown > .more {
  1083. flex-grow: 0;
  1084. flex-shrink: 0;
  1085. display: flex;
  1086. flex-direction: column;
  1087. justify-content: center;
  1088. text-align: center;
  1089. padding: 0 .25em;
  1090. }
  1091. .cbi-dropdown.btn > .open,
  1092. .cbi-dropdown.cbi-button > .open {
  1093. padding: 0 .5em;
  1094. margin-left: .5em;
  1095. border-left: 1px solid;
  1096. }
  1097. .cbi-dropdown > .more,
  1098. .cbi-dropdown:not(.btn):not(.cbi-button) > ul > li[placeholder] {
  1099. display: none;
  1100. justify-content: center;
  1101. color: rgba(0, 0, 0, .5);
  1102. }
  1103. .cbi-dropdown > ul > li {
  1104. display: none;
  1105. white-space: nowrap;
  1106. overflow: hidden;
  1107. text-overflow: ellipsis;
  1108. flex-shrink: 1;
  1109. flex-grow: 1;
  1110. align-items: center;
  1111. align-self: center;
  1112. color: inherit;
  1113. }
  1114. .cbi-dropdown > ul.dropdown > li,
  1115. .cbi-dropdown:not(.btn):not(.cbi-button) > ul > li {
  1116. padding: 0 .25em;
  1117. }
  1118. .cbi-dropdown > ul > li .hide-open { display: block; display: initial; }
  1119. .cbi-dropdown > ul > li .hide-close { display: none; }
  1120. .cbi-dropdown > ul > li[display]:not([display="0"]) {
  1121. border-left: 1px solid #ccc;
  1122. }
  1123. .cbi-dropdown[empty] > ul {
  1124. max-width: 1px;
  1125. max-height: 1.5em;
  1126. }
  1127. .cbi-dropdown > ul > li > form {
  1128. display: none;
  1129. margin: 0;
  1130. padding: 0;
  1131. pointer-events: none;
  1132. }
  1133. .cbi-dropdown > ul > li img {
  1134. align-self: center;
  1135. margin-right: .25em;
  1136. }
  1137. .cbi-dropdown > ul > li input[type="text"] {
  1138. margin: .25em 0;
  1139. border: none;
  1140. background: var(--secondary-bright-color);
  1141. }
  1142. .cbi-dropdown[open] {
  1143. position: relative;
  1144. }
  1145. .cbi-dropdown[open] > ul.dropdown {
  1146. display: block;
  1147. background: var(--secondary-bright-color);
  1148. box-shadow: 0 0 1px var(--main-dark-color), 0 0 4px rgba(0, 0, 0, .7);
  1149. position: absolute;
  1150. z-index: 1100;
  1151. max-width: none;
  1152. min-width: 100%;
  1153. width: auto;
  1154. transition: max-height .125s ease-in;
  1155. }
  1156. .cbi-dropdown > ul > li[display],
  1157. .cbi-dropdown[open] > ul.preview,
  1158. .cbi-dropdown[open] > ul.dropdown > li,
  1159. .cbi-dropdown[multiple] > ul > li > label,
  1160. .cbi-dropdown[multiple][open] > ul.dropdown > li,
  1161. .cbi-dropdown[multiple][more] > .more,
  1162. .cbi-dropdown[multiple][empty] > .more {
  1163. flex-grow: 1;
  1164. display: flex !important;
  1165. }
  1166. .cbi-dropdown[empty] > ul > li,
  1167. .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
  1168. .cbi-dropdown[multiple][open] > ul.dropdown > li > form {
  1169. display: block !important;
  1170. }
  1171. .cbi-dropdown[open] > ul.dropdown > li .hide-open { display: none; }
  1172. .cbi-dropdown[open] > ul.dropdown > li .hide-close { display: block; display: initial; }
  1173. .cbi-dropdown[open] > ul.dropdown > li {
  1174. border-bottom: 1px solid #ccc;
  1175. }
  1176. .cbi-dropdown[open] > ul.dropdown > li[selected] {
  1177. background: var(--main-dark-color);
  1178. color: var(--secondary-bright-color);
  1179. }
  1180. .cbi-dropdown[open] > ul.dropdown > li.focus,
  1181. .cbi-dropdown[open] > ul.dropdown > li:hover {
  1182. background: var(--main-bright-color);
  1183. }
  1184. .cbi-dropdown[open] > ul.dropdown > li:last-child {
  1185. margin-bottom: 0;
  1186. border-bottom: none;
  1187. }
  1188. .cbi-dropdown[open] > ul.dropdown > li[unselectable] {
  1189. opacity: 0.7;
  1190. }
  1191. .cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
  1192. width: 100%;
  1193. }
  1194. .cbi-dropdown[disabled] {
  1195. pointer-events: none;
  1196. opacity: .6;
  1197. }
  1198. .cbi-filebrowser {
  1199. max-width: 100%;
  1200. width: 1px;
  1201. box-shadow: 0 0 2px var(--main-dark-color);
  1202. border-radius: .25rem;
  1203. display: flex;
  1204. flex-direction: column;
  1205. opacity: 0;
  1206. height: 0;
  1207. overflow: hidden;
  1208. }
  1209. .cbi-filebrowser.open {
  1210. min-width: 20rem;
  1211. width: auto;
  1212. opacity: 1;
  1213. height: auto;
  1214. overflow: visible;
  1215. transition: opacity .25s ease-in;
  1216. }
  1217. .cbi-filebrowser > * {
  1218. max-width: 100%;
  1219. overflow: hidden;
  1220. text-overflow: ellipsis;
  1221. padding: 0 0 .25em 0;
  1222. margin: .25em .25em 0px .25em;
  1223. white-space: nowrap;
  1224. border-bottom: 1px solid var(--main-dark-color);
  1225. }
  1226. .cbi-filebrowser .cbi-button-positive {
  1227. margin-right: .25em;
  1228. }
  1229. .cbi-filebrowser > div {
  1230. border-bottom: none;
  1231. }
  1232. .cbi-filebrowser > ul > li {
  1233. display: flex;
  1234. flex-direction: row;
  1235. align-items: center;
  1236. }
  1237. .cbi-filebrowser > ul > li a:hover {
  1238. font-weight: bold;
  1239. text-decoration: underline;
  1240. }
  1241. .cbi-filebrowser > ul > li > div:first-child {
  1242. flex: 10;
  1243. overflow: hidden;
  1244. text-overflow: ellipsis;
  1245. }
  1246. .cbi-filebrowser > ul > li > div:last-child {
  1247. flex: 3 3 10em;
  1248. text-align: right;
  1249. }
  1250. .cbi-filebrowser > ul > li > div:last-child > button {
  1251. padding: .125em .25em;
  1252. margin: 1px 0 1px .25em;
  1253. }
  1254. .cbi-filebrowser .upload {
  1255. display: flex;
  1256. flex-direction: row;
  1257. flex-wrap: wrap;
  1258. margin: 0 -.125em .25em -.125em;
  1259. padding: 0 0 .125em 0px;
  1260. border-bottom: 1px solid var(--main-dark-color);
  1261. }
  1262. .cbi-filebrowser .upload > * {
  1263. margin: .125em;
  1264. flex: 1;
  1265. }
  1266. .cbi-filebrowser .upload > div > input {
  1267. width: 100%;
  1268. }
  1269. .cbi-section-actions {
  1270. text-align: right;
  1271. }
  1272. .cbi-page-actions {
  1273. flex-wrap: wrap;
  1274. width: 100%;
  1275. justify-content: flex-end;
  1276. margin-bottom: 1em;
  1277. margin-top: 1em;
  1278. border-top: 1px solid var(--main-dark-color);
  1279. padding-top: 1em;
  1280. text-align: right;
  1281. }
  1282. div[id$=".ipaddr"] > input,
  1283. .cbi-value-field > div > input[type="password"] {
  1284. min-width: 18.5rem;
  1285. border-radius: .25rem 0 0 .25rem;
  1286. }
  1287. div[id$=".txpower"] {
  1288. flex-wrap: wrap;
  1289. align-items: center;
  1290. }
  1291. div[id$=".txpower"] > span {
  1292. white-space: nowrap;
  1293. margin-left: .25em;
  1294. }
  1295. div[id$=".editlist"] {
  1296. flex: 1;
  1297. }
  1298. [data-errors]::after {
  1299. content: attr(data-errors);
  1300. background: var(--danger-color);
  1301. color: var(--secondary-bright-color);
  1302. border-radius: .6rem;
  1303. height: 1.1rem;
  1304. padding: 0 .25rem;
  1305. font-size: .9rem;
  1306. display: inline-block;
  1307. font-weight: bold;
  1308. min-width: .6rem;
  1309. line-height: 1rem;
  1310. margin: -.1rem 0 0 -.2rem;
  1311. text-align: center;
  1312. }
  1313. @keyframes spin {
  1314. 100% { transform: rotate(360deg); }
  1315. }
  1316. .spinning {
  1317. position: relative;
  1318. padding-left: 2.1em !important;
  1319. }
  1320. .spinning::before {
  1321. position: absolute;
  1322. display: block;
  1323. align-items: center;
  1324. top: 0;
  1325. bottom: 0;
  1326. left: .4em;
  1327. width: 1.4em;
  1328. height: 1.4em;
  1329. animation: spin 1s linear infinite;
  1330. content: url("spinner.svg");
  1331. margin: auto;
  1332. line-height: 0;
  1333. }
  1334. button.spinning, .btn.spinning {
  1335. padding-left: 1.6em !important;
  1336. }
  1337. button.spinning::before, .btn.spinning::before {
  1338. filter: invert(1);
  1339. left: .2em;
  1340. width: 1.2em;
  1341. height: 1.2em;
  1342. }
  1343. #view > div.spinning:first-child {
  1344. padding: .5em 0;
  1345. }
  1346. #view > *:last-child {
  1347. margin: 0 0 1em 0;
  1348. }
  1349. .label {
  1350. background: var(--main-bright-color);
  1351. color: var(--secondary-bright-color);
  1352. font-size: .8rem;
  1353. padding: 0 .4rem;
  1354. border-radius: .5rem;
  1355. }
  1356. .label.warning {
  1357. background: var(--danger-color);
  1358. }
  1359. .label.success {
  1360. background: var(--success-color);
  1361. }
  1362. ul.deps {
  1363. margin: 0;
  1364. padding: 0;
  1365. font-size: .9rem;
  1366. }
  1367. ul.errors {
  1368. margin: 0 0 1em 0;
  1369. padding: 0;
  1370. }
  1371. @media only screen and (max-width: 800px) {
  1372. body {
  1373. padding-top: 70px;
  1374. }
  1375. #maincontent {
  1376. padding: .25em;
  1377. max-width: 100vw;
  1378. }
  1379. #menubar {
  1380. background: var(--main-bright-color);
  1381. padding: 0 .5em;
  1382. position: fixed;
  1383. top: 0;
  1384. z-index: 1000;
  1385. }
  1386. #menubar > h2 {
  1387. flex: 0 0 2em;
  1388. display: block;
  1389. border: 2px solid var(--secondary-bright-color);
  1390. color: var(--secondary-bright-color);
  1391. border-radius: .5em;
  1392. cursor: pointer;
  1393. font-size: 100%;
  1394. margin: 0 1em 0 0;
  1395. }
  1396. #menubar > h2:hover {
  1397. border-color: var(--secondary-bright-color);
  1398. color: var(--secondary-bright-color);
  1399. }
  1400. #menubar > h2 > * {
  1401. display: none;
  1402. }
  1403. #menubar > h2::before {
  1404. content: "☰";
  1405. width: 35px;
  1406. line-height: 35px;
  1407. text-align: center;
  1408. display: inline-block;
  1409. color: inherit;
  1410. font-weight: bold;
  1411. }
  1412. #menubar > h2.active::before {
  1413. content: "×";
  1414. font-size: 200%;
  1415. }
  1416. #menubar .hostname {
  1417. font-size: 1.6em;
  1418. }
  1419. .distversion {
  1420. display: none;
  1421. }
  1422. #modemenu {
  1423. padding: .125em .25em;
  1424. }
  1425. #mainmenu {
  1426. overflow-x: hidden;
  1427. overflow-y: auto;
  1428. max-width: 0;
  1429. padding: 1em 0;
  1430. transition: max-width .25s ease-in-out, padding .25s ease-in-out;
  1431. position: fixed;
  1432. z-index: 900;
  1433. height: 100%;
  1434. }
  1435. #mainmenu.active {
  1436. max-width: 200px;
  1437. padding: 1em 1em calc(1em + 70px) 1em;
  1438. overflow-x: visible;
  1439. }
  1440. #mainmenu > div {
  1441. position: static;
  1442. }
  1443. #mainmenu ul > li {
  1444. padding: .25em 0;
  1445. }
  1446. .hide-xs {
  1447. display: none !important;
  1448. }
  1449. table {
  1450. display: flex;
  1451. flex-direction: column;
  1452. }
  1453. tr {
  1454. display: block;
  1455. border-bottom: 1px solid var(--main-dark-color);
  1456. margin-bottom: .5em;
  1457. padding-bottom: .5em;
  1458. }
  1459. tr.cbi-section-table-titles[data-title]::before,
  1460. tr.cbi-section-table-titles,
  1461. tr.cbi-section-table-descr {
  1462. display: none;
  1463. }
  1464. tr[data-title]::before {
  1465. display: block;
  1466. font-weight: bold;
  1467. border-top: none;
  1468. padding: .4em 0;
  1469. font-size: 110%;
  1470. }
  1471. td {
  1472. display: block;
  1473. border-top: none;
  1474. text-align: left !important;
  1475. padding: .2em 0;
  1476. }
  1477. th, table-titles {
  1478. display: none;
  1479. }
  1480. td[data-title] {
  1481. position: relative;
  1482. padding: .2em 0 .2em 40%;
  1483. }
  1484. td[data-title]::before {
  1485. content: attr(data-title) ": ";
  1486. white-space: nowrap;
  1487. font-weight: bold;
  1488. width: 40%;
  1489. overflow: hidden;
  1490. text-overflow: ellipsis;
  1491. position: absolute;
  1492. left: 0;
  1493. top: 0;
  1494. bottom: 0;
  1495. padding: .2em 0;
  1496. text-align: left;
  1497. display: inline-flex;
  1498. align-items: center;
  1499. }
  1500. td[data-title]::after {
  1501. content: "";
  1502. width: 2em;
  1503. position: absolute;
  1504. left: calc(40% - 2em);
  1505. top: 0;
  1506. bottom: 0;
  1507. display: block;
  1508. background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--secondary-bright-color) 90%);
  1509. }
  1510. [data-page="admin-status-overview"] .cbi-section:nth-of-type(1) td:first-of-type,
  1511. [data-page="admin-status-overview"] .cbi-section:nth-of-type(2) td:first-of-type {
  1512. font-weight: bold;
  1513. max-width: none;
  1514. width: 100%;
  1515. }
  1516. [data-page="admin-status-overview"] td > span > span { font-size: .9rem; }
  1517. [data-page="admin-status-routes"] table:nth-of-type(3) td:nth-of-type(1) { word-break: break-all; }
  1518. [data-page="admin-network-firewall-zones"] td[data-name="_info"] {
  1519. padding: .2em 0;
  1520. line-height: 2.2rem;
  1521. }
  1522. [data-page="admin-network-firewall-zones"] td[data-name="_info"]::before,
  1523. [data-page="admin-network-firewall-zones"] td[data-name="_info"]::after {
  1524. display: none;
  1525. }
  1526. [data-page="admin-network-firewall-zones"] td[data-name="_info"] label {
  1527. font-size: 1rem;
  1528. }
  1529. #cbi-wireless-wifi-device tr { display: flex; flex-wrap: wrap; }
  1530. #cbi-wireless-wifi-device tr > *:nth-child(1) { flex: 1 1 20%; align-self: center; }
  1531. #cbi-wireless-wifi-device tr > *:nth-child(2) { flex: 2 2 75%; }
  1532. #cbi-wireless-wifi-device tr > *:nth-child(3) { flex: 3 3 100%; }
  1533. #cbi-network-interface tr { display: flex; flex-wrap: wrap; }
  1534. #cbi-network-interface tr > *:nth-child(1) { flex: 1 1 33%; align-self: center; }
  1535. #cbi-network-interface tr > *:nth-child(2) { flex: 2 2 60%; align-self: center; font-size: .9rem; overflow: hidden; }
  1536. #cbi-network-interface tr > *:nth-child(3) { flex: 3 3 100%; }
  1537. #cbi-network-interface tr > *:nth-child(2) > div { overflow: hidden; text-overflow: ellipsis; }
  1538. .assoclist tr {
  1539. display: flex;
  1540. flex-wrap: wrap;
  1541. }
  1542. .assoclist td > .ifacebadge {
  1543. max-width: 90px;
  1544. }
  1545. .assoclist td > .ifacebadge > img {
  1546. margin: 0 35px;
  1547. }
  1548. .assoclist td > .ifacebadge > span {
  1549. display: none;
  1550. }
  1551. .assoclist td > .ifacebadge[data-ifname]::after {
  1552. content: attr(data-ifname);
  1553. }
  1554. .assoclist td > .ifacebadge[data-signal]::after {
  1555. content: attr(data-signal) " dBm";
  1556. }
  1557. .assoclist td:nth-of-type(3) {
  1558. font-weight: bold;
  1559. font-size: 1rem;
  1560. }
  1561. .assoclist td:nth-of-type(1), .assoclist td:nth-of-type(4) {
  1562. flex: 1 1 100px;
  1563. margin-right: .5em;
  1564. }
  1565. .assoclist td:nth-of-type(3), .assoclist td:nth-of-type(5) {
  1566. flex: 2 2 calc(100% - 110px);
  1567. overflow: hidden;
  1568. text-overflow: ellipsis;
  1569. align-self: center;
  1570. }
  1571. .assoclist td:nth-of-type(6) { flex: 1; text-align: right !important; }
  1572. .assoclist td[data-title] { padding: .2em 0; }
  1573. .assoclist td[data-title]::before,
  1574. .assoclist td[data-title]::after { display: none; }
  1575. .leases6 td:nth-of-type(3) { word-wrap: break-word; }
  1576. td.cbi-section-actions > div { display: flex; }
  1577. td.cbi-section-actions > div > * { flex: 1; }
  1578. body.modal-overlay-active #modal_overlay > .modal {
  1579. width: 95%;
  1580. margin: 5% auto;
  1581. }
  1582. input:not([type]),
  1583. input[type="text"],
  1584. input[type="password"],
  1585. select,
  1586. .cbi-dropdown:not(.btn):not(.cbi-button),
  1587. .cbi-dynlist {
  1588. min-height: calc(2.2rem + 2px);
  1589. line-height: 2.2rem;
  1590. font-size: 1.2rem;
  1591. min-width: 10rem;
  1592. }
  1593. button, .btn {
  1594. line-height: 1.8rem;
  1595. font-size: 1.2rem;
  1596. }
  1597. select {
  1598. padding: .4em 0;
  1599. }
  1600. .cbi-value > .cbi-value-field {
  1601. flex: 1 0 100%;
  1602. display: flex;
  1603. flex-direction: column;
  1604. max-width: 100%;
  1605. }
  1606. .cbi-value > .cbi-value-field > div[id] {
  1607. display: flex;
  1608. flex-direction: row;
  1609. }
  1610. .cbi-value > .cbi-value-field > div[id] > input,
  1611. .cbi-value > .cbi-value-field > div[id] > select,
  1612. .cbi-value > .cbi-value-field > div[id] > .cbi-filebrowser.open {
  1613. flex: 1;
  1614. width: 100%;
  1615. }
  1616. .cbi-dynlist .item::after,
  1617. .cbi-dynlist .add-item > .btn {
  1618. line-height: 2em;
  1619. flex-basis: 2rem;
  1620. width: 2rem;
  1621. }
  1622. .ifacebadge.large {
  1623. font-size: .9rem;
  1624. }
  1625. .control-group > *,
  1626. .control-group > .cbi-dropdown > ul > li {
  1627. flex: 1;
  1628. white-space: normal;
  1629. word-wrap: break-word;
  1630. }
  1631. .cbi-page-actions .cbi-dropdown,
  1632. .cbi-page-actions .cbi-button-apply:first-child {
  1633. flex-basis: 100%;
  1634. }
  1635. .cbi-checkbox {
  1636. margin: .25rem;
  1637. }
  1638. .cbi-tabmenu {
  1639. margin: 0 -.25em 1em -.25em;
  1640. }
  1641. .cbi-tooltip {
  1642. font-size: 1rem;
  1643. box-shadow: 0 0 4px rgba(0, 0, 0, .7);
  1644. }
  1645. .cbi-value > label:first-child {
  1646. padding: 0 0 .5em 0;
  1647. }
  1648. [data-page="admin-system-admin-sshkeys"] .cbi-dynlist > .item {
  1649. font-size: .9rem;
  1650. line-height: 1rem;
  1651. }
  1652. [data-page="admin-system-opkg"] .control-group {
  1653. flex-wrap: wrap;
  1654. }
  1655. [data-page="admin-status-iptables"] h2 + div.right {
  1656. margin: 0 0 1em 0 !important;
  1657. display: flex;
  1658. }
  1659. }
  1660. @media only screen and (min-width: 800px) and (max-width: 1200px) {
  1661. .assoclist tr > *:nth-of-type(2) {
  1662. display: none;
  1663. }
  1664. }