You are here

panopoly-images.css in Panopoly 7

/**
 * Default image styling
 */
img.panopoly-image-full,
img.panopoly-image-half,
img.panopoly-image-quarter,
img.panopoly-image-featured,
img.panopoly-image-thumbnail,
img.panopoly-image-square,
img.panopoly-image-original,
img.panopoly-image-spotlight,
img.panopoly-image-video {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/**
 * Image styling
 */
img.panopoly-image-full {
  width: 100% !important;
  margin-bottom: .5em;
}

img.panopoly-image-half {
  max-width: 50%;
  width: 50%;
  float: left;
  margin-right: .75em;
  margin-bottom: .5em;
  margin-top: .5em;
}

img.panopoly-image-quarter {
  max-width: 25%;
  width: 25%;
  float: left;
  margin-right: .5em;
  margin-bottom: .25em;
  margin-top: .25em;
}

.caption.panopoly-image-half {
  max-width: 50%;
  float: left;
}

.caption.panopoly-image-quarter {
  max-width: 25%;
}

/* Only remove float if we have successfully added the image style class to the
 * caption or if we're in the editor.
 */
.caption.panopoly-image-half img.panopoly-image-half,
.caption.panopoly-image-quarter img.panopoly-image-quarter,
.caption.mceTemp img.panopoly-image-half,
.caption.mceTemp img.panopoly-image-quarter {
  max-width: 100%;
  width: 100%;
  float: none;
}

/* If we're in the editor, though, we need to use width:auto otherwise it will
 * keep resizing on us.
 */
.caption.mceTemp img.panopoly-image-half,
.caption.mceTemp img.panopoly-image-quarter {
  width: auto;
}


/**
 * Media image preview.
 */
.media-thumbnail {
  width: 80px;
  height: 80px;
}
.media-thumbnail img.panopoly-image-thumbnail{
  margin-left: auto;
  margin-right: auto;
}
/**
 * Ensure all images don't bust out of the container in the media browser.
 */
.media-thumbnail img {
  max-width: 100%;
  height: auto;
}

File

modules/panopoly/panopoly_images/panopoly-images.css
View source
  1. /**
  2. * Default image styling
  3. */
  4. img.panopoly-image-full,
  5. img.panopoly-image-half,
  6. img.panopoly-image-quarter,
  7. img.panopoly-image-featured,
  8. img.panopoly-image-thumbnail,
  9. img.panopoly-image-square,
  10. img.panopoly-image-original,
  11. img.panopoly-image-spotlight,
  12. img.panopoly-image-video {
  13. max-width: 100%;
  14. height: auto;
  15. vertical-align: bottom;
  16. }
  17. /**
  18. * Image styling
  19. */
  20. img.panopoly-image-full {
  21. width: 100% !important;
  22. margin-bottom: .5em;
  23. }
  24. img.panopoly-image-half {
  25. max-width: 50%;
  26. width: 50%;
  27. float: left;
  28. margin-right: .75em;
  29. margin-bottom: .5em;
  30. margin-top: .5em;
  31. }
  32. img.panopoly-image-quarter {
  33. max-width: 25%;
  34. width: 25%;
  35. float: left;
  36. margin-right: .5em;
  37. margin-bottom: .25em;
  38. margin-top: .25em;
  39. }
  40. .caption.panopoly-image-half {
  41. max-width: 50%;
  42. float: left;
  43. }
  44. .caption.panopoly-image-quarter {
  45. max-width: 25%;
  46. }
  47. /* Only remove float if we have successfully added the image style class to the
  48. * caption or if we're in the editor.
  49. */
  50. .caption.panopoly-image-half img.panopoly-image-half,
  51. .caption.panopoly-image-quarter img.panopoly-image-quarter,
  52. .caption.mceTemp img.panopoly-image-half,
  53. .caption.mceTemp img.panopoly-image-quarter {
  54. max-width: 100%;
  55. width: 100%;
  56. float: none;
  57. }
  58. /* If we're in the editor, though, we need to use width:auto otherwise it will
  59. * keep resizing on us.
  60. */
  61. .caption.mceTemp img.panopoly-image-half,
  62. .caption.mceTemp img.panopoly-image-quarter {
  63. width: auto;
  64. }
  65. /**
  66. * Media image preview.
  67. */
  68. .media-thumbnail {
  69. width: 80px;
  70. height: 80px;
  71. }
  72. .media-thumbnail img.panopoly-image-thumbnail{
  73. margin-left: auto;
  74. margin-right: auto;
  75. }
  76. /**
  77. * Ensure all images don't bust out of the container in the media browser.
  78. */
  79. .media-thumbnail img {
  80. max-width: 100%;
  81. height: auto;
  82. }