1 /* This file is part of Indico.
2 * Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN).
4 * Indico is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 3 of the
7 * License, or (at your option) any later version.
9 * Indico is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with Indico; if not, see <http://www.gnu.org/licenses/>.
18 @import 'base/palette';
19 @import 'base/defaults';
20 @import 'base/utilities';
22 @import 'compass/css3/user-interface';
27 vertical-align: middle;
31 @extend %attachment-line;
44 border-collapse: collapse;
49 padding: 0.2rem 0.3rem;
51 @include icon-before('icon-none');
58 text-overflow: ellipsis;
60 display: inline-block;
62 > .custom-protection:before {
63 @extend %attachment-icon;
69 @extend %attachment-line;
74 &:first-child:before, > a, > span {
83 @extend %attachment-icon;
97 &.icon-remove:hover:before {
100 &.icon-edit:hover:before,
101 &.icon-file-download:hover:before {
107 &:hover:not(.empty) > td {
108 background-color: $pastel-blue;
110 @include border-top-left-radius(2px);
111 @include border-bottom-left-radius(2px);
114 @include border-top-right-radius(2px);
115 @include border-bottom-right-radius(2px);
129 @include user-select(none);
134 @include icon-before('icon-arrow-down');
135 @include border-top-left-radius(2px);
136 @include border-bottom-left-radius(2px);
140 @include transition(transform 0.15s ease-out);
142 -webkit-transform-origin: 50% 51%; // improve blurry text on rotate with chrome
145 @include icon-before('icon-folder-open');
149 @include border-top-right-radius(2px);
152 &.collapsed > td:first-child {
154 @include icon-before('icon-folder');
157 @include rotate(-90deg);
162 padding: 0 0 0 2.8em;
163 &:first-child:before {
164 display: none; // no icon space for nested files
167 @include border-radius(2px);
169 background-color: $light-gray;
170 tr > td:first-child:before {
171 display: none; // no icon space for nested files
184 border-bottom: 2px solid $red;
186 color: $red !important;
189 border-bottom-color: $red !important;
193 @mixin download-button($color) {
195 color: $color !important;
197 &:hover:not(.disabled):not(disabled) {
198 color: lighten($color, 5%) !important;
202 .attachment.icon-file-pdf {
203 @include download-button($red);
206 .attachment.icon-file-excel {
207 @include download-button($green);
210 .attachment.icon-file-word {
211 @include download-button($dark-blue);
214 .attachment.icon-file-image {
215 @include download-button($blue);
218 .attachment.icon-calendar {
219 @include download-button($dark-yellow);
222 .attachment.icon-file-presentation {
223 @include download-button($yellow);
227 .folder .attachment {
228 display: inline-block;
232 padding-left: 0.2em !important;
234 text-overflow: ellipsis;
238 text-overflow: ellipsis;
242 .folder .i-button.attachment,
243 .folder .attachments {
244 display: inline-block;
247 display: inline-block;
254 @extend %protected-colors;
258 padding-left: 0.7em !important;
262 display: inline-block;
266 @extend %protected-colors;
268 border-bottom-color: $red !important;
274 padding: 0.1em 0.2em !important;
286 .folder-main, div.main > .attachments-package {
291 background-color: $light-gray;