blob: 0cec15e0f4e4aa5708abb44b3208d1a5a72f932e (
plain) (
blame)
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
|
// File icons
.file-icon {
display: inline-block;
width: 3.2rem;
height: 4.4rem;
background-color: transparent;
position: relative;
border-width: 0 0 3.2rem 2rem;
border-style: solid;
border-color: @control-color;
border-radius: .3rem;
font-size: 1rem;
text-align: left;
&::before {
position: absolute;
top: 0;
right: 0;
content: '';
background-color: transparent;
z-index: 2;
width: 1.2rem;
height: 1.2rem;
border: .6rem solid lighten(@control-color, 10%);
border-right-color: transparent;
border-top-color: transparent;
}
&::after {
content: attr(data-type);
padding: .2rem;
position: absolute;
bottom: -3.2rem;
left: -2rem;
font-size: 1.2em;
font-weight: 300;
color: #fff;
text-transform: lowercase;
white-space: nowrap;
text-overflow: clip;
overflow: hidden;
z-index: 3;
}
}
|