123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- 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;
- }
- }
|