Jcrop.css 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. /*! Jcrop.css v2.0.4 - build: 20151117
  2. * Copyright 2008-2015 Tapmodo Interactive LLC
  3. * Free software under MIT License
  4. **/
  5. /*
  6. The outer-most container in a typical Jcrop instance
  7. If you are having difficulty with formatting related to styles
  8. on a parent element, place any fixes here or in a like selector
  9. You can also style this element if you want to add a border, etc
  10. A better method for styling can be seen below with .jcrop-light
  11. (Add a class to the holder and style elements for that extended class)
  12. */
  13. .jcrop-active {
  14. direction: ltr;
  15. text-align: left;
  16. /* IE10 touch compatibility */
  17. -ms-touch-action: none;
  18. }
  19. .jcrop-dragging {
  20. -moz-user-select: none;
  21. -webkit-user-select: none;
  22. -ms-user-select: none;
  23. user-select: none;
  24. }
  25. .jcrop-selection {
  26. z-index: 2;
  27. }
  28. .jcrop-selection.jcrop-current {
  29. z-index: 4;
  30. }
  31. /* Selection Borders */
  32. .jcrop-border {
  33. background: #ffffff url("Jcrop.gif");
  34. line-height: 1px !important;
  35. font-size: 0 !important;
  36. overflow: hidden;
  37. position: absolute;
  38. filter: alpha(opacity=50) !important;
  39. opacity: 0.5 !important;
  40. }
  41. .jcrop-border.ord-w,
  42. .jcrop-border.ord-e,
  43. .jcrop-border.ord-n {
  44. top: 0px;
  45. }
  46. .jcrop-border.ord-n,
  47. .jcrop-border.ord-s {
  48. width: 100%;
  49. height: 1px !important;
  50. }
  51. .jcrop-border.ord-w,
  52. .jcrop-border.ord-e {
  53. height: 100%;
  54. width: 1px !important;
  55. }
  56. .jcrop-border.ord-e {
  57. right: -1px;
  58. }
  59. .jcrop-border.ord-n {
  60. top: -1px;
  61. }
  62. .jcrop-border.ord-w {
  63. left: -1px;
  64. }
  65. .jcrop-border.ord-s {
  66. bottom: -1px;
  67. }
  68. .jcrop-selection {
  69. position: absolute;
  70. }
  71. .jcrop-box {
  72. z-index: 2;
  73. display: block;
  74. background: none;
  75. border: none;
  76. padding: 0;
  77. margin: 0;
  78. font-size: 0;
  79. }
  80. .jcrop-box:hover {
  81. background: none;
  82. }
  83. .jcrop-box:active {
  84. background: none;
  85. }
  86. .jcrop-box:focus {
  87. outline: 1px rgba(128, 128, 128, 0.65) dotted;
  88. }
  89. .jcrop-active,
  90. .jcrop-box {
  91. position: relative;
  92. }
  93. .jcrop-box {
  94. width: 100%;
  95. height: 100%;
  96. cursor: move;
  97. }
  98. /* Selection Handles */
  99. .jcrop-handle {
  100. z-index: 4;
  101. box-sizing: border-box;
  102. background-color: rgba(49, 28, 28, 0.58);
  103. border: 1px #eeeeee solid;
  104. width: 9px;
  105. height: 9px;
  106. font-size: 0;
  107. position: absolute;
  108. filter: alpha(opacity=80) !important;
  109. opacity: 0.8 !important;
  110. }
  111. .jcrop-handle.ord-n {
  112. left: 50%;
  113. margin-left: -5px;
  114. margin-top: -5px;
  115. top: 0;
  116. cursor: n-resize;
  117. }
  118. .jcrop-handle.ord-s {
  119. bottom: 0;
  120. left: 50%;
  121. margin-bottom: -5px;
  122. margin-left: -5px;
  123. cursor: s-resize;
  124. }
  125. .jcrop-handle.ord-e {
  126. margin-right: -5px;
  127. margin-top: -5px;
  128. right: 0;
  129. top: 50%;
  130. cursor: e-resize;
  131. }
  132. .jcrop-handle.ord-w {
  133. left: 0;
  134. margin-left: -5px;
  135. margin-top: -5px;
  136. top: 50%;
  137. cursor: w-resize;
  138. }
  139. .jcrop-handle.ord-nw {
  140. left: 0;
  141. margin-left: -5px;
  142. margin-top: -5px;
  143. top: 0;
  144. cursor: nw-resize;
  145. }
  146. .jcrop-handle.ord-ne {
  147. margin-right: -5px;
  148. margin-top: -5px;
  149. right: 0;
  150. top: 0;
  151. cursor: ne-resize;
  152. }
  153. .jcrop-handle.ord-se {
  154. bottom: 0;
  155. margin-bottom: -5px;
  156. margin-right: -5px;
  157. right: 0;
  158. cursor: se-resize;
  159. }
  160. .jcrop-handle.ord-sw {
  161. bottom: 0;
  162. left: 0;
  163. margin-bottom: -5px;
  164. margin-left: -5px;
  165. cursor: sw-resize;
  166. }
  167. /* Larger Selection Handles for Touch */
  168. .jcrop-touch .jcrop-handle {
  169. z-index: 4;
  170. box-sizing: border-box;
  171. background-color: rgba(49, 28, 28, 0.58);
  172. border: 1px #eeeeee solid;
  173. width: 18px;
  174. height: 18px;
  175. font-size: 0;
  176. position: absolute;
  177. filter: alpha(opacity=80) !important;
  178. opacity: 0.8 !important;
  179. }
  180. .jcrop-touch .jcrop-handle.ord-n {
  181. left: 50%;
  182. margin-left: -10px;
  183. margin-top: -10px;
  184. top: 0;
  185. cursor: n-resize;
  186. }
  187. .jcrop-touch .jcrop-handle.ord-s {
  188. bottom: 0;
  189. left: 50%;
  190. margin-bottom: -10px;
  191. margin-left: -10px;
  192. cursor: s-resize;
  193. }
  194. .jcrop-touch .jcrop-handle.ord-e {
  195. margin-right: -10px;
  196. margin-top: -10px;
  197. right: 0;
  198. top: 50%;
  199. cursor: e-resize;
  200. }
  201. .jcrop-touch .jcrop-handle.ord-w {
  202. left: 0;
  203. margin-left: -10px;
  204. margin-top: -10px;
  205. top: 50%;
  206. cursor: w-resize;
  207. }
  208. .jcrop-touch .jcrop-handle.ord-nw {
  209. left: 0;
  210. margin-left: -10px;
  211. margin-top: -10px;
  212. top: 0;
  213. cursor: nw-resize;
  214. }
  215. .jcrop-touch .jcrop-handle.ord-ne {
  216. margin-right: -10px;
  217. margin-top: -10px;
  218. right: 0;
  219. top: 0;
  220. cursor: ne-resize;
  221. }
  222. .jcrop-touch .jcrop-handle.ord-se {
  223. bottom: 0;
  224. margin-bottom: -10px;
  225. margin-right: -10px;
  226. right: 0;
  227. cursor: se-resize;
  228. }
  229. .jcrop-touch .jcrop-handle.ord-sw {
  230. bottom: 0;
  231. left: 0;
  232. margin-bottom: -10px;
  233. margin-left: -10px;
  234. cursor: sw-resize;
  235. }
  236. /* Selection Dragbars */
  237. .jcrop-dragbar {
  238. font-size: 0;
  239. position: absolute;
  240. }
  241. .jcrop-dragbar.ord-n,
  242. .jcrop-dragbar.ord-s {
  243. height: 9px !important;
  244. width: 100%;
  245. }
  246. .jcrop-dragbar.ord-e,
  247. .jcrop-dragbar.ord-w {
  248. top: 0px;
  249. height: 100%;
  250. width: 9px !important;
  251. }
  252. .jcrop-dragbar.ord-n {
  253. margin-top: -5px;
  254. cursor: n-resize;
  255. top: 0px;
  256. }
  257. .jcrop-dragbar.ord-s {
  258. bottom: 0;
  259. margin-bottom: -5px;
  260. cursor: s-resize;
  261. }
  262. .jcrop-dragbar.ord-e {
  263. margin-right: -5px;
  264. right: 0;
  265. cursor: e-resize;
  266. }
  267. .jcrop-dragbar.ord-w {
  268. margin-left: -5px;
  269. cursor: w-resize;
  270. }
  271. /* Shading panels */
  272. .jcrop-shades {
  273. position: relative;
  274. top: 0;
  275. left: 0;
  276. }
  277. .jcrop-shades div {
  278. cursor: crosshair;
  279. }
  280. /* Various special states */
  281. .jcrop-noresize .jcrop-dragbar,
  282. .jcrop-noresize .jcrop-handle {
  283. display: none;
  284. }
  285. .jcrop-selection.jcrop-nodrag .jcrop-box,
  286. .jcrop-nodrag .jcrop-shades div {
  287. cursor: default;
  288. }
  289. /* The "jcrop-light" class/extension */
  290. .jcrop-light .jcrop-border {
  291. background: #ffffff;
  292. filter: alpha(opacity=70) !important;
  293. opacity: .70!important;
  294. }
  295. .jcrop-light .jcrop-handle {
  296. background-color: #000000;
  297. border-color: #ffffff;
  298. }
  299. /* The "jcrop-dark" class/extension */
  300. .jcrop-dark .jcrop-border {
  301. background: #000000;
  302. filter: alpha(opacity=70) !important;
  303. opacity: 0.7 !important;
  304. }
  305. .jcrop-dark .jcrop-handle {
  306. background-color: #ffffff;
  307. border-color: #000000;
  308. }
  309. /* Simple macro to turn off the antlines */
  310. .solid-line .jcrop-border {
  311. background: #ffffff;
  312. }
  313. .jcrop-thumb {
  314. position: absolute;
  315. overflow: hidden;
  316. z-index: 5;
  317. }
  318. /* Fix for twitter bootstrap et al. */
  319. .jcrop-active img,
  320. .jcrop-thumb img,
  321. .jcrop-thumb canvas {
  322. min-width: none;
  323. min-height: none;
  324. max-width: none;
  325. max-height: none;
  326. }
  327. /* Improved multiple selection styles - in progress */
  328. .jcrop-hl-active .jcrop-border {
  329. filter: alpha(opacity=20) !important;
  330. opacity: .20!important;
  331. }
  332. .jcrop-hl-active .jcrop-handle {
  333. filter: alpha(opacity=10) !important;
  334. opacity: .10!important;
  335. }
  336. .jcrop-hl-active .jcrop-selection:hover {
  337. /*
  338. .jcrop-handle {
  339. filter:Alpha(opacity=35)!important;
  340. opacity:.35!important;
  341. }
  342. */
  343. }
  344. .jcrop-hl-active .jcrop-selection:hover .jcrop-border {
  345. background-color: #ccc;
  346. filter: alpha(opacity=50) !important;
  347. opacity: .50!important;
  348. }
  349. .jcrop-hl-active .jcrop-selection.jcrop-current .jcrop-border {
  350. background: #808080 url('Jcrop.gif');
  351. opacity: .35!important;
  352. filter: alpha(opacity=35) !important;
  353. }
  354. .jcrop-hl-active .jcrop-selection.jcrop-current .jcrop-handle {
  355. filter: alpha(opacity=30) !important;
  356. opacity: .30!important;
  357. }
  358. .jcrop-hl-active .jcrop-selection.jcrop-focus .jcrop-border {
  359. background: url('Jcrop.gif');
  360. opacity: .65!important;
  361. filter: alpha(opacity=65) !important;
  362. }
  363. .jcrop-hl-active .jcrop-selection.jcrop-focus .jcrop-handle {
  364. filter: alpha(opacity=60) !important;
  365. opacity: .60!important;
  366. }
  367. /* Prevent background on button element */
  368. button.jcrop-box {
  369. background: none;
  370. }