1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
| /*
| * 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;
| background: rgba(0, 0, 0, 0.1);
| text-decoration: none;
| &:hover {
| color: #fff;
| 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 {
| z-index: 5;
| }
|
| // the icon
| .icon {
| .transition(all @transition-speed linear);
| 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;
| }
| }
| }
|
| @media (max-width: @screen-xs-max) {
| // No need for icons on very small devices
| .small-box {
| text-align: center;
| .icon {
| display: none;
| }
| p {
| font-size: 12px;
| }
| }
| }
|
|