Skip to content
Snippets Groups Projects
Forked from an inaccessible project.
style.module.scss 2.08 KiB
.timelineContainer {
  margin-top: 1.875rem;
  margin-left: 1.875rem;
  margin-right: 1.875rem;
}

.timelineGrid {
  display: grid;
  grid-template-areas: "switcher weeks" "modules background";
  grid-template-rows: auto;
  row-gap: 0.625rem;
  margin-bottom: 1.25rem;
  margin-left: -0.625rem;
  grid-template-columns: 16.875rem auto;

  overflow: scroll;
  scrollbar-width: thin;
  scrollbar-color: var(--background-color) var(--background-color);
}

.timelineGrid::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}

.timelineGrid::-webkit-scrollbar-corner {
  background: var(--background-color);
}

.timelineGrid::-webkit-scrollbar-track {
  background: var(--background-color);
  margin-left: 0.625rem;
  margin-right: 0.625rem;
}

.timelineGrid::-webkit-scrollbar-thumb {
  background-color: var(--background-color);
  border-radius: 0.5rem;
}

.timelineGrid:hover {
  scrollbar-color: var(--scrollbar) var(--background-color);
}

.timelineGrid:hover::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar);
}

.timelineTermSwitcher {
  grid-area: switcher;
  top: 0;
  left: 0;
  position: sticky;
  z-index: 1;
  background: var(--background-color);
  padding-right: 1.25rem;
  padding-left: 0.625rem;
  box-sizing: border-box;
  height: 4.25rem !important;
}

.timelineTermSwitcher > * {
  width: 100%;
}

.timelineWeekRow {
  grid-area: weeks;
  display: grid;
  grid-auto-flow: row; 
  grid-template-columns: repeat(12, 15rem);
  grid-gap: 0.625rem;
  padding-right: 0.625rem;
  top: 0;
  position: sticky;
}

.timelineModuleColumn {
  grid-area: modules;
  display: grid;
  grid-gap: 0.625rem;
  left: 0;
  position: sticky;
  padding-right: 1.25rem;
  box-sizing: border-box;
  padding-left: 0.625rem;
  margin-bottom: 0.625rem;
  background: var(--background-color);
}

.weekHeading {
  height: 4.25rem !important;
}

.timelineWeekBackground {
  display: grid;
  grid-area: background;
  grid-template-columns: repeat(12, 15rem);
  grid-template-rows: auto;
  grid-gap: 0.625rem;
  padding-bottom: 0.625rem;
}

.timelineBackground {
  background-color: var(--primary-button);
  border-radius: 0.5rem;
}