_login.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. .login-page {
  2. $dark-gray: darken(white, 30%);
  3. // background color
  4. background:
  5. linear-gradient(45deg, darken($inverse, 30%) 0%, hsla(340, 100%, 55%, 0) 70%),
  6. linear-gradient(135deg, $growi-green 10%, hsla(225, 95%, 50%, 0) 70%),
  7. linear-gradient(225deg, $growi-blue 10%, hsla(140, 90%, 50%, 0) 80%),
  8. linear-gradient(315deg, darken($inverse, 25%) 100%, hsla(35, 95%, 55%, 0) 70%);
  9. #page-wrapper {
  10. background: none;
  11. }
  12. // layout
  13. #wrapper {
  14. height: 100vh;
  15. #page-wrapper {
  16. height: 80vh;
  17. display: flex;
  18. align-items: center;
  19. .main {
  20. width: 100vw;
  21. > .row {
  22. margin-right: 20px;
  23. margin-left: 20px;
  24. }
  25. @media(min-width: 480px) {
  26. .col-sm-offset-4 {
  27. margin-left: calc(50% - 150px);
  28. }
  29. .col-sm-4 {
  30. width: 300px;
  31. }
  32. }
  33. .login-header {
  34. padding: 30px 30px 10px;
  35. display: flex;
  36. flex-direction: column;
  37. align-items: center;
  38. }
  39. .link-growi-org {
  40. position: absolute;
  41. bottom: 9px;
  42. }
  43. // flip animation
  44. .login-dialog.flipper {
  45. transition: min-height 0.2s;
  46. &.to-flip {
  47. min-height: 313px;
  48. }
  49. .front, .back {
  50. backface-visibility: hidden;
  51. transition: 0.4s;
  52. transform-style: preserve-3d;
  53. }
  54. .front {
  55. z-index: 2;
  56. }
  57. .back {
  58. position: absolute;
  59. top: 0;
  60. left: 15px;
  61. right: 15px;
  62. }
  63. .back,
  64. &.to-flip .front {
  65. transform: rotateY(180deg);
  66. }
  67. &.to-flip .back {
  68. transform: rotateY(0deg);
  69. }
  70. }
  71. } // .main
  72. } // #page-wrapper
  73. } // #wrapper
  74. .login-header {
  75. background-color: rgba($white, 0.5);
  76. .logo {
  77. width: 70px;
  78. .group1, .group2 {
  79. fill: rgba(black, 0.5);
  80. }
  81. }
  82. h1 {
  83. color: rgba(black, 0.5);
  84. font-size: 22px;
  85. line-height: 1em;
  86. }
  87. }
  88. .login-dialog {
  89. background-color: rgba($white, 0.5);
  90. }
  91. .input-group {
  92. margin-bottom: 10px;
  93. .input-group-addon {
  94. border: none;
  95. border-radius: 0;
  96. color: $dark-gray;
  97. background-color: rgba(black, 0.4);
  98. }
  99. .form-control {
  100. border: none;
  101. color: white;
  102. background-color: rgba(lighten(black, 10%), 0.4);
  103. &::placeholder {
  104. color: $dark-gray;
  105. }
  106. }
  107. }
  108. // button style
  109. .btn-login, .btn-register {
  110. border: none;
  111. color: white;
  112. background-color: rgba(lighten(black, 20%), 0.4);
  113. .btn-label {
  114. margin: -8px 20px -8px -20px;
  115. padding: 9px 15px;
  116. }
  117. &:focus {
  118. border: none;
  119. }
  120. }
  121. .btn-login {
  122. .btn-label {
  123. background-color: rgba($danger, 0.4);
  124. }
  125. &:after {
  126. background-color: #7e4153;
  127. }
  128. }
  129. .btn-register {
  130. .btn-label {
  131. background-color: rgba($success, 0.4);
  132. }
  133. &:after {
  134. background-color: #3f7263;
  135. }
  136. }
  137. hr {
  138. margin: 10px 0;
  139. border-color: #ccc;
  140. }
  141. // footer link text
  142. .link-growi-org {
  143. color: rgba(black, 0.4);
  144. font-weight: bold;
  145. font-size: smaller;
  146. &, .growi, .org {
  147. transition: color 0.8s;
  148. }
  149. &:hover, &.focus {
  150. color: black;
  151. .growi {
  152. color: darken($growi-green, 20%);
  153. }
  154. .org {
  155. color: darken($growi-blue, 15%);
  156. }
  157. }
  158. }
  159. .link-switch {
  160. color: $gray;
  161. }
  162. }