_mobile.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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. }
  52. }
  53. }
  54. #global {
  55. height: calc(100% - 8rem);
  56. }
  57. main.prompt {
  58. max-width: 100%;
  59. min-width: auto;
  60. width: 75%;
  61. }
  62. .post {
  63. padding-left: 1rem;
  64. padding-right: 1rem;
  65. }
  66. .nav_menu {
  67. .btn {
  68. margin: 0;
  69. padding: 0.85rem 1.25rem;
  70. }
  71. .stick {
  72. margin: 0.5rem 0.5rem;
  73. .btn {
  74. margin: 0;
  75. padding: 0.85rem 1.25rem;
  76. &.read_all {
  77. padding: 0.85rem 1.25rem;
  78. }
  79. }
  80. }
  81. .search {
  82. display: none;
  83. max-width: 97%;
  84. .input {
  85. max-width: 97%;
  86. width: 90px;
  87. &:focus {
  88. width: 400px;
  89. }
  90. }
  91. }
  92. }
  93. #stream {
  94. .flux {
  95. .flux_header {
  96. padding: 0.5rem 0;
  97. }
  98. }
  99. }
  100. .dropdown-target:target {
  101. ~ .dropdown-toggle::after {
  102. background-color: variables.$grey-lighter;
  103. border-top: 1px solid variables.$grey-light;
  104. border-left: 1px solid variables.$grey-light;
  105. right: 21px;
  106. bottom: -14px;
  107. }
  108. ~ a.dropdown-toggle {
  109. &:not(.btn) {
  110. ~ .dropdown-menu {
  111. margin-top: 0;
  112. }
  113. &::after {
  114. bottom: -17px;
  115. }
  116. }
  117. }
  118. }
  119. .day {
  120. text-align: center;
  121. padding: 1rem 0;
  122. .name {
  123. padding: 0;
  124. display: block;
  125. width: 100%;
  126. line-height: 1.5rem;
  127. margin-bottom: 1rem;
  128. }
  129. }
  130. #nav_entries {
  131. line-height: 4.5rem;
  132. }
  133. .notification {
  134. border-radius: 0;
  135. a.close {
  136. background: transparent;
  137. display: block;
  138. left: 0;
  139. }
  140. a.close:hover {
  141. opacity: 0.5;
  142. }
  143. a.close .icon {
  144. display: none;
  145. }
  146. }
  147. }