/* ScoDoc, (c) Emmanuel Viennet 1998 - 2024 */ .scodoc-container { display: grid; grid-template-columns: 130px 1fr; grid-template-rows: auto 1fr; } .app-corner { /* background-color: rgb(235, 235, 228); */ grid-column-start: 1; grid-row-start: 1; display: flex; flex-direction: column; justify-content: space-between; } .formsemestre-page-header { grid-column-start: 2; grid-row-start: 1; display: flex; flex-direction: column; flex-grow: 1; font-family: Arial, Helvetica, sans-serif; justify-content: left; white-space: nowrap; padding: 0 0px; /* Optional: Padding for some space around the text */ } #sidebar { border-right: 1px solid rgb(230, 230, 225); grid-column-start: 1; grid-row-start: 2; padding-left: 4px; /* Sidebar transition */ transition: transform 400ms ease, opacity 400ms ease; } #app-content { grid-column-start: 2; grid-row-start: 2; background-color: #f0f0f0; /* Optional: background color for content area */ /* Sidebar transition */ transition: margin-left 400ms ease; } .infos { /* container infos semestre */ font-size: 12pt; } .sco_menu { /* container menu bar semestre */ background-color: lightblue; flex-grow: 1; padding: 5px; margin-top: 5px; } .hamburger { white-space: nowrap; display: flex; align-items: center; } .hamburger>div { font-size: 12pt; font-weight: bold; vertical-align: bottom; white-space: nowrap; } .hamburger>.hamburger-icon { font-size: 24pt; margin-top: -8px; margin-right: 8px; } .app-corner .scodoc-index, .app-corner .scodoc-index a { font-size: 14pt; display: flex; color: rgb(4, 16, 159); justify-content: center; width: 100%; } .hamburger-menu { display: none; flex-direction: column; background-color: #333; position: fixed; top: 50px; left: 0; /* width: 100%; */ max-width: 400px; z-index: 1001; /* Ensure it is above the top bar */ } .hamburger-menu div { padding: 10px; border-bottom: 1px solid #444; } .hamburger-menu a { color: white; text-decoration: none; } #toggle-sidebar-img { box-sizing: content-box; padding-left: 4px; padding-right: 4px; transition: transform 400ms ease; } #toggle-sidebar-img.collapsed { transform: scaleX(-1); } .vspace48 { margin-top: 48px; } .hidden { display: none; } .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.05); z-index: 1000; /* Below the menu but above the top bar */ } /* Media query for desktop devices */ @media (min-width: 769px) { #sidebar.collapsed { /* Slide the sidebar out to the left */ transform: translateX(-130px); opacity: 0; /* fade out effect */ } #app-content.collapsed { grid-column-start: 1; grid-column-end: 3; } } /* Hide the sidebar for mobile devices and print */ @media screen and (max-width: 768px), print { .toggle-sidebar { display: none; } #app-content { grid-column-start: 1; grid-column-end: 3; } div#sidebar { position: fixed; width: 100vw; height: 100vh; background: whitesmoke; z-index: 900; display: flex !important; flex-direction: column; align-items: center; gap: 4px; text-align: center; left: -100%; transition: left 400ms ease; padding-top: 15vh; } div#sidebar[aria-expanded="true"] { left: 0; } [desktop="true"] { display: none !important; } } @media screen and (min-width: 769px) { [mobile="true"] { display: none !important; } } /* Sidebar */ #sidebar sco-title { color: rgb(102, 102, 102); font-size: large; font-weight: bold; text-decoration: none; } #sidebar h2 { color: rgb(102, 102, 102); font-weight: bold; font-size: large; margin-bottom: 0; } #sidebar div.sidebar-item { margin-left: 4px; } #sidebar div.sidebar-item a:link, #sidebar div.sidebar-item a:link, #sidebar div.sidebar-item a:visited { color: rgb(4, 16, 159); text-decoration: none; } #sidebar div.sidebar-item a:hover { color: rgb(153, 51, 51); text-decoration: underline; } /* Content */ #app-content>.gtrcontent { height: 100%; margin-left: 10px; margin-bottom: 10px; } /*Mobile Navbar*/ #logo-scodoc { /* base image : logo_rectangle.png 527x192 */ --size: 64px; height: calc(var(--size) / 2.744); width: var(--size); margin: 4px; cursor: pointer; } #mobileNav { position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-evenly; align-items: center; /* From https://css.glass */ background: rgba(255, 255, 255, 0.2); border-radius: 0 0 16px 16px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.3); } body { position: relative; } .no-scroll { overflow: hidden !important; margin: 0 !important; height: 100vh !important; }