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.

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