web: fix scrollbar styling (#12600)
* Fix `.pf-c-card__body` scrollbars * Fallback scrollbar styling for browsers that don't support `::-webkit-scrollbar` --------- Co-authored-by: Marcelo Elizeche Landó <marcelo@goauthentik.io>
This commit is contained in:
		| @ -19,19 +19,27 @@ | |||||||
|     --ak-sidebar--minimum-auto-width: 80rem; |     --ak-sidebar--minimum-auto-width: 80rem; | ||||||
| } | } | ||||||
|  |  | ||||||
| ::-webkit-scrollbar { | @supports selector(::-webkit-scrollbar) { | ||||||
|     width: 5px; |     ::-webkit-scrollbar { | ||||||
|     height: 5px; |         width: 5px; | ||||||
|     background-color: transparent; |         height: 5px; | ||||||
|  |         background-color: transparent; | ||||||
|  |     } | ||||||
|  |     ::-webkit-scrollbar-thumb { | ||||||
|  |         background-color: var(--ak-accent); | ||||||
|  |     } | ||||||
|  |     ::-webkit-scrollbar-track { | ||||||
|  |         background-color: transparent; | ||||||
|  |     } | ||||||
|  |     ::-webkit-scrollbar-corner { | ||||||
|  |         background-color: transparent; | ||||||
|  |     } | ||||||
| } | } | ||||||
| ::-webkit-scrollbar-thumb { |  | ||||||
|     background-color: var(--ak-accent); | @supports not selector(::-webkit-scrollbar) { | ||||||
| } |     :root { | ||||||
| ::-webkit-scrollbar-track { |         scrollbar-color: var(--ak-accent) transparent; | ||||||
|     background-color: transparent; |     } | ||||||
| } |  | ||||||
| ::-webkit-scrollbar-corner { |  | ||||||
|     background-color: transparent; |  | ||||||
| } | } | ||||||
|  |  | ||||||
| html { | html { | ||||||
|  | |||||||
| @ -86,7 +86,7 @@ export class AggregateCard extends AKElement implements IAggregateCard { | |||||||
|                     font-size: var(--pf-global--FontSize--sm); |                     font-size: var(--pf-global--FontSize--sm); | ||||||
|                 } |                 } | ||||||
|                 .pf-c-card__body { |                 .pf-c-card__body { | ||||||
|                     overflow-x: scroll; |                     overflow-x: auto; | ||||||
|                     padding-left: calc(var(--pf-c-card--child--PaddingLeft) / 2); |                     padding-left: calc(var(--pf-c-card--child--PaddingLeft) / 2); | ||||||
|                     padding-right: calc(var(--pf-c-card--child--PaddingRight) / 2); |                     padding-right: calc(var(--pf-c-card--child--PaddingRight) / 2); | ||||||
|                 } |                 } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 RoboMagus
					RoboMagus