navigation.css.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Navigation styles for the original theme
  5. *
  6. * @package PhpMyAdmin-theme
  7. * @subpackage Original
  8. */
  9. // unplanned execution path
  10. if (! defined('PMA_MINIMUM_COMMON') && ! defined('TESTSUITE')) {
  11. exit();
  12. }
  13. ?>
  14. /******************************************************************************/
  15. /* Navigation */
  16. #pma_navigation {
  17. background: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>;
  18. color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
  19. width: <?php echo $GLOBALS['cfg']['NaviWidth']; ?>px;
  20. overflow: hidden;
  21. position: fixed;
  22. top: 0;
  23. <?php echo $left; ?>: 0;
  24. height: 100%;
  25. border-<?php echo $right; ?>: 1px solid gray;
  26. z-index: 800;
  27. }
  28. #pma_navigation_content {
  29. width: 100%;
  30. height: 100%;
  31. position: absolute;
  32. top: 0;
  33. <?php echo $left; ?>: 0;
  34. z-index: 0;
  35. padding-bottom: 1em;
  36. }
  37. #pma_navigation ul {
  38. margin: 0;
  39. }
  40. #pma_navigation form {
  41. margin: 0;
  42. padding: 0;
  43. display: inline;
  44. }
  45. #pma_navigation select#select_server,
  46. #pma_navigation select#lightm_db {
  47. width: 100%;
  48. }
  49. /******************************************************************************/
  50. /* specific elements */
  51. #pma_navigation div.pageselector {
  52. text-align: center;
  53. margin: 0 0 0;
  54. margin-<?php echo $left; ?>: 0.75em;
  55. border-<?php echo $left; ?>: 1px solid #666;
  56. }
  57. #pma_navigation div#pmalogo {
  58. <?php //better echo $GLOBALS['cfg']['logoBGC']; ?>
  59. background-color: <?php echo $GLOBALS['cfg']['NaviBackground']; ?>;
  60. padding: .3em;
  61. }
  62. #pma_navigation div#recentTableList {
  63. text-align: center;
  64. margin-bottom: 0.5em;
  65. }
  66. #pma_navigation #pmalogo,
  67. #pma_navigation #serverChoice,
  68. #pma_navigation #leftframelinks,
  69. #pma_navigation #recentTableList,
  70. #pma_navigation #databaseList,
  71. #pma_navigation div.pageselector.dbselector {
  72. text-align: center;
  73. margin-bottom: 0.3em;
  74. padding-bottom: 0.3em;
  75. border: 0;
  76. }
  77. #pma_navigation #recentTableList select,
  78. #pma_navigation #serverChoice select
  79. {
  80. width: 80%;
  81. }
  82. #pma_navigation #recentTableList {
  83. margin-bottom: 0;
  84. padding-bottom: 0;
  85. }
  86. #pma_navigation_content > img.throbber {
  87. display: block;
  88. margin: 0 auto;
  89. }
  90. /* Navigation tree*/
  91. #pma_navigation_tree {
  92. margin: 0;
  93. margin-<?php echo $left; ?>: 1em;
  94. color: #444;
  95. height: 74%;
  96. position: relative;
  97. }
  98. #pma_navigation_tree_content {
  99. width: 100%;
  100. overflow: hidden;
  101. overflow-y: auto;
  102. position: absolute;
  103. height: 100%;
  104. }
  105. #pma_navigation_tree a {
  106. color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
  107. }
  108. #pma_navigation_tree a:hover {
  109. text-decoration: underline;
  110. }
  111. #pma_navigation_tree li.activePointer {
  112. color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
  113. background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
  114. }
  115. #pma_navigation_tree li.selected {
  116. color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
  117. background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
  118. }
  119. #pma_navigation_tree ul {
  120. clear: both;
  121. padding: 0;
  122. list-style-type: none;
  123. margin: 0;
  124. }
  125. #pma_navigation_tree ul ul {
  126. position: relative;
  127. }
  128. #pma_navigation_tree li {
  129. white-space: nowrap;
  130. clear: both;
  131. min-height: 16px;
  132. }
  133. #pma_navigation_tree img {
  134. margin: 0;
  135. }
  136. #pma_navigation_tree div.block {
  137. position: relative;
  138. width:1.5em;
  139. height:1.5em;
  140. min-width: 16px;
  141. min-height: 16px;
  142. float: <?php echo $left; ?>;
  143. }
  144. #pma_navigation_tree div.block i,
  145. #pma_navigation_tree div.block b {
  146. width: 1.5em;
  147. height: 1.5em;
  148. min-width: 16px;
  149. min-height: 8px;
  150. position: absolute;
  151. bottom: 0.7em;
  152. <?php echo $left; ?>: 0.75em;
  153. z-index: 0;
  154. }
  155. #pma_navigation_tree div.block i {
  156. border-<?php echo $left; ?>: 1px solid #666;
  157. border-bottom: 1px solid #666;
  158. }
  159. #pma_navigation_tree div.block i.first { /* Removes top segment */
  160. border-<?php echo $left; ?>: 0;
  161. }
  162. #pma_navigation_tree div.block b { /* Bottom segment for the tree element connections */
  163. display: block;
  164. height: 0.75em;
  165. bottom: 0;
  166. <?php echo $left; ?>: 0.75em;
  167. border-<?php echo $left; ?>: 1px solid #666;
  168. }
  169. #pma_navigation_tree div.block a,
  170. #pma_navigation_tree div.block u {
  171. position: absolute;
  172. <?php echo $left; ?>: 50%;
  173. top: 50%;
  174. z-index: 10;
  175. }
  176. #pma_navigation_tree div.block img {
  177. position: relative;
  178. top: -0.6em;
  179. <?php echo $left; ?>: 0;
  180. margin-<?php echo $left; ?>: -5px;
  181. }
  182. #pma_navigation_tree li.last > ul {
  183. background: none;
  184. }
  185. #pma_navigation_tree li > a, #pma_navigation_tree li > i {
  186. line-height: 1.5em;
  187. height: 1.5em;
  188. padding-<?php echo $left; ?>: 0.3em;
  189. }
  190. #pma_navigation_tree .list_container {
  191. border-<?php echo $left; ?>: 1px solid #666;
  192. margin-<?php echo $left; ?>: 0.75em;
  193. padding-<?php echo $left; ?>: 0.75em;
  194. }
  195. #pma_navigation_tree .last > .list_container {
  196. border-<?php echo $left; ?>: 0 solid #666;
  197. }
  198. /* Fast filter */
  199. li.fast_filter {
  200. padding-<?php echo $left; ?>: 0.75em;
  201. margin-<?php echo $left; ?>: 0.75em;
  202. padding-<?php echo $right; ?>: 35px;
  203. border-<?php echo $left; ?>: 1px solid #666;
  204. }
  205. li.fast_filter input {
  206. padding-<?php echo $right; ?>: .4em;
  207. width: 100%;
  208. }
  209. li.fast_filter span {
  210. position: relative;
  211. <?php echo $right; ?>: 1.5em;
  212. padding: 0.2em;
  213. cursor: pointer;
  214. font-weight: bold;
  215. color: #800;
  216. }
  217. li.fast_filter.db_fast_filter {
  218. border: 0;
  219. }
  220. /* Resize handler */
  221. #pma_navigation_resizer {
  222. width: 3px;
  223. height: 100%;
  224. background-color: #aaa;
  225. cursor: col-resize;
  226. position: fixed;
  227. top: 0;
  228. <?php echo $left; ?>: 240px;
  229. z-index: 801;
  230. }
  231. #pma_navigation_collapser {
  232. width: 20px;
  233. height: 22px;
  234. line-height: 22px;
  235. background: #eee;
  236. color: #555;
  237. font-weight: bold;
  238. position: fixed;
  239. top: 0;
  240. <?php echo $left; ?>: <?php echo $GLOBALS['cfg']['NaviWidth']; ?>px;
  241. text-align: center;
  242. cursor: pointer;
  243. z-index: 800;
  244. text-shadow: 0px 1px 0px #fff;
  245. filter: dropshadow(color=#fff, offx=0, offy=1);
  246. border: 1px solid #888;
  247. }