summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/core/auth/login/login.component.scss
blob: 0fdc3c6ba3275c5d917bc9ae46b0f7ca142ae15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
@use 'sass:map';
@use './src/styles/vendor/variables' as vv;

$dark-secondary: darken(vv.$secondary, 4%);

::ng-deep cd-login {
  .form-group {
    background-color: $dark-secondary;
    border-left: 4px solid vv.$white;
    height: auto;
    margin-bottom: 2rem;

    &:focus-within {
      border-left: 4px solid map.get(vv.$theme-colors, 'accent');
    }
  }

  .btn-password,
  .btn-password:focus,
  .form-control,
  .form-control:focus {
    background-color: $dark-secondary;
    border: 0;
    box-shadow: none;
    color: vv.$body-color-bright;
    filter: none;
    outline: none;
  }

  .placeholder {
    color: vv.$gray-600;
  }

  .btn-password:focus {
    outline-color: vv.$primary;
  }
}

// This will override the colors applied by chrome
@keyframes autofill {
  to {
    background-color: $dark-secondary;
    color: vv.$body-color-bright;
  }
}

input:-webkit-autofill {
  animation-fill-mode: both;
  animation-name: autofill;
  border-radius: 0;
  box-shadow: 0 0 0 1000px $dark-secondary inset;
  -webkit-text-fill-color: vv.$body-color-bright;
  transition-property: none;
}