NoLoginLayout.module.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. .link-growi-org {
  21. position: absolute;
  22. bottom: 9px;
  23. z-index: 3;
  24. }
  25. }
  26. // styles
  27. .nologin-header {
  28. h1 {
  29. font-size: 22px;
  30. line-height: 1em;
  31. }
  32. }
  33. .alert {
  34. padding: 0.5em 1em 0.5em 2em;
  35. }
  36. .input-group {
  37. margin-bottom: 10px;
  38. .input-group-text {
  39. text-align: center;
  40. border: none;
  41. border-radius: 0;
  42. }
  43. }
  44. .input-group:not(.has-error) {
  45. .form-control {
  46. border: transparent;
  47. }
  48. }
  49. $btn-fill-colors: (
  50. 'login': (
  51. rgba($danger, 0.4),
  52. rgba(#7e4153, 0.7),
  53. ),
  54. 'register': (
  55. rgba($success, 0.4),
  56. rgba(#3f7263, 0.7),
  57. ),
  58. 'google': (
  59. rgba(#24292e, 0.4),
  60. $gray-700,
  61. ),
  62. 'github': (
  63. rgba(lighten(black, 20%), 0.4),
  64. $gray-700,
  65. ),
  66. 'facebook': (
  67. rgba(#29487d, 0.4),
  68. $gray-700,
  69. ),
  70. 'oidc': (
  71. rgba(#24292e, 0.4),
  72. $gray-700,
  73. ),
  74. 'saml': (
  75. rgba(#55a79a, 0.4),
  76. $gray-700,
  77. ),
  78. );
  79. @each $label, $colors in $btn-fill-colors {
  80. .btn-fill##{$label} {
  81. .btn-label {
  82. background-color: nth($colors, 1);
  83. }
  84. .eff {
  85. background-color: nth($colors, 2);
  86. }
  87. }
  88. }
  89. // footer link text
  90. .link-growi-org {
  91. font-size: smaller;
  92. font-weight: bold;
  93. &,
  94. .growi,
  95. .org {
  96. transition: color 0.8s;
  97. }
  98. }
  99. .nologin-header,
  100. .nologin-dialog {
  101. max-width: 480px;
  102. }
  103. }
  104. .link-switch {
  105. color: $gray-200;
  106. &:hover {
  107. color: white;
  108. }
  109. }
  110. .nologin.error {
  111. .alert h2 {
  112. line-height: 1em;
  113. }
  114. }