mirror of
https://github.com/moodle/moodle.git
synced 2025-03-24 09:30:17 +01:00
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:
parent
919b9dfabd
commit
e9a009dcd6
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user