printview.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. @media print {
  2. #back_button_print_view,
  3. #print_button_print_view {
  4. display: none;
  5. }
  6. }
  7. // For removing element from Print View
  8. .print_ignore {
  9. display: none;
  10. }
  11. .nowrap {
  12. white-space: nowrap;
  13. }
  14. .hide {
  15. display: none;
  16. }
  17. // Standard CSS
  18. body,
  19. table,
  20. th,
  21. td {
  22. color: #000;
  23. background-color: #fff;
  24. font-size: 12px;
  25. }
  26. // To remove link text decoration
  27. a:link {
  28. color: #000;
  29. text-decoration: none;
  30. }
  31. // To remove any image borders
  32. img {
  33. border: 0;
  34. }
  35. // Table specific
  36. table,
  37. th,
  38. td {
  39. border: 0.1em solid #000;
  40. background-color: #fff;
  41. }
  42. table {
  43. border-collapse: collapse;
  44. border-spacing: 0.2em;
  45. }
  46. thead {
  47. border-collapse: collapse;
  48. border-spacing: 0.2em;
  49. border: 0.1em solid #000;
  50. font-weight: 900;
  51. }
  52. th,
  53. td {
  54. padding: 0.2em;
  55. }
  56. thead th {
  57. font-weight: bold;
  58. background-color: #e5e5e5;
  59. border: 0.1em solid #000;
  60. }
  61. th.vtop,
  62. td.vtop {
  63. vertical-align: top;
  64. }
  65. th.vbottom,
  66. td.vbottom {
  67. vertical-align: bottom;
  68. }
  69. // Common Elements not to be included
  70. // Hide Navigation and Top Menu bar
  71. // Hide console
  72. // Hide Navigation items (like Goto Top)
  73. // Hide the Create Table form
  74. // Hide the Page Settings Modal box
  75. // Hide footer, Demo notice, errors div
  76. // Hide the #selflink div
  77. #pma_navigation,
  78. #floating_menubar,
  79. #pma_console_container,
  80. #page_nav_icons,
  81. #create_table_form_minimal,
  82. #page_settings_modal,
  83. #pma_footer,
  84. #pma_demo,
  85. #pma_errors,
  86. #selflink {
  87. display: none;
  88. }
  89. // Position the main content
  90. #page_content {
  91. position: absolute;
  92. left: 0;
  93. top: 0;
  94. width: 95%;
  95. float: none;
  96. }
  97. // Specific Class for overriding while Print
  98. .print {
  99. background-color: #000;
  100. }
  101. .sqlOuter {
  102. color: black;
  103. background-color: #000;
  104. }
  105. // For hiding 'Open a New phpMyAdmin Window' button
  106. // Hide extra menu on /table/structure
  107. .ic_window-new,
  108. .ic_s_cog,
  109. #structure-action-links,
  110. #addColumns,
  111. .cDrop,
  112. .cEdit,
  113. .cList,
  114. .cCpy,
  115. .cPointer {
  116. display: none;
  117. }
  118. table tbody:first-of-type tr {
  119. // odd items 1,3,5,7...
  120. &:nth-child(odd) {
  121. background: #fff;
  122. th {
  123. background: #fff;
  124. }
  125. }
  126. // even items 2,4,6,8...
  127. &:nth-child(even) {
  128. background: #dfdfdf;
  129. th {
  130. background: #dfdfdf;
  131. }
  132. }
  133. }
  134. .column_attribute {
  135. font-size: 100%;
  136. }