X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fprimeng-custom.scss;h=e2c4532280eea0b49c31ddeb6c7fb1f444d2c5f6;hb=7bd32e04d3b5b031569336ea6bb515cb28e1cb03;hp=238cb84546f196eb7b9cade5d0e1314c7d7658a6;hpb=7738273b808f0ff1494f18c4cc13553505e6ac6d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss index 238cb8454..e2c453228 100644 --- a/client/src/sass/primeng-custom.scss +++ b/client/src/sass/primeng-custom.scss @@ -274,6 +274,15 @@ p-multiselect { // left: -2px !important; //} } + + .ui-multiselect-panel .ui-multiselect-items .ui-multiselect-item.ui-state-highlight { + background-color: var(--mainColorLighter); + } + + .ui-inputtext:enabled:focus:not(.ui-state-error) { + border-color: var(--mainColorLighter) !important; + box-shadow: none; + } } // PrimeNG calendar tweaks @@ -374,38 +383,59 @@ p-tablecheckbox:hover div .ui-chkbox-box { } p-inputswitch { + height: 26px; + .ui-inputswitch-checked .ui-inputswitch-slider { background-color: var(--mainColor) !important; } + + &.small { + height: 20px; + + .ui-inputswitch { + width: 2.5em !important; + height: 1.45em !important; + + .ui-inputswitch-slider::before { + height: 1em !important; + width: 1em !important; + } + } + + .ui-inputswitch-checked .ui-inputswitch-slider::before { + transform: translateX(1em) !important; + } + } } p-toast { .ui-toast { - // Modal is 10005 - z-index: 10010 !important; + z-index: z(notification) !important; } .ui-toast-message { font-family: $main-fonts; - - &.ui-toast-message-success { - color: #fff !important; - background-color: #8BC34A !important; + background-color: var(--mainBackgroundColor) !important; + border-radius: 5px; + box-sizing: border-box; + border: 1px solid #EBEEF5 !important; + box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1); + overflow: hidden; + + &.ui-toast-message-success .glyphicon { + color: #8BC34A !important; } - &.ui-toast-message-error { - color: #fff !important; - background-color: #F44336 !important; + &.ui-toast-message-error .glyphicon { + color: #F44336 !important; } - &.ui-toast-message-info { - color: #fff !important; - background-color: #03A9F4 !important; + &.ui-toast-message-warn .glyphicon { + color: #F1680D !important; } - &.ui-toast-message-info { - color: #fff !important; - background-color: #03A9F4 !important; + &.ui-toast-message-info .glyphicon { + color: #03A9F4 !important; } .notification-block {