NoLoginLayout.module.scss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. }
  49. .link-switch {
  50. color: bs.$gray-200;
  51. &:hover {
  52. color: white;
  53. }
  54. }
  55. .nologin.error {
  56. .alert h2 {
  57. line-height: 1em;
  58. }
  59. }
  60. // Light mode color
  61. @include bs.color-mode(light) {
  62. .nologin :global {
  63. // background color
  64. $color-gradient: #3c465c;
  65. background: linear-gradient(45deg, darken($color-gradient, 30%) 0%, hsla(340, 100%, 55%, 0) 70%),
  66. 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%),
  67. linear-gradient(315deg, darken($color-gradient, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
  68. .nologin-header {
  69. background-color: rgba(white, 0.3);
  70. }
  71. .nologin-dialog {
  72. background-color: rgba(white, 0.3);
  73. .link-switch {
  74. color: #1939b8;
  75. &:hover {
  76. color: lighten(#1939b8,20%);
  77. }
  78. }
  79. }
  80. .input-group {
  81. .form-control {
  82. color: bs.$gray-800;
  83. background-color: white;
  84. box-shadow: unset;
  85. &::placeholder {
  86. color: bs.$gray-500;
  87. }
  88. }
  89. }
  90. .link-growi-org {
  91. color: rgba(white, 0.4);
  92. &:hover,
  93. &.focus {
  94. color: white;
  95. .growi {
  96. color: darken(var.$growi-blue, 10%);
  97. }
  98. .org {
  99. color: darken(var.$growi-green, 10%);
  100. }
  101. }
  102. }
  103. }
  104. }
  105. // Dark mode color
  106. @include bs.color-mode(dark) {
  107. .nologin :global {
  108. // background color
  109. $color-gradient: #3c465c;
  110. background: linear-gradient(45deg, darken($color-gradient, 30%) 0%, hsla(340, 100%, 55%, 0) 70%),
  111. 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%),
  112. linear-gradient(315deg, darken($color-gradient, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
  113. .nologin-header {
  114. background-color: rgba(black, 0.3);
  115. }
  116. .nologin-dialog {
  117. background-color: rgba(black, 0.3);
  118. .link-switch {
  119. color: #7b9bd5;
  120. &:hover {
  121. color: lighten(#7b9bd5,10%);
  122. }
  123. }
  124. }
  125. .input-group {
  126. .form-control {
  127. color: white;
  128. background-color: rgba(#505050, 0.7);
  129. box-shadow: unset;
  130. &::placeholder {
  131. color: bs.$gray-500;
  132. }
  133. }
  134. }
  135. .link-growi-org {
  136. color: rgba(white, 0.4);
  137. &:hover,
  138. &.focus {
  139. color: rgba(white, 0.7);
  140. .growi {
  141. color: darken(var.$growi-blue, 5%);
  142. }
  143. .org {
  144. color: darken(var.$growi-green, 5%);
  145. }
  146. }
  147. }
  148. }
  149. }