forked from ScoDoc/ScoDoc
207 lines
3.8 KiB
CSS
207 lines
3.8 KiB
CSS
/* 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;
|
|
justify-content: left;
|
|
white-space: nowrap;
|
|
padding: 0 10px;
|
|
/* 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: inline;
|
|
color: rgb(4, 16, 159);
|
|
}
|
|
|
|
.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 {
|
|
|
|
#sidebar,
|
|
div.toggle-sidebar {
|
|
display: none;
|
|
}
|
|
|
|
#app-content {
|
|
grid-column-start: 1;
|
|
grid-column-end: 3;
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
} |