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

233 lines
3.6 KiB

  1. code {
  2. font-family: 'Roboto Mono', monospace;
  3. font-weight: 400;
  4. }
  5. .form-container {
  6. max-width: 400px;
  7. padding: 20px;
  8. margin: 0 auto;
  9. }
  10. .simple_form {
  11. .input {
  12. margin-bottom: 15px;
  13. }
  14. .hint {
  15. display: block;
  16. color: $color3;
  17. font-size: 12px;
  18. margin-top: 4px;
  19. }
  20. .label_input {
  21. display: flex;
  22. label {
  23. flex: 0 0 auto;
  24. width: 100px;
  25. }
  26. input {
  27. flex: 1 1 auto;
  28. }
  29. }
  30. .input.file, .input.select {
  31. padding: 15px 0;
  32. margin-bottom: 0;
  33. label {
  34. font-family: inherit;
  35. font-size: 16px;
  36. color: $color5;
  37. display: block;
  38. padding-top: 5px;
  39. }
  40. }
  41. .fields-group {
  42. margin-bottom: 25px;
  43. }
  44. .input.boolean {
  45. margin-bottom: 5px;
  46. label {
  47. font-family: inherit;
  48. font-size: 14px;
  49. color: white;
  50. display: block;
  51. width: auto;
  52. }
  53. label.checkbox {
  54. position: relative;
  55. padding-left: 25px;
  56. }
  57. input[type=checkbox] {
  58. position: absolute;
  59. left: 0;
  60. top: 1px;
  61. margin: 0;
  62. }
  63. .hint {
  64. padding-left: 25px;
  65. margin-left: 0;
  66. }
  67. }
  68. input[type=text], input[type=email], input[type=password], textarea {
  69. background: transparent;
  70. box-sizing: border-box;
  71. border: 0;
  72. border-bottom: 2px solid $color3;
  73. border-radius: 2px 2px 0 0;
  74. padding: 7px 4px;
  75. font-size: 16px;
  76. color: $color5;
  77. display: block;
  78. width: 100%;
  79. outline: 0;
  80. font-family: inherit;
  81. &:invalid {
  82. box-shadow: none;
  83. }
  84. &:focus:invalid {
  85. border-bottom-color: $color6;
  86. }
  87. &:required:valid {
  88. border-bottom-color: $color7;
  89. }
  90. &:active, &:focus {
  91. border-bottom-color: $color4;
  92. background: rgba($color8, 0.1);
  93. }
  94. }
  95. .input.field_with_errors {
  96. label {
  97. color: $color6;
  98. }
  99. input[type=text], input[type=email], input[type=password] {
  100. border-bottom-color: $color6;
  101. }
  102. .error {
  103. display: block;
  104. font-weight: 500;
  105. color: $color6;
  106. margin-top: 4px;
  107. }
  108. }
  109. .actions {
  110. margin-top: 30px;
  111. }
  112. button, .block-button {
  113. display: block;
  114. width: 100%;
  115. border: 0;
  116. border-radius: 4px;
  117. background: $color4;
  118. color: $color5;
  119. font-size: 18px;
  120. padding: 10px;
  121. text-transform: uppercase;
  122. text-decoration: none;
  123. text-align: center;
  124. box-sizing: border-box;
  125. cursor: pointer;
  126. font-weight: 500;
  127. outline: 0;
  128. margin-bottom: 10px;
  129. &:hover {
  130. background-color: lighten($color4, 5%);
  131. }
  132. &:active, &:focus {
  133. position: relative;
  134. top: 1px;
  135. background-color: darken($color4, 5%);
  136. }
  137. &.negative {
  138. background: $color6;
  139. &:hover {
  140. background-color: lighten($color6, 5%);
  141. }
  142. &:active, &:focus {
  143. background-color: darken($color6, 5%);
  144. }
  145. }
  146. }
  147. }
  148. .flash-message {
  149. background: $color1;
  150. color: $color3;
  151. border-radius: 4px;
  152. padding: 15px 10px;
  153. margin-bottom: 30px;
  154. box-shadow: 0 0 5px rgba($color8, 0.2);
  155. text-align: center;
  156. strong {
  157. font-weight: 500;
  158. }
  159. }
  160. .form-footer {
  161. margin-top: 30px;
  162. text-align: center;
  163. a {
  164. color: $color5;
  165. text-decoration: none;
  166. &:hover {
  167. text-decoration: underline;
  168. }
  169. }
  170. }
  171. .oauth-prompt, .follow-prompt {
  172. margin-bottom: 30px;
  173. text-align: center;
  174. color: $color3;
  175. h2 {
  176. font-size: 16px;
  177. margin-bottom: 30px;
  178. }
  179. strong {
  180. color: $color2;
  181. font-weight: 500;
  182. }
  183. }
  184. .qr-code {
  185. background: #fff;
  186. padding: 4px;
  187. margin-bottom: 20px;
  188. box-shadow: 0 0 15px rgba($color8, 0.2);
  189. display: inline-block;
  190. svg {
  191. display: block;
  192. margin: 0;
  193. }
  194. }