X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fprimeng-custom.scss;h=753fdf5c97298a7670f9b9a2ed51878c51c8f7ff;hb=338eb9d33af690db716805fd2277bf68f473b58f;hp=6e502b0288592e6b4a58692f826942d0251f1f15;hpb=28f3d1b36a70426795240c9370e47b6c4ba847f8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss index 6e502b028..753fdf5c9 100644 --- a/client/src/sass/primeng-custom.scss +++ b/client/src/sass/primeng-custom.scss @@ -8,6 +8,13 @@ font-family: 'Glyphicons Halflings'; text-decoration: none !important; color: var(--mainForegroundColor) !important; + font-display: swap; +} + +my-edit-button, +my-delete-button, +my-button { + height: max-content; } // data table customizations @@ -37,7 +44,7 @@ p-table { td { padding-left: 15px !important; - &:not(.action-cell) { + &:not(.action-cell):not(.expand-cell) { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; @@ -62,11 +69,14 @@ p-table { tr { &:hover { background-color: var(--submenuColor) !important; - } - &:not(:hover) { - .action-cell * { - display: none !important; + .action-cell { + .dropdown-root, + my-edit-button, + my-delete-button, + my-button { + display: block !important; + } } } @@ -140,6 +150,17 @@ p-table { padding: 0 !important; text-align: center; + .dropdown-root, + my-edit-button, + my-delete-button, + my-button { + display: none !important; + + &.show { + display: block !important; + } + } + my-edit-button + my-delete-button { margin-left: 5px; } @@ -218,6 +239,43 @@ p-table { } } +// multiselect customizations +p-multiselect { + .ui-multiselect-label { + font-size: 15px !important; + padding: 4px 30px 4px 12px !important; + + $width: 338px; + width: $width !important; + + @media screen and (max-width: $width) { + width: 100% !important; + } + } + + .pi.pi-chevron-down{ + margin-left: 0 !important; + + &::after { + @include select-arrow-down; + + right: 0; + margin-top: 6px; + } + } + + .ui-chkbox-icon { + //position: absolute !important; + width: 18px; + height: 18px; + //left: 0; + + //&::after { + // left: -2px !important; + //} + } +} + // PrimeNG calendar tweaks p-calendar .ui-datepicker { a { @@ -273,6 +331,10 @@ p-calendar .ui-datepicker { } } +p-tablecheckbox:hover div .ui-chkbox-box { + box-shadow: 0 0 0 .1rem rgba(87, 85, 217, .2); +} + .ui-chkbox { &, .ui-chkbox-box { @@ -312,6 +374,8 @@ p-calendar .ui-datepicker { } p-inputswitch { + height: 26px; + .ui-inputswitch-checked .ui-inputswitch-slider { background-color: var(--mainColor) !important; } @@ -325,25 +389,27 @@ p-toast { .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 {