mobile.js.less 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. @import 'variables.less';
  2. // remove duplicates we're not using here
  3. #sidebar .generated-sidebar,
  4. #p-search-mobilejs,
  5. #p-tb-mobilejs,
  6. #p-lang-mobilejs,
  7. #t-contributions {
  8. display: none;
  9. }
  10. // popouts
  11. #p-cactions,
  12. #p-personal,
  13. #p-tb,
  14. #p-lang,
  15. #sidebar-mobilejs {
  16. // keep present for screen readers
  17. .hidden();
  18. &.mobile-menu-active {
  19. top: 2em;
  20. left: 0;
  21. }
  22. }
  23. .mobile-menu-active {
  24. position: absolute;
  25. z-index: 10000;
  26. background: @content-background;
  27. border: solid 1px @orange-border;
  28. border-left: 0;
  29. padding: 2em 2em 0 1.5em;
  30. font-size: 125%;
  31. // hide originals but don't remove, as their duplicates don't have access keys on them
  32. *[ id^='ca-nstab-' ],
  33. #ca-talk,
  34. #ca-edit {
  35. .hidden();
  36. }
  37. ul {
  38. padding-top: 1em;
  39. }
  40. li {
  41. white-space: nowrap;
  42. }
  43. a {
  44. display: block;
  45. padding: 0.65em 0;
  46. }
  47. h3:first-child {
  48. margin-right: 2em;
  49. }
  50. .pBody {
  51. margin-bottom: 2em;
  52. }
  53. .mobile-close-button {
  54. width: 20px;
  55. height: 20px;
  56. .background-image-svg( 'images/icon-close.svg', 'images/icon-close.gif' );
  57. background-position: 0 0;
  58. background-repeat: no-repeat;
  59. position: absolute;
  60. top: 1em;
  61. right: 0.75em;
  62. cursor: pointer;
  63. }
  64. }
  65. .menus-cover {
  66. display: none;
  67. top: 0;
  68. left: 0;
  69. width: 100%;
  70. height: 100%;
  71. z-index: 9999;
  72. &.visible {
  73. display: block;
  74. }
  75. }
  76. #menus-cover {
  77. position: fixed;
  78. opacity: 0.45;
  79. background-color: @content-background;
  80. }
  81. #menus-cover-background {
  82. position: absolute;
  83. background-color: @background;
  84. .background-image-svg( 'images/headbg.svg', 'images/headbg.jpg' );
  85. background-position: 0 0;
  86. background-repeat: no-repeat;
  87. opacity: 0.55;
  88. }
  89. #p-cactions-mobile li {
  90. &#ca-edit-mobile a {
  91. .background-image-svg( 'images/icon-edit.svg', 'images/icon-edit.gif' );
  92. }
  93. &#t-contributions-mobile a {
  94. .background-image-svg( 'images/icon-user.svg', 'images/icon-user.gif' );
  95. }
  96. }