layout.less: Relax specificity of content and controls padding

This commit is contained in:
Johannes Meyer 2019-12-11 11:31:23 +01:00
parent e1c47a8f59
commit 168fcfec36
1 changed files with 12 additions and 4 deletions

View File

@ -110,13 +110,9 @@
& > .content {
flex: 1 1 auto;
overflow: auto;
padding: @gutter;
}
& > .controls {
padding-left: @gutter;
padding-right: @gutter;
> .tabs {
// Remove gutter for tabs
margin-left: -1 * @gutter;
@ -131,6 +127,18 @@
}
}
// Not part of the above to relax specificity and to allow modules adjust this
:not(.dashboard) > .container {
& > .controls {
padding-left: @gutter;
padding-right: @gutter;
}
& > .content {
padding: @gutter;
}
}
// Mobile menu
#layout.minimal-layout #sidebar {
background-color: @menu-bg-color;