Rename page-with-sidebar to layout-page
This commit is contained in:
parent
b592005fa0
commit
77c254f225
8 changed files with 13 additions and 13 deletions
|
@ -9,7 +9,7 @@ export default class ContextualSidebar {
|
||||||
}
|
}
|
||||||
|
|
||||||
initDomElements() {
|
initDomElements() {
|
||||||
this.$page = $('.page-with-sidebar');
|
this.$page = $('.layout-page');
|
||||||
this.$sidebar = $('.nav-sidebar');
|
this.$sidebar = $('.nav-sidebar');
|
||||||
this.$innerScroll = $('.nav-sidebar-inner-scroll', this.$sidebar);
|
this.$innerScroll = $('.nav-sidebar-inner-scroll', this.$sidebar);
|
||||||
this.$overlay = $('.mobile-overlay');
|
this.$overlay = $('.mobile-overlay');
|
||||||
|
|
|
@ -21,7 +21,7 @@ export default class IssuableBulkUpdateSidebar {
|
||||||
}
|
}
|
||||||
|
|
||||||
initDomElements() {
|
initDomElements() {
|
||||||
this.$page = $('.page-with-sidebar');
|
this.$page = $('.layout-page');
|
||||||
this.$sidebar = $('.right-sidebar');
|
this.$sidebar = $('.right-sidebar');
|
||||||
this.$sidebarInnerContainer = this.$sidebar.find('.issuable-sidebar');
|
this.$sidebarInnerContainer = this.$sidebar.find('.issuable-sidebar');
|
||||||
this.$bulkEditCancelBtn = $('.js-bulk-update-menu-hide');
|
this.$bulkEditCancelBtn = $('.js-bulk-update-menu-hide');
|
||||||
|
|
|
@ -128,7 +128,7 @@ $(function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (bootstrapBreakpoint === 'xs') {
|
if (bootstrapBreakpoint === 'xs') {
|
||||||
const $rightSidebar = $('aside.right-sidebar, .page-with-sidebar');
|
const $rightSidebar = $('aside.right-sidebar, .layout-page');
|
||||||
|
|
||||||
$rightSidebar
|
$rightSidebar
|
||||||
.removeClass('right-sidebar-expanded')
|
.removeClass('right-sidebar-expanded')
|
||||||
|
@ -188,7 +188,7 @@ $(function () {
|
||||||
trigger: 'focus',
|
trigger: 'focus',
|
||||||
// set the viewport to the main content, excluding the navigation bar, so
|
// set the viewport to the main content, excluding the navigation bar, so
|
||||||
// the navigation can't overlap the popover
|
// the navigation can't overlap the popover
|
||||||
viewport: '.page-with-sidebar'
|
viewport: '.layout-page'
|
||||||
});
|
});
|
||||||
$('.trigger-submit').on('change', function () {
|
$('.trigger-submit').on('change', function () {
|
||||||
return $(this).parents('form').submit();
|
return $(this).parents('form').submit();
|
||||||
|
|
|
@ -42,11 +42,11 @@ import Cookies from 'js-cookie';
|
||||||
if ($thisIcon.hasClass('fa-angle-double-right')) {
|
if ($thisIcon.hasClass('fa-angle-double-right')) {
|
||||||
$allGutterToggleIcons.removeClass('fa-angle-double-right').addClass('fa-angle-double-left');
|
$allGutterToggleIcons.removeClass('fa-angle-double-right').addClass('fa-angle-double-left');
|
||||||
$('aside.right-sidebar').removeClass('right-sidebar-expanded').addClass('right-sidebar-collapsed');
|
$('aside.right-sidebar').removeClass('right-sidebar-expanded').addClass('right-sidebar-collapsed');
|
||||||
$('.page-with-sidebar').removeClass('right-sidebar-expanded').addClass('right-sidebar-collapsed');
|
$('.layout-page').removeClass('right-sidebar-expanded').addClass('right-sidebar-collapsed');
|
||||||
} else {
|
} else {
|
||||||
$allGutterToggleIcons.removeClass('fa-angle-double-left').addClass('fa-angle-double-right');
|
$allGutterToggleIcons.removeClass('fa-angle-double-left').addClass('fa-angle-double-right');
|
||||||
$('aside.right-sidebar').removeClass('right-sidebar-collapsed').addClass('right-sidebar-expanded');
|
$('aside.right-sidebar').removeClass('right-sidebar-collapsed').addClass('right-sidebar-expanded');
|
||||||
$('.page-with-sidebar').removeClass('right-sidebar-collapsed').addClass('right-sidebar-expanded');
|
$('.layout-page').removeClass('right-sidebar-collapsed').addClass('right-sidebar-expanded');
|
||||||
|
|
||||||
if (gl.lazyLoader) gl.lazyLoader.loadCheck();
|
if (gl.lazyLoader) gl.lazyLoader.loadCheck();
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ import Cookies from 'js-cookie';
|
||||||
|
|
||||||
Sidebar.prototype.setCollapseAfterUpdate = function($block) {
|
Sidebar.prototype.setCollapseAfterUpdate = function($block) {
|
||||||
$block.addClass('collapse-after-update');
|
$block.addClass('collapse-after-update');
|
||||||
return $('.page-with-sidebar').addClass('with-overlay');
|
return $('.layout-page').addClass('with-overlay');
|
||||||
};
|
};
|
||||||
|
|
||||||
Sidebar.prototype.onSidebarDropdownHidden = function(e) {
|
Sidebar.prototype.onSidebarDropdownHidden = function(e) {
|
||||||
|
@ -187,7 +187,7 @@ import Cookies from 'js-cookie';
|
||||||
Sidebar.prototype.sidebarDropdownHidden = function($block) {
|
Sidebar.prototype.sidebarDropdownHidden = function($block) {
|
||||||
if ($block.hasClass('collapse-after-update')) {
|
if ($block.hasClass('collapse-after-update')) {
|
||||||
$block.removeClass('collapse-after-update');
|
$block.removeClass('collapse-after-update');
|
||||||
$('.page-with-sidebar').removeClass('with-overlay');
|
$('.layout-page').removeClass('with-overlay');
|
||||||
return this.toggleSidebar('hide');
|
return this.toggleSidebar('hide');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -106,11 +106,11 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-with-sidebar > .content-wrapper {
|
.layout-page > .content-wrapper {
|
||||||
min-height: calc(100vh - #{$header-height});
|
min-height: calc(100vh - #{$header-height});
|
||||||
}
|
}
|
||||||
|
|
||||||
.with-performance-bar .page-with-sidebar {
|
.with-performance-bar .layout-page {
|
||||||
margin-top: $header-height + $performance-bar-height;
|
margin-top: $header-height + $performance-bar-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -415,7 +415,7 @@
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.page-with-contextual-sidebar.page-with-sidebar .issue-boards-sidebar {
|
.page-with-contextual-sidebar.layout-page .issue-boards-sidebar {
|
||||||
.issuable-sidebar-header {
|
.issuable-sidebar-header {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.page-with-sidebar{ class: page_with_sidebar_class }
|
.layout-page{ class: page_with_sidebar_class }
|
||||||
- if defined?(nav) && nav
|
- if defined?(nav) && nav
|
||||||
= render "layouts/nav/sidebar/#{nav}"
|
= render "layouts/nav/sidebar/#{nav}"
|
||||||
.content-wrapper
|
.content-wrapper
|
||||||
|
|
|
@ -41,7 +41,7 @@ import '~/right_sidebar';
|
||||||
loadFixtures(fixtureName);
|
loadFixtures(fixtureName);
|
||||||
this.sidebar = new Sidebar;
|
this.sidebar = new Sidebar;
|
||||||
$aside = $('.right-sidebar');
|
$aside = $('.right-sidebar');
|
||||||
$page = $('.page-with-sidebar');
|
$page = $('.layout-page');
|
||||||
$icon = $aside.find('i');
|
$icon = $aside.find('i');
|
||||||
$toggle = $aside.find('.js-sidebar-toggle');
|
$toggle = $aside.find('.js-sidebar-toggle');
|
||||||
return $labelsIcon = $aside.find('.sidebar-collapsed-icon');
|
return $labelsIcon = $aside.find('.sidebar-collapsed-icon');
|
||||||
|
|
Loading…
Reference in a new issue