You are here

itweak_upload.css in iTweak Upload 7.3

Same filename and directory in other branches
  1. 6.2 itweak_upload.css

itweak_upload CSS file.

Colors: #DDD - hover file item bg, list borders, image border #000 - hover image border #777 - file details font #F0F0F0 - Inline file item #AAAAAA - Inline file item border #C8C8C8 - Inline file item shadow red - hover remove link font green - hover insert link font

!important is used in some styles to forward-override defaults in themes 3 times - width 5 times - padding 5 times - margin 3 times - background 4 times - border 3 times - text-decoration total: 61 times use !important in your theme customizations (local.css or similar) to re-theme.

File

itweak_upload.css
View source
  1. /**
  2. * @file
  3. * itweak_upload CSS file.
  4. *
  5. * Colors:
  6. * #DDD - hover file item bg, list borders, image border
  7. * #000 - hover image border
  8. * #777 - file details font
  9. * #F0F0F0 - Inline file item
  10. * #AAAAAA - Inline file item border
  11. * #C8C8C8 - Inline file item shadow
  12. * red - hover remove link font
  13. * green - hover insert link font
  14. *
  15. * !important is used in some styles to forward-override defaults in themes
  16. * 3 times - width
  17. * 5 times - padding
  18. * 5 times - margin
  19. * 3 times - background
  20. * 4 times - border
  21. * 3 times - text-decoration
  22. * total: 61 times
  23. * use !important in your theme customizations (local.css or similar) to re-theme.
  24. */
  25. #upload-attachments {
  26. margin: 10px 0 0;
  27. }
  28. #edit-upload-wrapper {
  29. background: transparent url('icons/attachment.png') no-repeat left center;
  30. padding-left: 30px;
  31. }
  32. #upload-attachments {
  33. background: transparent;
  34. /* The following only provides separation between rows */
  35. border-collapse: separate !important;
  36. border-spacing: 0 6px;
  37. border: none;
  38. }
  39. #upload-attachments tr,
  40. #upload-attachments th,
  41. #upload-attachments td {
  42. background: transparent;
  43. border: none;
  44. }
  45. #attach-wrapper tbody {
  46. border: none;
  47. }
  48. #attach-wrapper .list {
  49. white-space: nowrap;
  50. }
  51. #attach-wrapper .file a {
  52. cursor: pointer;
  53. font-size: 85%;
  54. margin-left: 1em;
  55. }
  56. #attach-wrapper .file a:hover {
  57. background-color: #DDD;
  58. }
  59. #attach-wrapper .file a.itu-remove:hover {
  60. color: red;
  61. }
  62. #attach-wrapper .itu-insert .details,
  63. #attach-wrapper .list .details, /* align vertical pos. of insert and list cells */
  64. #attach-wrapper .file .details {
  65. color: #777;
  66. display: block;
  67. font-size: 85%;
  68. }
  69. #attach-wrapper .file input {
  70. margin-top: -2px; /* compensate for vertical shift - aligns v.pos. of rename/cancel/remove links */
  71. }
  72. #attach-wrapper .file {
  73. width: 100%;
  74. padding-left: 1em;
  75. }
  76. /* Insert link & selector */
  77. #attach-wrapper td.itu-insert a {
  78. cursor: pointer;
  79. font-size: 85%;
  80. margin-right: 0.5em;
  81. }
  82. #attach-wrapper td.itu-insert a:hover {
  83. background-color: #DDD;
  84. }
  85. #attach-wrapper td.itu-insert a.itu-insert:hover {
  86. color: green;
  87. }
  88. #attach-wrapper td.itu-insert select {
  89. font-size: 85%;
  90. }
  91. /* Insert File CSS Sprites */
  92. a.itu-insert-file {
  93. border: 1px solid #AAAAAA;
  94. -moz-border-radius: 4px;
  95. border-radius: 4px;
  96. -webkit-box-shadow: -2px 2px 2px 0 #C8C8C8;
  97. -moz-box-shadow: -2px 2px 2px 0 #C8C8C8;
  98. box-shadow: -2px 2px 2px 0 #C8C8C8;
  99. display: inline-block;
  100. padding: 2px 6px 2px 24px !important;
  101. margin: 0 3px !important;
  102. min-width: 80px;
  103. height: 18px;
  104. min-height: 18px;
  105. width: auto;
  106. font-weight: bold;
  107. text-decoration: none !important;
  108. }
  109. /* CSS Sprites */
  110. #attach-wrapper .mime {
  111. font-size: 14px;
  112. padding: 0;
  113. width: 32px;
  114. min-width: 32px;
  115. }
  116. /* On view */
  117. table.itu-attachment-list tr,
  118. table.itu-attachment-list th,
  119. table.itu-attachment-list td {
  120. padding: 0;
  121. margin: 0;
  122. background: none;
  123. border: none;
  124. width: 0;
  125. height: 0;
  126. }
  127. /* Wrapper to fix table.itu-attachment-list width inside advanced forum frame */
  128. .itu-attachments {
  129. width: auto;
  130. padding: 0;
  131. }
  132. table.itu-attachment-list {
  133. margin: 0;
  134. border: none;
  135. /* The following is required to apply borders to tbody */
  136. border-collapse: collapse !important;
  137. width: 100% !important;
  138. *border: 1px solid #DDD !important; /* IE6, IE7 fix of no border on tbody */
  139. }
  140. table.itu-attachment-list.withoutstats thead {
  141. display: none;
  142. }
  143. table.itu-attachment-list.withstats thead {
  144. display: table-header-group;
  145. text-wrap: none;
  146. white-space: nowrap;
  147. background: none;
  148. border: none;
  149. }
  150. table.itu-attachment-list.withstats thead .preview,
  151. table.itu-attachment-list.withstats thead .file {
  152. opacity: 0;
  153. filter: alpha(opacity=0); /* IE6 */
  154. -moz-opacity: 0;
  155. -khtml-opacity: 0;
  156. }
  157. table.itu-attachment-list thead .download_count,
  158. table.itu-attachment-list thead .download_last,
  159. table.itu-attachment-list thead .download_stats {
  160. text-align: left;
  161. }
  162. table.itu-attachment-list thead th {
  163. border: none;
  164. }
  165. table.itu-attachment-list tbody {
  166. border: 1px solid #DDD !important;
  167. background: none;
  168. }
  169. table.itu-attachment-list tr {
  170. height: auto;
  171. background: none !important;
  172. }
  173. table.itu-attachment-list tbody td {
  174. padding-top: 3px;
  175. padding-bottom: 3px;
  176. }
  177. table.itu-attachment-list tbody tr:hover {
  178. background: #DDD !important;
  179. }
  180. table.itu-attachment-list .file {
  181. width: 80%;
  182. *width: auto; /* IE6, IE7 only */
  183. }
  184. table.itu-attachment-list .download_count {
  185. padding-right: 1em;
  186. padding-left: 1em;
  187. text-align: right;
  188. width: auto;
  189. }
  190. table.itu-attachment-list .download_last {
  191. padding-right: 1em;
  192. width: auto;
  193. text-wrap: none;
  194. white-space: nowrap;
  195. }
  196. table.itu-attachment-list .size {
  197. padding-right: 1em;
  198. width: auto;
  199. text-align: right;
  200. text-wrap: none;
  201. white-space: nowrap;
  202. }
  203. /* CSS Sprites */
  204. table.itu-attachment-list .mime {
  205. padding: 0 7px;
  206. margin: 0;
  207. width: 16px;
  208. min-width: 16px;
  209. height: 22px;
  210. min-height: 22px;
  211. }
  212. /* Styles for Image Attachments slider */
  213. /* div.itu-attachment-images > div.item-list > ul.itu-attachment-thumbs > li.first/last > div.itu_attachment-thumb > a > img */
  214. .itu-attachment-images * {
  215. margin: 0;
  216. padding: 0;
  217. }
  218. .itu-attachment-images {
  219. /* clear: both; */
  220. border: 1px solid #DDD;
  221. margin: 1em 0;
  222. padding: 5px 0 5px 5px;
  223. overflow-x: auto;
  224. }
  225. /* Special margin fixes for advanced forum wrapper */
  226. .forum-post-wrapper .itu-attachment-images {
  227. margin-right: 1em;
  228. }
  229. .forum-post-wrapper .itu-attachments {
  230. padding-right: 1em;
  231. }
  232. .itu-attachment-images .item-list {
  233. margin: 0 !important;
  234. padding: 0 !important;
  235. }
  236. .itu-attachment-images ul {
  237. white-space:nowrap;
  238. list-style: none;
  239. margin: 0 !important;
  240. padding: 0 !important;
  241. }
  242. .itu-attachment-images ul li {
  243. display: inline;
  244. list-style: none;
  245. /* Force clean list styling */
  246. background: none !important;
  247. margin: 0 !important;
  248. padding: 0 !important;
  249. }
  250. .itu-attachment-images ul li.last {
  251. padding-right: 5px !important;
  252. }
  253. /* Thumbnails styling in all views */
  254. .itu-attachment-thumb {
  255. padding: 0;
  256. margin: 0;
  257. display: inline;
  258. text-align: center;
  259. vertical-align: baseline;
  260. }
  261. .itu-attachment-thumb a {
  262. padding: 0;
  263. margin: 0;
  264. text-decoration: none;
  265. display: block;
  266. height: auto;
  267. vertical-align: baseline;
  268. }
  269. .itu-attachment-thumb a img {
  270. padding: 0;
  271. margin: 0;
  272. border: 2px solid #DDD;
  273. vertical-align: middle;
  274. }
  275. .itu-attachment-thumb a:hover img {
  276. border: 2px solid #000;
  277. }
  278. /* Revert block to inline for gallery */
  279. .itu-attachment-images .itu-attachment-thumb a {
  280. display: inline;
  281. }
  282. /* Progress bar styling */
  283. .ahah-progress {
  284. width: 100% !important;
  285. }
  286. .ahah-progress-bar {
  287. width: 100% !important;
  288. margin: 0 !important;
  289. }
  290. /* jCarousel Lite Prev/Next buttons */
  291. .jcarousellite {
  292. position: relative;
  293. padding-left: 33px;
  294. padding-right: 33px;
  295. }
  296. .jcarousellite .item-list {
  297. display: block;
  298. }
  299. .itu-attachment-jcarousellite-prev,
  300. .itu-attachment-jcarousellite-next {
  301. display: block;
  302. position: absolute;
  303. top: 0px;
  304. width: 31px;
  305. height: 100%;
  306. text-decoration: none !important;
  307. }
  308. .itu-attachment-jcarousellite-prev {
  309. background: url(icons/imageNavLeft.gif) no-repeat 2px 50%;
  310. left: 0;
  311. }
  312. .itu-attachment-jcarousellite-next {
  313. background: url(icons/imageNavRight.gif) no-repeat 2px 50%;
  314. right: 0;
  315. }
  316. .itu-attachment-jcarousellite-prev:hover {
  317. background-position: -52px 50%;
  318. background-color: #DDD;
  319. }
  320. .itu-attachment-jcarousellite-next:hover {
  321. background-position: -52px 50%;
  322. background-color: #DDD;
  323. }
  324. .itu-attachment-jcarousellite-prev:active {
  325. background-position: -106px 50%;
  326. }
  327. .itu-attachment-jcarousellite-next:active {
  328. background-position: -106px 50%;
  329. }
  330. /* Fixing jCarousel Lite spacing. */
  331. .jcarousellite ul div { margin: 0 4px 0 0; }
  332. /* div with view uploaded files forbidden message */
  333. .itu-attachment-forbidden {
  334. border: 1px solid #DDD;
  335. background: none;
  336. padding: 0 5px;
  337. margin: 0 0 1em;
  338. }