base.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  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. .container {
  15. width: auto;
  16. max-width: 1600px;
  17. }
  18. .wrapper {
  19. min-height: 100%;
  20. height: auto !important;
  21. margin: 0 auto -61px; /* the bottom margin is the negative value of the footer's height */
  22. padding-bottom: 30px;
  23. }
  24. .navbar-brand {
  25. padding: 12px 15px 8px;
  26. }
  27. .footer, .push {
  28. height: 60px; /* .push must be the same height as .footer */
  29. }
  30. .footer {
  31. background-color: #f5f5f5;
  32. border-top: 1px solid #d0d0d0;
  33. }
  34. footer p {
  35. margin: 20px 0;
  36. }
  37. /* Hide the username in the navigation menu on displays less than 1400px wide */
  38. @media (max-width: 1399px) {
  39. #navbar_user {
  40. display: none;
  41. }
  42. }
  43. /* Hide the search bar in the navigation menu on displays less than 1250px wide */
  44. @media (max-width: 1249px) {
  45. #navbar_search {
  46. display: none;
  47. }
  48. }
  49. /* Printer friendly CSS class and various fixes for printing. */
  50. @media print {
  51. body {
  52. padding-top: 0px;
  53. }
  54. a[href]:after {
  55. content: none !important;
  56. }
  57. .noprint {
  58. display: none !important;
  59. }
  60. }
  61. /* Collapse the nav menu on displays less than 980px wide */
  62. @media (max-width: 979px) {
  63. .navbar-header {
  64. float: none;
  65. }
  66. .navbar-left,.navbar-right {
  67. float: none !important;
  68. }
  69. .navbar-toggle {
  70. display: block;
  71. }
  72. .navbar-collapse {
  73. border-top: 1px solid transparent;
  74. box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
  75. }
  76. .navbar-fixed-top {
  77. top: 0;
  78. border-width: 0 0 1px;
  79. }
  80. .navbar-collapse.collapse {
  81. display: none!important;
  82. max-height: none;
  83. }
  84. .navbar-nav {
  85. float: none !important;
  86. margin-top: 7.5px;
  87. }
  88. .navbar-nav>li {
  89. float: none;
  90. }
  91. .navbar-nav>li>a {
  92. padding-top: 10px;
  93. padding-bottom: 10px;
  94. }
  95. .collapse.in {
  96. display:block !important;
  97. }
  98. #navbar_user {
  99. display: inline;
  100. }
  101. }
  102. /* Navigation menu */
  103. li.subnav > a {
  104. padding-left: 30px;
  105. }
  106. ul.dropdown-menu {
  107. width: 250px;
  108. }
  109. ul.dropdown-menu div.buttons {
  110. padding-right: 10px;
  111. padding-top: 2px;
  112. }
  113. ul.dropdown-menu div.buttons a {
  114. width: 26px;
  115. }
  116. ul.dropdown-menu > li > a {
  117. clear: left;
  118. }
  119. /* Forms */
  120. label {
  121. font-weight: normal;
  122. }
  123. label.required {
  124. font-weight: bold;
  125. }
  126. input[name="pk"] {
  127. margin-top: 0;
  128. }
  129. /* Tables */
  130. th.pk, td.pk {
  131. padding-bottom: 6px;
  132. padding-top: 10px;
  133. width: 30px;
  134. }
  135. tfoot td {
  136. font-weight: bold;
  137. }
  138. table.attr-table td:nth-child(1) {
  139. width: 25%;
  140. }
  141. .table-headings th {
  142. background-color: #f5f5f5;
  143. }
  144. td.min-width {
  145. width: 1%;
  146. }
  147. /* Paginator */
  148. div.paginator {
  149. margin-bottom: 20px;
  150. }
  151. div.paginator form {
  152. margin-bottom: 6px;
  153. }
  154. nav ul.pagination {
  155. margin-top: 0;
  156. margin-bottom: 8px !important;
  157. }
  158. /* Racks */
  159. div.rack_header {
  160. margin-left: 36px;
  161. text-align: center;
  162. width: 230px;
  163. }
  164. ul.rack_legend {
  165. float: left;
  166. list-style-type: none;
  167. margin-right: 6px;
  168. padding: 0;
  169. width: 30px;
  170. }
  171. ul.rack_legend li {
  172. color: #c0c0c0;
  173. display: block;
  174. font-size: 10px;
  175. height: 20px;
  176. overflow: hidden;
  177. padding: 5px 0;
  178. text-align: right;
  179. }
  180. /* Devices */
  181. table.component-list td.subtable {
  182. padding: 0;
  183. padding-left: 16px;
  184. }
  185. table.component-list td.subtable td {
  186. border: none;
  187. padding-bottom: 6px;
  188. padding-top: 6px;
  189. }
  190. table.interface-ips th {
  191. font-size: 80%;
  192. font-weight: normal;
  193. }
  194. /* Reports */
  195. table.reports td.method {
  196. font-family: monospace;
  197. padding-left: 30px;
  198. }
  199. td.report-stats label {
  200. display: inline-block;
  201. line-height: 14px;
  202. margin-bottom: 0;
  203. min-width: 40px;
  204. }
  205. table.report th {
  206. position: relative;
  207. }
  208. table.report th a {
  209. position: absolute;
  210. top: -51px;
  211. }
  212. /* Rendered Markdown */
  213. .rendered-markdown table {
  214. width: 100%;
  215. }
  216. .rendered-markdown th {
  217. border-bottom: 2px solid #dddddd;
  218. padding: 8px;
  219. }
  220. .rendered-markdown td {
  221. border-top: 1px solid #dddddd;
  222. padding: 8px;
  223. }
  224. .rendered-markdown :last-child {
  225. margin-bottom: 0;
  226. }
  227. /* AJAX loader */
  228. .loading {
  229. position: fixed;
  230. display: none;
  231. z-index: 999;
  232. height: 2em;
  233. width: 2em;
  234. overflow: show;
  235. margin: auto;
  236. top: 0;
  237. left: 0;
  238. bottom: 0;
  239. right: 0;
  240. }
  241. .loading:before {
  242. content: '';
  243. display: block;
  244. position: fixed;
  245. top: 0;
  246. left: 0;
  247. width: 100%;
  248. height: 100%;
  249. background-color: rgba(0,0,0,0.3);
  250. }
  251. /* Misc */
  252. .color-block {
  253. display: block;
  254. width: 80px;
  255. border: 1px solid grey;
  256. }
  257. .inline-color-block {
  258. display: inline-block;
  259. width: 1.5em;
  260. height: 1.5em;
  261. border: 1px solid grey;
  262. border-radius: .25em;
  263. vertical-align: middle;
  264. }
  265. .text-nowrap {
  266. white-space: nowrap;
  267. }
  268. .banner-bottom {
  269. margin-bottom: 50px;
  270. }
  271. .panel table {
  272. margin-bottom: 0;
  273. }
  274. .panel .table th {
  275. border-bottom-width: 1px;
  276. }
  277. .panel table tr.even:first-child td {
  278. border-top: 0;
  279. }
  280. .panel .list-group {
  281. max-height: 400px;
  282. overflow: auto;
  283. }
  284. ul.nav-tabs, ul.nav-pills {
  285. margin-bottom: 20px;
  286. }
  287. /* Fix progress bar margin inside table cells */
  288. td .progress {
  289. margin-bottom: 0;
  290. min-width: 100px;
  291. }
  292. textarea {
  293. font-family: Consolas, Lucida Console, monospace;
  294. }