_navigation.scss 7.6 KB

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