8889110133
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
505 B
JavaScript
12 lines
505 B
JavaScript
/* Anti-FOUC densité — chargé tôt dans <head> pour appliquer max-width avant rendu de <main> */
|
|
(function () {
|
|
var d = localStorage.getItem('folio_density') || 'm';
|
|
if (d !== 'l') {
|
|
var mw = d === 'm' ? '980px' : '660px';
|
|
var s = document.createElement('style');
|
|
s.id = 'density-fouc';
|
|
s.textContent = 'main[role="main"]{max-width:' + mw + '!important;margin-left:auto!important;margin-right:auto!important}';
|
|
document.head.appendChild(s);
|
|
}
|
|
}());
|