Files
notifications-admin/app/assets/stylesheets/components/banner.scss
T

218 lines
3.9 KiB
SCSS
Raw Normal View History

%banner,
2016-01-26 16:26:08 +00:00
.banner,
.banner-default {
2015-12-17 14:05:35 +00:00
2017-09-25 15:09:26 +01:00
@include bold-19;
color: $button-colour;
2015-12-17 14:05:35 +00:00
display: block;
2020-02-21 13:21:44 +00:00
padding: govuk-spacing(3);
margin: govuk-spacing(3) 0 govuk-spacing(6) 0;
2016-02-02 13:38:39 +00:00
text-align: left;
2015-12-17 14:05:35 +00:00
position: relative;
2016-02-03 15:24:50 +00:00
clear: both;
border: 5px solid $button-colour;
2015-12-17 14:05:35 +00:00
&-title {
@include bold-24;
}
p {
margin: 10px 0 5px 0;
}
.list-bullet {
@include copy-19;
}
2020-07-17 08:07:44 +01:00
.page-footer {
margin-bottom: govuk-spacing(1);
}
}
2016-03-17 11:45:48 +00:00
%banner-with-tick,
.banner-with-tick {
2020-02-21 13:21:44 +00:00
padding: govuk-spacing(3) (govuk-spacing(6) + govuk-spacing(3));
background-image: file-url('tick.png');
2016-02-19 15:02:13 +00:00
background-size: 19px;
background-repeat: no-repeat;
2020-02-21 13:21:44 +00:00
background-position: govuk-spacing(3) govuk-spacing(3);
2017-02-13 12:48:05 +00:00
2015-12-17 14:05:35 +00:00
}
2016-01-14 09:44:06 +00:00
2016-03-17 11:45:48 +00:00
.banner-default-with-tick {
@extend %banner;
@extend %banner-with-tick;
}
2016-01-14 09:44:06 +00:00
.banner-dangerous {
2016-02-08 11:11:55 +00:00
@extend %banner;
@include bold-19;
2016-01-14 09:44:06 +00:00
background: $white;
2017-07-24 14:26:26 +01:00
color: $text-colour;
2016-01-14 09:44:06 +00:00
border: 5px solid $error-colour;
margin: 15px 0;
text-align: left;
&:focus {
2020-09-23 10:50:43 +01:00
outline: 3px solid $govuk-focus-colour;
}
2017-06-26 14:41:00 +01:00
.list {
margin-bottom: 0;
}
2016-01-14 09:44:06 +00:00
}
2016-02-02 09:38:31 +00:00
.banner-tour {
@extend %banner;
background: $govuk-blue;
color: $white;
2016-12-14 16:40:50 +00:00
margin-top: 10px;
margin-bottom: 0;
2020-02-21 13:21:44 +00:00
padding: govuk-spacing(6);
height: 425px;
2016-05-20 12:05:05 +01:00
overflow: hidden;
box-shadow: inset 0 -1em 1.6em 0 rgba(0, 0, 0, 0.05);
2017-08-30 16:36:48 +01:00
border: 0;
&-no-fixed-height {
height: auto;
padding-top: govuk-spacing(8);
min-height: 425px;
}
&-with-service-name {
margin-top: -10px;
padding-top: 0;
box-shadow: 0 -1px 0 0 darken($govuk-blue, 10%);
}
2016-05-20 12:05:05 +01:00
.heading-medium {
@include core-24;
}
p {
2016-05-20 12:05:05 +01:00
margin-top: 0;
2020-02-21 13:21:44 +00:00
margin-bottom: govuk-spacing(6);
2020-06-02 11:10:09 +01:00
color: $white;
&:last-child {
margin-bottom: 0;
}
& + p {
2020-03-06 11:23:24 +00:00
margin-top: -1 * govuk-spacing(3);
}
}
ul {
@include core-24;
color: $white;
margin-bottom: govuk-spacing(5);
}
li {
margin-bottom: govuk-spacing(3);
list-style-type: disc;
margin-left: govuk-spacing(6);
}
2016-03-17 11:45:48 +00:00
a {
2020-02-11 22:23:03 +00:00
font-weight: bold;
2016-05-20 12:05:05 +01:00
display: block;
padding: 0 ;
2020-02-21 13:21:44 +00:00
margin: 0 0 govuk-spacing(6) 0;
2016-03-17 11:45:48 +00:00
&:link,
&:visited {
color: $white;
}
2020-02-11 22:23:03 +00:00
&:hover {
color: $white;
background-color: $link-hover-colour;
2021-05-13 14:17:28 +01:00
box-shadow: 0 0 0 10px $link-hover-colour;
2020-09-23 10:50:43 +01:00
}
&:focus,
&:active {
color: $govuk-focus-text-colour;
background-color: $govuk-focus-colour;
box-shadow: 0 0 0 10px $govuk-focus-colour, 0 4px 0 10px $govuk-focus-text-colour;
}
2016-03-17 11:45:48 +00:00
}
img {
width: 100%;
height: auto;
position: relative;
top: -1 * govuk-spacing(2);
}
2016-03-17 11:45:48 +00:00
2017-01-23 12:47:37 +00:00
.greyed-out-step {
2019-09-03 10:10:27 +01:00
opacity: 0.6;
2017-01-23 12:47:37 +00:00
}
2016-03-17 11:45:48 +00:00
}
.banner-dashboard {
$baseline-shift: 5px;
display: block; // for browsers that don't support flexbox
display: flex;
align-items: baseline;
flex-wrap: wrap;
2020-02-21 13:21:44 +00:00
padding: (govuk-spacing(3) - 1px) 0 (govuk-spacing(3) + 1px) 0;
border-top: 1px solid $border-colour;
border-bottom: 1px solid $border-colour;
2020-02-21 13:21:44 +00:00
margin-bottom: govuk-spacing(6);
text-decoration: none;
&:focus {
border-top: 1px solid transparent;
2020-02-21 13:21:44 +00:00
border-bottom: 1px solid transparent;
}
&-count,
&-meta {
float: left; // for browsers that don't support flexbox
}
&-count {
@include govuk-font(36, $weight: bold, $tabular: true);
padding-right: 8px;
position: relative;
// remove the top of the extra line-height this introduces
top: $baseline-shift;
margin-top: -$baseline-shift;
flex: 0 1 0.85ch;
}
&-count-label {
@include govuk-font(24, $weight: bold);
text-decoration: underline;
padding-right: govuk-spacing(6);
margin: 10px 0px 5px; // 10px includes 5px extra to counter the -5px margin-top on the count item
flex: 2 1 auto;
}
&-meta {
@include govuk-font(19);
float: right;
text-align: right;
flex: initial;
}
& + .banner-dashboard {
2020-03-06 11:23:24 +00:00
margin-top: -1 * govuk-spacing(6);
border-top: none;
}
}