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

169 lines
2.4 KiB
SCSS
Raw Normal View History

2016-03-17 11:45:48 +00:00
%big-number,
2015-12-17 11:52:24 +00:00
.big-number {
display: block;
&-number {
2016-06-22 09:56:17 +01:00
@include bold-48($tabular-numbers: true);
display: block;
}
2015-12-17 11:52:24 +00:00
&-label {
@include core-19;
display: inline-block;
padding-bottom: 10px;
2016-03-17 11:45:48 +00:00
}
}
2018-06-25 13:34:54 +01:00
.big-number-dark {
@extend %big-number;
padding: $gutter-half;
position: relative;
background: $black;
color: $white;
.big-number-number {
@include bold-36($tabular-numbers: true);
}
}
2016-05-05 10:34:15 +01:00
.big-number-smaller {
2016-04-20 15:37:17 +01:00
@extend %big-number;
.big-number-number {
2016-06-22 09:56:17 +01:00
@include bold-36($tabular-numbers: true);
}
2016-04-20 15:37:17 +01:00
}
2016-06-09 16:39:25 +01:00
.big-number-smallest {
@extend %big-number;
.big-number-number {
2016-06-22 09:56:17 +01:00
@include bold-24($tabular-numbers: true);
2016-06-09 16:39:25 +01:00
}
}
2016-03-17 11:45:48 +00:00
.big-number-with-status {
@extend %big-number;
2016-04-29 15:47:31 +01:00
position: relative;
2016-08-09 10:39:57 +01:00
margin-bottom: $gutter-two-thirds;
.big-number,
.big-number-smaller {
padding: $gutter-half;
2016-04-29 15:47:31 +01:00
position: relative;
background: $black;
color: $white;
2016-03-17 11:45:48 +00:00
}
.big-number-label {
2016-04-29 15:47:31 +01:00
2016-03-17 11:45:48 +00:00
padding-bottom: 0;
2016-04-29 15:47:31 +01:00
&:link,
&:visited {
color: $link-colour;
}
}
.big-number-link {
text-decoration: none;
background: $link-colour;
color: $white;
display: block;
border: 2px solid $link-colour;
margin-bottom: 5px;
&:hover {
color: $light-blue-25;
.big-number {
color: $light-blue-25;
}
}
&:active,
&:focus {
outline: 3px solid $yellow;
}
.big-number,
.big-number-smaller {
background: transparent;
}
.big-number-label {
text-decoration: underline;
2016-04-29 15:47:31 +01:00
}
2016-03-17 11:45:48 +00:00
}
2016-03-23 09:21:35 +00:00
%big-number-status,
2016-03-17 11:45:48 +00:00
.big-number-status {
2016-03-23 09:21:35 +00:00
@include core-19;
2016-03-17 11:45:48 +00:00
display: block;
background: $green;
color: $white;
2016-03-23 09:21:35 +00:00
padding: 15px;
2016-03-17 11:45:48 +00:00
a {
&:link,
&:visited,
&:active,
&:hover {
color: $white;
text-decoration: underline;
}
&:active,
&:focus {
color: $black;
border-bottom: 1px solid $black;
2016-03-17 11:45:48 +00:00
}
}
2016-03-23 09:21:35 +00:00
}
2016-03-17 11:45:48 +00:00
2016-03-23 09:21:35 +00:00
.big-number-status-failing {
@extend %big-number-status;
background: $error-colour;
2015-12-17 11:52:24 +00:00
}
}
2017-05-22 17:02:03 +01:00
.big-number-meta-wrapper {
position: relative;
margin: $gutter-half 0 $gutter 0;
background: $govuk-blue;
.big-number-meta {
padding: ($gutter / 3) $gutter-half;
color: $white;
pointer-events: none;
@include media(desktop) {
position: absolute;
bottom: 7px;
right: 5px;
text-align: right;
}
}
}