X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fsass%2Fprimeng-custom.scss;h=eab2b2dfd3e3c733f3208ee938d53d068d42a7a3;hb=801d957155d574bda984206021cdd1fe58ef56b9;hp=8444f935774849631a314c1c5d309c43f67877ba;hpb=2bc9bd08cd121bdffbf56a0241c4decfb77bfdd5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss index 8444f9357..eab2b2dfd 100644 --- a/client/src/sass/primeng-custom.scss +++ b/client/src/sass/primeng-custom.scss @@ -32,6 +32,10 @@ p-table { height: 40px; display: flex; align-items: center; + + .input-group-text { + background-color: transparent; + } } } @@ -80,7 +84,7 @@ p-table { my-edit-button, my-delete-button, my-button { - display: block !important; + display: inline-block !important; } } } @@ -160,14 +164,20 @@ p-table { my-delete-button, my-button { display: none !important; + margin-left: 5px; &.show { - display: block !important; + display: inline-block !important; } - } - my-edit-button + my-delete-button { - margin-left: 5px; + // keep displaying on touchscreen + @media not all and (hover: hover) and (pointer: fine) { + display: inline-block !important; + } + + :first-child { + margin-left: 0 + } } } @@ -185,12 +195,22 @@ p-table { .ui-dropdown { position: absolute; + top: 3px; left: 0; + + &.ui-state-focus { + box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest); + } + + .ui-dropdown-label { + color: var(--inputPlaceholderColor); + } } .ui-paginator-current { position: absolute; right: 0; + color: var(--inputPlaceholderColor); } .ui-paginator-first, @@ -241,7 +261,7 @@ p-table { &.focus-within, &:focus { box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest) !important; - } + } } a { @@ -266,6 +286,35 @@ p-table { } } +// overflow data table +@mixin overflow-datatable ($table-min-width, $horizontal-margins, $mobile-paginator: true) { + p-table { + .ui-table-wrapper { + overflow-x: auto; + max-width: calc(100vw - #{$horizontal-margins * 2}); + + table { + min-width: $table-min-width; + } + } + + @if $mobile-paginator { + p-paginator .ui-paginator-bottom { + display: block; + + .ui-paginator-current { + position: relative; + display: block; + } + + a, .ui-paginator-pages { + vertical-align: middle; + } + } + } + } +} + // multiselect customizations p-multiselect { .ui-multiselect {