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