jcrop.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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. background-color: #333333;
  51. border: 1px #eeeeee solid;
  52. width: 7px;
  53. height: 7px;
  54. font-size: 1px;
  55. }
  56. .jcrop-handle.ord-n {
  57. left: 50%;
  58. margin-left: -4px;
  59. margin-top: -4px;
  60. top: 0;
  61. }
  62. .jcrop-handle.ord-s {
  63. bottom: 0;
  64. left: 50%;
  65. margin-bottom: -4px;
  66. margin-left: -4px;
  67. }
  68. .jcrop-handle.ord-e {
  69. margin-right: -4px;
  70. margin-top: -4px;
  71. right: 0;
  72. top: 50%;
  73. }
  74. .jcrop-handle.ord-w {
  75. left: 0;
  76. margin-left: -4px;
  77. margin-top: -4px;
  78. top: 50%;
  79. }
  80. .jcrop-handle.ord-nw {
  81. left: 0;
  82. margin-left: -4px;
  83. margin-top: -4px;
  84. top: 0;
  85. }
  86. .jcrop-handle.ord-ne {
  87. margin-right: -4px;
  88. margin-top: -4px;
  89. right: 0;
  90. top: 0;
  91. }
  92. .jcrop-handle.ord-se {
  93. bottom: 0;
  94. margin-bottom: -4px;
  95. margin-right: -4px;
  96. right: 0;
  97. }
  98. .jcrop-handle.ord-sw {
  99. bottom: 0;
  100. left: 0;
  101. margin-bottom: -4px;
  102. margin-left: -4px;
  103. }
  104. /* Dragbars */
  105. .jcrop-dragbar.ord-n,
  106. .jcrop-dragbar.ord-s {
  107. height: 7px;
  108. width: 100%;
  109. }
  110. .jcrop-dragbar.ord-e,
  111. .jcrop-dragbar.ord-w {
  112. height: 100%;
  113. width: 7px;
  114. }
  115. .jcrop-dragbar.ord-n {
  116. margin-top: -4px;
  117. }
  118. .jcrop-dragbar.ord-s {
  119. bottom: 0;
  120. margin-bottom: -4px;
  121. }
  122. .jcrop-dragbar.ord-e {
  123. margin-right: -4px;
  124. right: 0;
  125. }
  126. .jcrop-dragbar.ord-w {
  127. margin-left: -4px;
  128. }
  129. /* The "jcrop-light" class/extension */
  130. .jcrop-light .jcrop-vline,
  131. .jcrop-light .jcrop-hline {
  132. background: #ffffff;
  133. filter: alpha(opacity=70) !important;
  134. opacity: .70!important;
  135. }
  136. .jcrop-light .jcrop-handle {
  137. -moz-border-radius: 3px;
  138. -webkit-border-radius: 3px;
  139. background-color: #000000;
  140. border-color: #ffffff;
  141. border-radius: 3px;
  142. }
  143. /* The "jcrop-dark" class/extension */
  144. .jcrop-dark .jcrop-vline,
  145. .jcrop-dark .jcrop-hline {
  146. background: #000000;
  147. filter: alpha(opacity=70) !important;
  148. opacity: 0.7 !important;
  149. }
  150. .jcrop-dark .jcrop-handle {
  151. -moz-border-radius: 3px;
  152. -webkit-border-radius: 3px;
  153. background-color: #ffffff;
  154. border-color: #000000;
  155. border-radius: 3px;
  156. }
  157. /* Simple macro to turn off the antlines */
  158. .solid-line .jcrop-vline,
  159. .solid-line .jcrop-hline {
  160. background: #ffffff;
  161. }
  162. /* Fix for twitter bootstrap et al. */
  163. .jcrop-holder img,
  164. img.jcrop-preview {
  165. max-width: none;
  166. }