NoLoginLayout.module.scss 4.9 KB

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