navigation.css.php 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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('PHPMYADMIN') && ! 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: 100vh;
  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. #pma_navigation div#FavoriteTableList {
  64. text-align: center;
  65. margin-bottom: 0.5em;
  66. }
  67. #pma_navigation #recentTable,
  68. #pma_navigation #FavoriteTable {
  69. width: 200px;
  70. }
  71. #pma_navigation #pmalogo,
  72. #pma_navigation #serverChoice,
  73. #pma_navigation #navipanellinks,
  74. #pma_navigation #recentTableList,
  75. #pma_navigation #FavoriteTableList,
  76. #pma_navigation #databaseList,
  77. #pma_navigation div.pageselector.dbselector {
  78. text-align: center;
  79. margin-bottom: 0.3em;
  80. padding-bottom: 0.3em;
  81. border: 0;
  82. }
  83. #pma_navigation #recentTableList select,
  84. #pma_navigation #FavoriteTableList select,
  85. #pma_navigation #serverChoice select
  86. {
  87. width: 80%;
  88. }
  89. #pma_navigation #recentTableList,
  90. #pma_navigation #FavoriteTableList {
  91. margin-bottom: 0;
  92. padding-bottom: 0;
  93. }
  94. #pma_navigation_content > img.throbber {
  95. display: block;
  96. margin: 0 auto;
  97. }
  98. /* Navigation tree*/
  99. #pma_navigation_tree {
  100. margin: 0;
  101. margin-<?php echo $left; ?>: 1em;
  102. color: #444;
  103. height: 74%;
  104. position: relative;
  105. }
  106. #pma_navigation_select_database {
  107. text-align: left;
  108. padding: 0 0 0;
  109. border: 0;
  110. margin: 0;
  111. }
  112. #pma_navigation_db_select {
  113. margin-top: 0.5em;
  114. margin-<?php echo $left; ?>: 0.75em;
  115. }
  116. #pma_navigation_db_select select {
  117. background: url("./themes/pmahomme/img/select_bg.png") repeat scroll 0 0;
  118. -webkit-border-radius: 2px;
  119. border-radius: 2px;
  120. border: 1px solid #bbb;
  121. border-top: 1px solid #bbb;
  122. color: #333;
  123. padding: 4px 6px;
  124. margin: 0 0 0;
  125. width: 92%;
  126. font-size: 1.11em;
  127. }
  128. #pma_navigation_tree_content {
  129. width: 100%;
  130. overflow: hidden;
  131. overflow-y: auto;
  132. position: absolute;
  133. height: 100%;
  134. }
  135. #pma_navigation_tree_content a.hover_show_full {
  136. position: relative;
  137. z-index: 100;
  138. vertical-align: sub;
  139. }
  140. #pma_navigation_tree a {
  141. color: <?php echo $GLOBALS['cfg']['NaviColor']; ?>;
  142. }
  143. #pma_navigation_tree a:hover {
  144. text-decoration: underline;
  145. }
  146. #pma_navigation_tree li.activePointer {
  147. color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
  148. background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
  149. }
  150. #pma_navigation_tree li.selected {
  151. color: <?php echo $GLOBALS['cfg']['NaviPointerColor']; ?>;
  152. background-color: <?php echo $GLOBALS['cfg']['NaviPointerBackground']; ?>;
  153. }
  154. #pma_navigation_tree li .dbItemControls {
  155. padding-left: 4px;
  156. }
  157. #pma_navigation_tree li .navItemControls {
  158. display: none;
  159. padding-left: 4px;
  160. }
  161. #pma_navigation_tree li.activePointer .navItemControls {
  162. display: inline;
  163. opacity: 0.5;
  164. }
  165. #pma_navigation_tree li.activePointer .navItemControls:hover {
  166. display: inline;
  167. opacity: 1.0;
  168. }
  169. #pma_navigation_tree ul {
  170. clear: both;
  171. padding: 0;
  172. list-style-type: none;
  173. margin: 0;
  174. }
  175. #pma_navigation_tree ul ul {
  176. position: relative;
  177. }
  178. #pma_navigation_tree li {
  179. white-space: nowrap;
  180. clear: both;
  181. min-height: 16px;
  182. }
  183. #pma_navigation_tree img {
  184. margin: 0;
  185. }
  186. #pma_navigation_tree i {
  187. display: block;
  188. }
  189. #pma_navigation_tree div.block {
  190. position: relative;
  191. width:1.5em;
  192. height:1.5em;
  193. min-width: 16px;
  194. min-height: 16px;
  195. float: <?php echo $left; ?>;
  196. }
  197. #pma_navigation_tree div.block.double {
  198. width: 3em;
  199. }
  200. #pma_navigation_tree div.block i,
  201. #pma_navigation_tree div.block b {
  202. width: 1.5em;
  203. height: 1.7em;
  204. min-width: 16px;
  205. min-height: 8px;
  206. position: absolute;
  207. bottom: 0.7em;
  208. <?php echo $left; ?>: 0.75em;
  209. z-index: 0;
  210. }
  211. #pma_navigation_tree div.block i {
  212. border-<?php echo $left; ?>: 1px solid #666;
  213. border-bottom: 1px solid #666;
  214. position: relative;
  215. z-index: 0;
  216. }
  217. #pma_navigation_tree div.block i.first { /* Removes top segment */
  218. border-<?php echo $left; ?>: 0;
  219. }
  220. /* Bottom segment for the tree element connections */
  221. #pma_navigation_tree div.block b {
  222. display: block;
  223. height: 0.75em;
  224. bottom: 0;
  225. <?php echo $left; ?>: 0.75em;
  226. border-<?php echo $left; ?>: 1px solid #666;
  227. }
  228. #pma_navigation_tree div.block a,
  229. #pma_navigation_tree div.block u {
  230. position: absolute;
  231. <?php echo $left; ?>: 50%;
  232. top: 50%;
  233. z-index: 10;
  234. }#pma_navigation_tree div.block a + a {
  235. <?php echo $left; ?>: 100%;
  236. }
  237. #pma_navigation_tree div.block.double a,
  238. #pma_navigation_tree div.block.double u {
  239. <?php echo $left; ?>: 25%;
  240. }
  241. #pma_navigation_tree div.block.double a + a {
  242. <?php echo $left; ?>: 70%;
  243. }
  244. #pma_navigation_tree div.block img {
  245. position: relative;
  246. top: -0.6em;
  247. <?php echo $left; ?>: 0;
  248. margin-<?php echo $left; ?>: -5px;
  249. }
  250. #pma_navigation_tree li.last > ul {
  251. background: none;
  252. }
  253. #pma_navigation_tree li > a, #pma_navigation_tree li > i {
  254. line-height: 1.5em;
  255. height: 1.5em;
  256. padding-<?php echo $left; ?>: 0.3em;
  257. }
  258. #pma_navigation_tree .list_container {
  259. border-<?php echo $left; ?>: 1px solid #666;
  260. margin-<?php echo $left; ?>: 0.75em;
  261. padding-<?php echo $left; ?>: 0.75em;
  262. }
  263. #pma_navigation_tree .last > .list_container {
  264. border-<?php echo $left; ?>: 0 solid #666;
  265. }
  266. /* Fast filter */
  267. li.fast_filter {
  268. padding-<?php echo $left; ?>: 0.75em;
  269. margin-<?php echo $left; ?>: 0.75em;
  270. padding-<?php echo $right; ?>: 35px;
  271. border-<?php echo $left; ?>: 1px solid #666;
  272. }
  273. li.fast_filter input {
  274. padding-<?php echo $right; ?>: 1.7em;
  275. width: 100%;
  276. }
  277. li.fast_filter span {
  278. position: relative;
  279. <?php echo $right; ?>: 1.5em;
  280. padding: 0.2em;
  281. cursor: pointer;
  282. font-weight: bold;
  283. color: #800;
  284. }
  285. /* IE10+ has its own reset X */
  286. html.ie li.fast_filter span {
  287. display: none;
  288. }
  289. html.ie.ie9 li.fast_filter span,
  290. html.ie.ie8 li.fast_filter span {
  291. display: auto;
  292. }
  293. html.ie li.fast_filter input {
  294. padding-<?php echo $right; ?>: .2em;
  295. }
  296. html.ie.ie9 li.fast_filter input,
  297. html.ie.ie8 li.fast_filter input {
  298. padding-<?php echo $right; ?>: 1.7em;
  299. }
  300. li.fast_filter.db_fast_filter {
  301. border: 0;
  302. }
  303. /* Resize handler */
  304. #pma_navigation_resizer {
  305. width: 3px;
  306. height: 100%;
  307. background-color: #aaa;
  308. cursor: col-resize;
  309. position: fixed;
  310. top: 0;
  311. <?php echo $left; ?>: 240px;
  312. z-index: 801;
  313. }
  314. #pma_navigation_collapser {
  315. width: 20px;
  316. height: 22px;
  317. line-height: 22px;
  318. background: #eee;
  319. color: #555;
  320. font-weight: bold;
  321. position: fixed;
  322. top: 0;
  323. <?php echo $left; ?>: <?php echo $GLOBALS['cfg']['NaviWidth']; ?>px;
  324. text-align: center;
  325. cursor: pointer;
  326. z-index: 800;
  327. text-shadow: 0 1px 0 #fff;
  328. filter: dropshadow(color=#fff, offx=0, offy=1);
  329. border: 1px solid #888;
  330. }
  331. #navigation_controls_outer {
  332. min-height: 21px !important;
  333. }
  334. #navigation_controls_outer.activePointer {
  335. background-color: transparent !important;
  336. }
  337. #navigation_controls {
  338. float: right;
  339. padding-right: 23px;
  340. }
  341. /* Quick warp links */
  342. .pma_quick_warp {
  343. margin-top: 5px;
  344. margin-<?php echo $left; ?>: 2px;
  345. position: relative;
  346. }
  347. .pma_quick_warp .drop_list {
  348. float: <?php echo $left; ?>;
  349. margin-<?php echo $left; ?>: 3px;
  350. padding: 2px 0;
  351. }
  352. .pma_quick_warp .drop_button{
  353. padding: 0 .3em;
  354. border: 1px solid #ddd;
  355. background: #f2f2f2;
  356. cursor: pointer;
  357. }
  358. .pma_quick_warp .drop_list:hover .drop_button {
  359. background: #fff;
  360. }
  361. .pma_quick_warp .drop_list ul {
  362. position: absolute;
  363. margin: 0;
  364. padding: 0;
  365. overflow: hidden;
  366. overflow-y: auto;
  367. list-style: none;
  368. background: #fff;
  369. border: 1px solid #ddd;
  370. border-top-<?php echo $right; ?>-radius: 0;
  371. border-bottom-<?php echo $right; ?>-radius: 0;
  372. top: 100%;
  373. <?php echo $left; ?>: 3px;
  374. <?php echo $right; ?>: 0;
  375. display: none;
  376. z-index: 802;
  377. }
  378. .pma_quick_warp .drop_list:hover ul {
  379. display: block;
  380. }
  381. .pma_quick_warp .drop_list li {
  382. white-space: nowrap;
  383. }
  384. .pma_quick_warp .drop_list li img {
  385. vertical-align: sub;
  386. }
  387. .pma_quick_warp .drop_list li:hover {
  388. background: #f2f2f2;
  389. }
  390. .pma_quick_warp .drop_list a {
  391. display: block;
  392. padding: .1em .3em;
  393. }
  394. .pma_quick_warp .drop_list a.favorite_table_anchor {
  395. clear: left;
  396. float: left;
  397. padding: .1em .3em 0;
  398. }