style.css 29 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549
  1. /**
  2. * Material is a clean HTML5 theme for LuCI. It is based on luci-theme-bootstrap and MUI
  3. *
  4. * luci-theme-material
  5. * Copyright 2015 Lutty Yang <lutty@wcan.in>
  6. *
  7. * Have a bug? Please create an issue here on GitHub!
  8. * https://github.com/LuttyYang/luci-theme-material/issues
  9. *
  10. * luci-theme-bootstrap:
  11. * Copyright 2008 Steven Barth <steven@midlink.org>
  12. * Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
  13. * Copyright 2012 David Menting <david@nut-bolt.nl>
  14. *
  15. * MUI:
  16. * https://github.com/muicss/mui
  17. *
  18. * Licensed to the public under the Apache License 2.0
  19. */
  20. /*
  21. * Font generate by Icomoon<icomoon.io>
  22. */
  23. @font-face {
  24. font-family: 'icomoon';
  25. src: url('../fonts/font.eot');
  26. src: url('../fonts/font.eot') format('embedded-opentype'),
  27. url('../fonts/font.ttf') format('truetype'),
  28. url('../fonts/font.woff') format('woff'),
  29. url('../fonts/font.svg') format('svg');
  30. font-weight: normal;
  31. font-style: normal;
  32. }
  33. .cbi-button-up,
  34. .cbi-button-down,
  35. .cbi-value-helpicon,
  36. .showSide,
  37. .main > .loading > span {
  38. font-family: 'icomoon' !important;
  39. speak: none;
  40. font-style: normal !important;
  41. font-weight: normal !important;
  42. font-variant: normal !important;
  43. text-transform: none !important;
  44. line-height: 1;
  45. -webkit-font-smoothing: antialiased;
  46. -moz-osx-font-smoothing: grayscale;
  47. }
  48. * {
  49. margin: 0;
  50. padding: 0;
  51. box-sizing: border-box;
  52. }
  53. .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  54. font-family: inherit;
  55. font-weight: 400;
  56. line-height: 1.1;
  57. color: inherit;
  58. }
  59. html {
  60. -webkit-text-size-adjust: 100%;
  61. -ms-text-size-adjust: 100%;
  62. }
  63. body {
  64. font-size: 0.8rem;
  65. background-color: #EEE;
  66. }
  67. html, body {
  68. margin: 0px;
  69. padding: 0px;
  70. height: 100%;
  71. font-family: Microsoft Yahei, WenQuanYi Micro Hei, sans-serif, "Helvetica Neue", Helvetica, Hiragino Sans GB;
  72. }
  73. select {
  74. padding: 0.36rem 0.8rem;
  75. color: #555;
  76. background-color: #fff;
  77. background-image: none;
  78. border: 1px solid #ccc;
  79. }
  80. select,
  81. input {
  82. background-color: transparent;
  83. color: rgba(0, 0, 0, .87);
  84. border: none;
  85. border-bottom: 2px solid rgba(0, 0, 0, .26);
  86. outline: 0;
  87. padding: 0;
  88. box-shadow: none;
  89. border-radius: 0;
  90. background-image: none;
  91. height: 1.8rem;
  92. font-size: 0.8rem;
  93. }
  94. select:not([multiple="multiple"]):focus,
  95. input:focus {
  96. border-color: #0099CC;
  97. }
  98. select[multiple="multiple"] {
  99. height: auto;
  100. }
  101. code {
  102. color: #0099CC;
  103. }
  104. abbr {
  105. color: #005470;
  106. text-decoration: underline;
  107. cursor: help;
  108. }
  109. hr {
  110. margin: 1rem 0;
  111. border-color: #EEE;
  112. opacity: 0.1;
  113. }
  114. header, .main {
  115. width: 100%;
  116. position: absolute;
  117. }
  118. header {
  119. height: 4rem;
  120. box-shadow: 0 2px 5px rgba(0, 0, 0, .26);
  121. transition: box-shadow .2s;
  122. float: left;
  123. position: fixed;
  124. z-index: 101;
  125. }
  126. footer {
  127. text-align: right;
  128. padding: 1rem;
  129. color: #aaa;
  130. font-size: 0.8rem;
  131. text-shadow: 0px 0px 2px #BBB;
  132. }
  133. footer > a {
  134. color: #aaa;
  135. text-decoration: none;
  136. }
  137. .main {
  138. top: 4rem;
  139. bottom: 0rem;
  140. position: relative;
  141. height: 100%;
  142. height: calc(100% - 4rem);
  143. }
  144. .main > .loading {
  145. position: fixed;
  146. width: 100%;
  147. height: 100%;
  148. z-index: 1000;
  149. display: block;
  150. background-color: rgb(240, 240, 240);
  151. top: 0;
  152. }
  153. .main > .loading > span {
  154. display: block;
  155. text-align: center;
  156. margin-top: 2rem;
  157. color: #888;
  158. font-size: 1.2rem;
  159. }
  160. .main > .loading > span > .loading-img:before {
  161. content: "\e603";
  162. }
  163. .main > .loading > span > .loading-img {
  164. animation: anim-rotate 2s infinite linear;
  165. margin-right: 0.2rem;
  166. display: inline-block;
  167. }
  168. @keyframes anim-rotate {
  169. 0% {
  170. -webkit-transform: rotate(0);
  171. -ms-transform: rotate(0);
  172. transform: rotate(0);
  173. }
  174. 100% {
  175. -webkit-transform: rotate(360deg);
  176. -ms-transform: rotate(360deg);
  177. transform: rotate(360deg)
  178. }
  179. }
  180. .main-left {
  181. float: left;
  182. top: 4rem;
  183. width: 15%;
  184. width: calc(0% + 15rem);
  185. height: 100%;
  186. height: calc(100% - 4rem);
  187. background-color: white;
  188. overflow-x: auto;
  189. position: fixed;
  190. }
  191. .main-right {
  192. width: 85%;
  193. width: calc(100% - 15rem);
  194. float: right;
  195. height: 100%;
  196. background-color: #EEE;
  197. }
  198. .main-right > #maincontent {
  199. background-color: #EEE;
  200. }
  201. .pull-right {
  202. float: right;
  203. }
  204. .pull-left {
  205. float: left;
  206. }
  207. header {
  208. background: #0099CC;
  209. color: white;
  210. }
  211. header > .container {
  212. margin-top: 0.5rem;
  213. padding: 0.5rem 1rem 0 1rem;
  214. }
  215. header > .container > .brand {
  216. font-size: 1.4rem;
  217. color: white;
  218. text-decoration: none;
  219. cursor: default;
  220. vertical-align: text-bottom;
  221. }
  222. .warning {
  223. background-color: #FF7D60 !important;
  224. color: #FFF;
  225. }
  226. .errorbox,
  227. .alert-message {
  228. margin: 2rem 0 0 0;
  229. padding: 2rem;
  230. border: 0;
  231. font-weight: normal;
  232. font-style: normal;
  233. line-height: 1;
  234. font-family: inherit;
  235. min-width: inherit;
  236. overflow: auto;
  237. border-radius: 0;
  238. background-color: #FFF;
  239. box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
  240. }
  241. .errorbox {
  242. color: #fff;
  243. background-color: #f0ad4e;
  244. border-color: #eea236;
  245. }
  246. .error {
  247. color: red;
  248. }
  249. #maincontent > .container > div:nth-child(1).alert-message.warning > a {
  250. font: inherit;
  251. overflow: visible;
  252. text-transform: none;
  253. display: inline-block;
  254. margin-bottom: 0;
  255. font-weight: 400;
  256. text-align: center;
  257. white-space: nowrap;
  258. vertical-align: middle;
  259. touch-action: manipulation;
  260. cursor: pointer;
  261. -webkit-user-select: none;
  262. -moz-user-select: none;
  263. -ms-user-select: none;
  264. user-select: none;
  265. background-image: none;
  266. min-width: 6rem;
  267. padding: 0.5rem 1rem;
  268. font-size: 0.9rem;
  269. line-height: 1.42857143;
  270. color: #fff;
  271. background-color: #5bc0de;
  272. border-color: #46b8da;
  273. margin-top: 2rem;
  274. text-decoration: inherit;
  275. }
  276. .main > .main-left > .nav {
  277. margin-top: 0.5rem;
  278. }
  279. .main > .main-left > .nav > li a {
  280. color: #404040;
  281. display: block;
  282. }
  283. .main > .main-left > .nav > li:nth-last-child(1) {
  284. margin-top: 2rem;
  285. font-size: 1.2rem;
  286. }
  287. .main > .main-left > .nav > li {
  288. padding: 0.5rem 1rem;
  289. cursor: pointer;
  290. }
  291. .main > .main-left > .nav > .slide {
  292. padding: 0;
  293. }
  294. .main > .main-left > .nav > .slide > ul {
  295. display: none;
  296. }
  297. .main > .main-left > .nav > .slide > .menu {
  298. display: block;
  299. padding: 0.5rem 1rem;
  300. text-decoration: none;
  301. cursor: default;
  302. font-size: 1.15rem;
  303. }
  304. .main > .main-left > .nav > li:hover,
  305. .main > .main-left > .nav > .slide > .menu:hover {
  306. background: #D4D4D4;
  307. }
  308. .main > .main-left > .nav > .slide:hover {
  309. background: none;
  310. }
  311. .main > .main-left > .nav > .slide > .slide-menu > li {
  312. padding: 0.4rem 2rem;
  313. }
  314. .main > .main-left > .nav > .slide > .slide-menu > .active {
  315. background-color: #0099CC;
  316. }
  317. .main > .main-left > .nav > .slide > .slide-menu > li > a {
  318. text-decoration: none;
  319. white-space: nowrap;
  320. }
  321. .main > .main-left > .nav > .slide > .slide-menu > .active > a {
  322. color: white;
  323. }
  324. .main > .main-left > .nav > .slide > .slide-menu > li:hover {
  325. background: #D4D4D4;
  326. }
  327. .main > .main-left > .nav > .slide > .slide-menu > .active:hover {
  328. background-color: #0099CC;
  329. cursor: hand;
  330. }
  331. li {
  332. list-style-type: none;
  333. }
  334. #maincontent > .container {
  335. margin: 0 2rem 1rem 2rem;
  336. }
  337. h1 {
  338. font-size: 2rem;
  339. padding-bottom: 10px;
  340. border-bottom: 1px solid #eee;
  341. }
  342. h2 {
  343. margin: 2rem 0 0 0;
  344. font-size: 1.8rem;
  345. padding-bottom: 10px;
  346. border-bottom: 1px solid #eee;
  347. }
  348. h3 {
  349. margin: 2rem 0 0 0;
  350. font-size: 1.4rem;
  351. padding-bottom: 10px;
  352. }
  353. h4 {
  354. }
  355. fieldset {
  356. margin: 2rem 0 0 0;
  357. padding: 2rem;
  358. border: 0;
  359. font-weight: normal;
  360. font-style: normal;
  361. line-height: 1;
  362. font-family: inherit;
  363. min-width: inherit;
  364. overflow-x: auto;
  365. overflow-y: hidden;
  366. border-radius: 0;
  367. background-color: #FFF;
  368. box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
  369. -webkit-overflow-scrolling: touch;
  370. }
  371. .cbi-map-descr + fieldset {
  372. margin-top: 1rem;
  373. }
  374. fieldset > legend {
  375. display: none !important;
  376. }
  377. fieldset > fieldset {
  378. margin: 0;
  379. padding: 0;
  380. border: none;
  381. box-shadow: none;
  382. }
  383. .panel-title {
  384. width: 100%;
  385. display: block;
  386. line-height: 1;
  387. color: #404040;
  388. font-size: 1.4rem;
  389. padding-bottom: 1rem;
  390. border-bottom: 1px solid #eee;
  391. }
  392. table {
  393. border-spacing: 0;
  394. border-collapse: collapse;
  395. width: 100%;
  396. border: 1px solid #eee;
  397. }
  398. table > tbody > tr > td, table > tbody > tr > th, table > tfoot > tr > td, table > tfoot > tr > th, table > thead > tr > td, table > thead > tr > th {
  399. padding: .5rem;
  400. border-top: 1px solid #ddd;
  401. white-space: nowrap;
  402. }
  403. .cbi-section-table-cell {
  404. text-align: center;
  405. }
  406. .cbi-section-table-row {
  407. text-align: center;
  408. }
  409. fieldset > table > tbody > tr:nth-of-type(2n) {
  410. background-color: #f9f9f9;
  411. }
  412. /* fix progress bar */
  413. #swaptotal > div,
  414. #swapfree > div,
  415. #memfree > div,
  416. #membuff > div,
  417. #conns > div,
  418. #memtotal > div {
  419. width: 100% !important;
  420. height: 1.2rem !important;
  421. }
  422. #swaptotal > div > div,
  423. #swapfree > div > div,
  424. #memfree > div > div,
  425. #membuff > div > div,
  426. #conns > div > div,
  427. #memtotal > div > div {
  428. height: 100% !important;
  429. background-color: #0099CC !important;
  430. }
  431. /* fix multiple table */
  432. table table {
  433. border: none;
  434. }
  435. .cbi-value-field table {
  436. border: none;
  437. }
  438. td > table > tbody > tr > td {
  439. border: none;
  440. }
  441. .cbi-value-field > table > tbody > tr > td {
  442. border: none;
  443. }
  444. /* button style */
  445. .cbi-button {
  446. -webkit-appearance: none;
  447. text-transform: uppercase;
  448. color: rgba(0, 0, 0, 0.87);
  449. background-color: #F0F0F0;
  450. transition: all 0.2s ease-in-out;
  451. display: inline-block;
  452. padding: 0 0.8rem;
  453. border: none;
  454. border-radius: 0.2rem;
  455. cursor: pointer;
  456. -ms-touch-action: manipulation;
  457. touch-action: manipulation;
  458. background-image: none;
  459. text-align: center;
  460. vertical-align: middle;
  461. white-space: nowrap;
  462. -webkit-user-select: none;
  463. -moz-user-select: none;
  464. -ms-user-select: none;
  465. user-select: none;
  466. font-size: 0.8rem;
  467. width: auto !important;
  468. }
  469. .cbi-button:hover,
  470. .cbi-button:focus,
  471. .cbi-button:active {
  472. color: rgba(0, 0, 0, 0.87);
  473. outline: 0;
  474. text-decoration: none;
  475. color: rgba(0, 0, 0, 0.87);
  476. }
  477. .cbi-button:hover,
  478. .cbi-button:focus {
  479. box-shadow: 0 0px 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.2);
  480. }
  481. .cbi-button:active {
  482. box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
  483. }
  484. .cbi-button:disabled {
  485. cursor: not-allowed;
  486. pointer-events: none;
  487. opacity: 0.60;
  488. box-shadow: none;
  489. }
  490. form.inline + form.inline,
  491. .cbi-button + .cbi-button {
  492. margin-left: 0.6rem;
  493. }
  494. .cbi-button-reset,
  495. .cbi-input-remove {
  496. color: #fff !important;
  497. background-color: #f0ad4e !important;
  498. border-color: #eea236 !important;
  499. }
  500. .cbi-input-find,
  501. .cbi-input-save,
  502. .cbi-button-add,
  503. .cbi-button-save,
  504. .cbi-button-find,
  505. .cbi-input-reload,
  506. .cbi-button-reload {
  507. color: #fff !important;
  508. background-color: #337ab7 !important;
  509. border-color: #2e6da4 !important;
  510. }
  511. .cbi-input-apply,
  512. .cbi-button-apply,
  513. .cbi-button-edit {
  514. color: #fff !important;
  515. background-color: #5bc0de !important;
  516. border-color: #46b8da !important;
  517. }
  518. .cbi-input-reset,
  519. .cbi-section-remove > .cbi-button,
  520. .cbi-button-remove {
  521. color: #fff !important;
  522. background-color: #d9534f !important;
  523. border-color: #d43f3a !important;
  524. }
  525. .a-to-btn {
  526. text-decoration: none;
  527. }
  528. /* table */
  529. .tabs {
  530. margin: 0 -2rem;
  531. padding-left: 0.5rem;
  532. background-color: #FFFFFF;
  533. }
  534. .cbi-tabmenu > li,
  535. .tabs > li {
  536. display: inline-block;
  537. padding: 0.6rem 0rem;
  538. }
  539. .cbi-tabmenu > li > a,
  540. .tabs > li > a {
  541. text-decoration: none;
  542. color: #404040;
  543. padding: 0.5rem 0.8rem;
  544. }
  545. .tabs > li[class~="active"],
  546. .tabs > li:hover {
  547. cursor: pointer;
  548. border-bottom: 0.2rem solid #0099CC;
  549. color: #0099CC;
  550. margin-bottom: -0.18751rem;
  551. }
  552. .tabs > li[class~="active"] > a {
  553. color: #0099cc;
  554. }
  555. .tabs > li:hover {
  556. border-bottom: 0.18751rem solid #C9C9C9;
  557. }
  558. .cbi-tabmenu {
  559. border-top: 1px solid #D4D4D4;
  560. border-left: 1px solid #D4D4D4;
  561. border-right: 1px solid #D4D4D4;
  562. }
  563. .cbi-tabmenu > li:hover {
  564. background-color: #F1F1F1;
  565. }
  566. .cbi-tabmenu > li[class~="cbi-tab"] {
  567. background-color: white;
  568. }
  569. .cbi-tabmenu {
  570. background-color: #D4D4D4;
  571. }
  572. .cbi-section-remove:nth-of-type(2n),
  573. .cbi-section-node:nth-of-type(2n){
  574. background-color: #f9f9f9;
  575. }
  576. .cbi-section-node-tabbed {
  577. padding: 0;
  578. margin-top: 0;
  579. border-bottom: 1px solid #D4D4D4;
  580. border-left: 1px solid #D4D4D4;
  581. border-right: 1px solid #D4D4D4;
  582. }
  583. .cbi-tabcontainer > .cbi-value:nth-of-type(2n) {
  584. background-color: #f9f9f9;
  585. }
  586. .cbi-value-field,
  587. .cbi-value-description {
  588. display: table-cell;
  589. line-height: 1.25;
  590. }
  591. .cbi-value-helpicon > img {
  592. display: none;
  593. }
  594. .cbi-value-helpicon:before {
  595. content: "\f059";
  596. }
  597. .cbi-value-description {
  598. font-size: small;
  599. opacity: 0.5;
  600. padding: 0.5rem 0 0 0;
  601. }
  602. .cbi-value-title {
  603. word-wrap: break-word;
  604. padding-top: 0.6rem;
  605. width: 23rem;
  606. float: left;
  607. text-align: right;
  608. padding-right: 2rem;
  609. display: table-cell;
  610. }
  611. .cbi-value {
  612. padding: 0.3rem 1rem;
  613. display: inline-block;
  614. width: 100%;
  615. }
  616. .cbi-section-table-descr > .cbi-section-table-cell,
  617. .cbi-section-table-titles > .cbi-section-table-cell {
  618. border: none;
  619. }
  620. .cbi-rowstyle-2 {
  621. background-color: #eee;
  622. }
  623. .cbi-rowstyle-2 .cbi-button-up,
  624. .cbi-rowstyle-2 .cbi-button-down {
  625. background-color: #FFF !important;
  626. }
  627. .cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
  628. width: auto !important;
  629. }
  630. /* desc */
  631. .cbi-section-descr,
  632. .cbi-map-descr {
  633. padding: 0.5rem;
  634. color: #999;
  635. font-size: small;
  636. }
  637. /* luci */
  638. .hidden {
  639. display: none
  640. }
  641. .left {
  642. text-align: left !important;
  643. }
  644. .right {
  645. text-align: right !important;
  646. }
  647. .inline {
  648. display: inline;
  649. }
  650. .cbi-page-actions {
  651. border-top: 1px solid #eee;
  652. padding-top: 1rem;
  653. text-align: right;
  654. }
  655. /* input */
  656. .cbi-value input[type="password"],
  657. .cbi-value input[type="text"] {
  658. min-width: 15rem;
  659. }
  660. /* select */
  661. .cbi-value-field .cbi-input-select {
  662. min-width: 15rem;
  663. }
  664. .ifacebadge {
  665. display: inline-flex;
  666. border-bottom: 1px solid #CCCCCC;
  667. padding: 0.5rem 1rem;
  668. -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  669. -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  670. box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  671. }
  672. td > .ifacebadge {
  673. background-color: #F0F0F0;
  674. font-size: 0.9rem;
  675. }
  676. .ifacebadge > img {
  677. float: right;
  678. margin: 0 0.3rem;
  679. }
  680. /*textarea*/
  681. .cbi-input-textarea {
  682. width: 100%;
  683. min-height: 14rem;
  684. padding: 0.8rem;
  685. font-size: 0.8rem;
  686. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  687. color: black;
  688. }
  689. #syslog {
  690. width: 100%;
  691. min-height: 15rem;
  692. padding: 1rem;
  693. font-size: small;
  694. color: #5F5F5F;
  695. margin-bottom: 20px;
  696. border-radius: 0;
  697. background-color: #FFF;
  698. box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
  699. border: none;
  700. }
  701. /* change */
  702. .uci-change-list {
  703. font-family: monospace;
  704. }
  705. .uci-change-list ins,
  706. .uci-change-legend-label ins {
  707. text-decoration: none;
  708. border: 1px solid #00FF00;
  709. background-color: #CCFFCC;
  710. display: block;
  711. padding: 2px;
  712. }
  713. .uci-change-list del,
  714. .uci-change-legend-label del {
  715. text-decoration: none;
  716. border: 1px solid #FF0000;
  717. background-color: #FFCCCC;
  718. display: block;
  719. font-style: normal;
  720. padding: 2px;
  721. }
  722. .uci-change-list var,
  723. .uci-change-legend-label var {
  724. text-decoration: none;
  725. border: 1px solid #CCCCCC;
  726. background-color: #EEEEEE;
  727. display: block;
  728. font-style: normal;
  729. padding: 2px;
  730. }
  731. .uci-change-list var ins,
  732. .uci-change-list var del {
  733. border: none;
  734. white-space: pre;
  735. font-style: normal;
  736. padding: 0px;
  737. }
  738. .uci-change-legend {
  739. padding: 5px;
  740. }
  741. .uci-change-legend-label {
  742. width: 150px;
  743. float: left;
  744. }
  745. .uci-change-legend-label > ins,
  746. .uci-change-legend-label > del,
  747. .uci-change-legend-label > var {
  748. float: left;
  749. margin-right: 4px;
  750. width: 10px;
  751. height: 10px;
  752. display: block;
  753. }
  754. .uci-change-legend-label var ins,
  755. .uci-change-legend-label var del {
  756. line-height: 6px;
  757. border: none;
  758. }
  759. .uci-change-list var,
  760. .uci-change-list del,
  761. .uci-change-list ins {
  762. padding: 0.5rem;
  763. }
  764. /* other fix */
  765. #iwsvg,
  766. #iwsvg2,
  767. #bwsvg {
  768. border: 1px solid #D4D4D4 !important;
  769. border-top: none !important;
  770. }
  771. .ifacebox {
  772. border: 1px solid #999;
  773. background-color: #f9f9f9;
  774. }
  775. .cbi-image-button {
  776. margin-left: 0.5rem;
  777. }
  778. .zonebadge {
  779. padding: 0.2rem 0.5rem;
  780. display: inline-block;
  781. cursor: pointer;
  782. }
  783. .zonebadge > .ifacebadge {
  784. padding: 0.2rem 1rem;
  785. margin: 0.3rem;
  786. border: 1px solid #6C6C6C;
  787. }
  788. .zonebadge > input[type="text"] {
  789. padding: 0.16rem 1rem;
  790. min-width: 10rem;
  791. margin-top: 0.3rem;
  792. }
  793. .cbi-value-field .cbi-input-checkbox,
  794. .cbi-value-field .cbi-input-radio {
  795. margin-top: 0.5rem;
  796. height: 1rem;
  797. }
  798. .cbi-value-field > input + .cbi-value-description {
  799. padding: 0;
  800. }
  801. .cbi-value-field > ul > li {
  802. display: flex;
  803. }
  804. .cbi-value-field > ul > li > label {
  805. margin-top: 0.5rem;
  806. }
  807. .cbi-value-field > ul > li .ifacebadge {
  808. background-color: #eee;
  809. margin-left: 0.4rem;
  810. margin-top: -0.5rem;
  811. }
  812. .cbi-section-table-row > .cbi-value-field .cbi-input-select {
  813. min-width: 7rem;
  814. }
  815. .cbi-section-create > .cbi-button-add {
  816. margin: 0.5rem;
  817. }
  818. .cbi-section-remove {
  819. padding: 0.5rem;
  820. }
  821. div.cbi-value var, td.cbi-value-field var {
  822. font-style: italic;
  823. color: #0069D6;
  824. }
  825. small {
  826. font-size: 90%;
  827. white-space: normal;
  828. line-height: 1.42857143;
  829. }
  830. .cbi-button-up,
  831. .cbi-button-down {
  832. display: inline-block;
  833. min-width: 0;
  834. padding: 0.2rem 0.3rem;
  835. font-size: 1.2rem;
  836. }
  837. .cbi-optionals {
  838. padding: 1rem 1rem 0 1rem;
  839. border-top: 1px solid #CCC;
  840. }
  841. #diag-rc-output > pre {
  842. background-color: #f5f5f5;
  843. display: block;
  844. padding: 8.5px;
  845. margin: 0 0 18px;
  846. line-height: 1.5rem;
  847. -moz-border-radius: 3px;
  848. white-space: pre-wrap;
  849. word-wrap: break-word;
  850. font-size: 1.4rem;
  851. color: #404040;
  852. }
  853. input[name="ping"],
  854. input[name="traceroute"],
  855. input[name="nslookup"] {
  856. width: 80%;
  857. }
  858. header > .container > .pull-right > * {
  859. position: relative;
  860. top: 0.45rem;
  861. cursor: pointer;
  862. }
  863. #xhr_poll_status > .label.success {
  864. background-color: #14CE14;
  865. }
  866. .label {
  867. padding: 0.3rem 0.8rem;
  868. font-size: 0.8rem;
  869. font-weight: bold;
  870. color: #ffffff !important;
  871. text-transform: uppercase;
  872. white-space: nowrap;
  873. background-color: #bfbfbf;
  874. -webkit-border-radius: 3px;
  875. -moz-border-radius: 3px;
  876. border-radius: 3px;
  877. text-shadow: none;
  878. text-decoration: none;
  879. }
  880. .notice {
  881. background-color: #5BC0DE;
  882. }
  883. .showSide {
  884. display: none;
  885. }
  886. .darkMask {
  887. width: 100%;
  888. height: 100%;
  889. position: fixed;
  890. background-color: rgba(0, 0, 0, 0.56);
  891. content: "";
  892. z-index: 99;
  893. display: none;
  894. }
  895. /* fix Main Login*/
  896. .node-main-login > .main > .main-left {
  897. display: none;
  898. }
  899. .node-main-login > .main > .main-right {
  900. width: 100%;
  901. }
  902. .node-main-login > .main fieldset {
  903. padding: 0.5rem;
  904. margin-bottom: 1rem;
  905. display: inline;
  906. background: none;
  907. border: none;
  908. box-shadow: none;
  909. overflow: hidden;
  910. }
  911. .node-main-login > .main .cbi-value-title {
  912. width: 7rem;
  913. }
  914. .node-main-login > .main #maincontent {
  915. text-align: center;
  916. }
  917. .node-main-login > .main .container {
  918. display: inline-block;
  919. padding: 2rem 4rem;
  920. margin-top: 2rem !important;
  921. background-color: #FFF;
  922. box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
  923. text-align: left;
  924. }
  925. .node-main-login > .main form > div:nth-last-child(1) {
  926. float: right;
  927. }
  928. .node-main-login > .main .cbi-value {
  929. display: block;
  930. }
  931. .node-main-login > .main .cbi-value > * {
  932. display: inline-block !important;
  933. }
  934. .node-main-login > .main .cbi-input-user,
  935. .node-main-login > .main .cbi-input-password {
  936. min-width: 15rem;
  937. }
  938. .node-main-login footer {
  939. bottom: 0;
  940. position: absolute;
  941. width: 100%;
  942. }
  943. /* fix status overview */
  944. .node-status-overview > .main fieldset:nth-child(4) td:nth-child(2) {
  945. white-space: normal;
  946. }
  947. /* fix status processes */
  948. .node-status-processes > .main table tr td:nth-child(3) {
  949. white-space: normal;
  950. }
  951. .node-status-iptables > .main div > .cbi-map > form {
  952. margin: 2rem 2rem 0 0;
  953. }
  954. /* fix system reboot */
  955. .node-system-reboot > .main > .main-right p,
  956. .node-system-reboot > .main > .main-right h3 {
  957. padding-left: 2rem;
  958. }
  959. /* fix Services Network Shares*/
  960. .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-title {
  961. margin-bottom: 1rem;
  962. width: auto;
  963. }
  964. .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-field {
  965. display: list-item;
  966. }
  967. .node-services-samba > .main .cbi-tabcontainer:nth-child(3) .cbi-value-description {
  968. padding-top: 1rem;
  969. }
  970. /* fix System Software*/
  971. .node-system-packages > .main table tr td:nth-child(1) {
  972. width: auto !important;
  973. }
  974. .node-system-packages > .main table tr td:nth-last-child(1) {
  975. white-space: normal;
  976. font-size: small;
  977. color: #404040;
  978. }
  979. .node-system-packages > .main .cbi-tabmenu > li > a, .tabs > li > a {
  980. padding: 0.5rem 0.8rem;
  981. }
  982. .node-system-packages > .main .cbi-value > pre {
  983. background-color: #eee;
  984. padding: 0.5rem;
  985. overflow: auto;
  986. }
  987. .cbi-tabmenu + .cbi-section {
  988. margin-top: 0;
  989. }
  990. /* fix network firewall*/
  991. .node-network-firewall > .main .cbi-section-table-row > .cbi-value-field .cbi-input-select {
  992. min-width: 4rem;
  993. }
  994. .node-status-iptables fieldset,
  995. .node-system-packages fieldset,
  996. .node-system-flashops fieldset {
  997. margin-top: 0;
  998. }
  999. .node-status-iptables .cbi-tabmenu,
  1000. .node-system-packages .cbi-tabmenu,
  1001. .node-system-flashops .cbi-tabmenu {
  1002. border: none;
  1003. box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
  1004. }
  1005. .node-system-flashops form.inline + form.inline {
  1006. margin-left: 0;
  1007. }
  1008. #cbi-firewall-redirect table *,
  1009. #cbi-network-switch_vlan table *,
  1010. #cbi-firewall-zone table * {
  1011. font-size: small;
  1012. }
  1013. #cbi-firewall-redirect table input[type="text"],
  1014. #cbi-network-switch_vlan table input[type="text"],
  1015. #cbi-firewall-zone table input[type="text"] {
  1016. width: 5rem;
  1017. }
  1018. #cbi-firewall-redirect table select,
  1019. #cbi-network-switch_vlan table select,
  1020. #cbi-firewall-zone table select {
  1021. min-width: 3.5rem;
  1022. }
  1023. /* language fix */
  1024. body.lang_pl.node-main-login .cbi-value-title {
  1025. width: 12rem;
  1026. }
  1027. @media screen and (max-width: 1600px) {
  1028. .main-left {
  1029. width: calc(0% + 13rem);
  1030. }
  1031. .main-right {
  1032. width: calc(100% - 13rem);
  1033. }
  1034. .cbi-button {
  1035. padding: 0.3rem 0.6rem;
  1036. font-size: 0.8rem;
  1037. }
  1038. header > .container > .pull-right > * {
  1039. top: 0.35rem;
  1040. }
  1041. .label {
  1042. padding: 0.2rem 0.6rem;
  1043. }
  1044. .cbi-value-title {
  1045. width: 15rem;
  1046. padding-right: 0.6rem;
  1047. }
  1048. fieldset {
  1049. padding: 1rem;
  1050. }
  1051. .cbi-input-textarea {
  1052. font-size: small;
  1053. }
  1054. .node-status-iptables > .main fieldset li > a {
  1055. padding: 0.3rem 0.6rem;
  1056. }
  1057. }
  1058. @media screen and (max-width: 1280px) {
  1059. header {
  1060. height: 3.5rem;
  1061. }
  1062. header > .container {
  1063. margin-top: 0.25rem;
  1064. }
  1065. .main {
  1066. top: 3.5rem;
  1067. height: calc(100% - 3.5rem);
  1068. }
  1069. .main-left {
  1070. width: calc(0% + 13rem);
  1071. top: 3.5rem;
  1072. height: calc(100% - 3.5rem);
  1073. }
  1074. .main-right {
  1075. width: calc(100% - 13rem);
  1076. }
  1077. .cbi-tabmenu > li > a, .tabs > li > a {
  1078. padding: 0.2rem 0.5rem;
  1079. }
  1080. .panel-title {
  1081. font-size: 1.1rem;
  1082. padding-bottom: 1rem;
  1083. }
  1084. table {
  1085. font-size: 0.7rem !important;
  1086. width: 100% !important;
  1087. }
  1088. .main > .main-left > .nav > li,
  1089. .main > .main-left > .nav > li a,
  1090. .main > .main-left > .nav > .slide > .menu {
  1091. font-size: 0.9rem;
  1092. }
  1093. .main > .main-left > .nav > .slide > .slide-menu > li > a {
  1094. font-size: 0.7rem;
  1095. }
  1096. }
  1097. @media screen and (max-width: 992px) {
  1098. .main-left {
  1099. width: 0;
  1100. position: fixed;
  1101. z-index: 100;
  1102. }
  1103. .main-right {
  1104. width: 100%;
  1105. }
  1106. .showSide {
  1107. padding: 0.1rem;
  1108. margin-right: 0.5rem;
  1109. display: inline-block;
  1110. }
  1111. .showSide:before {
  1112. content: "\e20e";
  1113. font-size: 1.7rem;
  1114. }
  1115. .node-main-login .showSide {
  1116. display: none !important;
  1117. }
  1118. .cbi-value-title {
  1119. width: 9rem;
  1120. padding-right: 1rem;
  1121. }
  1122. .node-network-diagnostics > .main .cbi-map fieldset > div * {
  1123. width: 100% !important;
  1124. }
  1125. .node-network-diagnostics > .main .cbi-map fieldset > div input[type="text"] {
  1126. margin: 3rem 0 0 0 !important;
  1127. }
  1128. .node-network-diagnostics > .main .cbi-map fieldset > div:nth-child(4) input[type="text"] {
  1129. margin: 0 !important;
  1130. }
  1131. .node-network-diagnostics > .main .cbi-map fieldset > div select,
  1132. .node-network-diagnostics > .main .cbi-map fieldset > div input[type="button"] {
  1133. margin: 1rem 0 0 0;
  1134. }
  1135. .node-network-diagnostics > .main .cbi-map fieldset > div {
  1136. width: 100% !important;
  1137. }
  1138. #diag-rc-output > pre {
  1139. font-size: 1rem;
  1140. }
  1141. .node-main-login > .main .cbi-value-title {
  1142. text-align: left;
  1143. }
  1144. }
  1145. @media screen and (max-width: 480px) {
  1146. body {
  1147. font-size: 1rem;
  1148. }
  1149. fieldset {
  1150. padding: 1rem;
  1151. margin: 1rem 0 0 0;
  1152. }
  1153. .tabs {
  1154. margin: 0 -1rem;
  1155. }
  1156. #maincontent > .container {
  1157. margin: 0 1rem 1.5rem 1rem;
  1158. }
  1159. .main > .main-left > .nav > .slide > .menu {
  1160. font-size: 1.3rem;
  1161. }
  1162. .main > .main-left > .nav > .slide > .slide-menu > li > a {
  1163. font-size: 1.1rem;
  1164. }
  1165. .cbi-value-title {
  1166. width: 100%;
  1167. min-width: 0rem !important;
  1168. display: block;
  1169. margin-top: 1rem;
  1170. margin-bottom: 0.5rem;
  1171. text-align: left;
  1172. }
  1173. .cbi-value-field, .cbi-value-description {
  1174. width: 100%;
  1175. }
  1176. .cbi-value > .cbi-value-field {
  1177. display: inline-block;
  1178. }
  1179. .cbi-tabmenu > li, .tabs > li {
  1180. padding: 0.6rem 0rem;
  1181. }
  1182. .cbi-tabmenu > li > a, .tabs > li > a {
  1183. padding: 0.2rem 0.3rem;
  1184. font-size: 0.9rem;
  1185. }
  1186. .cbi-page-actions > div > input {
  1187. display: none;
  1188. }
  1189. .node-main-login > .main .container {
  1190. padding: 0.5rem 1rem 2rem 1rem;
  1191. }
  1192. .node-main-login > .main .cbi-value {
  1193. padding: 0;
  1194. }
  1195. .node-main-login > .main form > div:nth-last-child(1) {
  1196. margin-top: 2rem;
  1197. }
  1198. .node-main-login > .main .cbi-value-title {
  1199. width: 100% !important;
  1200. font-size: 1.2rem;
  1201. }
  1202. .node-main-login > .main fieldset {
  1203. margin: 0;
  1204. padding: 0.5rem;
  1205. }
  1206. h2 {
  1207. font-size: 2rem;
  1208. }
  1209. .tabs > li > a {
  1210. font-size: 0.9rem;
  1211. }
  1212. select,
  1213. input {
  1214. font-size: 0.9rem;
  1215. }
  1216. .mobile-hide {
  1217. display: none;
  1218. }
  1219. .panel-title {
  1220. font-size: 1.4rem;
  1221. padding-bottom: 1rem;
  1222. }
  1223. .node-system-packages > .main .cbi-value.cbi-value-last > div {
  1224. width: 100% !important;
  1225. }
  1226. .node-system-packages > .main .cbi-value .cbi-value-field input {
  1227. width: 100%;
  1228. }
  1229. .node-status-iptables > .main div > .cbi-map > form {
  1230. position: static !important;
  1231. margin: 0 0 2rem 0;
  1232. padding: 2rem;
  1233. border: 0;
  1234. font-weight: normal;
  1235. font-style: normal;
  1236. line-height: 1;
  1237. font-family: inherit;
  1238. min-width: inherit;
  1239. overflow-x: auto;
  1240. overflow-y: hidden;
  1241. border-radius: 0;
  1242. background-color: #FFF;
  1243. box-shadow: 0 2px 2px 0 rgba(0, 0, 0, .16), 0 0 2px 0 rgba(0, 0, 0, .12);
  1244. -webkit-overflow-scrolling: touch;
  1245. }
  1246. .node-status-iptables > .main div > .cbi-map > form input[type="submit"] {
  1247. width: 100% !important;
  1248. margin: 0;
  1249. }
  1250. .node-status-iptables > .main div > .cbi-map > form input[type="submit"] + input[type="submit"] {
  1251. margin-top: 1rem;
  1252. }
  1253. }
  1254. @media screen and (min-width: 992px) {
  1255. .cbi-value input[type="password"],
  1256. .cbi-value input[type="text"] {
  1257. min-width: 20rem;
  1258. }
  1259. .cbi-value-field .cbi-input-select {
  1260. min-width: 20rem;
  1261. }
  1262. }
  1263. @media screen and (min-width: 1280px) {
  1264. .cbi-value input[type="password"],
  1265. .cbi-value input[type="text"] {
  1266. min-width: 22rem;
  1267. }
  1268. .cbi-value-field .cbi-input-select {
  1269. min-width: 22rem;
  1270. }
  1271. }
  1272. @media screen and (min-width: 1600px) {
  1273. .cbi-value input[type="password"],
  1274. .cbi-value input[type="text"] {
  1275. min-width: 25rem;
  1276. }
  1277. .cbi-value-field .cbi-input-select {
  1278. min-width: 25rem;
  1279. }
  1280. }