LoginForm.module.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. @use '~/styles/atoms/placeholders/buttons';
  3. .login-form :global {
  4. // To adjust the behavior, this problem is not solved.
  5. // See https://github.com/AaronCCWong/react-card-flip/issues/56
  6. .react-card-front,
  7. .react-card-back {
  8. height: 0% !important;
  9. }
  10. .collapse-external-auth {
  11. overflow: hidden;
  12. }
  13. .link-growi-org {
  14. position: absolute;
  15. bottom: 9px;
  16. z-index: 3;
  17. }
  18. .text-line {
  19. &:before,
  20. &:after {
  21. flex-grow: 1;
  22. height: 1px;
  23. margin:0 1em;
  24. content: '';
  25. background: rgba(white,0.5);
  26. }
  27. }
  28. .ldap-space {
  29. padding-right: 76px;
  30. }
  31. .input-ldap {
  32. position: absolute;
  33. top: 4px;
  34. right: 5px;
  35. }
  36. }
  37. // Button colors
  38. :root {
  39. .login-form :global {
  40. .btn {
  41. @extend %btn-nologin;
  42. }
  43. .btn-register {
  44. @extend %btn-register;
  45. }
  46. .btn-login {
  47. --bs-btn-bg: #{rgba(#204986, 0.6)};
  48. --bs-btn-hover-bg: #{rgba(#204986, 0.8)};
  49. --bs-btn-active-bg: #{rgba(#204986, 0.8)};
  50. }
  51. .btn-function {
  52. --bs-btn-bg: #{rgba(bs.$gray-800, 0.8)};
  53. --bs-btn-hover-bg: #{rgba(bs.$gray-800, 0.5)};
  54. --bs-btn-active-bg: #{rgba(bs.$gray-800, 0.5)};
  55. }
  56. .btn-auth-google {
  57. --bs-btn-bg: #{rgba(#4285F4, 0.4)};
  58. --bs-btn-hover-bg: #{rgba(#4285F4, 0.8)};
  59. --bs-btn-active-bg: #{rgba(#4285F4, 0.8)};
  60. }
  61. .btn-auth-github {
  62. --bs-btn-bg: #{rgba(#403D3E, 0.4)};
  63. --bs-btn-hover-bg: #{rgba(#403D3E, 0.7)};
  64. --bs-btn-active-bg: #{rgba(#403D3E, 0.7)};
  65. }
  66. .btn-auth-facebook {
  67. --bs-btn-bg: #{rgba(#29487d, 0.4)};
  68. --bs-btn-hover-bg: #{rgba(#29487d, 0.9)};
  69. --bs-btn-active-bg: #{rgba(#29487d, 0.9)};
  70. }
  71. .btn-auth-oidc {
  72. --bs-btn-bg: #{rgba(#835B1A, 0.4)};
  73. --bs-btn-hover-bg: #{rgba(#835B1A, 0.8)};
  74. --bs-btn-active-bg: #{rgba(#835B1A, 0.8)};
  75. }
  76. .btn-auth-saml {
  77. --bs-btn-bg: #{rgba(#138957, 0.4)};
  78. --bs-btn-hover-bg: #{rgba(#138957, 0.7)};
  79. --bs-btn-active-bg: #{rgba(#138957, 0.7)};
  80. }
  81. }
  82. }