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.

188 lines
3.0 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. .input.file, .input.select {
  15. padding: 15px 0;
  16. margin-bottom: 0;
  17. display: flex;
  18. label {
  19. font-family: 'Roboto';
  20. font-size: 16px;
  21. color: #fff;
  22. width: 100px;
  23. display: block;
  24. flex: 0 0 auto;
  25. padding-top: 5px;
  26. }
  27. input[type=file], select {
  28. flex: 1 1 auto;
  29. }
  30. }
  31. .fields-group {
  32. margin-bottom: 25px;
  33. }
  34. .input.boolean {
  35. margin-bottom: 5px;
  36. label {
  37. font-family: 'Roboto';
  38. font-size: 14px;
  39. color: #9baec8;
  40. display: block;
  41. }
  42. input[type=checkbox] {
  43. display: inline-block;
  44. position: relative;
  45. top: 3px;
  46. margin-right: 8px;
  47. }
  48. }
  49. input[type=text], input[type=email], input[type=password], textarea {
  50. background: transparent;
  51. box-sizing: border-box;
  52. border: 0;
  53. border-bottom: 2px solid #9baec8;
  54. border-radius: 2px 2px 0 0;
  55. padding: 7px 4px;
  56. font-size: 16px;
  57. color: #fff;
  58. display: block;
  59. width: 100%;
  60. outline: 0;
  61. font-family: 'Roboto';
  62. &:invalid {
  63. box-shadow: none;
  64. }
  65. &:focus:invalid {
  66. border-bottom-color: #df405a;
  67. }
  68. &:required:valid {
  69. border-bottom-color: #79bd9a;
  70. }
  71. &:active, &:focus {
  72. border-bottom-color: #2b90d9;
  73. background: rgba(0, 0, 0, 0.1);
  74. }
  75. }
  76. .input.field_with_errors {
  77. input[type=text], input[type=email], input[type=password] {
  78. border-bottom-color: #df405a;
  79. }
  80. .error {
  81. font-weight: 500;
  82. color: #df405a;
  83. }
  84. }
  85. .actions {
  86. margin-top: 30px;
  87. }
  88. button {
  89. display: block;
  90. width: 100%;
  91. border: 0;
  92. border-radius: 4px;
  93. background: #2b90d9;
  94. color: #fff;
  95. font-size: 18px;
  96. padding: 10px;
  97. text-transform: uppercase;
  98. cursor: pointer;
  99. font-weight: 500;
  100. outline: 0;
  101. margin-bottom: 10px;
  102. &:hover {
  103. background-color: lighten(#2b90d9, 5%);
  104. }
  105. &:active, &:focus {
  106. position: relative;
  107. top: 1px;
  108. background-color: darken(#2b90d9, 5%);
  109. }
  110. &.negative {
  111. background: #df405a;
  112. &:hover {
  113. background-color: lighten(#df405a, 5%);
  114. }
  115. &:active, &:focus {
  116. background-color: darken(#df405a, 5%);
  117. }
  118. }
  119. }
  120. }
  121. .flash-message {
  122. background: #282c37;
  123. color: #9baec8;
  124. border-radius: 4px;
  125. padding: 15px 10px;
  126. margin-bottom: 30px;
  127. box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  128. text-align: center;
  129. strong {
  130. font-weight: 500;
  131. }
  132. }
  133. .form-footer {
  134. margin-top: 30px;
  135. text-align: center;
  136. a {
  137. color: #9baec8;
  138. text-decoration: none;
  139. &:hover {
  140. color: #d9e1e8;
  141. text-decoration: underline;
  142. }
  143. }
  144. }
  145. .oauth-prompt {
  146. margin-bottom: 30px;
  147. text-align: center;
  148. color: #9baec8;
  149. h2 {
  150. font-size: 16px;
  151. margin-bottom: 30px;
  152. }
  153. strong {
  154. color: #d9e1e8;
  155. font-weight: 500;
  156. }
  157. }