base.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. /* Layout */
  2. * {
  3. margin: 0;
  4. }
  5. html {
  6. overflow-y: scroll;
  7. }
  8. html, body {
  9. height: 100%;
  10. }
  11. body {
  12. padding-top: 70px;
  13. }
  14. .wrapper {
  15. min-height: 100%;
  16. height: auto !important;
  17. margin: 0 auto -48px; /* the bottom margin is the negative value of the footer's height */
  18. padding-bottom: 30px;
  19. }
  20. .navbar-brand {
  21. padding: 12px 15px 8px;
  22. }
  23. .footer, .push {
  24. height: 48px; /* .push must be the same height as .footer */
  25. }
  26. .footer {
  27. background-color: #f5f5f5;
  28. border-top: 1px solid #d0d0d0;
  29. }
  30. footer p {
  31. margin: 12px 0;
  32. }
  33. #navbar_search {
  34. padding: 0 8px;
  35. }
  36. .right-side-panel {
  37. max-width: 400px;
  38. min-width: 300px;
  39. padding-right: 0;
  40. }
  41. /* Hide the username in the navigation menu on displays less than 1400px wide */
  42. @media (max-width: 1399px) {
  43. #navbar_user {
  44. display: none;
  45. }
  46. }
  47. /* Hide the search bar in the navigation menu on displays less than 1250px wide */
  48. @media (max-width: 1249px) {
  49. #navbar_search {
  50. display: none;
  51. }
  52. }
  53. /* Printer friendly CSS class and various fixes for printing. */
  54. @media print {
  55. body {
  56. padding-top: 0px;
  57. }
  58. a[href]:after {
  59. content: none !important;
  60. }
  61. .noprint {
  62. display: none !important;
  63. }
  64. }
  65. /* Scroll the drop-down menus at or above 768px wide to match bootstrap's behavior for hiding dropdown menus */
  66. @media (min-width: 768px) {
  67. .navbar-nav > li > ul {
  68. max-height: calc(80vh - 50px);
  69. overflow-y: auto;
  70. }
  71. }
  72. /* Collapse the nav menu on displays less than 980px wide */
  73. @media (max-width: 979px) {
  74. #navbar {
  75. max-height: calc(80vh - 50px);
  76. overflow-y: auto;
  77. }
  78. .navbar-header {
  79. float: none;
  80. }
  81. .navbar-left,.navbar-right {
  82. float: none !important;
  83. }
  84. .navbar-toggle {
  85. display: block;
  86. }
  87. .navbar-collapse {
  88. border-top: 1px solid transparent;
  89. box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  90. }
  91. .navbar-fixed-top {
  92. top: 0;
  93. border-width: 0 0 1px;
  94. }
  95. .navbar-collapse.collapse {
  96. display: none!important;
  97. max-height: none;
  98. }
  99. .navbar-nav {
  100. float: none !important;
  101. margin-top: 7.5px;
  102. }
  103. .navbar-nav>li {
  104. float: none;
  105. }
  106. .navbar-nav>li>a {
  107. padding-top: 10px;
  108. padding-bottom: 10px;
  109. }
  110. .collapse.in {
  111. display:block !important;
  112. }
  113. #navbar_user {
  114. display: inline;
  115. }
  116. }
  117. /* Navigation menu */
  118. ul.dropdown-menu {
  119. width: 250px;
  120. }
  121. ul.dropdown-menu div.buttons {
  122. padding-right: 10px;
  123. padding-top: 2px;
  124. }
  125. ul.dropdown-menu > li > a {
  126. clear: left;
  127. }
  128. .nav > li > a.dropdown-toggle {
  129. padding: 15px 12px;
  130. }
  131. /* Forms */
  132. label {
  133. font-weight: normal;
  134. }
  135. label.required {
  136. font-weight: bold;
  137. }
  138. input[name="pk"] {
  139. margin-top: 0;
  140. }
  141. /* Tables */
  142. th.pk, td.pk {
  143. padding-bottom: 6px;
  144. padding-top: 10px;
  145. width: 30px;
  146. }
  147. tfoot td {
  148. font-weight: bold;
  149. }
  150. table.attr-table td:nth-child(1) {
  151. width: 25%;
  152. }
  153. .table-headings th {
  154. background-color: #f5f5f5;
  155. }
  156. td.min-width {
  157. width: 1%;
  158. }
  159. /* Paginator */
  160. div.paginator {
  161. margin-bottom: 20px;
  162. }
  163. div.paginator form {
  164. margin-bottom: 6px;
  165. }
  166. nav ul.pagination {
  167. margin-top: 0;
  168. margin-bottom: 8px !important;
  169. }
  170. .pagination > li > a > .mdi::before {
  171. top: 0;
  172. font-size: 14px;
  173. }
  174. /* Devices */
  175. table.component-list td.subtable {
  176. padding: 0;
  177. padding-left: 16px;
  178. }
  179. table.component-list td.subtable td {
  180. border: none;
  181. padding-bottom: 6px;
  182. padding-top: 6px;
  183. }
  184. /* Reports */
  185. table.reports td.method {
  186. font-family: monospace;
  187. padding-left: 30px;
  188. }
  189. td.report-stats label {
  190. display: inline-block;
  191. line-height: 14px;
  192. margin-bottom: 0;
  193. min-width: 40px;
  194. }
  195. table.report th {
  196. position: relative;
  197. }
  198. table.report th a {
  199. position: absolute;
  200. top: -51px;
  201. }
  202. /* Rendered Markdown */
  203. .rendered-markdown table {
  204. width: 100%;
  205. }
  206. .rendered-markdown th {
  207. border-bottom: 2px solid #dddddd;
  208. padding: 8px;
  209. }
  210. .rendered-markdown td {
  211. border-top: 1px solid #dddddd;
  212. padding: 8px;
  213. }
  214. .rendered-markdown :last-child {
  215. margin-bottom: 0;
  216. }
  217. /* Cable tracing */
  218. .cable-trace {
  219. max-width: 600px;
  220. margin: 16px auto;
  221. text-align: center;
  222. }
  223. .cable-trace .node {
  224. background-color: #f0f0f0;
  225. border: 1px solid #909090;
  226. border-radius: 8px;
  227. padding: 24px 16px;
  228. position: relative;
  229. z-index: 1;
  230. }
  231. .cable-trace .termination {
  232. background-color: #f7f7f7;
  233. border: 1px solid #909090;
  234. border-radius: 4px;
  235. margin: -16px auto;
  236. padding: 12px;
  237. position: relative;
  238. width: 60%;
  239. z-index: 2;
  240. }
  241. .cable-trace .active {
  242. border: 3px solid #30C030;
  243. }
  244. .cable-trace .cable {
  245. border-left-style: solid;
  246. border-left-width: 4px;
  247. margin: 12px 0 12px 50%;
  248. padding: 24px;
  249. text-align: left;
  250. width: 50%;
  251. }
  252. .cable-trace .trace-end {
  253. margin-top: 48px;
  254. text-align: center;
  255. }
  256. /* Admonition (docs) */
  257. .admonition {
  258. margin-bottom: 10px;
  259. padding-bottom: 2px;
  260. }
  261. .admonition p {
  262. padding: 0 12px;
  263. }
  264. .admonition pre {
  265. margin: 0 12px 10px;
  266. }
  267. .admonition p.admonition-title {
  268. color: rgb(255, 255, 255);
  269. font-weight: bold;
  270. padding: 4px 12px;
  271. }
  272. .admonition p.admonition-title::before {
  273. content: "\f06a";
  274. font-family: "FontAwesome";
  275. margin-right: 4px;
  276. }
  277. /* Admonition - Note */
  278. .admonition.note {
  279. background-color: rgb(231, 242, 250);
  280. }
  281. .admonition.note .admonition-title {
  282. background-color: rgb(106, 176, 222);
  283. }
  284. .admonition.note .admonition-title::before {
  285. content: "\f05a";
  286. }
  287. /* Admonition - Warning */
  288. .admonition.warning {
  289. background-color: rgb(255, 237, 204);
  290. }
  291. .admonition.warning .admonition-title {
  292. background-color: rgb(240, 179, 126);
  293. }
  294. .admonition.warning .admonition-title::before {
  295. content: "\f06a";
  296. }
  297. /* Admonition - Danger */
  298. .admonition.danger {
  299. background-color: rgb(253, 243, 242);
  300. }
  301. .admonition.danger .admonition-title {
  302. background-color: rgb(242, 159, 151);
  303. }
  304. .admonition.danger .admonition-title::before {
  305. content: "\f071";
  306. }
  307. /* AJAX loader */
  308. .loading {
  309. position: fixed;
  310. display: none;
  311. z-index: 999;
  312. height: 2em;
  313. width: 2em;
  314. overflow: show;
  315. margin: auto;
  316. top: 0;
  317. left: 0;
  318. bottom: 0;
  319. right: 0;
  320. }
  321. .loading:before {
  322. content: '';
  323. display: block;
  324. position: fixed;
  325. top: 0;
  326. left: 0;
  327. width: 100%;
  328. height: 100%;
  329. background-color: rgba(0,0,0,0.3);
  330. }
  331. /* Misc */
  332. .color-block {
  333. display: block;
  334. width: 80px;
  335. border: 1px solid grey;
  336. }
  337. .inline-color-block {
  338. display: inline-block;
  339. width: 1.5em;
  340. height: 1.5em;
  341. border: 1px solid grey;
  342. border-radius: .25em;
  343. vertical-align: middle;
  344. }
  345. .text-nowrap {
  346. white-space: nowrap;
  347. }
  348. .banner-bottom {
  349. margin-bottom: 50px;
  350. }
  351. .panel table {
  352. margin-bottom: 0;
  353. }
  354. .panel .table th {
  355. border-bottom-width: 1px;
  356. }
  357. .panel table tr.even:first-child td {
  358. border-top: 0;
  359. }
  360. .panel .list-group {
  361. max-height: 400px;
  362. overflow: auto;
  363. }
  364. ul.nav-tabs, ul.nav-pills {
  365. margin-bottom: 20px;
  366. }
  367. ul.nav-tabs li a {
  368. padding: 8px 10px;
  369. }
  370. /* Fix progress bar margin inside table cells */
  371. td .progress {
  372. margin-bottom: 0;
  373. min-width: 100px;
  374. }
  375. textarea {
  376. font-family: Consolas, Lucida Console, monospace;
  377. }
  378. /* MDI icons */
  379. .mdi::before {
  380. font-size: 20px;
  381. line-height: 20px;
  382. position: relative;
  383. top: 2px;
  384. }
  385. .btn .mdi {
  386. margin: 0 -2px;
  387. }
  388. .btn .mdi::before {
  389. font-size: 20px;
  390. line-height: 14px;
  391. position: relative;
  392. top: 2px;
  393. }
  394. .btn-xs .mdi::before {
  395. font-size: 18px;
  396. top: 3px;
  397. }
  398. .btn-sm .mdi::before {
  399. font-size: 18px;
  400. top: 3px;
  401. }
  402. .dropdown-menu .mdi {
  403. margin-left: 2px;
  404. }
  405. .nav .mdi::before {
  406. left: -2px;
  407. position: relative;
  408. top: 2px;
  409. }
  410. .navbar .navbar-toggle .mdi::before {
  411. position: relative;
  412. top: 4px;
  413. color: #FFF;
  414. }
  415. .breadcrumb .mdi::before {
  416. position: relative;
  417. top: 4px;
  418. }
  419. .breadcrumb a:hover {
  420. text-decoration: none;
  421. }
  422. .breadcrumb a:hover span {
  423. text-decoration: underline;
  424. }
  425. .alert .mdi::before {
  426. position: relative;
  427. top: 4px;
  428. margin-right: 2px;
  429. }
  430. .input-group-addon .mdi::before {
  431. position: relative;
  432. top: 3px;
  433. }
  434. .input-group-btn .mdi::before {
  435. font-size: 20px;
  436. }
  437. .navbar-brand .mdi::before {
  438. position: relative;
  439. top: 2px;
  440. margin-right: 2px;
  441. }
  442. .list-group-item .mdi::before {
  443. position: relative;
  444. top: 3px;
  445. left: -3px
  446. }
  447. .badge .mdi::before {
  448. font-size: 12px;
  449. left: 0;
  450. line-height: 12px;
  451. top: 0;
  452. }