AdminLTE/build/scss/_small-box.scss

111 lines
1.7 KiB
SCSS
Raw Normal View History

2015-10-31 22:00:16 +01:00
/*
* Component: Small Box
* --------------------
*/
.small-box {
2018-04-15 01:33:53 +02:00
@include border-radius($border-radius);
@include box-shadow($card-shadow);
2018-03-17 18:07:55 +01:00
@extend .mb-3;
2018-04-15 01:33:53 +02:00
2015-10-31 22:00:16 +01:00
position: relative;
display: block;
margin-bottom: 20px;
2018-03-17 18:07:55 +01:00
2015-10-31 22:00:16 +01:00
// content wrapper
> .inner {
padding: 10px;
}
> .small-box-footer {
position: relative;
text-align: center;
padding: 3px 0;
2018-03-17 18:07:55 +01:00
color: $white;
2015-10-31 22:00:16 +01:00
color: rgba(255, 255, 255, 0.8);
display: block;
z-index: 10;
background: rgba(0, 0, 0, 0.1);
text-decoration: none;
&:hover {
2018-03-17 18:07:55 +01:00
color: $white;
2015-10-31 22:00:16 +01:00
background: rgba(0, 0, 0, 0.15);
}
}
h3 {
font-size: 38px;
font-weight: bold;
margin: 0 0 10px 0;
white-space: nowrap;
padding: 0;
}
p {
font-size: 15px;
> small {
display: block;
color: #f9f9f9;
font-size: 13px;
margin-top: 5px;
}
}
h3, p {
2018-03-17 18:07:55 +01:00
z-index: 5;
2015-10-31 22:00:16 +01:00
}
// the icon
.icon {
z-index: 0;
color: rgba(0, 0, 0, 0.15);
> i {
transition: all $transition-speed linear;
position: absolute;
top: 15px;
right: 15px;
font-size: 90px;
&.fa,
&.fas,
&.far,
&.fab {
font-size: 70px;
top: 20px;
}
}
2015-10-31 22:00:16 +01:00
}
// Small box hover state
&:hover {
text-decoration: none;
// Animate icons on small box hover
.icon > i {
2015-10-31 22:00:16 +01:00
font-size: 95px;
&.fa,
&.fas,
&.far,
&.fab {
font-size: 75px;
}
2015-10-31 22:00:16 +01:00
}
}
}
2016-01-16 17:27:23 +01:00
@include media-breakpoint-down(sm) {
2015-10-31 22:00:16 +01:00
// No need for icons on very small devices
.small-box {
text-align: center;
.icon {
display: none;
}
p {
font-size: 12px;
}
}
}