X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki.special.preferences.styles.ooui.less;h=b1931f486ae992ea0c097465ae682c1d39ed3ec7;hb=e8c7108ea93bc87873e7c9cc260d7f479bedb6fe;hp=baa9beb305dd89e97eeb018e736b9acbe8f41271;hpb=961adcd715fac2b4fa894df541adef6fa649c202;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: