NoLoginLayout.module.scss 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  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. .page-wrapper {
  7. display: flex;
  8. align-items: center;
  9. height: 100vh;
  10. margin-top: 0px;
  11. .main {
  12. width: 100vw;
  13. .nologin-header {
  14. padding-top: 30px;
  15. padding-bottom: 10px;
  16. border-radius: 16px 16px 0 0;
  17. }
  18. .growi-logo-type {
  19. letter-spacing: .5rem;
  20. }
  21. }
  22. }
  23. // styles
  24. .alert {
  25. padding: 0.5em 1em 0.5em 2em;
  26. }
  27. .input-group {
  28. margin-bottom: 16px;
  29. .input-group-text {
  30. text-align: center;
  31. }
  32. }
  33. .input-group:not(.has-error) {
  34. .form-control {
  35. border: transparent;
  36. }
  37. }
  38. $btn-fill-colors: (
  39. 'login': (
  40. rgba(#204986, 0.8),
  41. rgba(#204986, 0.5),
  42. ),
  43. 'register': (
  44. rgba(bs.$success, 0.4),
  45. rgba(#3f7263, 0.7),
  46. ),
  47. 'google': (
  48. rgba(#24292e, 0.4),
  49. bs.$gray-700,
  50. ),
  51. 'github': (
  52. rgba(lighten(black, 20%), 0.4),
  53. bs.$gray-700,
  54. ),
  55. 'facebook': (
  56. rgba(#29487d, 0.4),
  57. bs.$gray-700,
  58. ),
  59. 'oidc': (
  60. rgba(#24292e, 0.4),
  61. bs.$gray-700,
  62. ),
  63. 'saml': (
  64. rgba(#55a79a, 0.4),
  65. bs.$gray-700,
  66. ),
  67. );
  68. @each $label, $colors in $btn-fill-colors {
  69. .btn-fill##{$label} {
  70. background-color: nth($colors, 1);
  71. border: 1px solid rgba(white, 0.1);
  72. .eff {
  73. background-color: nth($colors, 2);
  74. }
  75. }
  76. }
  77. // footer link text
  78. .link-growi-org {
  79. font-size: smaller;
  80. font-weight: bold;
  81. &,
  82. .growi,
  83. .org {
  84. transition: color 0.8s;
  85. }
  86. }
  87. .nologin-header,
  88. .nologin-dialog {
  89. max-width: 480px;
  90. }
  91. }
  92. .link-switch {
  93. color: bs.$gray-200;
  94. &:hover {
  95. color: white;
  96. }
  97. }
  98. .nologin.error {
  99. .alert h2 {
  100. line-height: 1em;
  101. }
  102. }
  103. // Light mode color
  104. @include bs.color-mode(light) {
  105. .nologin :global {
  106. // background color
  107. $color-gradient: #3c465c;
  108. background: linear-gradient(45deg, darken($color-gradient, 30%) 0%, hsla(340, 100%, 55%, 0) 70%),
  109. 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%),
  110. linear-gradient(315deg, darken($color-gradient, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
  111. .nologin-header {
  112. background-color: rgba(white, 0.3);
  113. svg {
  114. color: white;
  115. }
  116. .logo {
  117. color: white;
  118. background-color: rgba(black, 0);
  119. }
  120. h1 {
  121. color: white;
  122. }
  123. }
  124. .nologin-dialog {
  125. background-color: rgba(white, 0.3);
  126. .link-switch {
  127. color: #1939b8;
  128. &:hover {
  129. color: lighten(#1939b8,20%);
  130. }
  131. }
  132. }
  133. .input-group {
  134. .form-control {
  135. color: bs.$gray-800;
  136. background-color: white;
  137. box-shadow: unset;
  138. &::placeholder {
  139. color: bs.$gray-500;
  140. }
  141. }
  142. }
  143. .link-growi-org {
  144. color: rgba(black, 0.4);
  145. &:hover,
  146. &.focus {
  147. color: black;
  148. .growi {
  149. color: darken(var.$growi-green, 20%);
  150. }
  151. .org {
  152. color: darken(var.$growi-blue, 15%);
  153. }
  154. }
  155. }
  156. }
  157. }
  158. // Dark mode color
  159. @include bs.color-mode(dark) {
  160. .nologin :global {
  161. // background color
  162. $color-gradient: #3c465c;
  163. background: linear-gradient(45deg, darken($color-gradient, 30%) 0%, hsla(340, 100%, 55%, 0) 70%),
  164. 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%),
  165. linear-gradient(315deg, darken($color-gradient, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
  166. .nologin-header {
  167. background-color: rgba(black, 0.3);
  168. svg {
  169. color: white;
  170. }
  171. .logo {
  172. color: white;
  173. background-color: rgba(white, 0);
  174. }
  175. h1 {
  176. color: white;
  177. }
  178. }
  179. .nologin-dialog {
  180. background-color: rgba(black, 0.3);
  181. .link-switch {
  182. color: #7b9bd5;
  183. &:hover {
  184. color: lighten(#7b9bd5,10%);
  185. }
  186. }
  187. }
  188. .input-group {
  189. .form-control {
  190. color: white;
  191. background-color: rgba(#505050, 0.7);
  192. box-shadow: unset;
  193. &::placeholder {
  194. color: bs.$gray-500;
  195. }
  196. }
  197. }
  198. .link-growi-org {
  199. color: rgba(white, 0.4);
  200. &:hover,
  201. &.focus {
  202. color: rgba(white, 0.7);
  203. .growi {
  204. color: darken(var.$growi-green, 5%);
  205. }
  206. .org {
  207. color: darken(var.$growi-blue, 5%);
  208. }
  209. }
  210. }
  211. }
  212. }