NoLoginLayout.module.scss 3.5 KB

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