mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
932762c9f1
- fix search header field border in Windows High Contrast mode - fix tab-nav active in Windows High Contrast mode - add border for c-sf-button. This fix view in WHC mode. - add justify-content - center for better view on mobile devices.
213 lines
3.5 KiB
SCSS
213 lines
3.5 KiB
SCSS
header {
|
|
padding-top: 1em;
|
|
padding-bottom: 1em;
|
|
background-color: $color-header-bg;
|
|
margin-bottom: 2em;
|
|
color: $color-white;
|
|
|
|
a {
|
|
color: $color-white;
|
|
}
|
|
|
|
h1,
|
|
h2 {
|
|
margin: 0;
|
|
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;
|
|
}
|
|
|
|
.left {
|
|
float: left;
|
|
|
|
.hasform &:first-child {
|
|
padding-bottom: 0.5em;
|
|
float: none;
|
|
}
|
|
}
|
|
|
|
.right {
|
|
text-align: right;
|
|
float: right;
|
|
}
|
|
|
|
// For case where content below header should merge with it
|
|
&.merged {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&.tab-merged {
|
|
padding-left: $desktop-nice-padding;
|
|
padding-right: $desktop-nice-padding;
|
|
|
|
.right:last-child {
|
|
padding-right: 0;
|
|
}
|
|
}
|
|
|
|
&.tab-merged,
|
|
&.no-border {
|
|
border: 0;
|
|
|
|
@include media-breakpoint-down(xs) {
|
|
// To all hamburger menu to be visible
|
|
padding-left: 1.6em;
|
|
padding-right: 1.6em;
|
|
padding-top: 11px;
|
|
|
|
.nice-padding {
|
|
margin-left: -$desktop-nice-padding;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
&.merged.no-border {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
&.no-v-padding {
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.button {
|
|
background-color: $color-teal-darker;
|
|
|
|
&:hover {
|
|
background-color: $color-teal-dark;
|
|
}
|
|
}
|
|
|
|
label {
|
|
@include visuallyhidden();
|
|
}
|
|
|
|
input[type=text],
|
|
select {
|
|
border-width: 0;
|
|
|
|
&:focus {
|
|
background-color: $color-white;
|
|
}
|
|
}
|
|
|
|
.error-message {
|
|
color: inherit;
|
|
}
|
|
|
|
.fields {
|
|
margin-top: -0.5em;
|
|
|
|
li {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.field {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.field-content {
|
|
width: auto;
|
|
padding: 0;
|
|
}
|
|
|
|
.last-updated {
|
|
ul {
|
|
padding: 0;
|
|
}
|
|
|
|
li {
|
|
display: inline;
|
|
margin-right: 2em;
|
|
}
|
|
|
|
.avatar.small {
|
|
margin-left: 0;
|
|
}
|
|
|
|
a {
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Media for Windows High Contrast
|
|
@media (forced-colors: $media-forced-colours) {
|
|
header .field-content {
|
|
border: 0.1em solid $system-color-link-text;
|
|
}
|
|
}
|
|
|
|
@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;
|
|
}
|
|
}
|
|
|
|
.second {
|
|
clear: none;
|
|
|
|
.right,
|
|
.left {
|
|
float: right;
|
|
}
|
|
}
|
|
|
|
h1.icon:before {
|
|
display: inline-block;
|
|
}
|
|
|
|
.col3 {
|
|
@include column(3);
|
|
}
|
|
|
|
.col3.actionbutton {
|
|
width: auto;
|
|
}
|
|
|
|
.col6 {
|
|
@include column(6);
|
|
}
|
|
|
|
.col9 {
|
|
@include column(9);
|
|
}
|
|
}
|
|
}
|
|
|
|
.header-title {
|
|
@include media-breakpoint-down(xs) {
|
|
padding-left: $mobile-nav-indent;
|
|
}
|
|
|
|
&-icon {
|
|
@include svg-icon();
|
|
margin-right: 0.5em;
|
|
}
|
|
}
|