AdminLTE/build/less/small-box.less

90 lines
1.4 KiB
Plaintext
Raw Normal View History

2015-02-01 22:25:09 +01:00
/*
* Component: Small Box
* --------------------
*/
.small-box {
.border-radius(2px);
position: relative;
display: block;
margin-bottom: 20px;
box-shadow: @box-boxshadow;
// content wrapper
> .inner {
padding: 10px;
}
> .small-box-footer {
position: relative;
text-align: center;
padding: 3px 0;
color: #fff;
color: rgba(255, 255, 255, 0.8);
display: block;
z-index: 10;
2015-09-19 20:05:54 +02:00
background: rgba(0, 0, 0, 0.1);
2015-02-01 22:25:09 +01:00
text-decoration: none;
&:hover {
color: #fff;
2015-09-19 20:05:54 +02:00
background: rgba(0, 0, 0, 0.15);
2015-02-01 22:25:09 +01:00
}
}
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 {
2016-01-16 19:29:23 +01:00
z-index: 5;
2015-02-01 22:25:09 +01:00
}
// the icon
.icon {
2015-02-11 01:53:16 +01:00
.transition(all @transition-speed linear);
2015-02-01 22:25:09 +01:00
position: absolute;
top: -10px;
right: 10px;
z-index: 0;
font-size: 90px;
color: rgba(0, 0, 0, 0.15);
}
// Small box hover state
&:hover {
text-decoration: none;
color: #f9f9f9;
// Animate icons on small box hover
.icon {
font-size: 95px;
}
}
}
2015-02-02 23:09:59 +01:00
@media (max-width: @screen-xs-max) {
2015-02-01 22:25:09 +01:00
// No need for icons on very small devices
.small-box {
text-align: center;
.icon {
display: none;
}
p {
font-size: 12px;
}
}
2015-07-12 15:42:26 +02:00
}