Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix: spacing of bottom bar of course cards
Browse files Browse the repository at this point in the history
  • Loading branch information
adil192 committed Jan 28, 2024
1 parent 35f4c69 commit f16a13f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
17 changes: 16 additions & 1 deletion main.css
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
border: none;
}
.course-org-list {
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)) !important;
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)) !important;
gap: 1rem !important;
}
.course-org-list hr {
Expand Down Expand Up @@ -174,6 +174,20 @@
.course-org-list .course-element-card .summary .course-status {
display: none !important;
}
.course-org-list .course-element-card .summary .status-bar {
padding: 0 !important;
}
.course-org-list .course-element-card .summary .controls {
display: flex;
flex-flow: row wrap;
justify-content: flex-end;
align-items: center;
gap: 0.1rem;
}
.course-org-list .course-element-card .summary .controls > * {
margin: 0 !important;
flex: 1;
}
.multi-column-view .course-org-list .course-element-card {
transform: none !important;
transition-duration: 0.1s !important;
Expand All @@ -183,6 +197,7 @@
}
.multi-column-view .course-org-list .course-element-card .summary {
grid-template-rows: auto !important;
grid-template-columns: 1fr auto !important;
}
.multi-column-view .course-org-list .course-element-card::before {
all: unset;
Expand Down
18 changes: 17 additions & 1 deletion styles/_online.manchester.ac.uk_ultra.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ nav.term-navigator {
}

.course-org-list {
grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)) !important;
grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)) !important;
gap: 1rem !important;

hr {
Expand Down Expand Up @@ -89,6 +89,21 @@ nav.term-navigator {
.course-status {
display: none !important;
}

.status-bar {
padding: 0 !important;
}
.controls {
display: flex;
flex-flow: row wrap;
justify-content: flex-end;
align-items: center;
gap: 0.1rem;
> * {
margin: 0 !important;
flex: 1;
}
}
}
}
}
Expand All @@ -103,6 +118,7 @@ nav.term-navigator {

.summary {
grid-template-rows: auto !important;
grid-template-columns: 1fr auto !important;
}

&::before {
Expand Down

0 comments on commit f16a13f

Please sign in to comment.