login.less 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. //
  2. // Login screen
  3. // --------------------------------------------------
  4. // Module color variable
  5. @form-color: mix(@brand-primary, @inverse, 9%);
  6. .login {
  7. background: url(../img/login/imac.png) 0 0 no-repeat;
  8. background-size: 940px 778px;
  9. color: @inverse;
  10. margin-bottom: 77px;
  11. padding: 38px 38px 267px;
  12. position: relative;
  13. }
  14. .login-screen {
  15. background-color: @brand-secondary;
  16. min-height: 473px;
  17. padding: 123px 199px 33px 306px;
  18. }
  19. .login-icon {
  20. left: 200px;
  21. position: absolute;
  22. top: 160px;
  23. width: 96px;
  24. > img {
  25. display: block;
  26. margin-bottom: 6px;
  27. width: 100%;
  28. }
  29. > h4 {
  30. font-size: 17px;
  31. font-weight: 300;
  32. line-height: 34px;
  33. opacity: .95;
  34. small {
  35. color: inherit;
  36. display: block;
  37. font-size: inherit;
  38. font-weight: 700;
  39. }
  40. }
  41. }
  42. // LOGIN FORM
  43. // -----------
  44. .login-form {
  45. background-color: @form-color;
  46. padding: 24px 23px 20px;
  47. position: relative;
  48. border-radius: @border-radius-large;
  49. .control-group {
  50. margin-bottom: 6px;
  51. position: relative;
  52. }
  53. .login-field {
  54. border-color: transparent;
  55. font-size: 17px;
  56. text-indent: 3px;
  57. &:focus {
  58. border-color: @brand-secondary;
  59. & + .login-field-icon {
  60. color: @brand-secondary;
  61. }
  62. }
  63. }
  64. .login-field-icon {
  65. color: mix(@gray, @inverse, 60%);
  66. font-size: 16px;
  67. position: absolute;
  68. right: 15px;
  69. top: 3px;
  70. transition: all .25s;
  71. }
  72. }
  73. .login-link {
  74. color: mix(@gray, @inverse, 60%);
  75. display: block;
  76. font-size: 13px;
  77. margin-top: 15px;
  78. text-align: center;
  79. }
  80. // Retina support
  81. @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 3/2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 2) {
  82. .login {
  83. background-image: url(../img/login/imac-2x.png);
  84. }
  85. }