_navigation.scss 7.6 KB

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