NoLoginLayout.module.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. @use '@growi/core/scss/bootstrap/init' as bs;
  2. @use '@growi/core/scss/growi-official-colors' as var;
  3. .nologin :global {
  4. height: 100vh;
  5. // layout
  6. .main {
  7. width: 100vw;
  8. .nologin-header {
  9. padding-top: 30px;
  10. padding-bottom: 10px;
  11. svg {
  12. fill: white;
  13. }
  14. }
  15. .growi-logo-type {
  16. letter-spacing: .5rem;
  17. }
  18. }
  19. // styles
  20. .alert {
  21. padding: 0.5em 1em 0.5em 2em;
  22. }
  23. .input-group {
  24. margin-bottom: 16px;
  25. .input-group-text {
  26. text-align: center;
  27. }
  28. }
  29. .input-group:not(.has-error) {
  30. .form-control {
  31. border: transparent;
  32. }
  33. }
  34. // footer link text
  35. .link-growi-org {
  36. font-size: smaller;
  37. font-weight: bold;
  38. &,
  39. .growi,
  40. .org {
  41. transition: color 0.8s;
  42. }
  43. }
  44. .nologin-header,
  45. .nologin-dialog {
  46. max-width: 480px;
  47. }
  48. .btn.btn-secondary {
  49. transition: 0.8s ease;
  50. --bs-btn-border-color: #{rgba(white, 0.1)};
  51. }
  52. }
  53. .link-switch {
  54. color: bs.$gray-200;
  55. &:hover {
  56. color: white;
  57. }
  58. }
  59. .nologin.error {
  60. .alert h2 {
  61. line-height: 1em;
  62. }
  63. }
  64. // Light mode color
  65. @include bs.color-mode(light) {
  66. .nologin :global {
  67. // background color
  68. $color-gradient: #3c465c;
  69. background: linear-gradient(45deg, darken($color-gradient, 30%) 0%, hsla(340, 100%, 55%, 0) 70%),
  70. linear-gradient(135deg, var.$growi-green 10%, hsla(225, 95%, 50%, 0) 70%), linear-gradient(225deg, var.$growi-blue 10%, hsla(140, 90%, 50%, 0) 80%),
  71. linear-gradient(315deg, darken($color-gradient, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
  72. .nologin-header {
  73. background-color: rgba(white, 0.3);
  74. }
  75. .nologin-dialog {
  76. background-color: rgba(white, 0.3);
  77. .link-switch {
  78. color: #1939b8;
  79. &:hover {
  80. color: lighten(#1939b8,20%);
  81. }
  82. }
  83. }
  84. .input-group {
  85. .form-control {
  86. color: bs.$gray-800;
  87. background-color: white;
  88. box-shadow: unset;
  89. &::placeholder {
  90. color: bs.$gray-500;
  91. }
  92. }
  93. }
  94. .link-growi-org {
  95. color: rgba(white, 0.4);
  96. &:hover,
  97. &.focus {
  98. color: white;
  99. .growi {
  100. color: darken(var.$growi-blue, 10%);
  101. }
  102. .org {
  103. color: darken(var.$growi-green, 10%);
  104. }
  105. }
  106. }
  107. }
  108. }
  109. // Dark mode color
  110. @include bs.color-mode(dark) {
  111. .nologin :global {
  112. // background color
  113. $color-gradient: #3c465c;
  114. background: linear-gradient(45deg, darken($color-gradient, 30%) 0%, hsla(340, 100%, 55%, 0) 70%),
  115. linear-gradient(135deg, var.$growi-green 10%, hsla(225, 95%, 50%, 0) 70%), linear-gradient(225deg, var.$growi-blue 10%, hsla(140, 90%, 50%, 0) 80%),
  116. linear-gradient(315deg, darken($color-gradient, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
  117. .nologin-header {
  118. background-color: rgba(black, 0.3);
  119. }
  120. .nologin-dialog {
  121. background-color: rgba(black, 0.3);
  122. .link-switch {
  123. color: #7b9bd5;
  124. &:hover {
  125. color: lighten(#7b9bd5,10%);
  126. }
  127. }
  128. }
  129. .input-group {
  130. .form-control {
  131. color: white;
  132. background-color: rgba(#505050, 0.7);
  133. box-shadow: unset;
  134. &::placeholder {
  135. color: bs.$gray-500;
  136. }
  137. }
  138. }
  139. .link-growi-org {
  140. color: rgba(white, 0.4);
  141. &:hover,
  142. &.focus {
  143. color: rgba(white, 0.7);
  144. .growi {
  145. color: darken(var.$growi-blue, 5%);
  146. }
  147. .org {
  148. color: darken(var.$growi-green, 5%);
  149. }
  150. }
  151. }
  152. }
  153. }