You are here

itweak_upload.css in iTweak Upload 6.2

Same filename and directory in other branches
  1. 7.3 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 19 times - background mime 32x32 19 times - background mime 16x16 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. * 19 times - background mime 32x32
  20. * 19 times - background mime 16x16
  21. * 3 times - background
  22. * 4 times - border
  23. * 3 times - text-decoration
  24. * total: 61 times
  25. * use !important in your theme customizations (local.css or similar) to re-theme.
  26. */
  27. #upload-attachments {
  28. margin: 10px 0 0;
  29. }
  30. #edit-upload-wrapper {
  31. background: transparent url('images/attachment.png') no-repeat left center;
  32. padding-left: 30px;
  33. }
  34. #upload-attachments {
  35. background: transparent;
  36. /* The following only provides separation between rows */
  37. border-collapse: separate !important;
  38. border-spacing: 0 6px;
  39. border: none;
  40. }
  41. #upload-attachments tr,
  42. #upload-attachments th,
  43. #upload-attachments td {
  44. background: transparent;
  45. border: none;
  46. }
  47. #attach-wrapper tbody {
  48. border: none;
  49. }
  50. #attach-wrapper .list {
  51. white-space: nowrap;
  52. }
  53. #attach-wrapper .file a {
  54. cursor: pointer;
  55. font-size: 85%;
  56. margin-left: 1em;
  57. }
  58. #attach-wrapper .file a:hover {
  59. background-color: #DDD;
  60. }
  61. #attach-wrapper .file a.itu-remove:hover {
  62. color: red;
  63. }
  64. #attach-wrapper .itu-insert .details,
  65. #attach-wrapper .list .details, /* align vertical pos. of insert and list cells */
  66. #attach-wrapper .file .details {
  67. color: #777;
  68. display: block;
  69. font-size: 85%;
  70. }
  71. #attach-wrapper .file input {
  72. margin-top: -2px; /* compensate for vertical shift - aligns v.pos. of rename/cancel/remove links */
  73. }
  74. #attach-wrapper .file {
  75. width: 100%;
  76. padding-left: 1em;
  77. }
  78. /* Insert link & selector */
  79. #attach-wrapper td.itu-insert a {
  80. cursor: pointer;
  81. font-size: 85%;
  82. margin-right: 0.5em;
  83. }
  84. #attach-wrapper td.itu-insert a:hover {
  85. background-color: #DDD;
  86. }
  87. #attach-wrapper td.itu-insert a.itu-insert:hover {
  88. color: green;
  89. }
  90. #attach-wrapper td.itu-insert select {
  91. font-size: 85%;
  92. }
  93. /* Insert File CSS Sprites */
  94. a.itu-insert-file {
  95. background: #F0F0F0 url('images/mime-16.png') no-repeat 4px 0;
  96. border: 1px solid #AAAAAA;
  97. -moz-border-radius: 4px;
  98. border-radius: 4px;
  99. -webkit-box-shadow: -2px 2px 2px 0 #C8C8C8;
  100. -moz-box-shadow: -2px 2px 2px 0 #C8C8C8;
  101. box-shadow: -2px 2px 2px 0 #C8C8C8;
  102. display: inline-block;
  103. padding: 2px 6px 2px 24px !important;
  104. margin: 0 3px !important;
  105. min-width: 80px;
  106. height: 18px;
  107. min-height: 18px;
  108. width: auto;
  109. font-weight: bold;
  110. text-decoration: none !important;
  111. }
  112. a.itu-insert-file:hover,
  113. a.itu-insert-file:active {
  114. background-color: #DDD;
  115. text-decoration: none !important;
  116. }
  117. /* Mime types */
  118. .itu-insert-file.mime-ai {
  119. background-position: 4px -32px !important;
  120. }
  121. .itu-insert-file.mime-odt,
  122. .itu-insert-file.mime-doc,
  123. .itu-insert-file.mime-docx {
  124. background-position: 4px -64px !important;
  125. }
  126. .itu-insert-file.mime-eps {
  127. background-position: 4px -96px !important;
  128. }
  129. .itu-insert-file.mime-gif {
  130. background-position: 4px -192px !important;
  131. }
  132. .itu-insert-file.mime-gz {
  133. background-position: 4px -128px !important;
  134. }
  135. .itu-insert-file.mime-id,
  136. .itu-insert-file.mime-indd {
  137. background-position: 4px -160px !important;
  138. }
  139. .itu-insert-file.mime-jpg,
  140. .itu-insert-file.mime-jpeg {
  141. background-position: 4px -192px !important;
  142. }
  143. .itu-insert-file.mime-pdf {
  144. background-position: 4px -224px !important;
  145. }
  146. .itu-insert-file.mime-png {
  147. background-position: 4px -256px !important;
  148. }
  149. .itu-insert-file.mime-odp,
  150. .itu-insert-file.mime-pps,
  151. .itu-insert-file.mime-ppt,
  152. .itu-insert-file.mime-pptx {
  153. background-position: 4px -288px !important;
  154. }
  155. .itu-insert-file.mime-ps {
  156. background-position: 4px -320px !important;
  157. }
  158. .itu-insert-file.mime-psd {
  159. background-position: 4px -352px !important;
  160. }
  161. .itu-insert-file.mime-mp4,
  162. .itu-insert-file.mime-avi,
  163. .itu-insert-file.mime-mov {
  164. background-position: 4px -384px !important;
  165. }
  166. .itu-insert-file.mime-rar {
  167. background-position: 4px -416px !important;
  168. }
  169. .itu-insert-file.mime-svg {
  170. background-position: 4px -448px !important;
  171. }
  172. .itu-insert-file.mime-swf {
  173. background-position: 4px -480px !important;
  174. }
  175. .itu-insert-file.mime-tar {
  176. background-position: 4px -512px !important;
  177. }
  178. .itu-insert-file.mime-ods,
  179. .itu-insert-file.mime-xls,
  180. .itu-insert-file.mime-xlsx {
  181. background-position: 4px -544px !important;
  182. }
  183. .itu-insert-file.mime-zip {
  184. background-position: 4px -576px !important;
  185. }
  186. /* CSS Sprites */
  187. #attach-wrapper .mime {
  188. background: transparent url('images/mime-32.png') no-repeat center 0;
  189. font-size: 14px;
  190. padding: 0;
  191. width: 32px;
  192. min-width: 32px;
  193. }
  194. /* Mime types */
  195. /* Note: Firefox 3 does not support background-position-y since it is not W3C standard */
  196. #attach-wrapper .mime-ai .mime {
  197. background-position: center -64px;
  198. }
  199. #attach-wrapper .mime-odt .mime,
  200. #attach-wrapper .mime-doc .mime,
  201. #attach-wrapper .mime-docx .mime {
  202. background-position: center -128px;
  203. }
  204. #attach-wrapper .mime-eps .mime {
  205. background-position: center -192px;
  206. }
  207. #attach-wrapper .mime-gif .mime {
  208. background-position: center -384px;
  209. }
  210. #attach-wrapper .mime-gz .mime {
  211. background-position: center -256px;
  212. }
  213. #attach-wrapper .mime-id .mime,
  214. #attach-wrapper .mime-indd .mime {
  215. background-position: center -320px;
  216. }
  217. #attach-wrapper .mime-jpg .mime,
  218. #attach-wrapper .mime-jpeg .mime {
  219. background-position: center -384px;
  220. }
  221. #attach-wrapper .mime-pdf .mime {
  222. background-position: center -448px;
  223. }
  224. #attach-wrapper .mime-png .mime {
  225. background-position: center -512px;
  226. }
  227. #attach-wrapper .mime-odp .mime,
  228. #attach-wrapper .mime-pps .mime,
  229. #attach-wrapper .mime-ppt .mime,
  230. #attach-wrapper .mime-pptx .mime {
  231. background-position: center -576px;
  232. }
  233. #attach-wrapper .mime-ps .mime {
  234. background-position: center -640px;
  235. }
  236. #attach-wrapper .mime-psd .mime {
  237. background-position: center -704px;
  238. }
  239. #attach-wrapper .mime-mp4 .mime,
  240. #attach-wrapper .mime-avi .mime,
  241. #attach-wrapper .mime-mov .mime {
  242. background-position: center -768px;
  243. }
  244. #attach-wrapper .mime-rar .mime {
  245. background-position: center -832px;
  246. }
  247. #attach-wrapper .mime-svg .mime {
  248. background-position: center -896px;
  249. }
  250. #attach-wrapper .mime-swf .mime {
  251. background-position: center -960px;
  252. }
  253. #attach-wrapper .mime-tar .mime {
  254. background-position: center -1024px;
  255. }
  256. #attach-wrapper .mime-ods .mime,
  257. #attach-wrapper .mime-xls .mime,
  258. #attach-wrapper .mime-xlsx .mime {
  259. background-position: center -1088px;
  260. }
  261. #attach-wrapper .mime-zip .mime {
  262. background-position: center -1152px;
  263. }
  264. /* On view */
  265. table.itu-attachment-list tr,
  266. table.itu-attachment-list th,
  267. table.itu-attachment-list td {
  268. padding: 0;
  269. margin: 0;
  270. background: none;
  271. border: none;
  272. width: 0;
  273. height: 0;
  274. }
  275. /* Wrapper to fix table.itu-attachment-list width inside advanced forum frame */
  276. .itu-attachments {
  277. width: auto;
  278. padding: 0;
  279. }
  280. table.itu-attachment-list {
  281. margin: 0;
  282. border: none;
  283. /* The following is required to apply borders to tbody */
  284. border-collapse: collapse !important;
  285. width: 100% !important;
  286. *border: 1px solid #DDD !important; /* IE6, IE7 fix of no border on tbody */
  287. }
  288. table.itu-attachment-list.withoutstats thead {
  289. display: none;
  290. }
  291. table.itu-attachment-list.withstats thead {
  292. display: table-header-group;
  293. text-wrap: none;
  294. white-space: nowrap;
  295. background: none;
  296. border: none;
  297. }
  298. table.itu-attachment-list.withstats thead .preview,
  299. table.itu-attachment-list.withstats thead .file {
  300. opacity: 0;
  301. filter: alpha(opacity=0); /* IE6 */
  302. -moz-opacity: 0;
  303. -khtml-opacity: 0;
  304. }
  305. table.itu-attachment-list thead .download_count,
  306. table.itu-attachment-list thead .download_last,
  307. table.itu-attachment-list thead .download_stats {
  308. text-align: left;
  309. }
  310. table.itu-attachment-list thead th {
  311. border: none;
  312. }
  313. table.itu-attachment-list tbody {
  314. border: 1px solid #DDD !important;
  315. background: none;
  316. }
  317. table.itu-attachment-list tr {
  318. height: auto;
  319. background: none !important;
  320. }
  321. table.itu-attachment-list tbody td {
  322. padding-top: 3px;
  323. padding-bottom: 3px;
  324. }
  325. table.itu-attachment-list tbody tr:hover {
  326. background: #DDD !important;
  327. }
  328. table.itu-attachment-list .file {
  329. width: 80%;
  330. *width: auto; /* IE6, IE7 only */
  331. }
  332. table.itu-attachment-list .download_count {
  333. padding-right: 1em;
  334. padding-left: 1em;
  335. text-align: right;
  336. width: auto;
  337. }
  338. table.itu-attachment-list .download_last {
  339. padding-right: 1em;
  340. width: auto;
  341. text-wrap: none;
  342. white-space: nowrap;
  343. }
  344. table.itu-attachment-list .size {
  345. padding-right: 1em;
  346. width: auto;
  347. text-align: right;
  348. text-wrap: none;
  349. white-space: nowrap;
  350. }
  351. /* CSS Sprites */
  352. table.itu-attachment-list .mime {
  353. background: transparent url('images/mime-16.png') no-repeat center 0;
  354. padding: 0 7px;
  355. margin: 0;
  356. width: 16px;
  357. min-width: 16px;
  358. height: 22px;
  359. min-height: 22px;
  360. }
  361. /* Mime types */
  362. .itu-attachment-list .mime-ai {
  363. background-position: center -32px !important;
  364. }
  365. .itu-attachment-list .mime-odt,
  366. .itu-attachment-list .mime-doc,
  367. .itu-attachment-list .mime-docx {
  368. background-position: center -64px !important;
  369. }
  370. .itu-attachment-list .mime-eps {
  371. background-position: center -96px !important;
  372. }
  373. .itu-attachment-list .mime-gif {
  374. background-position: center -192px !important;
  375. }
  376. .itu-attachment-list .mime-gz {
  377. background-position: center -128px !important;
  378. }
  379. .itu-attachment-list .mime-id,
  380. .itu-attachment-list .mime-indd {
  381. background-position: center -160px !important;
  382. }
  383. .itu-attachment-list .mime-jpg,
  384. .itu-attachment-list .mime-jpeg {
  385. background-position: center -192px !important;
  386. }
  387. .itu-attachment-list .mime-pdf {
  388. background-position: center -224px !important;
  389. }
  390. .itu-attachment-list .mime-png {
  391. background-position: center -256px !important;
  392. }
  393. .itu-attachment-list .mime-odp,
  394. .itu-attachment-list .mime-pps,
  395. .itu-attachment-list .mime-ppt,
  396. .itu-attachment-list .mime-pptx {
  397. background-position: center -288px !important;
  398. }
  399. .itu-attachment-list .mime-ps {
  400. background-position: center -320px !important;
  401. }
  402. .itu-attachment-list .mime-psd {
  403. background-position: center -352px !important;
  404. }
  405. .itu-attachment-list .mime-mp4,
  406. .itu-attachment-list .mime-avi,
  407. .itu-attachment-list .mime-mov {
  408. background-position: center -384px !important;
  409. }
  410. .itu-attachment-list .mime-rar {
  411. background-position: center -416px !important;
  412. }
  413. .itu-attachment-list .mime-svg {
  414. background-position: center -448px !important;
  415. }
  416. .itu-attachment-list .mime-swf {
  417. background-position: center -480px !important;
  418. }
  419. .itu-attachment-list .mime-tar {
  420. background-position: center -512px !important;
  421. }
  422. .itu-attachment-list .mime-ods,
  423. .itu-attachment-list .mime-xls,
  424. .itu-attachment-list .mime-xlsx {
  425. background-position: center -544px !important;
  426. }
  427. .itu-attachment-list .mime-zip {
  428. background-position: center -576px !important;
  429. }
  430. /* Styles for Image Attachments slider */
  431. /* div.itu-attachment-images > div.item-list > ul.itu-attachment-thumbs > li.first/last > div.itu_attachment-thumb > a > img */
  432. .itu-attachment-images * {
  433. margin: 0;
  434. padding: 0;
  435. }
  436. .itu-attachment-images {
  437. /* clear: both; */
  438. border: 1px solid #DDD;
  439. margin: 1em 0;
  440. padding: 5px 0 5px 5px;
  441. overflow-x: auto;
  442. }
  443. /* Special margin fixes for advanced forum wrapper */
  444. .forum-post-wrapper .itu-attachment-images {
  445. margin-right: 1em;
  446. }
  447. .forum-post-wrapper .itu-attachments {
  448. padding-right: 1em;
  449. }
  450. .itu-attachment-images .item-list {
  451. margin: 0 !important;
  452. padding: 0 !important;
  453. }
  454. .itu-attachment-images ul {
  455. white-space:nowrap;
  456. list-style: none;
  457. margin: 0 !important;
  458. padding: 0 !important;
  459. }
  460. .itu-attachment-images ul li {
  461. display: inline;
  462. list-style: none;
  463. /* Force clean list styling */
  464. background: none !important;
  465. margin: 0 !important;
  466. padding: 0 !important;
  467. }
  468. .itu-attachment-images ul li.last {
  469. padding-right: 5px !important;
  470. }
  471. /* Thumbnails styling in all views */
  472. .itu-attachment-thumb {
  473. padding: 0;
  474. margin: 0;
  475. display: inline;
  476. text-align: center;
  477. vertical-align: baseline;
  478. }
  479. .itu-attachment-thumb a {
  480. padding: 0;
  481. margin: 0;
  482. text-decoration: none;
  483. display: block;
  484. height: auto;
  485. vertical-align: baseline;
  486. }
  487. .itu-attachment-thumb a img {
  488. padding: 0;
  489. margin: 0;
  490. border: 2px solid #DDD;
  491. vertical-align: middle;
  492. }
  493. .itu-attachment-thumb a:hover img {
  494. border: 2px solid #000;
  495. }
  496. /* Revert block to inline for gallery */
  497. .itu-attachment-images .itu-attachment-thumb a {
  498. display: inline;
  499. }
  500. /* Progress bar styling */
  501. .ahah-progress {
  502. width: 100% !important;
  503. }
  504. .ahah-progress-bar {
  505. width: 100% !important;
  506. margin: 0 !important;
  507. }
  508. /* jCarousel Lite Prev/Next buttons */
  509. .jcarousellite {
  510. position: relative;
  511. padding-left: 33px;
  512. padding-right: 33px;
  513. }
  514. .jcarousellite .item-list {
  515. display: block;
  516. }
  517. .itu-attachment-jcarousellite-prev,
  518. .itu-attachment-jcarousellite-next {
  519. display: block;
  520. position: absolute;
  521. top: 0px;
  522. width: 31px;
  523. height: 100%;
  524. text-decoration: none !important;
  525. }
  526. .itu-attachment-jcarousellite-prev {
  527. background: url(images/imageNavLeft.gif) no-repeat 2px 50%;
  528. left: 0;
  529. }
  530. .itu-attachment-jcarousellite-next {
  531. background: url(images/imageNavRight.gif) no-repeat 2px 50%;
  532. right: 0;
  533. }
  534. .itu-attachment-jcarousellite-prev:hover {
  535. background-position: -52px 50%;
  536. background-color: #DDD;
  537. }
  538. .itu-attachment-jcarousellite-next:hover {
  539. background-position: -52px 50%;
  540. background-color: #DDD;
  541. }
  542. .itu-attachment-jcarousellite-prev:active {
  543. background-position: -106px 50%;
  544. }
  545. .itu-attachment-jcarousellite-next:active {
  546. background-position: -106px 50%;
  547. }
  548. /* Fixing jCarousel Lite spacing. */
  549. .jcarousellite ul div { margin: 0 4px 0 0; }
  550. /* div with view uploaded files forbidden message */
  551. .itu-attachment-forbidden {
  552. border: 1px solid #DDD;
  553. background: none;
  554. padding: 0 5px;
  555. margin: 0 0 1em;
  556. }