You are here

panopoly-widgets.css in Panopoly Widgets 7

CSS styles for the simple widgets.

File

panopoly-widgets.css
View source
  1. /**
  2. * @file
  3. * CSS styles for the simple widgets.
  4. */
  5. /* Media Browser */
  6. body.page-media-browser {
  7. height: auto;
  8. }
  9. /* Map Widget */
  10. div.pane-bundle-map .pane-content {
  11. overflow: hidden;
  12. }
  13. div.field-name-field-map-address img {
  14. max-width: auto;
  15. }
  16. /* File Widget */
  17. img.file-icon,
  18. div.file-widget img {
  19. vertical-align: middle;
  20. }
  21. /* Video Widget */
  22. div.pane-bundle-video .media-youtube-video
  23. div.pane-bundle-video .media-vimeo-video {
  24. max-width: 100%;
  25. }
  26. div.pane-bundle-video .media-vimeo-video,
  27. div.pane-bundle-video .media-youtube-video {
  28. position: relative;
  29. padding-bottom: 56.25%;
  30. padding-top: 30px;
  31. height: 0;
  32. overflow: hidden;
  33. max-width: 100%;
  34. }
  35. div.pane-bundle-video .media-vimeo-video iframe,
  36. div.pane-bundle-video .media-vimeo-video object,
  37. div.pane-bundle-video .media-vimeo-video embed,
  38. div.pane-bundle-video .media-youtube-video iframe,
  39. div.pane-bundle-video .media-youtube-video object,
  40. div.pane-bundle-video .media-youtube-video embed {
  41. position: absolute;
  42. top: 0;
  43. left: 0;
  44. width: 100%;
  45. height: 100%;
  46. }
  47. /* Table Widget */
  48. #modalContent .form-tablefield.tablefield-header-orientation-horizontal .tablefield-row-0,
  49. #modalContent .form-tablefield.tablefield-header-orientation-vertical .col-0,
  50. #modalContent .form-tablefield.tablefield-header-orientation-vertical .col-0 input {
  51. background-color: rgba(0, 0, 0, 0.51);
  52. color: #ffffff;
  53. font-weight: bold;
  54. }
  55. /**
  56. * Hide the Media 'Edit' button when on a CTools dialog, because it will
  57. * close the current CTools dialog. Remove once #2264187 is fixed.
  58. */
  59. .ctools-modal-content .media-widget a.edit {
  60. display: none;
  61. }
  62. /**
  63. * Hide the Edit file button on the Media WYSIWYG style selector, until its behavior is fixed.
  64. */
  65. #media-wysiwyg-format-form .edit-file-link {
  66. display: none;
  67. }