2019-07-18 14:22:11 +00:00
|
|
|
//
|
|
|
|
// Component: Small Box
|
|
|
|
//
|
2015-10-31 21:00:16 +00:00
|
|
|
|
|
|
|
.small-box {
|
2018-04-14 23:33:53 +00:00
|
|
|
@include border-radius($border-radius);
|
|
|
|
@include box-shadow($card-shadow);
|
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
display: block;
|
|
|
|
margin-bottom: 20px;
|
2019-06-28 08:02:07 +00:00
|
|
|
position: relative;
|
2018-03-17 17:07:55 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
// content wrapper
|
|
|
|
> .inner {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .small-box-footer {
|
2019-06-28 08:02:07 +00:00
|
|
|
background: rgba($black, 0.1);
|
|
|
|
color: rgba($white, 0.8);
|
2015-10-31 21:00:16 +00:00
|
|
|
display: block;
|
2019-06-28 08:02:07 +00:00
|
|
|
padding: 3px 0;
|
|
|
|
position: relative;
|
|
|
|
text-align: center;
|
2015-10-31 21:00:16 +00:00
|
|
|
text-decoration: none;
|
2019-06-28 08:02:07 +00:00
|
|
|
z-index: 10;
|
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
&:hover {
|
2019-06-28 08:02:07 +00:00
|
|
|
background: rgba($black, 0.15);
|
2018-03-17 17:07:55 +00:00
|
|
|
color: $white;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2019-07-08 15:19:29 +00:00
|
|
|
@include font-size(2.2rem);
|
2015-10-31 21:00:16 +00:00
|
|
|
font-weight: bold;
|
|
|
|
margin: 0 0 10px 0;
|
|
|
|
padding: 0;
|
2019-06-28 08:02:07 +00:00
|
|
|
white-space: nowrap;
|
2019-07-08 15:19:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(lg) {
|
|
|
|
.col-xl-2 &,
|
|
|
|
.col-lg-2 &,
|
|
|
|
.col-md-2 & {
|
|
|
|
h3 {
|
|
|
|
@include font-size(1.6rem);
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
|
2019-07-08 15:19:29 +00:00
|
|
|
.col-xl-3 &,
|
|
|
|
.col-lg-3 &,
|
|
|
|
.col-md-3 & {
|
|
|
|
h3 {
|
|
|
|
@include font-size(1.6rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(xl) {
|
|
|
|
.col-xl-2 &,
|
|
|
|
.col-lg-2 &,
|
|
|
|
.col-md-2 & {
|
|
|
|
h3 {
|
|
|
|
@include font-size(2.2rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.col-xl-3 &,
|
|
|
|
.col-lg-3 &,
|
|
|
|
.col-md-3 & {
|
|
|
|
h3 {
|
|
|
|
@include font-size(2.2rem);
|
|
|
|
}
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
2019-07-08 15:19:29 +00:00
|
|
|
font-size: 1rem;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
> small {
|
2019-07-18 14:22:11 +00:00
|
|
|
color: $gray-100;
|
2019-06-28 08:02:07 +00:00
|
|
|
display: block;
|
2019-07-08 15:19:29 +00:00
|
|
|
font-size: 0.9rem;
|
2015-10-31 21:00:16 +00:00
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-07-18 14:22:11 +00:00
|
|
|
h3,
|
|
|
|
p {
|
2018-03-17 17:07:55 +00:00
|
|
|
z-index: 5;
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// the icon
|
|
|
|
.icon {
|
2019-06-28 08:02:07 +00:00
|
|
|
color: rgba($black, 0.15);
|
2015-10-31 21:00:16 +00:00
|
|
|
z-index: 0;
|
2019-05-25 13:15:32 +00:00
|
|
|
|
|
|
|
> i {
|
2019-06-28 08:02:07 +00:00
|
|
|
font-size: 90px;
|
2019-05-25 13:15:32 +00:00
|
|
|
position: absolute;
|
|
|
|
right: 15px;
|
2019-06-28 08:02:07 +00:00
|
|
|
top: 15px;
|
|
|
|
transition: all $transition-speed linear;
|
|
|
|
|
|
|
|
&.fa,
|
2019-05-25 13:15:32 +00:00
|
|
|
&.fas,
|
|
|
|
&.far,
|
2019-06-28 08:02:07 +00:00
|
|
|
&.fab,
|
|
|
|
&.glyphicon,
|
|
|
|
&.ion {
|
2019-05-25 13:15:32 +00:00
|
|
|
font-size: 70px;
|
|
|
|
top: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Small box hover state
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
// Animate icons on small box hover
|
2019-05-25 13:15:32 +00:00
|
|
|
.icon > i {
|
2015-10-31 21:00:16 +00:00
|
|
|
font-size: 95px;
|
2019-05-25 13:15:32 +00:00
|
|
|
|
2019-06-28 08:02:07 +00:00
|
|
|
&.fa,
|
2019-05-25 13:15:32 +00:00
|
|
|
&.fas,
|
|
|
|
&.far,
|
2019-06-28 08:02:07 +00:00
|
|
|
&.fab,
|
|
|
|
&.glyphicon,
|
|
|
|
&.ion {
|
2019-05-25 13:15:32 +00:00
|
|
|
font-size: 75px;
|
|
|
|
}
|
2015-10-31 21:00:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-01-16 16:27:23 +00:00
|
|
|
@include media-breakpoint-down(sm) {
|
2015-10-31 21:00:16 +00:00
|
|
|
// No need for icons on very small devices
|
|
|
|
.small-box {
|
|
|
|
text-align: center;
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
.icon {
|
|
|
|
display: none;
|
|
|
|
}
|
2019-06-28 08:02:07 +00:00
|
|
|
|
2015-10-31 21:00:16 +00:00
|
|
|
p {
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|