_navigation.scss 8.1 KB

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