Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better pagelevelprogress display inline specificity #265

Merged
merged 1 commit into from
Jul 16, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,35 +1,42 @@
// Allows the progress lozenge to appear alongside the title
// --------------------------------------------------
.js-heading + .pagelevelprogress__indicator {
display: inline-block;
vertical-align: middle;
}

.menu,
.menu-item,
.page,
.article,
.block,
.component {
&__title-inner {
display: inline;
vertical-align: middle;
.pagelevelprogress__indicator {
& + .menu,
& + .menu-item,
& + .page,
& + .article,
& + .block,
& + .component {
&__title-inner {
display: inline;
vertical-align: middle;
}
}
}

.pagelevelprogress__indicator {
border-color: @progress-border;
}
// Global progress lozenge
// --------------------------------------------------
.pagelevelprogress {
&__indicator {
border-color: @progress-border;
}

.pagelevelprogress__indicator-inner {
background-color: @progress-inverted;
}
&__indicator-inner {
background-color: @progress-inverted;
}

.pagelevelprogress__indicator-bar {
background-color: @progress;
.transition(width @progress-duration linear);
&__indicator-bar {
background-color: @progress;
.transition(width @progress-duration linear);
}
}

// --------------------------------------------------
// Menu
// Menu overrides
// --------------------------------------------------
.menu-item__progress {
.pagelevelprogress__indicator {
Expand All @@ -44,10 +51,8 @@
background-color: @menu-item-progress;
}
}
// --------------------------------------------------

// --------------------------------------------------
// Nav
// Nav overrides
// --------------------------------------------------
.pagelevelprogress__nav-btn {
.pagelevelprogress__indicator {
Expand Down Expand Up @@ -79,10 +84,8 @@
}
}
}
// --------------------------------------------------

// --------------------------------------------------
// Drawer
// Drawer overrides
// --------------------------------------------------
.pagelevelprogress__item-btn {
.pagelevelprogress__indicator {
Expand Down Expand Up @@ -114,4 +117,3 @@
}
}
}
// --------------------------------------------------