Commit | Line | Data |
---|---|---|
f0bc263f MW |
1 | /* attachment thumbnail list */ |
2 | .attachmentThumbnailList, .attachmentFileList { | |
ee69ad79 | 3 | padding-top: @wcfGapSmall !important; |
f0bc263f MW |
4 | |
5 | > fieldset { | |
6 | padding: 0; | |
7 | ||
8 | > legend { | |
9 | border-bottom: 0; | |
10 | font-size: @wcfTitleFontSize; | |
ee69ad79 | 11 | padding-bottom: @wcfGapSmall; |
f0bc263f MW |
12 | } |
13 | } | |
14 | } | |
15 | ||
16 | .attachmentThumbnailList { | |
ee69ad79 | 17 | padding-bottom: @wcfGapSmall !important; |
f0bc263f MW |
18 | |
19 | > fieldset { | |
20 | > ul { | |
21 | padding: 0 @wcfGapSmall+@wcfGapTiny 0 @wcfGapTiny; | |
22 | ||
23 | > li { | |
24 | margin: 0 0 @wcfGapMedium @wcfGapSmall; | |
d14cb9bd | 25 | vertical-align: top; |
f0bc263f MW |
26 | } |
27 | } | |
28 | } | |
29 | } | |
30 | ||
31 | .attachmentFileList { | |
32 | > fieldset > ul > li { | |
33 | &:not(:first-child) { | |
34 | margin-top: @wcfGapTiny; | |
35 | } | |
36 | } | |
37 | } | |
38 | ||
39 | .attachmentThumbnail { | |
40 | background-color: white; | |
41 | display: inline-block; | |
8e40fc29 MS |
42 | min-height: ~"@{wcf_option_attachment_thumbnail_height}px"; |
43 | min-width: ~"@{wcf_option_attachment_thumbnail_width}px"; | |
f0bc263f | 44 | position: relative; |
f0bc263f MW |
45 | |
46 | > a { | |
47 | display: inline-block; | |
8e40fc29 MS |
48 | min-height: ~"@{wcf_option_attachment_thumbnail_height}px"; |
49 | min-width: ~"@{wcf_option_attachment_thumbnail_width}px"; | |
f0bc263f MW |
50 | } |
51 | ||
52 | > div { | |
53 | background-color: rgba(0, 0, 0, 0.6); | |
54 | bottom: 0; | |
55 | color: #fff; | |
56 | position: absolute; | |
57 | width: 100%; | |
58 | padding: @wcfGapSmall 0; | |
59 | ||
60 | > p, | |
61 | > small { | |
62 | margin: 0 @wcfGapSmall; | |
63 | overflow: hidden; | |
64 | text-overflow: ellipsis; | |
65 | white-space: nowrap; | |
18005b5f | 66 | word-wrap: normal; |
f0bc263f MW |
67 | } |
68 | ||
69 | > small { | |
70 | display: block; | |
71 | height: 0; | |
72 | ||
73 | .transition(height, .25s, ease-out); | |
74 | } | |
75 | } | |
76 | ||
77 | &:hover { | |
78 | > div > small { | |
79 | height: 1.27em; | |
80 | } | |
81 | } | |
82 | } | |
83 | ||
84 | /* attachment form */ | |
85 | .formAttachmentList { | |
86 | border-bottom: 1px solid @wcfContainerBorderColor; | |
5bc2753a AE |
87 | margin-bottom: @wcfGapSmall; |
88 | padding-bottom: @wcfGapMedium; | |
89 | ||
f0bc263f | 90 | > li { |
5bc2753a | 91 | min-height: 64px; |
f0bc263f MW |
92 | |
93 | > div { | |
f0bc263f | 94 | > div { |
f0bc263f | 95 | margin-right: @wcfGapSmall; |
d6845ae6 MW |
96 | |
97 | > p { | |
98 | overflow: hidden; | |
99 | text-overflow: ellipsis; | |
100 | white-space: nowrap; | |
101 | ||
102 | > a { | |
103 | display: block; | |
104 | overflow: hidden; | |
105 | text-overflow: ellipsis; | |
106 | white-space: nowrap; | |
107 | } | |
108 | } | |
109 | } | |
110 | ||
111 | > ul { | |
5bc2753a AE |
112 | margin-top: @wcfGapSmall; |
113 | ||
d6845ae6 MW |
114 | > li { |
115 | display: inline-block; | |
5bc2753a AE |
116 | |
117 | > span.jsDeleteButton { | |
118 | margin-right: @wcfGapMedium; | |
119 | } | |
d6845ae6 | 120 | } |
f0bc263f MW |
121 | } |
122 | } | |
123 | } | |
9e07859e MW |
124 | |
125 | &.sortableList { | |
126 | list-style-type: none; | |
127 | margin-left: 0; | |
128 | } | |
129 | } | |
130 | ||
131 | .formAttachmentContent { | |
132 | .jsButtonAttachmentInsertAll { | |
133 | vertical-align: baseline; | |
134 | } | |
135 | ||
136 | .uploadButton { | |
137 | vertical-align: bottom; | |
138 | } | |
139 | ||
140 | > dl { | |
141 | div + small { | |
ee69ad79 | 142 | margin-top: @wcfGapSmall !important; |
9e07859e MW |
143 | } |
144 | } | |
f0bc263f MW |
145 | } |
146 | ||
918035a1 MW |
147 | @media only screen and (min-width: 801px) { |
148 | .formAttachmentList { | |
149 | > li { | |
150 | float: left; | |
5bc2753a | 151 | width: 50%; |
918035a1 MW |
152 | } |
153 | } | |
154 | } | |
155 | ||
5bc2753a AE |
156 | .box64 .attachmentTinyThumbnail { |
157 | max-height: 64px; | |
158 | max-width: 64px; | |
f0bc263f | 159 | } |