闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

231 lines
3.7 KiB

  1. .admin-wrapper {
  2. display: flex;
  3. justify-content: center;
  4. height: 100%;
  5. .sidebar-wrapper {
  6. flex: 1;
  7. height: 100%;
  8. background: $color1;
  9. display: flex;
  10. justify-content: flex-end;
  11. }
  12. .sidebar {
  13. width: 240px;
  14. height: 100%;
  15. padding: 20px 0;
  16. .logo {
  17. display: block;
  18. margin: 40px auto;
  19. width: 100px;
  20. height: 100px;
  21. }
  22. ul {
  23. list-style: none;
  24. border-radius: 4px 0 0 4px;
  25. overflow: hidden;
  26. a {
  27. display: block;
  28. padding: 15px 25px;
  29. color: rgba($color5, 0.7);
  30. text-decoration: none;
  31. transition: all 200ms linear;
  32. border-radius: 4px 0 0 4px;
  33. i.fa {
  34. margin-right: 5px;
  35. }
  36. &:hover {
  37. color: $color5;
  38. background-color: darken($color1, 5%);
  39. transition: all 100ms linear;
  40. }
  41. &.selected {
  42. background: darken($color1, 2%);
  43. border-radius: 4px 0 0 0;
  44. }
  45. }
  46. ul {
  47. background: darken($color1, 4%);
  48. border-radius: 0 0 0 4px;
  49. a {
  50. border: 0;
  51. &.selected {
  52. color: $color5;
  53. background-color: $color4;
  54. border-bottom: 0;
  55. border-radius: 0;
  56. &:hover {
  57. background-color: lighten($color4, 5%);
  58. }
  59. }
  60. }
  61. }
  62. }
  63. }
  64. .content-wrapper {
  65. flex: 2;
  66. overflow: auto;
  67. }
  68. .content {
  69. max-width: 700px;
  70. padding: 20px 15px;
  71. padding-top: 60px;
  72. padding-left: 25px;
  73. h2 {
  74. color: $color2;
  75. font-size: 24px;
  76. line-height: 28px;
  77. font-weight: 400;
  78. margin-bottom: 40px;
  79. }
  80. & > p {
  81. font-size: 14px;
  82. line-height: 18px;
  83. color: $color2;
  84. margin-bottom: 20px;
  85. strong {
  86. color: $color5;
  87. font-weight: 500;
  88. }
  89. }
  90. hr {
  91. margin: 20px 0;
  92. border: 0;
  93. background: transparent;
  94. border-bottom: 1px solid $color1;
  95. }
  96. }
  97. .simple_form {
  98. max-width: 400px;
  99. }
  100. @media screen and (max-width: 600px) {
  101. display: block;
  102. overflow-y: auto;
  103. .sidebar-wrapper, .content-wrapper {
  104. flex: 0 0 auto;
  105. height: auto;
  106. }
  107. .sidebar {
  108. width: 100%;
  109. padding: 10px 0;
  110. height: auto;
  111. .logo {
  112. margin: 20px auto;
  113. }
  114. }
  115. .content {
  116. padding-top: 20px;
  117. }
  118. }
  119. }
  120. .filters {
  121. display: flex;
  122. margin-bottom: 20px;
  123. .filter-subset {
  124. flex: 0 0 auto;
  125. margin-right: 40px;
  126. ul {
  127. margin-top: 5px;
  128. list-style: none;
  129. li {
  130. display: inline-block;
  131. margin-right: 5px;
  132. }
  133. }
  134. strong {
  135. font-weight: 500;
  136. text-transform: uppercase;
  137. font-size: 12px;
  138. }
  139. a {
  140. display: inline-block;
  141. color: rgba($color5, 0.7);
  142. text-decoration: none;
  143. text-transform: uppercase;
  144. font-size: 12px;
  145. font-weight: 500;
  146. border-bottom: 2px solid $color1;
  147. &:hover {
  148. color: $color5;
  149. border-bottom: 2px solid lighten($color1, 5%);
  150. }
  151. &.selected {
  152. color: $color4;
  153. border-bottom: 2px solid $color4;
  154. }
  155. }
  156. }
  157. }
  158. .report-accounts {
  159. display: flex;
  160. margin-bottom: 20px;
  161. }
  162. .report-accounts__item {
  163. flex: 1 1 0;
  164. display: flex;
  165. flex-direction: column;
  166. & > strong {
  167. display: block;
  168. margin-bottom: 10px;
  169. font-weight: 500;
  170. font-size: 14px;
  171. line-height: 18px;
  172. color: $color2;
  173. }
  174. &:first-child {
  175. margin-right: 10px;
  176. }
  177. .account-card {
  178. flex: 1 1 auto;
  179. }
  180. }
  181. .report-status {
  182. display: flex;
  183. margin-bottom: 10px;
  184. .activity-stream {
  185. flex: 2 0 0;
  186. margin-right: 20px;
  187. }
  188. }
  189. .report-status__actions {
  190. flex: 0 0 auto;
  191. }