UI: Training templates fluid video layouts #104435
@ -693,13 +693,26 @@ button,
|
|||||||
background-color: var(--color-bg-primary)
|
background-color: var(--color-bg-primary)
|
||||||
|
|
||||||
.training-group-item-content-detail
|
.training-group-item-content-detail
|
||||||
+margin(auto, x)
|
|
||||||
width: 100%
|
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
|
+media-xl
|
||||||
max-width: var(--container-width)
|
|
||||||
width: calc(100% - var(--training-group-item-nav-width))
|
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
|
// TODO: revise training-group-item-nav display toggle on medium and small screens
|
||||||
.training-group-item-nav
|
.training-group-item-nav
|
||||||
+margin(3, bottom)
|
+margin(3, bottom)
|
||||||
|
@ -168,6 +168,10 @@ textarea
|
|||||||
|
|
||||||
/* Grid. */
|
/* Grid. */
|
||||||
// TODO: consider moving to web-assets
|
// TODO: consider moving to web-assets
|
||||||
|
.container-fluid
|
||||||
|
.row
|
||||||
|
+margin(0, x)
|
||||||
|
|
||||||
.row
|
.row
|
||||||
width: 100%
|
width: 100%
|
||||||
|
|
||||||
|
@ -20,60 +20,61 @@
|
|||||||
|
|
||||||
{% block nexted_content %}
|
{% block nexted_content %}
|
||||||
<div class="training-group-item-content-detail">
|
<div class="training-group-item-content-detail">
|
||||||
{% if chapter.thumbnail %}
|
<div class="training-group-item-content-detail-inner">
|
||||||
<div class="row mb-3">
|
{% if chapter.thumbnail %}
|
||||||
<div class="col">
|
<div class="row mb-3">
|
||||||
{% if section.is_free or request.user|has_active_subscription %}
|
<div class="col">
|
||||||
{% firstof chapter.picture_header chapter.thumbnail as header %}
|
{% if section.is_free or request.user|has_active_subscription %}
|
||||||
{% include "common/components/helpers/image_set.html" with alt=chapter.name classes="img-fluid img-width-100 rounded" img_source=header xsmall_width="600" small_width="800" medium_width="1000" large_width="1200" xlarge_width="1920" %}
|
{% firstof chapter.picture_header chapter.thumbnail as header %}
|
||||||
{% else %}
|
{% include "common/components/helpers/image_set.html" with alt=chapter.name classes="img-fluid img-width-100 rounded" img_source=header xsmall_width="600" small_width="800" medium_width="1000" large_width="1200" xlarge_width="1920" %}
|
||||||
{% include 'common/components/content_locked.html' with background=training.picture_header %}
|
{% else %}
|
||||||
{% endif %}
|
{% include 'common/components/content_locked.html' with background=training.picture_header %}
|
||||||
</div>
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="align-items-start row">
|
<div class="align-items-start row">
|
||||||
<div class="col-12 col-md mb-3">
|
<div class="col-12 col-md mb-3">
|
||||||
<div class="d-md-block d-none">
|
<div class="d-md-block d-none">
|
||||||
<p class="small text-muted">{{ training.name }}</p>
|
<p class="small text-muted">{{ training.name }}</p>
|
||||||
<h2 class="mb-0">{{ chapter.name }}</h2>
|
<h2 class="mb-0">{{ chapter.name }}</h2>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-auto mb-2 mb-md-0 mt-0 mt-md-3">
|
<div class="col-12 col-md-auto mb-2 mb-md-0 mt-0 mt-md-3">
|
||||||
<div class="button-toolbar-container">
|
<div class="button-toolbar-container">
|
||||||
<div class="button-toolbar">
|
<div class="button-toolbar">
|
||||||
{% if user.is_staff %}
|
{% if user.is_staff %}
|
||||||
<a href="{{ chapter.admin_url }}" class="btn btn-admin">
|
<a href="{{ chapter.admin_url }}" class="btn btn-admin">
|
||||||
<i class="i-edit"></i>
|
<i class="i-edit"></i>
|
||||||
<span>Edit</span>
|
<span>Edit</span>
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<button data-bs-toggle="dropdown" class="btn btn-link">
|
<button data-bs-toggle="dropdown" class="btn btn-link">
|
||||||
<i class="i-more-vertical"></i>
|
<i class="i-more-vertical"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu dropdown-menu-end">
|
<div class="dropdown-menu dropdown-menu-end">
|
||||||
<a href="https://projects.blender.org/studio/blender-studio/issues/new" target="_blank" class="dropdown-item">
|
<a href="https://projects.blender.org/studio/blender-studio/issues/new" target="_blank" class="dropdown-item">
|
||||||
<i class="i-flag"></i>
|
<i class="i-flag"></i>
|
||||||
<span>Report Problem</span>
|
<span>Report Problem</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{% if chapter.description %}
|
||||||
|
<section class="mb-3 row">
|
||||||
|
<div class="col">
|
||||||
|
<div class="markdown-text">
|
||||||
|
{% with_shortcodes chapter.description|markdown %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if chapter.description %}
|
|
||||||
<section class="mb-3 row">
|
|
||||||
<div class="col col-lg-9">
|
|
||||||
<div class="markdown-text">
|
|
||||||
{% with_shortcodes chapter.description|markdown %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<div class="mb-3 row">
|
<div class="mb-3 row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="cards card-layout-card-transparent files">
|
<div class="cards card-layout-card-transparent files">
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
{% block nexted_content %}
|
{% block nexted_content %}
|
||||||
|
|
||||||
<section class="training-group-item training-group-item-content-detail">
|
<section class="training-group-item training-group-item-content-detail">
|
||||||
<div class="row">
|
<div class="row training-group-item-content-detail-inner">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<div class="mb-3 row">
|
<div class="mb-3 row">
|
||||||
martonlente marked this conversation as resolved
Outdated
|
|||||||
<div class="col">
|
<div class="col">
|
||||||
@ -74,7 +74,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<section class="row">
|
<section class="row">
|
||||||
<div class="col-12 col-lg-9">
|
<div class="col-12">
|
||||||
<div class="markdown-text">
|
<div class="markdown-text">
|
||||||
{% with_shortcodes training.summary_rendered %}
|
{% with_shortcodes training.summary_rendered %}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user
This entire div can be empty if
{% if training.picture_header_url %}
is false.Adding a gap because of
mb-3
without anything inside.Move the check up here.
Thanks, it has been fixed.