X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fprimeng-custom.scss;h=0a3634c946639ac02ff62edba4ccd6a75f679aee;hb=e61151b01c80e525db068ff12fcfe2c8ae04e1a4;hp=9aa4d980cd52006b2435b486619a7c2a412c2647;hpb=46db9430af70f45bc656cb0ac8e519f5d0be0149;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss index 9aa4d980c..0a3634c94 100644 --- a/client/src/sass/primeng-custom.scss +++ b/client/src/sass/primeng-custom.scss @@ -8,6 +8,7 @@ font-family: 'Glyphicons Halflings'; text-decoration: none !important; color: var(--mainForegroundColor) !important; + font-display: swap; } my-edit-button, @@ -273,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 @@ -373,38 +383,72 @@ 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-close-icon { + font-family: "Glyphicons Halflings"; + + opacity: .3; + &:hover { + opacity: .5; + } + + &:after { + content: "\e014"; + } } .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 {