0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
wagtail/client/scss/components/_header.scss

168 lines
2.6 KiB
SCSS
Raw Normal View History

header {
padding-top: 1em;
padding-bottom: 1em;
background-color: $color-header-bg;
margin-bottom: 2em;
2015-11-03 13:15:33 +01:00
color: $color-white;
a {
2015-11-03 13:15:33 +01:00
color: $color-white;
}
2016-10-27 21:43:18 +02:00
h1,
2015-11-02 15:39:36 +01:00
h2 {
margin: 0;
2015-11-03 13:15:33 +01:00
color: $color-white;
}
h1 {
padding: 0.2em 0;
&.icon:before {
width: 1em;
display: none;
margin-right: 0.4em;
font-size: 1.5em;
}
}
.col {
float: left;
margin-right: 2em;
}
2015-11-03 13:15:33 +01:00
.left {
float: left;
.hasform &:first-child {
padding-bottom: 0.5em;
float: none;
}
}
2015-11-03 13:15:33 +01:00
.right {
text-align: right;
float: right;
}
2015-11-03 13:15:33 +01:00
// For case where content below header should merge with it
&.merged {
margin-bottom: 0;
}
2015-11-03 13:15:33 +01:00
2016-10-27 21:43:18 +02:00
&.tab-merged,
2015-11-02 15:39:36 +01:00
&.no-border {
border: 0;
2016-10-27 09:28:43 +02:00
@include media-breakpoint-down(xs) {
2016-10-27 09:28:43 +02:00
// To all hamburger menu to be visible
padding-left: $desktop-nice-padding;
padding-top: 11px;
}
}
2015-11-03 13:15:33 +01:00
&.merged.no-border {
padding-bottom: 0;
}
2015-11-03 13:15:33 +01:00
&.no-v-padding {
padding-top: 0;
padding-bottom: 0;
}
2015-11-03 13:15:33 +01:00
.button {
background-color: $color-teal-darker;
&:hover {
background-color: $color-teal-dark;
}
}
label {
@include visuallyhidden();
}
2016-10-27 21:43:18 +02:00
input[type=text],
2015-11-02 15:39:36 +01:00
select {
border-width: 0;
&:focus {
2015-11-03 13:15:33 +01:00
background-color: $color-white;
}
}
.error-message {
color: inherit;
}
.fields {
margin-top: -0.5em;
2015-11-03 13:15:33 +01:00
li {
padding-bottom: 0;
2014-05-13 18:19:41 +02:00
}
2015-11-03 13:15:33 +01:00
.field {
padding: 0;
}
}
.field-content {
width: auto;
padding: 0;
}
}
@include media-breakpoint-up(sm) {
header {
padding-top: 1.5em;
padding-bottom: 1.5em;
.left {
float: left;
margin-right: 0;
&:first-child {
padding-bottom: 0;
float: left;
}
}
2015-11-03 13:15:33 +01:00
.second {
clear: none;
2016-10-27 21:43:18 +02:00
.right,
2015-11-02 15:39:36 +01:00
.left {
float: right;
}
}
h1.icon:before {
display: inline-block;
}
.col3 {
@include column(3);
}
2015-11-03 13:15:33 +01:00
.col3.actionbutton {
width: auto;
}
2015-11-03 13:15:33 +01:00
.col6 {
@include column(6);
}
2015-11-03 13:15:33 +01:00
.col9 {
@include column(9);
}
}
2015-11-03 13:15:33 +01:00
}
.header-title {
@include media-breakpoint-down(xs) {
padding-left: $mobile-nav-indent;
}
}