Statistics
| Branch: | Tag: | Revision:

root / cloudcms / static / cloudcms / less / resources.less @ ac0fc39a

History | View | Annotate | Download (3.7 kB)

1
@resCol: #ff5d00;
2
@resCol2: #4085A6;
3

    
4
.resources {
5
    
6
    .categories {
7

    
8
        .clear {
9
            float: right;
10
            margin-right: 4px;
11
            color: @black;
12
        }
13
        ul { .clearfix() }
14
        ul li { float: left; }
15
        .title {
16
            margin-bottom: @verticalSpacing/2;    
17
        }
18

    
19
        ul li a {
20
            text-decoration: none;
21
            color: #000;
22
            margin-right: @gridGutterWidth;
23

    
24
            &:hover, &.selected {
25
                color: #000 !important;
26
            }
27

    
28
        }
29

    
30
        ul li {
31
            &.inactive {
32
                opacity: 0.3;
33
            }
34
            &.active {
35
                opacity: 1;
36
                font-weight: bold;
37
            }
38
        }
39
    }
40

    
41
    .list {
42
        
43
        font-size: 0.9em;    
44
        line-height: 1em;
45
        margin-top: 4*@verticalSpacing;
46
        position: relative;
47

    
48
        .resource-wrapper.first .resource { margin-left: 0; }
49
        .resource-wrapper { 
50
            position: relative; 
51
            width: 200px;
52
            margin-left: @gridGutterWidth;
53
            margin-bottom: @gridGutterWidth;
54
            &.first { margin-left: 0 }
55
            &.hidden { display: none }
56
            width: @gridColumnWidth*4 + 11;
57
            float: left;
58
            overflow: hidden;
59
            height: 17*@verticalSpacing;
60
        }
61

    
62
        .resource {
63
            border: 1px solid #000;
64
            .border-box();
65
            padding: 2*@verticalSpacing;
66
            height: 17*@verticalSpacing;
67
            overflow: hidden;
68

    
69
            .date {
70
                color: @gray;    
71
                margin-bottom: 3px;
72
            }
73

    
74
            .description {
75
                font-size: 1.1em;
76
                position: absolute;
77
                height: 210px;
78
                .transit(top, 0.35s);
79
                top: -210px;
80
                width: 100%;
81
                margin-left: -2*@verticalSpacing;
82
                padding: 2*@verticalSpacing;
83
                .border-box();
84
                color: #fff;
85
            }
86

    
87
            .title {
88
                line-height: 1.4em;
89
            }
90

    
91
            .category {
92
                margin-top: 2*@verticalSpacing;    
93
                color: @gray;
94
                a { color: @gray }
95
            }
96
            .download {
97
                margin-left: -10px;
98
                margin-bottom: 3px;
99
                a {
100
                    display: block;
101
                    color: @black;
102
                    text-decoration: none;
103
                    padding: 5px;
104
                    padding-left: @verticalSpacing;
105

    
106
                    &:hover, .hovered {
107
                        color: @resCol;
108
                        .download-image {
109
                            background-image: url("../images/resource_down_arrow-active.png");    
110
                        }
111
                    }
112

    
113
                    .download-image {
114
                        display: block;
115
                        width: 30px;
116
                        height: 30px;
117
                        float: left;
118
                        margin-top: -7px;
119
                        margin-right: 10px;
120
                        background-image: url("../images/resource_down_arrow.png");    
121
                        background-position: 50% 50%;
122
                        background-repeat: no-repeat;
123
                    }
124
                }
125
                bottom: 0;
126
                position: absolute;
127
                font-size: 1.1em;
128
                width: 100%;
129
                text-align: middle;
130
                .border-box();
131
                cursor: pointer;
132
                img { margin-right: 10px; vertical-align: middle}
133
            }
134

    
135
            &:hover, .hover {
136
                .description { top:0; display: block }    
137
            }
138
        }    
139
    }
140
    
141
}
142