source: VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/webapp/css/_table.scss

Last change on this file was 5644, checked in by Twan Goosen, 10 years ago

link colours
Refs #631

File size: 4.4 KB
Line 
1/*
2Copyright (C) 2014 CLARIN
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 3 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program.  If not, see <http://www.gnu.org/licenses/>.
16*/
17
18table {
19   
20    td, th {
21        padding: .2em;
22    }
23   
24    td.action {
25        width: 8em;
26        text-align: right;
27    }
28
29    td.type {
30        width: 5em;
31    }
32}
33
34table.moving {
35
36    tr:hover td {
37        border-top: 6px solid $red !important;
38    }
39
40    tr.moving:hover td {
41        border-top: 0px !important;
42    }
43}
44
45table.resourcesTable {
46
47    width: 800px;
48    table-layout: fixed;     
49   
50    td.move {
51        width: 5em;
52    }
53
54    tr.moving {
55        background-color: $red !important;
56
57        td, td a {
58            background-color: $red !important;
59            color: white !important;
60        }
61    }
62
63} //table.resourcesTable
64
65table.creatorsTable {
66
67    width: 800px;
68    table-layout: fixed;
69
70    td {
71        width: 252px;
72        overflow: hidden;
73    }
74} //table.creatorsTable
75
76table.collectionsTable {
77
78    width: 100%;
79    table-layout: fixed;
80    position: static !important;
81
82    th, td {
83        vertical-align: top;
84        padding-left: .5em;
85
86        &.state {
87            width: 5em;
88        }
89
90        &.type {
91            width: 7em;
92        }
93
94        &.created {
95            width: 7em;
96        }
97
98        &.action {
99            width: 2em;
100        }
101    }
102
103    td.name {
104
105        width: auto;
106       
107        div.name {
108            padding-left: 16px;
109            /* icon from GLYPHICONS.com */
110            background-image: url('../icons/glyphicons_367_expand.png');
111            background-size: $iconsize;
112            background-repeat: no-repeat;
113            background-position: center left;
114            cursor: pointer;
115
116            &:hover {
117                color: $hyperlink_text_emphasized_color;
118                background-color: inherit;
119            }
120
121            &.detailsShown {
122                padding-left: 16px;
123                /* icon from GLYPHICONS.com */
124                background-image: url('../icons/glyphicons_369_collapse_top.png');
125                background-size: $iconsize;
126                background-repeat: no-repeat;
127                background-position: center left;
128            }
129
130            &.noDetails{
131                background-image: none;
132            }
133
134        }
135
136        div.details {
137            margin-left: 16px;
138            margin-right: -248px;
139            width: 964px;
140        }
141
142        div.desc {
143            text-align: justify;
144            padding: 4px 0 0 0;
145        }
146
147        div.actions {
148            margin: 4px 0 2px 0;
149        }
150    } //td.name
151
152
153    &.public td.action span,
154    &.private td.action div.popupTrigger span {
155        display: none;
156    }
157
158    &.public td.action a, &.private td.action div.popupTrigger {
159        display: block;
160        width: $iconsize;
161        height: $iconsize;
162        background: transparent no-repeat center center;
163        background-size: $iconsize;
164        margin-right: 2px;
165        margin-top: 3px;
166    }
167
168    &.public td.action a {
169        /* icon from GLYPHICONS.com */
170        background-image: url('../icons/glyphicons_236_zoom_in.png');
171    }
172
173    &.private td.action div.popupTrigger {
174        /* icon from GLYPHICONS.com */
175        background-image: url('../icons/glyphicons_136_cogwheel.png');
176    }
177   
178    a:visited {
179        color: $hyperlink;
180    }
181   
182    a:hover, a:active {
183        color: $hyperlink_text_emphasized_color;
184    }
185   
186} //table.collectionsTable
187
188/* ORDERING */
189
190tr.headers {
191
192    a.wicket_orderNone, a.wicket_orderUp, a.wicket_orderDown {       
193        padding-right: 18px;
194        background-color: transparent;
195        background-repeat: no-repeat;
196        background-position: center right;
197    }
198
199    a.wicket_orderNone {
200        background-image: url('../icons/sort_both.png');
201    }
202
203    a.wicket_orderUp {
204        background-image: url('../icons/sort_asc.png');
205    }
206
207    a.wicket_orderDown {
208        background-image: url('../icons/sort_desc.png');
209    }
210}
Note: See TracBrowser for help on using the repository browser.