You are here

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

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

File

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