NoLoginLayout.module.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. @use '~/styles/bootstrap/init' as *;
  2. .nologin :global {
  3. height: 100vh;
  4. // layout
  5. .page-wrapper {
  6. display: flex;
  7. align-items: center;
  8. height: 100vh;
  9. margin-top: 0px;
  10. .main {
  11. width: 100vw;
  12. .nologin-header {
  13. display: flex;
  14. flex-direction: column;
  15. align-items: center;
  16. padding-top: 30px;
  17. padding-bottom: 10px;
  18. }
  19. }
  20. }
  21. // styles
  22. .nologin-header {
  23. h1 {
  24. font-size: 22px;
  25. line-height: 1em;
  26. }
  27. }
  28. .alert {
  29. padding: 0.5em 1em 0.5em 2em;
  30. }
  31. .input-group {
  32. margin-bottom: 10px;
  33. .input-group-text {
  34. text-align: center;
  35. border: none;
  36. border-radius: 0;
  37. }
  38. }
  39. .input-group:not(.has-error) {
  40. .form-control {
  41. border: transparent;
  42. }
  43. }
  44. $btn-fill-colors: (
  45. 'login': (
  46. rgba($danger, 0.4),
  47. rgba(#7e4153, 0.7),
  48. ),
  49. 'register': (
  50. rgba($success, 0.4),
  51. rgba(#3f7263, 0.7),
  52. ),
  53. 'google': (
  54. rgba(#24292e, 0.4),
  55. $gray-700,
  56. ),
  57. 'github': (
  58. rgba(lighten(black, 20%), 0.4),
  59. $gray-700,
  60. ),
  61. 'facebook': (
  62. rgba(#29487d, 0.4),
  63. $gray-700,
  64. ),
  65. 'oidc': (
  66. rgba(#24292e, 0.4),
  67. $gray-700,
  68. ),
  69. 'saml': (
  70. rgba(#55a79a, 0.4),
  71. $gray-700,
  72. ),
  73. );
  74. @each $label, $colors in $btn-fill-colors {
  75. .btn-fill##{$label} {
  76. .btn-label {
  77. background-color: nth($colors, 1);
  78. }
  79. .eff {
  80. background-color: nth($colors, 2);
  81. }
  82. }
  83. }
  84. // footer link text
  85. .link-growi-org {
  86. font-size: smaller;
  87. font-weight: bold;
  88. &,
  89. .growi,
  90. .org {
  91. transition: color 0.8s;
  92. }
  93. }
  94. .nologin-header,
  95. .nologin-dialog {
  96. max-width: 480px;
  97. }
  98. }
  99. .link-switch {
  100. color: $gray-200;
  101. &:hover {
  102. color: white;
  103. }
  104. }
  105. .nologin.error {
  106. .alert h2 {
  107. line-height: 1em;
  108. }
  109. }