
/* ============================================================
   POLSKAELITA.PL | Green Dark | MyBB 1.8.41
   pe_post_edit_menu.css v1.0

   Naprawa menu:
   Edytuj -> Szybka edycja / Pełna edycja
   Dotyczy wyłącznie showthread.php
   ============================================================ */

/* 01. WARSTWY GLOWNEGO WATKU */

body .thread-table {
    position: relative;
    overflow: visible !important;
    z-index: 3;
}

body .thread-table #posts {
    position: relative;
    overflow: visible !important;
}

body #posts .post.post-container {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

body #posts .post.post-container .post-info,
body #posts .post.post-container .post-controls,
body #posts .post.post-container .postbit_buttons,
body #posts .post.post-container .post_management_buttons {
    overflow: visible !important;
}

/* 02. PODNIESIENIE AKTYWNEGO POSTA */

body #posts .post.post-container:hover {
    z-index: 15;
}

body #posts .post.post-container:focus-within {
    z-index: 30;
}

body #posts .post.post-container:has(
    .popup_menu[style*="display: block"]
) {
    z-index: 50;
}

/* 03. KONTENER PRZYCISKOW */

body #posts .post-controls {
    position: relative;
    z-index: 5;
    min-height: 38px;
}

body #posts .post_management_buttons {
    position: relative;
    z-index: 8;
}

/* 04. POPUP EDYCJI POSTA */

body #posts .popup_menu,
body #posts div[id^="edit_post_"][id$="_popup"] {
    z-index: 1000 !important;

    box-sizing: border-box;

    width: max-content;
    min-width: 175px;
    max-width: 225px;

    padding: 5px;

    background: #152224 !important;

    border: 1px solid #416650 !important;
    border-radius: 7px;

    color: #e0eee3;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .45) !important;

    text-align: left;
    white-space: normal;
}

/*
   Nie zmieniamy pozycji top/left.
   Wylicza je oryginalny skrypt MyBB.
*/

/* 05. POJEDYNCZA OPCJA */

body #posts .popup_menu .popup_item_container {
    display: block;

    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 4px;
}

body #posts .popup_menu .popup_item_container + .popup_item_container {
    margin-top: 2px;
}

body #posts .popup_menu a.popup_item {
    display: block;

    width: 100%;
    min-height: 35px;

    box-sizing: border-box;

    margin: 0;
    padding: 9px 11px;

    background: transparent !important;

    border: 0;
    border-radius: 4px;

    color: #e1eee4 !important;

    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;

    text-align: left;
    text-decoration: none;

    white-space: nowrap;

    cursor: pointer;
}

body #posts .popup_menu a.popup_item:hover,
body #posts .popup_menu a.popup_item:focus {
    background: #294735 !important;
    color: #ffffff !important;
}

/* 06. ODDZIELENIE MENU OD WYSZUKIWARKI WATKU */

body .thread-table > .row,
body .thread-table .row.clearfix {
    position: relative;
    z-index: auto;
}

/* 07. PRZYCISK EDYTUJ */

body #posts .post_management_buttons .postbit_edit {
    position: relative;
    z-index: 2;
}

body #posts .post_management_buttons .postbit_edit:focus-visible {
    outline: 2px solid #8bc39b;
    outline-offset: 2px;
}

/* 08. MOBILNE SZEROKOSCI */

@media (max-width: 600px) {
    body #posts .popup_menu,
    body #posts div[id^="edit_post_"][id$="_popup"] {
        min-width: 155px;
        max-width: 190px;
    }

    body #posts .popup_menu a.popup_item {
        min-height: 38px;
        font-size: 12px;
    }
}

/* ============================================================
   KONIEC pe_post_edit_menu.css v1.0
   ============================================================ */
