Display: Add CSS class to section headers

pull/5064/head
Angel Fernando Quiroz Campos 2 years ago
parent e6690942c7
commit fd95ee4781
  1. 1
      assets/css/scss/index.scss
  2. 15
      assets/css/scss/organisms/_section_header.scss
  3. 9
      assets/vue/views/course/CourseHome.vue

@ -45,6 +45,7 @@
@import "organisms/modals";
@import "organisms/menu";
@import "organisms/sidebar";
@import "organisms/section_header";
@import "organisms/tables";
@import "organisms/install";

@ -0,0 +1,15 @@
.section-header {
@apply flex gap-4 items-center border-b border-b-gray-30;
&--h2 {
@apply pb-6 ;
}
&--h6 {
@apply pb-4;
}
h1, h2, h3, h4, h5, h6 {
@apply mr-auto;
}
}

@ -75,8 +75,8 @@
v-else
class="flex flex-col gap-4"
>
<div class="flex gap-4 items-center">
<h2 class="mr-auto">
<div class="section-header section-header--h2">
<h2 class="">
{{ course.title }}
<small v-if="session"> ({{ session.name }}) </small>
</h2>
@ -115,8 +115,6 @@
</div>
</div>
<hr class="mt-1 mb-1" />
<CourseIntroduction
v-if="isAllowedToEdit"
ref="courseIntroEl"
@ -124,7 +122,7 @@
<div
v-if="isAllowedToEdit"
class="flex items-center gap-6"
class="section-header section-header--h6"
>
<h6 v-t="'Tools'" />
@ -174,7 +172,6 @@
/>
</div>
</div>
<hr class="mt-0 mb-4" />
<div
id="course-tools"

Loading…
Cancel
Save