diff --git a/common/static/common/styles/studio/_custom.sass b/common/static/common/styles/studio/_custom.sass index 415af399..8219b9e9 100644 --- a/common/static/common/styles/studio/_custom.sass +++ b/common/static/common/styles/studio/_custom.sass @@ -655,10 +655,88 @@ button, filter: blur(var(--filter-blur-value)) transform: scale(1.1) +.training-group + --training-group-item-content-width: 100% + --training-group-item-nav-width: 100% + + +media-xl + --training-group-item-content-width: 40.0rem + --training-group-item-nav-width: 30.0rem + + +media-xxl + --training-group-item-content-width: 54.0rem + --training-group-item-nav-width: 40.0rem + + .training-group-item + +padding(3, x) + + &:last-child + +media-xl + padding-right: 0 + + .training-group-item-content + width: var(--training-group-item-content-width) + + .box + background-color: var(--color-bg-tertiary) + +padding(3) + + .comment-input-div + &.form-control + background-color: var(--color-bg-primary) + + .replies + .comment + background-color: var(--color-bg-secondary) + + .top-level-comment + background-color: var(--color-bg-primary) + + .training-group-item-content-detail + width: 100% + + .cards-item-title + font-size: var(--fs-h4) + line-height: var(--lh-base) + + +media-lg + .training-group-item-content-detail-inner + max-width: 114.0rem + + +media-xl + width: calc(100% - var(--training-group-item-nav-width)) + + .cards + --cards-items-per-row: 4 + + +media-xxl + .cards + --cards-items-per-row: 5 + + // TODO: revise training-group-item-nav display toggle on medium and small screens + .training-group-item-nav + +margin(3, bottom) + width: var(--training-group-item-nav-width) + + .training-group-item-video + background-color: black + +margin(3, bottom) + padding: 0 + width: 100% + + +media-xl + align-items: center + display: flex + height: 100vh + justify-content: center + left: 0 + margin-bottom: 0 + position: sticky + top: 0 + width: calc(100% - var(--training-group-item-content-width) - var(--training-group-item-nav-width)) + .training-header-img-helper align-items: center - display: flex - max-height: calc(var(--spacer) * 25) overflow: hidden img diff --git a/common/static/common/styles/studio/_variables.sass b/common/static/common/styles/studio/_variables.sass index e8671a25..77303540 100644 --- a/common/static/common/styles/studio/_variables.sass +++ b/common/static/common/styles/studio/_variables.sass @@ -1,5 +1,8 @@ $container-max-widths: (sm: 100%, md: 100%, lg: 100%, xl: 1320px, xxl: 1600px) +// Redeclare $grid-breakpoints 'xl' and 'xxl' with web-assets defaults to override obsolete Bootstrap breakpoints coming from flat, pre-compiled vendor files +$grid-breakpoints: (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1320px, xxl: 1680px) + $container-width: map-get($container-max-widths, 'xl') $font-path: "/static/assets/fonts" diff --git a/common/static/common/styles/studio/_web-assets-overrides.sass b/common/static/common/styles/studio/_web-assets-overrides.sass index d9276a42..47dc3b5c 100644 --- a/common/static/common/styles/studio/_web-assets-overrides.sass +++ b/common/static/common/styles/studio/_web-assets-overrides.sass @@ -168,6 +168,10 @@ textarea /* Grid. */ // TODO: consider moving to web-assets +.container-fluid + .row + +margin(0, x) + .row width: 100% diff --git a/training/templates/training/base_training.html b/training/templates/training/base_training.html index f326b93a..dd3b18c9 100644 --- a/training/templates/training/base_training.html +++ b/training/templates/training/base_training.html @@ -7,28 +7,22 @@ {% endblock %} {% block content %} - {% block training_header_image %} - {% endblock training_header_image %} - -
{{ training.name }}
+{{ training.name }}
-{{ chapter.name }}