wizard999
3/26/2019 - 6:22 AM

CSS

1. If want to place a div in the middle, use  margin: auto;

2. em & rem --- em inherites from parent font size

3.change default css to override it by using ng-deep => 
::ng-deep .mat-tab-header {
  border:none;
}

OR

:host /deep/ .ngb-dp-navigation-select {
    margin-left: 42px;
}

4.setup full page background css: 
    background-image: url(../images/new_ui/login-background.png);
    background-repeat: no-repeat;
    background-size: 100% 100%;
    
  5./*Change text in autofill textbox*/
@-webkit-keyframes autofill {
    to {
        color: white;
        background: transparent;
    }
}

input:-webkit-autofill {
    -webkit-animation-name: autofill;
    -webkit-animation-fill-mode: both;
}
  .animated {
    -webkit-animation-duration: .5s;
    animation-duration: .5s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
  }
  @-webkit-keyframes bounce {
    0%, 100% {
      -webkit-transform: translateY(0);
    }
    50% {
      -webkit-transform: translateY(-5px);
    }
  }
  @keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-5px);
    }
  }
  .bounce {
    -webkit-animation-name: bounce;
    animation-name: bounce;
  }
 
  hr {
    position: relative;
    top: 92px;
    left: -300px;
    width: 200px;
  }
/* The customcheck */
.login_label {
    display: block;
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    margin-top:12px;
    cursor: pointer;
    font-size: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.login_label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 12px;
    width: 12px;
    background-color: transparent;
    border-radius: 2px;
    border: 0.75px solid #FFFFFF;
}

/* On mouse-over, add a grey background color */
.login_label:hover input ~ .checkmark {
    background-color: transparent;
}

/* When the checkbox is checked, add a blue background */
.login_label input:checked ~ .checkmark {
    background-color: transparent;
    border-radius: 2px;
    border: 0.75px solid #FFFFFF;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.login_label input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.login_label .checkmark:after {
    left: 3px;
    width: 5px;
    height: 8px;
    border: solid 0.2px white;
    border-width: 0 1px 1px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
/* Customize Scroll Bars */
/* width */
.narrow-sidebar ::-webkit-scrollbar {
  -webkit-appearance: none; 
  width: 5px;
}

/* Track */
.narrow-sidebar ::-webkit-scrollbar-track {
  background: white; 
}

/* Handle */
.narrow-sidebar ::-webkit-scrollbar-thumb {
  background: #808080; 
  border-radius: 5px;
}

:host /deep/ .ngb-dp-header {
    background: #C20047 !important;
    padding-top: 22px !important;
    padding-bottom: 22px !important;
}

:host /deep/ .btn-link {
    color: white;
}

:host /deep/ .ngb-dp-weekdays, :host /deep/ .ngb-dp-weekday {
    color: white!important;
    background-color: #C20047!important;
    font-style: normal!important;
}

:host /deep/ .bg-primary {
    background-color: #C20047!important;
}

:host /deep/ .ngb-dp-day {
    font-size: 12px;
}

:host /deep/ .ngb-dp-navigation-select {
    margin-left: 42px;
}

:host /deep/ .custom-select {
    background: #c20047;
    color: white;
    border: 1px solid #c20047;
    margin-right: -27px;
    padding: 0;
}
/* Create a custom scrollbar */
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: white;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #808080;
    border-radius: 5px;
}
select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  /* Some browsers will not display the caret when using calc, so we put the fallback first */ 
  background: url('/images/new_ui/arrow.png') white no-repeat 98.5% !important; /* !important used for overriding all other customisations */
  background: url('/images/new_ui/arrow.png') white no-repeat calc(100% - 10px) !important; /* Better placement regardless of input width */
}

/*For IE*/
select::-ms-expand { display: none !important; }

  /* Links inside the dropdown */
.custom-dropdown {
    color: black;
    padding: 12px 16px;
    font-size: 12px;
    text-decoration: none;
    display: block;
    background-color: #f9f9f9;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  }
  
  select option {
    margin: 40px;
    background: white;
    color: black;
    font-size: 12px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
  }
/* Customize Popover, Tooltip */
:host ::ng-deep .arrow::before {
  border-bottom-color: #C0054D;
  border-left-color: transparent;
}

:host ::ng-deep .tooltip-inner {
  background: #C0054D;
}

:host ::ng-deep .tooltip {
  font-size: 10px;
}
/* change mat sorting icon css. */
::ng-deep .mat-sort-header-arrow {
  height: 20px !important;
  width: 12px;
  min-width: 12px;
  margin: 10px 0 0 6px !important;
  position: relative;
  display: flex;
  align-self: center
}