root / cloudcms / static / cloudcms / less / resources.less @ 3158d6f6
History | View | Annotate | Download (3.6 kB)
1 |
@resCol: #ff5d00; |
---|---|
2 |
@resCol2: #4085A6; |
3 |
|
4 |
.resources { |
5 |
|
6 |
.categories { |
7 |
ul { .clearfix() } |
8 |
ul li { float: left; } |
9 |
.title { |
10 |
margin-bottom: @verticalSpacing/2; |
11 |
} |
12 |
|
13 |
ul li a { |
14 |
text-decoration: none; |
15 |
color: #000; |
16 |
margin-right: @gridGutterWidth; |
17 |
|
18 |
&:hover, &.selected { |
19 |
color: #000 !important; |
20 |
} |
21 |
|
22 |
} |
23 |
|
24 |
ul li { |
25 |
&.inactive { |
26 |
opacity: 0.3; |
27 |
} |
28 |
&.active { |
29 |
opacity: 1; |
30 |
font-weight: bold; |
31 |
} |
32 |
} |
33 |
} |
34 |
|
35 |
.list { |
36 |
|
37 |
font-size: 0.9em; |
38 |
line-height: 1em; |
39 |
margin-top: 4*@verticalSpacing; |
40 |
position: relative; |
41 |
|
42 |
.resource-wrapper.first .resource { margin-left: 0; } |
43 |
.resource-wrapper { |
44 |
position: relative; |
45 |
width: 200px; |
46 |
margin-left: @gridGutterWidth; |
47 |
margin-bottom: @gridGutterWidth; |
48 |
&.first { margin-left: 0 } |
49 |
&.hidden { display: none } |
50 |
width: @gridColumnWidth*4 + 11; |
51 |
float: left; |
52 |
overflow: hidden; |
53 |
height: 17*@verticalSpacing; |
54 |
} |
55 |
|
56 |
.resource { |
57 |
border: 1px solid #000; |
58 |
.border-box(); |
59 |
padding: 2*@verticalSpacing; |
60 |
height: 17*@verticalSpacing; |
61 |
overflow: hidden; |
62 |
|
63 |
.date { |
64 |
color: @gray; |
65 |
margin-bottom: 3px; |
66 |
} |
67 |
|
68 |
.description { |
69 |
font-size: 1.1em; |
70 |
position: absolute; |
71 |
height: 210px; |
72 |
.transit(top, 0.35s); |
73 |
top: -210px; |
74 |
width: 100%; |
75 |
margin-left: -2*@verticalSpacing; |
76 |
padding: 2*@verticalSpacing; |
77 |
.border-box(); |
78 |
color: #fff; |
79 |
} |
80 |
|
81 |
.title { |
82 |
line-height: 1.4em; |
83 |
} |
84 |
|
85 |
.category { |
86 |
margin-top: 2*@verticalSpacing; |
87 |
color: @gray; |
88 |
a { color: @gray } |
89 |
} |
90 |
.download { |
91 |
margin-left: -10px; |
92 |
margin-bottom: 3px; |
93 |
a { |
94 |
display: block; |
95 |
color: @black; |
96 |
text-decoration: none; |
97 |
padding: 5px; |
98 |
padding-left: @verticalSpacing; |
99 |
|
100 |
&:hover, .hovered { |
101 |
color: @resCol; |
102 |
.download-image { |
103 |
background-image: url("../images/resource_down_arrow-active.png"); |
104 |
} |
105 |
} |
106 |
|
107 |
.download-image { |
108 |
display: block; |
109 |
width: 30px; |
110 |
height: 30px; |
111 |
float: left; |
112 |
margin-top: -7px; |
113 |
margin-right: 10px; |
114 |
background-image: url("../images/resource_down_arrow.png"); |
115 |
background-position: 50% 50%; |
116 |
background-repeat: no-repeat; |
117 |
} |
118 |
} |
119 |
bottom: 0; |
120 |
position: absolute; |
121 |
font-size: 1.1em; |
122 |
width: 100%; |
123 |
text-align: middle; |
124 |
.border-box(); |
125 |
cursor: pointer; |
126 |
img { margin-right: 10px; vertical-align: middle} |
127 |
} |
128 |
|
129 |
&:hover, .hover { |
130 |
.description { top:0; display: block } |
131 |
} |
132 |
} |
133 |
} |
134 |
|
135 |
} |
136 |
|