_login.scss 4.1 KB

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