You are here

dnd-library.css in Scald: Media Management made easy 6

This file contains a sample library theming, mainly trying to reshape Views' exposed filters to something more suitable for such a tiny space.

File

dnd/css/dnd-library.css
View source
  1. /**
  2. * @file
  3. * This file contains a sample library theming,
  4. * mainly trying to reshape Views' exposed filters
  5. * to something more suitable for such a tiny space.
  6. */
  7. #scald-dnd-library-form .form-item {
  8. float: none;
  9. width: auto;
  10. }
  11. #scald-dnd-library-form .form-checkboxes {
  12. margin-top: 0;
  13. }
  14. #scald-dnd-library-form .form-checkboxes .form-item {
  15. display: inline;
  16. white-space: normal;
  17. }
  18. .dnd-library-wrapper {
  19. float: right;
  20. width: 25%;
  21. }
  22. .dnd-library-wrapper .header,
  23. .dnd-library-wrapper .view-filters,
  24. .dnd-library-wrapper .attachment-before {
  25. padding: 3px 4px;
  26. }
  27. .dnd-library-wrapper .attachment-before {
  28. border-top-width: 0;
  29. }
  30. .dnd-library-wrapper .views-savedsearches-container fieldset {
  31. margin: 0;
  32. }
  33. .dnd-library-wrapper .views-exposed-form .form-item {
  34. width: auto;
  35. }
  36. .dnd-library-wrapper .view-filters,
  37. .dnd-library-wrapper .view-filters input,
  38. .dnd-library-wrapper .view-filters select
  39. .dnd-library-wrapper .view-filters textarea {
  40. font-size: .875em;
  41. }
  42. .dnd-library-wrapper .view-filters fieldset {
  43. padding: 0;
  44. border-width: 1px 0 0 0;
  45. }
  46. .dnd-library-wrapper .view-filters .date-views-filter-wrapper {
  47. min-width: 160px;
  48. }
  49. .dnd-library-wrapper .view-filters .views-exposed-widget {
  50. margin-right: 5px;
  51. float: none;
  52. }
  53. .dnd-library-wrapper .view-filters .date-month .form-item select {
  54. margin-right: 0;
  55. }
  56. .dnd-library-wrapper .header h3, .mee-ressource-manager caption {
  57. font-size: 12px;
  58. font-weight: bold;
  59. }
  60. .dnd-library-wrapper .header form {
  61. font-size: 10px;
  62. }
  63. .dnd-library-wrapper .library {
  64. border: 1px solid #aaa;
  65. float: left;
  66. }
  67. .dnd-library-wrapper .editor-item {
  68. border-bottom: 2px solid #E4E1DD;
  69. clear: left;
  70. color: #7f7f7f;
  71. position: relative;
  72. min-height: 70px;
  73. padding-top: 4px;
  74. }
  75. .dnd-library-wrapper .editor-item:hover {
  76. background-color: #e3f4f0;
  77. }
  78. .dnd-library-wrapper .editor-item.bt-active {
  79. background: #eee;
  80. }
  81. .dnd-library-wrapper .editor-item .image {
  82. float: left;
  83. width: 52px;
  84. }
  85. .dnd-library-wrapper .editor-item .image img {
  86. width: 48px;
  87. height: auto;
  88. }
  89. .dnd-library-wrapper .editor-item:hover img,
  90. .dnd-library-wrapper .editor-item.bt-active img {
  91. outline: 1px solid #68baf9;
  92. }
  93. .dnd-library-wrapper .editor-item .meta {
  94. float: left;
  95. width: 214px;
  96. margin-left: 0!important;/* @todo remove - quickfix to override incorrect CSS in theme */
  97. }
  98. .dnd-library-wrapper .editor-item .type {
  99. float: right;
  100. width: 20px;
  101. height: 20px;
  102. background: 100% 0 no-repeat;
  103. }
  104. .dnd-library-wrapper .editor-item .type.type-audio {
  105. background-image: url('../icons/audio.png');
  106. }
  107. .dnd-library-wrapper .editor-item .type.type-image {
  108. background-image: url('../icons/image.png');
  109. }
  110. .dnd-library-wrapper .editor-item .type.type-video {
  111. background-image: url('../icons/video.png');
  112. }
  113. .dnd-library-wrapper .editor-item .type.type-soundslide {
  114. background-image: url('../icons/soundslide.png');
  115. }
  116. .dnd-library-wrapper .editor-item .title {
  117. color: #666;
  118. font-weight: bold;
  119. font-size: 13px;
  120. line-height: 1.3;
  121. margin-bottom: 3px;
  122. }
  123. .dnd-library-wrapper .editor-item .date,
  124. .dnd-library-wrapper .editor-item .author {
  125. font-size: 10px;
  126. }
  127. .dnd-library-wrapper .author a {
  128. color: #7f7f7f;
  129. }
  130. .dnd-library-wrapper .editor-item .links {
  131. float: right;
  132. }
  133. .dnd-library-wrapper .editor-item .sizes {
  134. float: left;
  135. width: 50px;
  136. margin-top: 14px;
  137. line-height: 1;
  138. }
  139. .dnd-library-wrapper .editor-item .sizes ul {
  140. list-style-type: none;
  141. margin: 0;
  142. }
  143. .dnd-library-wrapper .editor-item .sizes ul li {
  144. background: none;
  145. list-style-type: none;
  146. display: inline;
  147. padding: 0;
  148. margin: 0 0 0 2px;
  149. }
  150. .dnd-library-wrapper .editor-item .sizes a {
  151. float: left;
  152. display: block;
  153. font-size: 9px;
  154. line-height: 9px;
  155. margin-bottom: 2px;
  156. width: 19px;
  157. text-align: center;
  158. }
  159. .dnd-library-wrapper .editor-item .sizes a:link,
  160. .dnd-library-wrapper .editor-item .sizes a:visited,
  161. .dnd-library-wrapper .editor-item .sizes a:active {
  162. border: 1px solid #888;
  163. color: #fff;
  164. cursor: move;
  165. text-align: center;
  166. }
  167. .dnd-library-wrapper .editor-item .sizes a:hover,
  168. .dnd-library-wrapper .editor-item .sizes a.dnd-inserted:link,
  169. .dnd-library-wrapper .editor-item .sizes a.dnd-inserted:visited,
  170. .dnd-library-wrapper .editor-item .sizes a.dnd-inserted:active {
  171. border: 1px solid #555;
  172. color: #fff;
  173. text-decoration: none;
  174. }
  175. .dnd-library-wrapper .editor-item .sizes a:hover span,
  176. .dnd-library-wrapper .editor-item .sizes a.dnd-inserted span {
  177. background-color: #555;
  178. }
  179. .dnd-library-wrapper .editor-item .sizes a span {
  180. display: block;
  181. background-color: #888;
  182. }
  183. .dnd-library-wrapper .editor-item .sizes a.size-S span {
  184. margin: 3px;
  185. padding: 2px 0;
  186. }
  187. .dnd-library-wrapper .editor-item .sizes a.size-M span {
  188. margin: 2px;
  189. padding: 3px 0;
  190. }
  191. .dnd-library-wrapper .editor-item .sizes a.size-L span {
  192. margin: 1px;
  193. padding: 4px 0;
  194. }
  195. .dnd-library-wrapper .editor-item.dnd-child-inserted {
  196. background-color: #ccc;
  197. }
  198. .dnd-editor-preview h2.title {
  199. font-size: 1em;
  200. font-weight: bold;
  201. margin-bottom: 0.5em;
  202. }
  203. .dnd-editor-preview .media-preview {
  204. float: left;
  205. width: 125px;
  206. }
  207. .dnd-editor-preview .media-meta {
  208. float: left;
  209. width: 225px;
  210. margin-right: 20px;
  211. }
  212. .dnd-editor-preview .attribution {
  213. font-size: .875em;
  214. margin-bottom: .5em;
  215. }
  216. .sdl-preview-item dt {
  217. font-weight: bold;
  218. float: left;
  219. width: 60px;
  220. }
  221. .sdl-preview-item dd {
  222. margin: 0;
  223. }
  224. /* Fix for Garland */
  225. #center .dnd-library-wrapper form {
  226. margin: 0;
  227. }
  228. /**
  229. * Make the default textarea bigger
  230. */
  231. .dnd-fields-wrapper .mceLayout, .dnd-fields-wrapper .mceLayout iframe {
  232. height: 60em !important;
  233. }
  234. /**
  235. * And hide the resizer
  236. */
  237. .dnd-fields-wrapper .mceEditor .mceLayout .mceLast .mceResize {display: none;}
  238. /**
  239. * Make the default textarea bigger
  240. */
  241. .dnd-fields-wrapper .mceLayout, .dnd-fields-wrapper .mceLayout iframe {
  242. height: 60em !important;
  243. }
  244. /**
  245. * And hide the resizer
  246. */
  247. .dnd-fields-wrapper .mceEditor .mceLayout .mceLast .mceResize {display: none;}
  248. /**
  249. * Prototype for an always on right library
  250. */
  251. .dnd-library-wrapper {
  252. position : fixed;
  253. top : 150px;
  254. right : -276px;
  255. bottom : 30px;
  256. width : 276px!important;/* @todo remove - theme override quickfix */
  257. z-index : 999;
  258. }
  259. .dnd-library-wrapper.library-on {
  260. right: 0px;
  261. }
  262. body {
  263. margin-right: 20px !important;
  264. }
  265. /**
  266. * Menu
  267. */
  268. .scald-menu {
  269. position: absolute;
  270. width: 325px;
  271. top: -65px;
  272. left: -42px;
  273. bottom: 0;
  274. margin: 0;
  275. padding: 0;
  276. overflow: hidden;
  277. }
  278. .scald-menu.search-on {
  279. left: -256px;
  280. }
  281. .scald-menu .summary {
  282. background-color : #959896;
  283. border-top-left-radius: 5px 4px;
  284. border-top-right-radius: 5px 4px;
  285. border-bottom: 1px solid #666;
  286. box-shadow: 0 1px 0 0 #ccc;
  287. color: #fff;
  288. height: 70px;
  289. overflow-x: hidden;
  290. overflow-y: auto;
  291. font-size: 80%;
  292. line-height: 1.4;
  293. }
  294. .scald-menu .summary .toggle {
  295. background: url('../icons/search-off.png') 3px 3px no-repeat;
  296. cursor: pointer;
  297. float: left;
  298. height: 100%;
  299. width: 42px;
  300. }
  301. .scald-menu.search-on .summary .toggle {
  302. background: url('../icons/search-on.png') 3px 3px no-repeat;
  303. }
  304. .scald-menu .summary .title {
  305. margin: 3px 0 7px;
  306. font-size: 17px;
  307. font-weight: normal;
  308. line-height: 19px;
  309. }
  310. .scald-menu .summary .sort {
  311. float: right;
  312. margin: -20px 7px 0 0;
  313. }
  314. .scald-menu .summary .label {
  315. font-style: italic;
  316. }
  317. .scald-menu .summary ul {
  318. margin: 0;
  319. }
  320. .scald-menu .summary ul li {
  321. display: inline;
  322. background: #6f6f6f;
  323. padding: 2px 7px;
  324. border-radius: 8px;
  325. }
  326. .scald-menu .filters {
  327. background-color : #959896;
  328. border-bottom-left-radius: 5px 4px;
  329. color: #fff;
  330. left: 42px;
  331. top: 72px;
  332. right: 60px;
  333. bottom: 0;
  334. overflow-x: hidden;
  335. overflow-y: auto;
  336. padding-top: 20px;
  337. position: absolute;
  338. }
  339. .scald-menu .filters input[type="text"] {
  340. width: 100%;
  341. }
  342. .scald-menu .filters input[type="submit"] {
  343. width: 100%;
  344. font-size: 16px;
  345. }
  346. .scald-menu .filters input[type="reset"] {
  347. float: right;
  348. margin-top: 5px;
  349. }
  350. .scald-menu .filters .description {
  351. color: #fff;
  352. }
  353. .scald-menu .add-buttons {
  354. background : #a5a9a8 url('../icons/plus-white.png') 14px 44px no-repeat;
  355. border-bottom-left-radius: 5px 4px;
  356. padding-top: 50px;
  357. padding-bottom: 20px;
  358. width: 42px;
  359. }
  360. .scald-menu .add-buttons ul {
  361. margin: 0;
  362. }
  363. .scald-menu .add-buttons ul li {
  364. height: 30px;
  365. margin: 3px 4px;
  366. width: 30px;
  367. cursor: pointer;
  368. color: #4A68A4;
  369. text-indent: -999px;
  370. overflow: hidden;
  371. padding: 3px 2px;
  372. border-bottom: 1px solid #666;
  373. box-shadow: 0 1px 0 0 #ccc;
  374. }
  375. .scald-menu .add-buttons ul li.last {
  376. border: 0;
  377. box-shadow: none;
  378. }
  379. .scald-menu .add-buttons a {
  380. display: block;
  381. width: 30px;
  382. height: 30px;
  383. }
  384. .scald-menu .add-buttons .add-audio {
  385. background: url('../icons/audio-large-inverted.png') 50% 50% no-repeat;
  386. }
  387. .scald-menu .add-buttons .add-image {
  388. background: url('../icons/image-large-inverted.png') 50% 50% no-repeat;
  389. }
  390. .scald-menu .add-buttons .add-video {
  391. background: url('../icons/video-large-inverted.png') 50% 50% no-repeat;
  392. }
  393. .scald-menu .add-buttons .add-soundslide {
  394. background: url('../icons/soundslide-large-inverted.png') 50% 50% no-repeat;
  395. }
  396. .scald-menu .add-buttons .add-flash {
  397. background: url('../icons/flash-large-inverted.png') 50% 50% no-repeat;
  398. }
  399. .scald-menu .add-buttons .add-audio:hover {
  400. background-image: url('../icons/audio-large-color.png');
  401. }
  402. .scald-menu .add-buttons .add-image:hover {
  403. background-image: url('../icons/image-large-color.png');
  404. }
  405. .scald-menu .add-buttons .add-video:hover {
  406. background-image: url('../icons/video-large-color.png');
  407. }
  408. .scald-menu .add-buttons .add-soundslide:hover {
  409. background-image: url('../icons/soundslide-large-color.png');
  410. }
  411. .scald-menu .add-buttons .add-flash:hover {
  412. background: url('../icons/flash-large-color.png') 50% 50% no-repeat;
  413. }
  414. /**
  415. * Library: pagination etc.
  416. */
  417. .scald-library {
  418. height: 100%;
  419. position: absolute;
  420. background-color : #fff;
  421. border: 4px solid #e4e1dd;
  422. border-right: none;
  423. border-bottom-left-radius: 4px;
  424. box-shadow: 2px 2px 5px 0px #999;
  425. padding: 3px;
  426. }
  427. .scald-library .summary-filters {
  428. background-color : #F5F5F5;
  429. height : 50px;
  430. position : absolute;
  431. top : 40px;/* offsetTop */
  432. width : 100%;
  433. overflow : auto;
  434. }
  435. .dnd-library-wrapper .dnd-view-without-filter .view-empty,
  436. .dnd-library-wrapper .dnd-view-without-filter .view-content {
  437. margin-top: 0px;
  438. }
  439. .scald-library .pager,
  440. .scald-library .pager * {
  441. border : none;
  442. margin : 0px;
  443. padding : 0px;
  444. }
  445. .scald-library .pager {
  446. font-size: 13px;
  447. line-height: 15px;
  448. margin-top: 15px;
  449. }
  450. .scald-library .pager-item,
  451. .scald-library .pager-current {
  452. border-radius: 2px;
  453. box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
  454. margin: 1px 2px;
  455. padding: 3px 8px;
  456. display: inline-block;
  457. border-top: 1px solid #fff;
  458. color: #717171 !important;
  459. font-size: smaller !important;
  460. text-shadow: white 0 1px 0;
  461. background-color: #f5f5f5;
  462. background-image: -webkit-linear-gradient(top, #f9f9f9, #eaeaea);
  463. background-image: -moz-linear-gradient(top, #f9f9f9, #eaeaea);
  464. background-image: -ms-linear-gradient(top, #f9f9f9, #eaeaea);
  465. background-image: -o-linear-gradient(top, #f9f9f9, #eaeaea);
  466. background-image: linear-gradient(top, #f9f9f9, #eaeaea);
  467. }
  468. .scald-library .pager-item a {
  469. text-decoration: none !important;
  470. }
  471. .scald-library .pager-item.first {
  472. margin-left: 0;
  473. }
  474. .scald-library .pager-item.last {
  475. margin-right: 0;
  476. }
  477. .scald-library .pager-item:hover {
  478. border-color: #fff;
  479. background-color: #fdfdfd;
  480. background-image: -webkit-linear-gradient(top, #fefefe, #fafafa);
  481. background-image: -moz-linear-gradient(top, #fefefe, #fafafa);
  482. background-image: -ms-linear-gradient(top, #fefefe, #fafafa);
  483. background-image: -o-linear-gradient(top, #fefefe, #fafafa);
  484. background-image: linear-gradient(top, #fefefe, #fafafa);
  485. }
  486. .scald-library .pager-current {
  487. box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0.75);
  488. border-color: #505050 !important;
  489. color: #f2f2f2 !important;
  490. text-shadow: black 0 1px 0;
  491. background-color: #b3b1af;
  492. background-image: -webkit-linear-gradient(top, #5f5f5f, #5c5c5c);
  493. background-image: -moz-linear-gradient(top, #5f5f5f, #5c5c5c);
  494. background-image: -ms-linear-gradient(top, #5f5f5f, #5c5c5c);
  495. background-image: -o-linear-gradient(top, #5f5f5f, #5c5c5c);
  496. background-image: linear-gradient(top, #5f5f5f, #5c5c5c);
  497. }
  498. .scald-anchor {
  499. background: #e4e1dd url("../icons/library-light.png") 50% 50% no-repeat;
  500. cursor: pointer;
  501. left: -38px;
  502. height: 38px;
  503. width: 38px;
  504. box-shadow: 2px 2px 3px 0px #666;
  505. border-top-left-radius: 5px;
  506. border-bottom-left-radius: 5px;
  507. position: absolute;
  508. }
  509. .scald-anchor:hover {
  510. background-image: url("../icons/library-dark.png");
  511. }
  512. /** BeautyTips **/
  513. .bt-content img {
  514. max-width: 100%;
  515. height: auto;
  516. }
  517. /**
  518. * @todo
  519. * summary scrollbar: jScrollPane?
  520. * bt: look for a better alternative + theming
  521. */