_mobile.scss 2.1 KB

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