X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.special.preferences.styles.ooui.less;h=b1931f486ae992ea0c097465ae682c1d39ed3ec7;hb=cd150ad0f1ca925a0904fb24b6585a9f34655ff4;hp=baa9beb305dd89e97eeb018e736b9acbe8f41271;hpb=c0fa6997ae8e544ca25bbe0796e99de6df5144bd;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki.special.preferences.styles.ooui.less b/resources/src/mediawiki.special.preferences.styles.ooui.less index baa9beb305..b1931f486a 100644 --- a/resources/src/mediawiki.special.preferences.styles.ooui.less +++ b/resources/src/mediawiki.special.preferences.styles.ooui.less @@ -13,25 +13,36 @@ .mw-email-authenticated .oo-ui-labelWidget { } */ +/* + * Use `position: sticky` on supported browsers, degrades gracefully in + * all others, therefore no `@supports` feature query to reduce code complexity. + */ +.mw-prefs-buttons { + background-color: #fff; + position: -webkit-sticky; + position: sticky; + bottom: 0; + margin-top: -1px; + border-top: 1px solid #c8ccd1; + padding: 1em 0; +} + /* This is needed because add extra buttons in a weird way */ .mw-prefs-buttons .mw-htmlform-submit-buttons { display: inline; margin: 0; } -.mw-prefs-buttons { - margin-top: 1em; -} - #prefcontrol { margin-right: 0.5em; } /* - * Hide, but keep accessible for screen-readers. + * Hide, when not keyboard focussed. */ .client-js .mw-navigation-hint:not( :focus ) { - .mixin-screen-reader-text; + height: 0; + overflow: hidden; } /* Most outer Panellayout: