_mobile.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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. #panel .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. .post {
  43. padding-left: 1rem;
  44. padding-right: 1rem;
  45. }
  46. .nav_menu {
  47. .btn {
  48. margin: 0;
  49. padding: 0.85rem 1.25rem;
  50. }
  51. .stick {
  52. margin: 0.5rem 0.5rem;
  53. .btn {
  54. margin: 0;
  55. padding: 0.85rem 1.25rem;
  56. &.read_all {
  57. padding: 0.85rem 1.25rem;
  58. }
  59. }
  60. }
  61. .search {
  62. .input {
  63. max-width: 97%;
  64. width: 90px;
  65. &:focus {
  66. width: 400px;
  67. }
  68. }
  69. }
  70. }
  71. #stream {
  72. .flux {
  73. .flux_header {
  74. padding: 0.5rem 0;
  75. }
  76. }
  77. }
  78. .dropdown-target:target {
  79. ~ .dropdown-toggle::after {
  80. background-color: variables.$grey-lighter;
  81. border-top: 1px solid variables.$grey-light;
  82. border-left: 1px solid variables.$grey-light;
  83. right: 21px;
  84. bottom: -14px;
  85. }
  86. ~ a.dropdown-toggle {
  87. &:not(.btn) {
  88. ~ .dropdown-menu {
  89. margin-top: 0;
  90. }
  91. &::after {
  92. bottom: -17px;
  93. }
  94. }
  95. }
  96. }
  97. .day {
  98. text-align: center;
  99. padding: 1rem 0;
  100. .name {
  101. padding: 0;
  102. display: block;
  103. width: 100%;
  104. line-height: 1.5rem;
  105. margin-bottom: 1rem;
  106. }
  107. }
  108. #nav_entries {
  109. line-height: 4.5rem;
  110. }
  111. .notification {
  112. border-radius: 0;
  113. a.close {
  114. background: transparent;
  115. display: block;
  116. left: 0;
  117. }
  118. a.close:hover {
  119. opacity: 0.5;
  120. }
  121. a.close .icon {
  122. display: none;
  123. }
  124. }
  125. }