闭社主体 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.

242 lines
3.9 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. .label_input {
  100. label.select {
  101. width: 50%;
  102. }
  103. select {
  104. width: 50%;
  105. float: right;
  106. }
  107. }
  108. }
  109. @media screen and (max-width: 600px) {
  110. display: block;
  111. overflow-y: auto;
  112. -webkit-overflow-scrolling: touch;
  113. .sidebar-wrapper, .content-wrapper {
  114. flex: 0 0 auto;
  115. height: auto;
  116. overflow: initial;
  117. }
  118. .sidebar {
  119. width: 100%;
  120. padding: 10px 0;
  121. height: auto;
  122. .logo {
  123. margin: 20px auto;
  124. }
  125. }
  126. .content {
  127. padding-top: 20px;
  128. }
  129. }
  130. }
  131. .filters {
  132. display: flex;
  133. margin-bottom: 20px;
  134. .filter-subset {
  135. flex: 0 0 auto;
  136. margin-right: 40px;
  137. ul {
  138. margin-top: 5px;
  139. list-style: none;
  140. li {
  141. display: inline-block;
  142. margin-right: 5px;
  143. }
  144. }
  145. strong {
  146. font-weight: 500;
  147. text-transform: uppercase;
  148. font-size: 12px;
  149. }
  150. a {
  151. display: inline-block;
  152. color: rgba($color5, 0.7);
  153. text-decoration: none;
  154. text-transform: uppercase;
  155. font-size: 12px;
  156. font-weight: 500;
  157. border-bottom: 2px solid $color1;
  158. &:hover {
  159. color: $color5;
  160. border-bottom: 2px solid lighten($color1, 5%);
  161. }
  162. &.selected {
  163. color: $color4;
  164. border-bottom: 2px solid $color4;
  165. }
  166. }
  167. }
  168. }
  169. .report-accounts {
  170. display: flex;
  171. margin-bottom: 20px;
  172. }
  173. .report-accounts__item {
  174. flex: 1 1 0;
  175. display: flex;
  176. flex-direction: column;
  177. & > strong {
  178. display: block;
  179. margin-bottom: 10px;
  180. font-weight: 500;
  181. font-size: 14px;
  182. line-height: 18px;
  183. color: $color2;
  184. }
  185. &:first-child {
  186. margin-right: 10px;
  187. }
  188. .account-card {
  189. flex: 1 1 auto;
  190. }
  191. }
  192. .report-status {
  193. display: flex;
  194. margin-bottom: 10px;
  195. .activity-stream {
  196. flex: 2 0 0;
  197. margin-right: 20px;
  198. }
  199. }
  200. .report-status__actions {
  201. flex: 0 0 auto;
  202. }