User:Joohunniee/common.css

.compacttoc { background-color: var(--general-bg-color); border: 1px solid var(--border-color); border-radius: 3px; font-size: 100%; margin: 12px auto 12px 0; padding: 0; } .compacttoc .toctitle { align-items: center; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; line-height: 1; padding: 12px; } .compacttoc .toctitle span { align-items: center; border: 0; color: var(--theme-page-text-color); display: flex; font-family: inherit; font-size: inherit; font-weight: 500; line-height: 1.25; margin: 0; padding: 0; } .compacttoc > ul { max-width: none; padding: 9px 0; margin: 0 12px; } .compacttoc ul li { word-wrap: break-word; margin-left: 0; overflow-wrap: break-word; } .compacttoc ul li a { border-radius: 3px; color: var(--theme-page-text-color); display: inline; line-height: 1.75; padding: 2px 6px; text-decoration: none; transition-duration: .3s; transition-property: background-color, color; } .compacttoc ul li a:hover { background-color: rgba(var(--theme-link-color--rgb),.15); color: var(--theme-link-color); }