image.admin.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /**
  2. * Image style configuration pages.
  3. */
  4. .image-style-new,
  5. .image-style-new div {
  6. display: inline;
  7. }
  8. .image-style-preview .preview-image-wrapper {
  9. float: left;
  10. padding-bottom: 2em;
  11. text-align: center;
  12. top: 50%;
  13. width: 48%;
  14. }
  15. .image-style-preview .preview-image {
  16. margin: auto;
  17. position: relative;
  18. }
  19. .image-style-preview .preview-image .width {
  20. border: 1px solid #666;
  21. border-top: none;
  22. bottom: -6px;
  23. height: 2px;
  24. left: -1px;
  25. position: absolute;
  26. box-sizing: content-box;
  27. }
  28. .image-style-preview .preview-image .width span {
  29. position: relative;
  30. top: 4px;
  31. }
  32. .image-style-preview .preview-image .height {
  33. border: 1px solid #666;
  34. border-left: none;
  35. position: absolute;
  36. right: -6px;
  37. top: -1px;
  38. width: 2px;
  39. box-sizing: content-box;
  40. }
  41. .image-style-preview .preview-image .height span {
  42. height: 2em;
  43. left: 10px;
  44. margin-top: -1em;
  45. position: absolute;
  46. top: 50%;
  47. }
  48. /**
  49. * Improve image style preview on narrow viewports.
  50. */
  51. @media screen and (max-width: 470px) {
  52. .image-style-preview .preview-image-wrapper {
  53. float: none;
  54. margin-bottom: 1em;
  55. }
  56. .image-style-preview .preview-image-wrapper:last-child {
  57. margin-bottom: 0;
  58. }
  59. }
  60. /**
  61. * Image anchor element.
  62. */
  63. .image-anchor {
  64. width: auto;
  65. }
  66. .image-anchor tr {
  67. background: none;
  68. }
  69. .image-anchor td {
  70. border: 1px solid #ccc;
  71. }