_login.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. .nologin {
  2. $gray-800-for-login: darken(white, 30%);
  3. // background color
  4. background: linear-gradient(45deg, darken($inverse, 30%) 0%, hsla(340, 100%, 55%, 0) 70%),
  5. linear-gradient(135deg, $growi-green 10%, hsla(225, 95%, 50%, 0) 70%), linear-gradient(225deg, $growi-blue 10%, hsla(140, 90%, 50%, 0) 80%),
  6. linear-gradient(315deg, darken($inverse, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
  7. #page-wrapper {
  8. background: none;
  9. }
  10. // layout
  11. #wrapper {
  12. height: 100vh;
  13. #page-wrapper {
  14. display: flex;
  15. align-items: center;
  16. height: 100vh;
  17. margin-top: 0px;
  18. .main {
  19. width: 100vw;
  20. > .row {
  21. margin-right: 20px;
  22. margin-left: 20px;
  23. }
  24. .login-header {
  25. display: flex;
  26. flex-direction: column;
  27. align-items: center;
  28. padding-top: 30px;
  29. padding-bottom: 10px;
  30. }
  31. .login-form-errors {
  32. width: 100%;
  33. .alert {
  34. padding: 5px;
  35. margin-top: 10px;
  36. margin-bottom: 0;
  37. ul {
  38. padding-left: 1.5em;
  39. }
  40. }
  41. }
  42. }
  43. // .main
  44. }
  45. // #page-wrapper
  46. }
  47. // #wrapper
  48. // styles
  49. .login-header {
  50. background-color: rgba(white, 0.5);
  51. .logo {
  52. background-color: rgba(black, 0);
  53. fill: rgba(black, 0.5);
  54. }
  55. h1 {
  56. font-size: 22px;
  57. line-height: 1em;
  58. color: rgba(black, 0.5);
  59. }
  60. }
  61. .login-dialog {
  62. background-color: rgba(white, 0.5);
  63. }
  64. .input-group {
  65. margin-bottom: 10px;
  66. .input-group-text {
  67. color: $gray-800-for-login;
  68. text-align: center;
  69. background-color: rgba(black, 0.4);
  70. border: none;
  71. border-radius: 0;
  72. }
  73. .form-control {
  74. color: white;
  75. background-color: rgba(lighten(black, 10%), 0.4);
  76. &::placeholder {
  77. color: $gray-800-for-login;
  78. }
  79. }
  80. }
  81. .input-group:not(.has-error) {
  82. .form-control {
  83. border: transparent;
  84. }
  85. }
  86. .collapse-external-auth {
  87. overflow: hidden;
  88. }
  89. $btn-fill-colors: (
  90. 'login': (
  91. rgba($danger, 0.4),
  92. rgba(#7e4153, 0.5),
  93. ),
  94. 'register': (
  95. rgba($success, 0.4),
  96. rgba(#3f7263, 0.5),
  97. ),
  98. 'google': (
  99. rgba(#24292e, 0.4),
  100. #555,
  101. ),
  102. 'github': (
  103. rgba(lighten(black, 20%), 0.4),
  104. #555,
  105. ),
  106. 'facebook': (
  107. rgba(#29487d, 0.4),
  108. #555,
  109. ),
  110. 'twitter': (
  111. rgba(#1da1f2, 0.4),
  112. #555,
  113. ),
  114. 'oidc': (
  115. rgba(#24292e, 0.4),
  116. #555,
  117. ),
  118. 'saml': (
  119. rgba(#55a79a, 0.4),
  120. #555,
  121. ),
  122. 'basic': (
  123. rgba(#24292e, 0.4),
  124. #555,
  125. ),
  126. );
  127. @each $label, $colors in $btn-fill-colors {
  128. .btn-fill##{$label} {
  129. .btn-label {
  130. background-color: nth($colors, 1);
  131. }
  132. .eff {
  133. background-color: nth($colors, 2);
  134. }
  135. }
  136. }
  137. // footer link text
  138. .link-growi-org {
  139. font-size: smaller;
  140. font-weight: bold;
  141. color: rgba(black, 0.4);
  142. &,
  143. .growi,
  144. .org {
  145. transition: color 0.8s;
  146. }
  147. &:hover,
  148. &.focus {
  149. color: black;
  150. .growi {
  151. color: darken($growi-green, 20%);
  152. }
  153. .org {
  154. color: darken($growi-blue, 15%);
  155. }
  156. }
  157. }
  158. .link-switch {
  159. color: $gray-200;
  160. &:hover {
  161. color: white;
  162. }
  163. }
  164. }
  165. .login-page {
  166. // layout
  167. .main .row .login-header,
  168. .login-dialog {
  169. width: 320px;
  170. }
  171. .link-growi-org {
  172. position: absolute;
  173. bottom: 9px;
  174. z-index: 2;
  175. }
  176. // To adjust the behavior, this problem is not solved.
  177. // See https://github.com/AaronCCWong/react-card-flip/issues/56
  178. .react-card-front,
  179. .react-card-back {
  180. height: 0% !important;
  181. }
  182. }
  183. .invited,
  184. .nologin.error {
  185. .main .row {
  186. @media (min-width: 510px) {
  187. .col-sm-offset-4 {
  188. margin-left: calc(50% - 240px);
  189. }
  190. .col-sm-4 {
  191. width: 480px;
  192. }
  193. }
  194. }
  195. }
  196. .login-header,
  197. .login-dialog {
  198. max-width: 480px;
  199. }
  200. .nologin.error {
  201. .alert h2 {
  202. line-height: 1em;
  203. }
  204. }