_mobile.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. .group {
  64. margin: 0.5rem 0.5rem;
  65. .btn {
  66. margin: 0;
  67. padding: 0.85rem 1.25rem;
  68. &.read_all {
  69. padding: 0.85rem 1.25rem;
  70. }
  71. }
  72. }
  73. .search {
  74. .input {
  75. max-width: 97%;
  76. width: 90px;
  77. &:focus {
  78. width: 400px;
  79. }
  80. }
  81. }
  82. }
  83. #stream {
  84. .flux {
  85. .flux_header {
  86. padding: 0.5rem 0;
  87. }
  88. }
  89. }
  90. .dropdown-target:target {
  91. ~ .dropdown-toggle::after {
  92. background-color: variables.$grey-lighter;
  93. border-top: 1px solid variables.$grey-light;
  94. border-left: 1px solid variables.$grey-light;
  95. right: 21px;
  96. bottom: -14px;
  97. }
  98. ~ a.dropdown-toggle {
  99. &:not(.btn) {
  100. &::after {
  101. bottom: -17px;
  102. }
  103. }
  104. }
  105. }
  106. .day {
  107. text-align: center;
  108. padding: 1rem 0;
  109. .name {
  110. padding: 0;
  111. display: block;
  112. width: 100%;
  113. line-height: 1.5rem;
  114. margin-bottom: 1rem;
  115. }
  116. }
  117. #nav_entries button {
  118. height: 4.5rem;
  119. }
  120. .notification {
  121. border-radius: 0;
  122. a.close {
  123. background: transparent;
  124. display: block;
  125. left: 0;
  126. }
  127. a.close:hover {
  128. opacity: 0.5;
  129. }
  130. a.close .icon {
  131. display: none;
  132. }
  133. }
  134. }