MediaWiki: Common.css: відмінності між версіями

Матеріал з apidocs
Перейти до: навігація, пошук
Немає опису редагування
Мітка: Скасовано
Немає опису редагування
Мітка: Скасовано
Рядок 10: Рядок 10:
}
}


/* Make main content and TOC a flex layout */
/* Make the page content and TOC a side-by-side layout */
.mw-body-content {
.mw-body-content {
     display: flex;
     display: flex;
     flex-direction: row; /* TOC left, content right */
     flex-direction: row;     /* TOC left, article content right */
     align-items: flex-start;
     align-items: flex-start;
}
}


/* TOC on the left */
/* TOC container on the left */
#toc {
#tweekiTOC {
     order: 0;               /* ensure TOC comes first */
     order: 0;                 /* ensure it comes first */
     margin-right: 20px;     /* space between TOC and content */
    width: 220px;            /* fixed TOC width */
     width: 220px;           /* TOC width */
     margin-right: 20px;       /* spacing between TOC and content */
     position: sticky;         /* stay visible when scrolling */
    top: 10px;
}
}


/* Main article content */
/* Article content to the right of TOC */
.mw-body-content > .mw-parser-output {
.mw-body-content > .mw-parser-output {
     flex: 1;               /* take remaining space */
     flex: 1;                 /* take remaining space */
}
}

Версія за 07:48, 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 the page content and TOC a side-by-side layout */
.mw-body-content {
    display: flex;
    flex-direction: row;      /* TOC left, article content right */
    align-items: flex-start;
}

/* TOC container on the left */
#tweekiTOC {
    order: 0;                 /* ensure it comes first */
    width: 220px;             /* fixed TOC width */
    margin-right: 20px;       /* spacing between TOC and content */
    position: sticky;         /* stay visible when scrolling */
    top: 10px;
}

/* Article content to the right of TOC */
.mw-body-content > .mw-parser-output {
    flex: 1;                  /* take remaining space */
}