login.less 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. .login-form {
  2. width: 50%;
  3. float: left;
  4. margin-left: 25%;
  5. margin-right: 25%;
  6. padding-top: 50px;
  7. }
  8. .login-box {
  9. width: 700px;
  10. margin: 100px auto 0 auto;
  11. }
  12. .login-box-logo {
  13. text-align: center;
  14. padding-bottom: 50px;
  15. }
  16. .login-inner-box {
  17. background: @grafanaPanelBackground;
  18. }
  19. .login-tab-header {
  20. background: @grafanaTargetBackground;
  21. text-align: center;
  22. }
  23. .btn-login-tab {
  24. background: transparent;
  25. border: none;
  26. font-size: 15px;
  27. padding: 10px 10px;
  28. &.active {
  29. background: darken(@grafanaTargetBackground, 5%);
  30. color: @white;
  31. }
  32. &:focus {
  33. outline: none;
  34. }
  35. font-weight: bold;
  36. display: inline-block;
  37. width: 170px;
  38. color: @textColor;
  39. }
  40. .password-strength {
  41. display: block;
  42. width: 50px;
  43. overflow: visible;
  44. white-space: nowrap;
  45. padding-top: 3px;
  46. margin-left: 97px;
  47. color: darken(@textColor, 20%);
  48. border-top: 3px solid @red;
  49. &.password-strength-ok {
  50. width: 170px;
  51. border-top: 3px solid lighten(@yellow, 10%);
  52. }
  53. &.password-strength-good {
  54. width: 254px;
  55. border-top: 3px solid lighten(@green, 10%);
  56. }
  57. }
  58. .login-submit-button-row {
  59. text-align: center;
  60. margin-top: 40px;
  61. button {
  62. padding: 9px 7px;
  63. font-size: 14px;
  64. font-weight: bold;
  65. width: 150px;
  66. display: inline-block;
  67. border: 1px solid lighten(@btnInverseBackground, 10%);
  68. }
  69. }
  70. .login-oauth {
  71. margin-top: 30px;
  72. padding: 10px;
  73. background: @grafanaTargetBackground;
  74. .btn-google {
  75. background: #dd4b39;
  76. color: white;
  77. }
  78. .btn-github {
  79. background: #555;
  80. color: white;
  81. }
  82. }