Files
notifications-admin/app/assets/stylesheets/components/banner.scss
2016-03-17 14:58:17 +00:00

143 lines
2.1 KiB
SCSS

%banner,
.banner,
.banner-default {
@include core-19;
background: $turquoise;
color: $white;
display: block;
padding: $gutter-half;
margin: $gutter-half 0 $gutter 0;
text-align: left;
position: relative;
clear: both;
&-title {
@include bold-24;
}
p {
margin: 10px 0 5px 0;
}
.list-bullet {
@include copy-19;
}
}
%banner-with-tick,
.banner-with-tick {
padding: $gutter-half ($gutter + $gutter-half);
background-image: file-url('tick-white.png');
background-size: 19px;
background-repeat: no-repeat;
background-position: $gutter-half $gutter-half;
font-weight: bold;
}
.banner-default-with-tick {
@extend %banner;
@extend %banner-with-tick;
}
.banner-dangerous {
@extend %banner;
@include bold-19;
background: $white;
color: $error-colour;
border: 5px solid $error-colour;
margin: 15px 0;
text-align: left;
.button {
@include button($error-colour);
margin-top: 10px;
}
}
%banner-tip,
.banner-tip {
@extend %banner;
@include bold-19;
background-color: $yellow;
color: $text-colour;
text-align: left;
margin-top: 0;
a {
&:link,
&:visited {
color: $text-colour;
text-decoration: underline;
}
}
ol {
list-style-type: decimal;
}
}
.banner-tip-with-tick {
@extend %banner-with-tick;
@extend %banner-tip;
background-image: file-url('tick-black.png');
}
.banner-info,
.banner-important {
@extend %banner;
background: $white;
color: $text-colour;
background-image: file-url('icon-important-2x.png');
background-size: 34px 34px;
background-position: 0 0;
background-repeat: no-repeat;
padding: 7px 0 5px 50px;
}
.banner-info {
background-image: file-url('icon-information-2x.png');
}
.banner-mode {
@extend %banner;
background: $govuk-blue;
color: $white;
margin-top: $gutter;
.heading-medium {
margin: 0 0 10px 0;
}
a {
&:link,
&:visited {
color: $white;
}
&:hover,
&:active {
color: $light-blue-25;
}
}
.big-number {
margin-top: 10px;
&-label {
padding-bottom: 0;
}
}
}