/* Custom properties for theming */ :root { --nav-background: #f1f3f5; --nav-text: #495057; --nav-hover: #1971c2; --nav-input-border: #ced4da; --nav-input-background: #f8f9fa; --theme-icon-hover: #e9ecef; } [data-theme="dark"] { --nav-background: #1a1e24; --nav-text: #e0e0e0; --nav-hover: #4dabf7; --nav-input-border: #495057; --nav-input-background: #2a2e33; --theme-icon-hover: #2a2e33; } /* Custom styles to enhance the nav bar */ body > main { display: flex; flex-wrap: wrap; gap: 1rem; height: 100vh; overflow: hidden; } nav { background-color: var(--nav-background); padding: 0rem 1rem; } nav ul { margin: 0; padding: 0; list-style: none; display: flex; justify-content: space-between; align-items: center; } nav ul li { margin: 0 0.5rem; } nav ul li a { text-decoration: none; color: var(--nav-text); font-weight: 500; transition: color 0.3s ease; } nav ul li a:hover { color: var(--nav-hover); } .brand { font-size: 1rem; font-weight: bold; } navbar-right { display: flex; align-items: center; margin-left: 30%; } navbar-right a { margin-left: 1rem; } navbar-right input[type="search"] { padding: 0.2rem 0.5rem; border: 1px solid var(--nav-input-border); border-radius: 1rem; background-color: var(--nav-input-background); color: var(--nav-text); font-size: 0.8rem; line-height: 1; height: 2rem; width: 300px; margin: 0; } /* Styles for theme icons */ .theme-icons { display: flex; align-items: center; } .theme-icon { cursor: pointer; padding: 5px; border-radius: 50%; margin-left: 0.5rem; } .theme-icon svg { width: 20px; height: 20px; fill: var(--nav-text); } .theme-icon:hover { background-color: var(--theme-icon-hover); } mynav, docnav { flex: 1; min-width: 200px; max-width: 250px; overflow-y: auto; color: var(--nav-text); } mynav ul { list-style-type: none; padding-left: 0; } mynav ul ul { list-style-type: none; padding-left: 0; margin-left: 0.2rem; display: none; } mynav ul li { margin-left: 0.5rem; padding-left: 0.3rem; cursor: pointer; list-style-type: none; } mynav ul li a { text-decoration: none; color: inherit; } mynav ul li.open > ul { display: block; } .arrow { font-size: 0.8rem; margin-right: 0.2rem; } article { flex: 4; min-width: 200px; max-width: 1200px; overflow-y: auto; height: 100%; scrollbar-width: none; -ms-overflow-style: none; } article textarea { line-height: 1.2; } article md { line-height: 1.2; } docnav { flex: 1; min-width: 200px; font-size: 0.9rem; } docnav ul { list-style-type: none; padding-left: 0; } docnav ul li { margin-left: 0.4rem; padding-left: 0rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40ch; } @media (max-width: 768px) { nav { margin-top: 0rem; } nav ul { flex-direction: column; align-items: flex-start; } nav ul li { margin: 0 rem 0; } navbar-right { flex-direction: column; align-items: flex-start; margin-left: 0; } navbar-right a { margin-left: 0; } navbar-right input[type="search"] { width: 100%; margin: 0; } .theme-icons { margin-top: 0.5rem; } }