page.login.less 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. //login page
  2. .enable_login_page() when(@enable-login-page = true) {
  3. .login-container {
  4. width:375px;
  5. margin:0 auto;
  6. }
  7. .login-layout {
  8. background-color:#1D2024;
  9. .main-container:before {
  10. display:none;
  11. }
  12. .main-content {
  13. margin-left: 0 !important;//to override RTL
  14. margin-right: 0 !important;//to override RTL
  15. min-height: 100%;
  16. padding-left: 15px;
  17. padding-right: 15px;
  18. }
  19. label {
  20. margin-bottom:11px;
  21. }
  22. .widget-box {
  23. visibility:hidden;
  24. position:fixed;
  25. z-index:-5;
  26. border-bottom:none;
  27. box-shadow:none;
  28. padding:6px;
  29. background-color:#394557;
  30. .transform(~"scale(0,1) translate(-150px)");
  31. &.visible {
  32. visibility: visible;
  33. position: relative;
  34. z-index: auto;
  35. .transform(~"scale(1,1) translate(0)");
  36. transition: transform .3s ease;
  37. -moz-transition: -moz-transform .3s ease;
  38. -webkit-transition: -webkit-transform .3s ease;
  39. -o-transition: -o-transform .2s ease;
  40. }
  41. .widget-main {
  42. padding: 16px 36px 36px;
  43. background: #F7F7F7;
  44. form {
  45. margin: 0;
  46. }
  47. }
  48. .widget-body .toolbar > div > a {
  49. font-size: @font-size-login-box-footer-links;
  50. font-weight: 400;
  51. text-shadow: 1px 0px 1px rgba(0,0,0,0.25);
  52. }
  53. }
  54. }
  55. .login-box {
  56. .forgot-password-link { color:#FE9; }
  57. .user-signup-link { color:#CF7; }
  58. .toolbar {
  59. background:#5090C1;
  60. border-top:2px solid #597597;
  61. > div {
  62. width:50%;
  63. display:inline-block;
  64. padding:9px 0 11px;
  65. &:first-child {//the first link
  66. float:left;
  67. text-align:left;
  68. > a {
  69. margin-left:11px;
  70. }
  71. + div {//the next one
  72. float:right;
  73. text-align:right;
  74. > a {
  75. margin-right:11px;
  76. }
  77. }
  78. }
  79. }
  80. }
  81. }
  82. .forgot-box .toolbar {
  83. background:#C16050;
  84. border-top:2px solid #976559;
  85. padding:9px 18px;
  86. }
  87. .signup-box .toolbar {
  88. background:#76B774;
  89. border-top:2px solid #759759;
  90. padding:9px 18px;
  91. }
  92. .forgot-box .back-to-login-link , .signup-box .back-to-login-link{
  93. color: #FE9;
  94. font-size: @font-size-signup-box-footer-link;
  95. font-weight: bold;
  96. text-shadow: 1px 0px 1px rgba(0,0,0,0.25);
  97. }
  98. /* social login */
  99. .login-layout .login-box .widget-main {
  100. padding-bottom:16px;
  101. }
  102. //.login-box {
  103. .social-or-login {
  104. margin-top: 4px;
  105. text-align: center;
  106. position: relative;
  107. z-index: 1;
  108. :first-child {
  109. display: inline-block;
  110. background: #F7F7F7;
  111. padding: 0 8px;
  112. color: #5090C1;
  113. font-size: @baseFontSize;
  114. }
  115. &:before {
  116. content: "";
  117. display: block;
  118. position: absolute;
  119. z-index: -1;
  120. top: 50%;
  121. left: 0;
  122. right: 0;
  123. border-top: 1px dotted #A6C4DB;
  124. }
  125. }
  126. .social-login {
  127. a {
  128. border-radius: 100%;
  129. width: 42px;
  130. height: 42px;
  131. line-height: 46px;
  132. padding: 0;
  133. margin: 0 1px;
  134. border-width: 0;
  135. > .@{icon} {
  136. font-size: @font-size-login-social-icon;
  137. margin: 0;
  138. }
  139. }
  140. }
  141. //loginbox
  142. @media only screen and (max-width: @screen-qhd-width) {
  143. .login-layout .widget-box .widget-main {
  144. padding: 16px;
  145. }
  146. .login-container {
  147. width: 98%;
  148. }
  149. .login-layout .widget-box {
  150. padding: 0;
  151. }
  152. .login-layout .main-content {
  153. padding-left: 6px;
  154. padding-right: 6px;
  155. }
  156. .login-box .toolbar > div {
  157. width: auto;
  158. }
  159. }
  160. //light-login
  161. .light-login {
  162. background: #DFE0E2 url('images/pattern.jpg') repeat;
  163. .widget-box {
  164. padding: 1px 1px 0;
  165. .box-shadow(~"0 0 2px 1px rgba(0, 0, 0, 0.12)");
  166. border-bottom: 1px solid rgba(50, 50, 50, 0.33);
  167. .toolbar {
  168. border-top-width: 1px;
  169. }
  170. &.login-box {
  171. background-color: #BCC6CF;
  172. background-color: rgba(100, 110, 120, 0.4);
  173. }
  174. &.signup-box {
  175. background-color: #C1CEC4;
  176. background-color: rgba(110, 120, 100, 0.4);
  177. }
  178. &.forgot-box {
  179. background-color: #D2C5C5;
  180. background-color: rgba(120, 110, 100, 0.4);
  181. }
  182. }
  183. }
  184. .blur-login {
  185. background: #394557 url('images/meteorshower2.jpg') repeat;
  186. }
  187. }
  188. .enable_login_page();