_mobile.scss 2.8 KB

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