_navigation.scss 7.1 KB

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