_login.scss 3.2 KB

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