User:Ugog Nizdast/TOCMobile-dev.css: Difference between revisions

From Wikipedia, the free encyclopedia

Content deleted Content added


 

Line 111: Line 111:

margin-left: 28px;

margin-left: 28px;

font-size: 13px;

font-size: 13px;

}

#toc-drawer-backdrop {

position: fixed;

inset: 0;

background: transparent;

z-index: 9997; /* just below drawer (9998) */

display: none;

}

#toc-drawer-backdrop.visible {

display: block;

}

}


Latest revision as of 18:43, 30 January 2026

#toc-drawer-toggle {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 9999;
    background: #3366cc;
    color: white;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    cursor: pointer;
}

#toc-drawer-close {
    position: fixed;
    right: 66px;
    bottom: 14px;
    z-index: 9999;
    background: #fff;
    color: #3366cc;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    border: 1px solid #ccc;
}

#toc-drawer-close.visible {
    display: flex;
}

#toc-drawer {
    position: fixed;
    left: 0;
    bottom: -60vh;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.15);
    z-index: 9998;
    transition: bottom 0.25s ease-out;
    display: flex;
    flex-direction: column;
}

#toc-drawer.open {
    bottom: 0;
}

#toc-drawer-header {
    padding: 10px 12px;
    border-bottom: 1px solid #ccc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 17px;
}

#toc-header-title {
    font-weight: 500;
}

#toc-scroll-top {
    color: #3366cc;
    font-size: 14px;
    cursor: pointer;
}

#toc-scroll-top:hover {
    text-decoration: underline;
}

#toc-drawer-list {
    list-style: none;
    margin: 0;
    padding: 12px;
    overflow-y: auto;
    max-height: calc(50vh - 48px);
    -webkit-overflow-scrolling: touch;
}

#toc-drawer-list li {
    margin: 6px 0;
}

#toc-drawer-list li a {
    color: #3366cc;
    text-decoration: none;
}

#toc-drawer-list li a:hover {
    text-decoration: underline;
}

#toc-drawer-list li.toc-level-h3 {
    margin-left: 14px;
    font-size: 14px;
}

#toc-drawer-list li.toc-level-h4 {
    margin-left: 28px;
    font-size: 13px;
}

#toc-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 9997; /* just below drawer (9998) */
    display: none;
}

#toc-drawer-backdrop.visible {
    display: block;
}

/* For development version only */
#toc-drawer-toggle {
	background: RED; /* Toggle icon colour to indicate dev version */
}

Leave a Comment

Your email address will not be published. Required fields are marked *

Exit mobile version