Service tiles; Start handling disabled services

This commit is contained in:
James Barnsley
2017-08-03 21:26:33 +12:00
parent 6d32e83cac
commit 123fe51289
15 changed files with 194 additions and 196 deletions

View File

@ -137,4 +137,93 @@
}
}
}
}
.tiles {
padding-bottom: 60px;
.tile {
color: $white;
text-align: center;
position: relative;
z-index: 1;
float: left;
overflow: hidden;
.content {
display: block;
position: absolute;
top: 50%;
left: 10%;
right: 10%;
vertical-align: top;
margin-top: -12px;
font-size: 16px;
z-index: 2;
}
&:last-child {
@include clearfix();
}
&:before {
content: '';
display: block;
width: 100%;
padding-bottom: 100%;
background: lighten($dark_grey,2%);
z-index: -2;
}
&.thumbnail-wrapper {
&:before {
display: none;
}
}
}
&.artist-stats {
.tile {
.fa {
display: block;
position: absolute;
top: 50%;
left: 10%;
right: 10%;
text-align: center;
margin-top: -27px;
font-size: 60px;
z-index: -1;
opacity: 0.1;
}
}
@include responsive( null, $bp_medium ){
.tile {
@include grid_item( 2 );
}
}
@include responsive( $bp_medium ){
padding-bottom: 20px;
.tile {
@include grid_item( 3 );
}
}
@include responsive( $bp_narrow ){
.tile {
.text {
font-size: 14px;
.fa {
font-size: 28px;
margin-top: -12px;
}
}
}
}
}
}

View File

@ -84,82 +84,3 @@
}
}
}
.tiles {
padding-bottom: 60px;
.tile {
color: $white;
text-align: center;
position: relative;
z-index: 1;
float: left;
overflow: hidden;
.text {
display: block;
position: absolute;
top: 50%;
left: 10%;
right: 10%;
vertical-align: top;
margin-top: -12px;
font-size: 16px;
z-index: 2;
.fa {
display: block;
position: absolute;
top: 50%;
left: 10%;
right: 10%;
text-align: center;
margin-top: -27px;
font-size: 60px;
z-index: -1;
opacity: 0.1;
}
}
&:before {
content: '';
display: block;
width: 100%;
padding-bottom: 100%;
background: lighten($dark_grey,2%);
z-index: -2;
}
&.thumbnail-wrapper {
&:before {
display: none;
}
}
}
@include responsive( null, $bp_medium ){
.tile {
@include grid_item( 2 );
}
}
@include responsive( $bp_medium ){
padding-bottom: 20px;
.tile {
@include grid_item( 3 );
}
}
@include responsive( $bp_narrow ){
.tile {
.text {
font-size: 14px;
.fa {
font-size: 28px;
margin-top: -12px;
}
}
}
}
}

View File

@ -47,11 +47,16 @@
background: $green;
}
&.broadcast {
&.broadcast,
&.info {
background: $yellow;
color: $black;
}
&.warning {
background: $orange;
}
&.bad {
background: $red;
}