mobile.css 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. header h3 a, header .brand {
  2. display:none !important;
  3. }
  4. @media screen and (max-device-width: 600px) {
  5. #maincontent.container {
  6. margin-top: 30px;
  7. }
  8. .tabs, .cbi-tabmenu {
  9. background: linear-gradient(#fff 20%, #ddd 100%);
  10. background-size: 1px 34px;
  11. margin-bottom: 10px;
  12. }
  13. .tabs > li, .cbi-tabmenu > li {
  14. height: 30px;
  15. }
  16. .tabs > li > a, .cbi-tabmenu > li > a {
  17. padding: 0 8px;
  18. line-height: 30px;
  19. }
  20. .table {
  21. display: flex;
  22. flex-direction: column;
  23. width: 100%;
  24. }
  25. .tr {
  26. display: flex;
  27. flex-direction: row;
  28. flex-wrap: wrap;
  29. align-items: flex-end;
  30. border-top: 1px solid #ddd;
  31. padding: 5px 0;
  32. margin: 0 -3px;
  33. }
  34. .table .th,
  35. .table .td,
  36. .table .tr::before {
  37. flex: 2 2 33%;
  38. align-self: flex-start;
  39. overflow: hidden;
  40. text-overflow: ellipsis;
  41. word-wrap: break-word;
  42. display: inline-block;
  43. border-top: none;
  44. padding: 3px;
  45. box-sizing: border-box;
  46. }
  47. .table .td.cbi-dropdown-open {
  48. overflow: visible;
  49. }
  50. .col-1 { flex: 1 1 30px !important; -webkit-flex: 1 1 30px !important; }
  51. .col-2 { flex: 2 2 60px !important; -webkit-flex: 2 2 60px !important; }
  52. .col-3 { flex: 3 3 90px !important; -webkit-flex: 3 3 90px !important; }
  53. .col-4 { flex: 4 4 120px !important; -webkit-flex: 4 4 120px !important; }
  54. .col-5 { flex: 5 5 150px !important; -webkit-flex: 5 5 150px !important; }
  55. .col-6 { flex: 6 6 180px !important; -webkit-flex: 6 6 180px !important; }
  56. .col-7 { flex: 7 7 210px !important; -webkit-flex: 7 7 210px !important; }
  57. .col-8 { flex: 8 8 240px !important; -webkit-flex: 8 8 240px !important; }
  58. .col-9 { flex: 9 9 270px !important; -webkit-flex: 9 9 270px !important; }
  59. .col-10 { flex: 10 10 300px !important; -webkit-flex: 10 10 300px !important; }
  60. .td select {
  61. word-wrap: normal;
  62. }
  63. .td[data-type="button"],
  64. .td[data-type="fvalue"] {
  65. flex: 1 1 17%;
  66. text-align: left;
  67. }
  68. .td.cbi-value-field {
  69. align-self: flex-start;
  70. }
  71. .td.cbi-value-field .cbi-button {
  72. width: 100%;
  73. }
  74. .table.cbi-section-table {
  75. border: none;
  76. background: none;
  77. margin: 0;
  78. }
  79. .tr.table-titles,
  80. .cbi-section-table-titles,
  81. .cbi-section-table-descr {
  82. display: none;
  83. }
  84. .cbi-section-table-row {
  85. display: flex;
  86. flex-direction: row;
  87. flex-wrap: wrap;
  88. margin: 0 0 .5em 0;
  89. }
  90. .cbi-section-table + .cbi-section-create {
  91. padding-top: 0;
  92. }
  93. .tr[data-title]::before {
  94. display: block;
  95. flex: 1 1 100%;
  96. background: #f5f5f5 !important;
  97. font-size: 16px;
  98. border-bottom: 1px solid #ddd;
  99. }
  100. .td[data-title]::before,
  101. .td[data-description]::after {
  102. display: block;
  103. }
  104. .td[data-title] ~ .td.cbi-section-actions {
  105. align-self: flex-start;
  106. }
  107. .td[data-title] ~ .td.cbi-section-actions::before {
  108. display: block;
  109. content: "\a0";
  110. }
  111. .td.cbi-section-actions {
  112. overflow: initial;
  113. max-width: 100%;
  114. padding: 3px 2px;
  115. }
  116. .hide-sm,
  117. .hide-xs {
  118. display: none !important;
  119. }
  120. .td.cbi-value-field {
  121. flex-basis: 100%;
  122. }
  123. .td.cbi-value-field[data-type="dvalue"] {
  124. flex-basis: 50%;
  125. }
  126. .td.cbi-value-field[data-type="button"],
  127. .td.cbi-value-field[data-type="fvalue"] {
  128. flex-basis: 25%;
  129. text-align: left;
  130. }
  131. .cbi-section-table .tr:hover .td,
  132. .cbi-section-table .tr:hover .th,
  133. .cbi-section-table .tr:hover::before {
  134. background-color: transparent;
  135. }
  136. .cbi-value {
  137. padding-bottom: .5em;
  138. border-bottom: 1px solid #ddd;
  139. margin-bottom: .5em;
  140. }
  141. .cbi-value label.cbi-value-title {
  142. float: none;
  143. font-weight: bold;
  144. }
  145. .cbi-value-field, .cbi-dropdown {
  146. width: 100%;
  147. margin: 0;
  148. }
  149. input, textarea, select {
  150. font-size: 16px !important;
  151. line-height: 28px;
  152. }
  153. select, input[type="text"], input[type="password"] {
  154. width: 100%;
  155. height: 30px;
  156. }
  157. input.cbi-input-password {
  158. width: calc(100% - 25px);
  159. }
  160. [data-dynlist] {
  161. display: block;
  162. }
  163. [data-dynlist] > .add-item > input {
  164. width: calc(100% - 21px);
  165. }
  166. [data-dynlist] > .add-item > .cbi-button {
  167. margin-right: -1px;
  168. }
  169. input[type="text"] + .cbi-button,
  170. input[type="password"] + .cbi-button,
  171. select + .cbi-button {
  172. font-size: 14px !important;
  173. line-height: 28px;
  174. height: 30px;
  175. box-sizing: border-box;
  176. overflow: hidden;
  177. text-overflow: ellipsis;
  178. }
  179. .cbi-value-field input[type="checkbox"],
  180. .cbi-value-field input[type="radio"] {
  181. margin: 0;
  182. }
  183. .btn, .cbi-button {
  184. font-size: 14px !important;
  185. padding: 4px 8px;
  186. }
  187. .actions,
  188. .cbi-page-actions {
  189. border-top: none;
  190. margin-top: -.5em;
  191. padding: 8px;
  192. }
  193. [data-page="admin-status-overview"] .cbi-section:nth-of-type(1) .td:first-child,
  194. [data-page="admin-status-overview"] .cbi-section:nth-of-type(2) .td:first-child {
  195. flex-grow: 1;
  196. }
  197. header .pull-right .label {
  198. white-space: normal;
  199. display: inline-block;
  200. text-align: center;
  201. line-height: 12px;
  202. margin: 1px 0;
  203. }
  204. header > .fill {
  205. padding: 1px;
  206. }
  207. header > .fill > .container {
  208. display: flex;
  209. flex-direction: row;
  210. }
  211. header .nav {
  212. flex: 3 3 80%;
  213. margin: 2px 5px 2px 0;
  214. display: flex;
  215. flex-wrap: wrap;
  216. justify-content: flex-start;
  217. }
  218. header .nav a {
  219. padding: 2px 6px;
  220. }
  221. header .pull-right {
  222. flex: 1 1 20%;
  223. display: flex;
  224. flex-direction: column;
  225. padding: 0;
  226. justify-content: space-around;
  227. }
  228. .menu-dropdown, .dropdown-menu {
  229. top: 23px;
  230. }
  231. body {
  232. padding-top: 30px;
  233. }
  234. .cbi-optionals,
  235. .cbi-section-create {
  236. padding: 0 0 14px 0;
  237. }
  238. #cbi-network-switch_vlan .th,
  239. #cbi-network-switch_vlan .td {
  240. flex-basis: 12%;
  241. }
  242. #cbi-network-switch_vlan .td.cbi-section-actions {
  243. flex-basis: 100%;
  244. }
  245. #cbi-network-switch_vlan .td.cbi-section-actions::before {
  246. display: none;
  247. }
  248. #cbi-network-switch_vlan .td.cbi-section-actions > * {
  249. width: auto;
  250. display: block;
  251. }
  252. #wifi_assoclist_table .td,
  253. [data-page="admin-status-processes"] .td {
  254. flex-basis: 50% !important;
  255. }
  256. [data-page="admin-status-processes"] .td[data-type="button"] {
  257. flex-basis: 33% !important;
  258. }
  259. [data-page="admin-status-processes"] .td[data-name="PID"],
  260. [data-page="admin-status-processes"] .td[data-name="USER"] {
  261. flex-basis: 25% !important;
  262. }
  263. [data-page="admin-system-fstab"] .td[data-type="button"]::before,
  264. [data-page="admin-system-startup"] .td[data-type="button"]::before,
  265. [data-page="admin-status-processes"] .td[data-type="button"]::before {
  266. display: none;
  267. }
  268. }
  269. @media screen and (max-device-width: 375px) {
  270. #maincontent.container {
  271. margin-top: 55px;
  272. }
  273. .cbi-page-actions {
  274. display: flex;
  275. flex-wrap: wrap;
  276. justify-content: space-between;
  277. margin: 0 -1px;
  278. padding: 0;
  279. }
  280. .cbi-page-actions .cbi-button {
  281. flex: 1 1 calc(50% - 2px);
  282. margin: 1px !important;
  283. overflow: hidden;
  284. text-overflow: ellipsis;
  285. }
  286. .cbi-page-actions .cbi-button-primary,
  287. .cbi-page-actions .cbi-button-apply {
  288. flex-basis: calc(100% - -2px);
  289. }
  290. .cbi-section-actions .cbi-button {
  291. overflow: hidden;
  292. text-overflow: ellipsis;
  293. }
  294. body[data-page="admin-network-wireless"] .td.col-2 {
  295. max-width: 50px;
  296. }
  297. body[data-page="admin-network-wireless"] .td.col-2 > .ifacebadge {
  298. display: flex;
  299. align-items: center;
  300. flex-direction: column;
  301. }
  302. body[data-page="admin-network-network"] .td.col-3 {
  303. min-width: 250px;
  304. }
  305. }
  306. @media screen and (max-device-width: 200px) {
  307. #maincontent.container {
  308. margin-top: 230px;
  309. }
  310. }
  311. @media screen and (max-width: 375px) {
  312. .td .ifacebox {
  313. width: 100%;
  314. margin: 0 !important;
  315. flex-direction: row;
  316. }
  317. .td .ifacebox .ifacebox-head {
  318. min-width: 25%;
  319. justify-content: space-around;
  320. }
  321. .td .ifacebox .ifacebox-head,
  322. .td .ifacebox .ifacebox-body {
  323. display: flex;
  324. border-bottom: none;
  325. align-items: center;
  326. }
  327. .td .ifacebox .ifacebox-head > *,
  328. .ifacebox .ifacebox-body > * {
  329. margin: .125em;
  330. }
  331. }