_mobile.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. @use "mixins";
  2. @use "variables";
  3. /*=== MOBILE */
  4. /*===========*/
  5. @media (max-width: 840px) {
  6. .form-group .group-name {
  7. text-align: left;
  8. }
  9. .aside {
  10. @include mixins.transition(all, 0.2s, ease-in-out);
  11. &.aside_feed {
  12. padding: 0;
  13. }
  14. .tree .tree-folder .tree-folder-items .item a {
  15. padding: 0.5rem 1rem;
  16. }
  17. }
  18. .aside .toggle_aside,
  19. #panel .close,
  20. #close-slider.active,
  21. .dropdown-menu .toggle_aside {
  22. background: variables.$main-first-alt;
  23. display: block;
  24. width: 100%;
  25. height: 50px;
  26. line-height: 50px;
  27. text-align: center;
  28. .icon {
  29. filter: grayscale(100%) brightness(2.5);
  30. }
  31. }
  32. .header {
  33. padding: 0.5rem;
  34. height: 8rem;
  35. .item {
  36. &.search {
  37. display: block;
  38. form {
  39. display: inherit;
  40. }
  41. .stick {
  42. display: flex;
  43. }
  44. input {
  45. width: 90%;
  46. height: 3.5rem;
  47. &:focus {
  48. width: 100%;
  49. }
  50. }
  51. .btn {
  52. min-height: 49px;
  53. padding: 0.5rem 2rem;
  54. }
  55. }
  56. }
  57. }
  58. #global {
  59. height: calc(100% - 8rem);
  60. }
  61. .post {
  62. padding-left: 1rem;
  63. padding-right: 1rem;
  64. }
  65. .nav_menu {
  66. .btn {
  67. margin: 0;
  68. padding: 0.85rem 1.25rem;
  69. }
  70. .stick {
  71. margin: 0.5rem 0.5rem;
  72. .btn {
  73. margin: 0;
  74. padding: 0.85rem 1.25rem;
  75. &.read_all {
  76. padding: 0.85rem 1.25rem;
  77. }
  78. }
  79. }
  80. .search {
  81. display: none;
  82. max-width: 97%;
  83. .input {
  84. max-width: 97%;
  85. width: 90px;
  86. &:focus {
  87. width: 400px;
  88. }
  89. }
  90. }
  91. }
  92. #stream {
  93. .flux {
  94. .flux_header {
  95. padding: 0.5rem 0;
  96. }
  97. }
  98. }
  99. .dropdown-target:target {
  100. ~ .dropdown-toggle::after {
  101. background-color: variables.$grey-lighter;
  102. border-top: 1px solid variables.$grey-light;
  103. border-left: 1px solid variables.$grey-light;
  104. right: 21px;
  105. bottom: -14px;
  106. }
  107. ~ a.dropdown-toggle {
  108. &:not(.btn) {
  109. ~ .dropdown-menu {
  110. margin-top: 0;
  111. }
  112. &::after {
  113. bottom: -17px;
  114. }
  115. }
  116. }
  117. }
  118. .day {
  119. text-align: center;
  120. padding: 1rem 0;
  121. .name {
  122. padding: 0;
  123. display: block;
  124. width: 100%;
  125. line-height: 1.5rem;
  126. margin-bottom: 1rem;
  127. }
  128. }
  129. #nav_entries {
  130. line-height: 4.5rem;
  131. }
  132. .notification {
  133. border-radius: 0;
  134. a.close {
  135. background: transparent;
  136. display: block;
  137. left: 0;
  138. }
  139. a.close:hover {
  140. opacity: 0.5;
  141. }
  142. a.close .icon {
  143. display: none;
  144. }
  145. }
  146. }