MediaWiki: Common.css: відмінності між версіями
Матеріал з apidocs
Немає опису редагування Мітка: Ручний відкіт |
Немає опису редагування Мітка: Скасовано |
||
Рядок 8: | Рядок 8: | ||
#searchform { | #searchform { | ||
display: none !important; | display: none !important; | ||
} | |||
/* Make main content and TOC a flex layout */ | |||
.mw-body-content { | |||
display: flex; | |||
flex-direction: row; /* TOC left, content right */ | |||
align-items: flex-start; | |||
} | |||
/* TOC on the left */ | |||
#toc { | |||
order: 0; /* ensure TOC comes first */ | |||
margin-right: 20px; /* space between TOC and content */ | |||
width: 220px; /* TOC width */ | |||
} | |||
/* Main article content */ | |||
.mw-body-content > .mw-parser-output { | |||
flex: 1; /* take remaining space */ | |||
} | } |
Версія за 07:46, 15 серпня 2025
/** Розміщений тут CSS буде застосовуватися до всіх тем оформлення */
/* Hide search form in the sidebar */
#p-search {
display: none !important;
}
/* Hide the search box in the Vector skin top-right */
#searchform {
display: none !important;
}
/* Make main content and TOC a flex layout */
.mw-body-content {
display: flex;
flex-direction: row; /* TOC left, content right */
align-items: flex-start;
}
/* TOC on the left */
#toc {
order: 0; /* ensure TOC comes first */
margin-right: 20px; /* space between TOC and content */
width: 220px; /* TOC width */
}
/* Main article content */
.mw-body-content > .mw-parser-output {
flex: 1; /* take remaining space */
}