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.

341 lines
5.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: $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;
  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. padding: 15px 35px;
  55. &.selected {
  56. color: $primary-text-color;
  57. background-color: $ui-highlight-color;
  58. border-bottom: 0;
  59. border-radius: 0;
  60. &:hover {
  61. background-color: lighten($ui-highlight-color, 5%);
  62. }
  63. }
  64. }
  65. }
  66. }
  67. }
  68. .content-wrapper {
  69. flex: 2;
  70. overflow: auto;
  71. }
  72. .content {
  73. max-width: 700px;
  74. padding: 20px 15px;
  75. padding-top: 60px;
  76. padding-left: 25px;
  77. h2 {
  78. color: $ui-secondary-color;
  79. font-size: 24px;
  80. line-height: 28px;
  81. font-weight: 400;
  82. margin-bottom: 40px;
  83. }
  84. h6 {
  85. font-size: 16px;
  86. color: $ui-secondary-color;
  87. line-height: 28px;
  88. font-weight: 400;
  89. }
  90. & > p {
  91. font-size: 14px;
  92. line-height: 18px;
  93. color: $ui-secondary-color;
  94. margin-bottom: 20px;
  95. strong {
  96. color: $primary-text-color;
  97. font-weight: 500;
  98. }
  99. }
  100. hr {
  101. margin: 20px 0;
  102. border: 0;
  103. background: transparent;
  104. border-bottom: 1px solid $ui-base-color;
  105. }
  106. .muted-hint {
  107. color: $ui-primary-color;
  108. a {
  109. color: $ui-highlight-color;
  110. }
  111. }
  112. .positive-hint {
  113. color: $valid-value-color;
  114. font-weight: 500;
  115. }
  116. }
  117. .simple_form {
  118. max-width: 400px;
  119. &.edit_user,
  120. &.new_form_admin_settings,
  121. &.new_form_two_factor_confirmation,
  122. &.new_form_delete_confirmation,
  123. &.new_import,
  124. &.new_domain_block,
  125. &.edit_domain_block {
  126. max-width: none;
  127. }
  128. .form_two_factor_confirmation_code,
  129. .form_delete_confirmation_password {
  130. max-width: 400px;
  131. }
  132. .actions {
  133. max-width: 400px;
  134. }
  135. }
  136. @media screen and (max-width: 600px) {
  137. display: block;
  138. overflow-y: auto;
  139. -webkit-overflow-scrolling: touch;
  140. .sidebar-wrapper,
  141. .content-wrapper {
  142. flex: 0 0 auto;
  143. height: auto;
  144. overflow: initial;
  145. }
  146. .sidebar {
  147. width: 100%;
  148. padding: 10px 0;
  149. height: auto;
  150. .logo {
  151. margin: 20px auto;
  152. }
  153. }
  154. .content {
  155. padding-top: 20px;
  156. }
  157. }
  158. }
  159. .filters {
  160. display: flex;
  161. flex-wrap: wrap;
  162. .filter-subset {
  163. flex: 0 0 auto;
  164. margin: 0 40px 10px 0;
  165. &:last-child {
  166. margin-bottom: 20px;
  167. }
  168. ul {
  169. margin-top: 5px;
  170. list-style: none;
  171. li {
  172. display: inline-block;
  173. margin-right: 5px;
  174. }
  175. }
  176. strong {
  177. font-weight: 500;
  178. text-transform: uppercase;
  179. font-size: 12px;
  180. }
  181. a {
  182. display: inline-block;
  183. color: rgba($primary-text-color, 0.7);
  184. text-decoration: none;
  185. text-transform: uppercase;
  186. font-size: 12px;
  187. font-weight: 500;
  188. border-bottom: 2px solid $ui-base-color;
  189. &:hover {
  190. color: $primary-text-color;
  191. border-bottom: 2px solid lighten($ui-base-color, 5%);
  192. }
  193. &.selected {
  194. color: $ui-highlight-color;
  195. border-bottom: 2px solid $ui-highlight-color;
  196. }
  197. }
  198. }
  199. }
  200. .report-accounts {
  201. display: flex;
  202. flex-wrap: wrap;
  203. margin-bottom: 20px;
  204. }
  205. .report-accounts__item {
  206. display: flex;
  207. flex: 250px;
  208. flex-direction: column;
  209. margin: 0 5px;
  210. & > strong {
  211. display: block;
  212. margin: 0 0 10px -5px;
  213. font-weight: 500;
  214. font-size: 14px;
  215. line-height: 18px;
  216. color: $ui-secondary-color;
  217. }
  218. .account-card {
  219. flex: 1 1 auto;
  220. }
  221. }
  222. .report-status,
  223. .account-status {
  224. display: flex;
  225. margin-bottom: 10px;
  226. .activity-stream {
  227. flex: 2 0 0;
  228. margin-right: 20px;
  229. max-width: calc(100% - 60px);
  230. .entry {
  231. border-radius: 4px;
  232. }
  233. }
  234. }
  235. .report-status__actions,
  236. .account-status__actions {
  237. flex: 0 0 auto;
  238. display: flex;
  239. flex-direction: column;
  240. .icon-button {
  241. font-size: 24px;
  242. width: 24px;
  243. text-align: center;
  244. margin-bottom: 10px;
  245. }
  246. }
  247. .batch-form-box {
  248. display: flex;
  249. flex-wrap: wrap;
  250. margin-bottom: 5px;
  251. #form_status_batch_action {
  252. margin: 0 5px 5px 0;
  253. font-size: 14px;
  254. }
  255. input.button {
  256. margin: 0 5px 5px 0;
  257. }
  258. .media-spoiler-toggle-buttons {
  259. margin-left: auto;
  260. .button {
  261. overflow: visible;
  262. margin: 0 0 5px 5px;
  263. float: right;
  264. }
  265. }
  266. }
  267. .batch-checkbox,
  268. .batch-checkbox-all {
  269. display: flex;
  270. align-items: center;
  271. margin-right: 5px;
  272. }
  273. .back-link {
  274. margin-bottom: 10px;
  275. font-size: 14px;
  276. a {
  277. color: $classic-highlight-color;
  278. text-decoration: none;
  279. &:hover {
  280. text-decoration: underline;
  281. }
  282. }
  283. }