Simplify border and background in admin header

Instead of defining them for all headers and then overwriting them, we
can add it just to the body of the public layout.
This commit is contained in:
Javi Martín
2021-07-05 22:50:09 +02:00
parent 7d50fed2a3
commit b5fd875133
3 changed files with 8 additions and 9 deletions

View File

@@ -52,13 +52,9 @@ $table-header: #ecf1f6;
float: none;
}
.header {
background: transparent;
border: 0;
}
.top-links {
background: #000;
color: $white;
a {
line-height: rem-calc($line-height * 1.5);
@@ -67,7 +63,6 @@ $table-header: #ecf1f6;
.top-bar {
border-bottom: 1px solid #eee;
color: $text;
height: auto;
padding-top: $line-height / 2;

View File

@@ -473,8 +473,6 @@ a {
body > header,
.wrapper > header {
@extend %brand-background;
border-bottom: 1px solid $border;
margin-bottom: $line-height;
@include breakpoint(small down) {
@@ -517,6 +515,12 @@ body > header,
}
}
.public > .wrapper > header,
.proposal-dashboard > header {
@extend %brand-background;
border-bottom: 1px solid $border;
}
.top-bar {
background-color: inherit;
padding-bottom: 0;

View File

@@ -13,7 +13,7 @@
<%= raw setting["html.per_page_code_head"] %>
</head>
<body class="<%= yield (:body_class) %>">
<body class="<%= yield (:body_class) %> public">
<%= raw setting["html.per_page_code_body"] %>
<div class="wrapper <%= yield (:wrapper_class) %>">