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

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


/* Hide the search box in the Vector skin top-right */
/* Make body container relative for absolute TOC */
#searchform {
.mw-body {
     display: none !important;
     position: relative;
}
}


/* Make the page content and TOC a side-by-side layout */
/* Move TOC to the left side */
.mw-body-content {
#tweekiTOC {
     display: flex;
     position: absolute !important;  /* override Tweeki floats/flex */
     flex-direction: row;     /* TOC left, article content right */
    left: 0;
     align-items: flex-start;
     top: 50px;                     /* adjust as needed */
     width: 220px;
    z-index: 999;
}
}


/* TOC container on the left */
/* Push article content to the right to avoid overlap */
#tweekiTOC {
.mw-parser-output {
     order: 0;                /* ensure it comes first */
     margin-left: 240px;            /* slightly more than TOC width */
    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 */
/* Article content to the right of TOC */

Версія за 07:50, 15 серпня 2025

/** Розміщений тут CSS буде застосовуватися до всіх тем оформлення */
/* Hide search form in the sidebar */
#p-search {
    display: none !important;
}

/* Make body container relative for absolute TOC */
.mw-body {
    position: relative;
}

/* Move TOC to the left side */
#tweekiTOC {
    position: absolute !important;  /* override Tweeki floats/flex */
    left: 0;
    top: 50px;                      /* adjust as needed */
    width: 220px;
    z-index: 999;
}

/* Push article content to the right to avoid overlap */
.mw-parser-output {
    margin-left: 240px;             /* slightly more than TOC width */
}


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