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

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