Skip to content

Commit

Permalink
MDL-68550 theme: Not showing the gap in the initial bar
Browse files Browse the repository at this point in the history
The gap issue was a regression from MDL-66670.
  • Loading branch information
rezaies committed Nov 9, 2022
1 parent ec65857 commit 2ce1ed7
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
36 changes: 36 additions & 0 deletions theme/boost/scss/moodle/core.scss
Expand Up @@ -2818,3 +2818,39 @@ $scrollbar-track: lighten($primary, 40%);
border-right: $border-width solid $white;
}
}

.initialbargroups ul {
-webkit-margin-start: 0; /* stylelint-disable-line */
margin-right: -1px;
}

.page-item {
&:first-child {
.page-link {
.initialbargroups & {
@include border-left-radius(0);
@include border-right-radius(0);
}
.initialbargroups .pagination-lg:first-child & {
@include border-left-radius($pagination-border-radius-lg);
}
.initialbargroups .pagination-sm:first-child & {
@include border-left-radius($pagination-border-radius-sm);
}
}
}
&:last-child {
.page-link {
.initialbargroups & {
@include border-left-radius(0);
@include border-right-radius(0);
}
.initialbargroups .pagination-lg:last-child & {
@include border-right-radius($pagination-border-radius-lg);
}
.initialbargroups .pagination-sm:last-child & {
@include border-right-radius($pagination-border-radius-sm);
}
}
}
}
5 changes: 5 additions & 0 deletions theme/boost/style/moodle.css
Expand Up @@ -11988,6 +11988,11 @@ input[disabled] {
background-color: #a2cff8;
border-right: 1px solid #fff; }

.initialbargroups ul {
-webkit-margin-start: 0;
/* stylelint-disable-line */
margin-right: -1px; }

.icon {
font-size: 16px;
width: 16px;
Expand Down
33 changes: 33 additions & 0 deletions theme/classic/style/moodle.css
Expand Up @@ -12209,6 +12209,39 @@ input[disabled] {
background-color: #a2cff8;
border-right: 1px solid #fff; }

.initialbargroups ul {
-webkit-margin-start: 0;
/* stylelint-disable-line */
margin-right: -1px; }

.initialbargroups .page-item:first-child .page-link {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0; }

.initialbargroups .pagination-lg:first-child .page-item:first-child .page-link {
border-top-left-radius: 0.3rem;
border-bottom-left-radius: 0.3rem; }

.initialbargroups .pagination-sm:first-child .page-item:first-child .page-link {
border-top-left-radius: 0.2rem;
border-bottom-left-radius: 0.2rem; }

.initialbargroups .page-item:last-child .page-link {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-top-right-radius: 0;
border-bottom-right-radius: 0; }

.initialbargroups .pagination-lg:last-child .page-item:last-child .page-link {
border-top-right-radius: 0.3rem;
border-bottom-right-radius: 0.3rem; }

.initialbargroups .pagination-sm:last-child .page-item:last-child .page-link {
border-top-right-radius: 0.2rem;
border-bottom-right-radius: 0.2rem; }

.icon {
font-size: 16px;
width: 16px;
Expand Down

0 comments on commit 2ce1ed7

Please sign in to comment.