jquery.Jcrop.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /* jquery.Jcrop.css v0.9.12 - MIT License */
  2. /*
  3. The outer-most container in a typical Jcrop instance
  4. If you are having difficulty with formatting related to styles
  5. on a parent element, place any fixes here or in a like selector
  6. You can also style this element if you want to add a border, etc
  7. A better method for styling can be seen below with .jcrop-light
  8. (Add a class to the holder and style elements for that extended class)
  9. */
  10. .jcrop-holder {
  11. direction: ltr;
  12. text-align: left;
  13. /* IE10 touch compatibility */
  14. -ms-touch-action: none;
  15. }
  16. /* Selection Border */
  17. .jcrop-vline,
  18. .jcrop-hline {
  19. background: #ffffff url('Jcrop.gif');
  20. font-size: 0;
  21. position: absolute;
  22. }
  23. .jcrop-vline {
  24. height: 100%;
  25. width: 1px !important;
  26. }
  27. .jcrop-vline.right {
  28. right: 0;
  29. }
  30. .jcrop-hline {
  31. height: 1px !important;
  32. width: 100%;
  33. }
  34. .jcrop-hline.bottom {
  35. bottom: 0;
  36. }
  37. /* Invisible click targets */
  38. .jcrop-tracker {
  39. height: 100%;
  40. width: 100%;
  41. /* "turn off" link highlight */
  42. -webkit-tap-highlight-color: transparent;
  43. /* disable callout, image save panel */
  44. -webkit-touch-callout: none;
  45. /* disable cut copy paste */
  46. -webkit-user-select: none;
  47. }
  48. /* Selection Handles */
  49. .jcrop-handle {}
  50. .jcrop-handle.ord-n {
  51. left: 50%;
  52. margin-left: -4px;
  53. margin-top: -4px;
  54. top: 0;
  55. }
  56. .jcrop-handle.ord-s {
  57. bottom: 0;
  58. left: 50%;
  59. margin-bottom: -4px;
  60. margin-left: -4px;
  61. }
  62. .jcrop-handle.ord-e {
  63. margin-right: -4px;
  64. margin-top: -4px;
  65. right: 0;
  66. top: 50%;
  67. }
  68. .jcrop-handle.ord-w {
  69. left: 0;
  70. margin-left: -4px;
  71. margin-top: -4px;
  72. top: 50%;
  73. }
  74. .jcrop-handle.ord-nw {
  75. left: 0;
  76. margin-left: -4px;
  77. margin-top: -4px;
  78. top: 0;
  79. }
  80. .jcrop-handle.ord-ne {
  81. margin-right: -4px;
  82. margin-top: -4px;
  83. right: 0;
  84. top: 0;
  85. }
  86. .jcrop-handle.ord-se {
  87. bottom: 0;
  88. margin-bottom: -4px;
  89. margin-right: -4px;
  90. right: 0;
  91. }
  92. .jcrop-handle.ord-sw {
  93. bottom: 0;
  94. left: 0;
  95. margin-bottom: -4px;
  96. margin-left: -4px;
  97. }
  98. /* Dragbars */
  99. .jcrop-dragbar.ord-n,
  100. .jcrop-dragbar.ord-s {
  101. height: 7px;
  102. width: 100%;
  103. }
  104. .jcrop-dragbar.ord-e,
  105. .jcrop-dragbar.ord-w {
  106. height: 100%;
  107. width: 7px;
  108. }
  109. .jcrop-dragbar.ord-n {
  110. margin-top: -4px;
  111. }
  112. .jcrop-dragbar.ord-s {
  113. bottom: 0;
  114. margin-bottom: -4px;
  115. }
  116. .jcrop-dragbar.ord-e {
  117. margin-right: -4px;
  118. right: 0;
  119. }
  120. .jcrop-dragbar.ord-w {
  121. margin-left: -4px;
  122. }
  123. /* The "jcrop-light" class/extension */
  124. .jcrop-light .jcrop-vline,
  125. .jcrop-light .jcrop-hline {
  126. background: #ffffff;
  127. filter: alpha(opacity=70) !important;
  128. opacity: .70!important;
  129. }
  130. .jcrop-light .jcrop-handle {
  131. -moz-border-radius: 3px;
  132. -webkit-border-radius: 3px;
  133. background-color: #000000;
  134. border-color: #ffffff;
  135. border-radius: 3px;
  136. }
  137. /* The "jcrop-dark" class/extension */
  138. .jcrop-dark .jcrop-vline,
  139. .jcrop-dark .jcrop-hline {
  140. background: #000000;
  141. filter: alpha(opacity=70) !important;
  142. opacity: 0.7 !important;
  143. }
  144. .jcrop-dark .jcrop-handle {
  145. -moz-border-radius: 3px;
  146. -webkit-border-radius: 3px;
  147. background-color: #ffffff;
  148. border-color: #000000;
  149. border-radius: 3px;
  150. }
  151. /* Simple macro to turn off the antlines */
  152. .solid-line .jcrop-vline,
  153. .solid-line .jcrop-hline {
  154. background: #ffffff;
  155. }
  156. /* Fix for twitter bootstrap et al. */
  157. .jcrop-holder img,
  158. img.jcrop-preview {
  159. max-width: none;
  160. }