_navigation.scss 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469
  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. }
  128. #pma_navigation_tree {
  129. a {
  130. color: $navi-color;
  131. padding-left: 0;
  132. &:hover {
  133. text-decoration: underline;
  134. }
  135. }
  136. li {
  137. margin-bottom: 0;
  138. &.activePointer,
  139. &.selected {
  140. color: $navi-pointer-color;
  141. background-color: $navi-pointer-background;
  142. }
  143. .dbItemControls {
  144. padding-#{$left}: 4px;
  145. }
  146. .navItemControls {
  147. display: none;
  148. padding-#{$left}: 4px;
  149. }
  150. &.activePointer .navItemControls {
  151. display: inline;
  152. opacity: 0.5;
  153. &:hover {
  154. display: inline;
  155. opacity: 1;
  156. }
  157. }
  158. }
  159. ul {
  160. clear: both;
  161. padding: 0;
  162. list-style-type: none;
  163. margin: 0;
  164. ul {
  165. position: relative;
  166. }
  167. }
  168. li {
  169. white-space: nowrap;
  170. clear: both;
  171. min-height: 16px;
  172. }
  173. img {
  174. margin: 0;
  175. }
  176. i {
  177. display: block;
  178. }
  179. div.block {
  180. position: relative;
  181. width: 1.5em;
  182. height: 1.5em;
  183. min-width: 16px;
  184. min-height: 16px;
  185. float: $left;
  186. &.double {
  187. width: 3em;
  188. }
  189. i,
  190. b {
  191. width: 1.5em;
  192. height: 1.7em;
  193. min-width: 16px;
  194. min-height: 8px;
  195. position: absolute;
  196. bottom: 0.7em;
  197. #{$left}: 0.75em;
  198. z-index: 0;
  199. }
  200. i {
  201. border-#{$left}: 1px solid #666;
  202. border-bottom: 1px solid #666;
  203. position: relative;
  204. z-index: 0;
  205. &.first {
  206. border-#{$left}: 0;
  207. }
  208. }
  209. b {
  210. display: block;
  211. height: 0.75em;
  212. bottom: 0;
  213. #{$left}: 0.75em;
  214. border-#{$left}: 1px solid #666;
  215. }
  216. a,
  217. u {
  218. position: absolute;
  219. #{$left}: 50%;
  220. top: 50%;
  221. z-index: 10;
  222. }
  223. a + a {
  224. #{$left}: 100%;
  225. }
  226. &.double {
  227. a,
  228. u {
  229. #{$left}: 25%;
  230. }
  231. a + a {
  232. #{$left}: 70%;
  233. }
  234. }
  235. img {
  236. position: relative;
  237. top: -0.6em;
  238. #{$left}: 0;
  239. margin-#{$left}: -5px;
  240. }
  241. }
  242. li {
  243. &.last > ul {
  244. background: none;
  245. }
  246. > {
  247. a,
  248. i {
  249. line-height: 1.5em;
  250. height: 1.5em;
  251. padding-#{$left}: 0.3em;
  252. }
  253. }
  254. }
  255. .list_container {
  256. border-#{$left}: 1px solid #666;
  257. margin-#{$left}: 0.75em;
  258. padding-#{$left}: 0.75em;
  259. }
  260. .last > .list_container {
  261. border-#{$left}: 0 solid #666;
  262. }
  263. }
  264. li.fast_filter {
  265. padding-#{$left}: 0.75em;
  266. margin-#{$left}: 0.75em;
  267. padding-#{$right}: 35px;
  268. border-#{$left}: 1px solid #666;
  269. input {
  270. padding-#{$right}: 1.7em;
  271. width: 100%;
  272. }
  273. span {
  274. position: relative;
  275. #{$right}: 1.5em;
  276. padding: 0.2em;
  277. cursor: pointer;
  278. font-weight: bold;
  279. color: #800;
  280. }
  281. }
  282. html.ie {
  283. li.fast_filter span {
  284. display: none;
  285. }
  286. &.ie9 li.fast_filter span,
  287. &.ie8 li.fast_filter span {
  288. display: auto;
  289. }
  290. li.fast_filter input {
  291. padding-#{$right}: 0.2em;
  292. }
  293. &.ie9 li.fast_filter input,
  294. &.ie8 li.fast_filter input {
  295. padding-#{$right}: 1.7em;
  296. }
  297. }
  298. li.fast_filter.db_fast_filter {
  299. border: 0;
  300. }
  301. /* Resize handler */
  302. #pma_navigation_resizer {
  303. width: 3px;
  304. height: 100%;
  305. background-color: #aaa;
  306. cursor: col-resize;
  307. position: fixed;
  308. top: 0;
  309. #{$left}: $navi-width;
  310. z-index: 801;
  311. }
  312. #pma_navigation_collapser {
  313. width: 20px;
  314. height: 22px;
  315. line-height: 22px;
  316. background: #eee;
  317. color: #555;
  318. font-weight: bold;
  319. position: fixed;
  320. top: 0;
  321. #{$left}: $navi-width;
  322. text-align: center;
  323. cursor: pointer;
  324. z-index: 800;
  325. text-shadow: 0 1px 0 #fff;
  326. filter: dropshadow(color = #fff, offx = 0, offy = 1);
  327. border: 1px solid #888;
  328. }
  329. #navigation_controls_outer {
  330. min-height: 21px !important;
  331. &.activePointer {
  332. background-color: transparent !important;
  333. }
  334. }
  335. #navigation_controls {
  336. float: $right;
  337. padding-#{$right}: 23px;
  338. }
  339. .pma_quick_warp {
  340. margin-top: 5px;
  341. margin-#{$left}: 2px;
  342. position: relative;
  343. .drop_list {
  344. float: $left;
  345. margin-#{$left}: 3px;
  346. padding: 2px 0;
  347. }
  348. .drop_button {
  349. padding: 0 0.3em;
  350. border: 1px solid #ddd;
  351. background: #f2f2f2;
  352. cursor: pointer;
  353. }
  354. .drop_list {
  355. &:hover .drop_button {
  356. background: #fff;
  357. }
  358. ul {
  359. position: absolute;
  360. margin: 0;
  361. padding: 0;
  362. overflow: hidden;
  363. overflow-y: auto;
  364. list-style: none;
  365. background: #fff;
  366. border: 1px solid #ddd;
  367. border-top-right-radius: 0;
  368. border-bottom-right-radius: 0;
  369. top: 100%;
  370. #{$left}: 3px;
  371. #{$right}: 0;
  372. display: none;
  373. z-index: 802;
  374. }
  375. &:hover ul {
  376. display: block;
  377. }
  378. li {
  379. white-space: nowrap;
  380. img {
  381. vertical-align: sub;
  382. }
  383. &:hover {
  384. background: #f2f2f2;
  385. }
  386. }
  387. a {
  388. display: block;
  389. padding: 0.1em 0.3em;
  390. &.favorite_table_anchor {
  391. clear: $left;
  392. float: $left;
  393. padding: 0.1em 0.3em 0;
  394. }
  395. }
  396. }
  397. }