MDL-56321 theme_boost: Profile page adjustments

- Removed the border overlapping a user's avatar. This only affected
  course profiles and the default preset.
- Do not break the sections when they wrap from one column to another
- Sneaked in a change to remove left/right padding on .box. I've been
  wanting to change that since I added it. The padding on top and bottom
  is sometimes useful to separate boxes, but the left/right padding
  should be applied by the general structure.
This commit is contained in:
Frédéric Massart 2016-10-07 12:31:25 +02:00 committed by Damyon Wiese
parent 919b9dfabd
commit e9a009dcd6
3 changed files with 21 additions and 13 deletions

View File

@ -62,7 +62,7 @@ class core_renderer extends \core_renderer {
if (is_array($classes)) {
$classes = implode(' ', $classes);
}
return parent::box_start($classes . ' p-a-1', $id, $attributes);
return parent::box_start($classes . ' p-y-1', $id, $attributes);
}
/**

View File

@ -15,16 +15,17 @@
.userprofile .profile_tree {
column-count: 2;
}
.userprofile .profile_tree section {
@extend .card;
@extend .card-block;
break-inside: avoid;
}
section {
@extend .card;
@extend .card-block;
display: inline-block;
width: 100%;
.userprofile .profile_tree section h3 {
@extend .lead;
h3 {
@extend .lead;
}
}
}
.userprofile dl.list {

View File

@ -222,10 +222,17 @@ $breadcrumb-divider-rtl: "/" !default;
/**
* Style for content title.
*/
#region-main h2 {
border-bottom: $border-width solid $table-border-color;
padding-bottom: $spacer;
margin-bottom: $spacer;
#region-main {
h2 {
border-bottom: $border-width solid $table-border-color;
padding-bottom: $spacer;
margin-bottom: $spacer;
}
.page-header-image + .page-header-headings h2 {
/* No border when there is an image next to the heading. */
border-bottom: 0;
padding-bottom: 0;
}
}
/**