Jcrop.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  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. box-sizing: border-box;
  17. /* IE10 touch compatibility */
  18. -ms-touch-action: none;
  19. }
  20. .jcrop-dragging {
  21. -moz-user-select: none;
  22. -webkit-user-select: none;
  23. -ms-user-select: none;
  24. user-select: none;
  25. }
  26. .jcrop-selection {
  27. z-index: 2;
  28. }
  29. .jcrop-selection.jcrop-current {
  30. z-index: 4;
  31. }
  32. /* Selection Borders */
  33. .jcrop-border {
  34. background: #ffffff url("Jcrop.gif");
  35. line-height: 1px !important;
  36. font-size: 0 !important;
  37. overflow: hidden;
  38. position: absolute;
  39. filter: alpha(opacity=50) !important;
  40. opacity: 0.5 !important;
  41. }
  42. .jcrop-border.ord-w,
  43. .jcrop-border.ord-e,
  44. .jcrop-border.ord-n {
  45. top: 0px;
  46. }
  47. .jcrop-border.ord-n,
  48. .jcrop-border.ord-s {
  49. width: 100%;
  50. height: 1px !important;
  51. }
  52. .jcrop-border.ord-w,
  53. .jcrop-border.ord-e {
  54. height: 100%;
  55. width: 1px !important;
  56. }
  57. .jcrop-border.ord-e {
  58. right: -1px;
  59. }
  60. .jcrop-border.ord-n {
  61. top: -1px;
  62. }
  63. .jcrop-border.ord-w {
  64. left: -1px;
  65. }
  66. .jcrop-border.ord-s {
  67. bottom: -1px;
  68. }
  69. .jcrop-selection {
  70. position: absolute;
  71. }
  72. .jcrop-box {
  73. z-index: 2;
  74. display: block;
  75. background: none;
  76. border: none;
  77. padding: 0;
  78. margin: 0;
  79. font-size: 0;
  80. }
  81. .jcrop-box:hover {
  82. background: none;
  83. }
  84. .jcrop-box:active {
  85. background: none;
  86. }
  87. .jcrop-box:focus {
  88. outline: 1px rgba(128, 128, 128, 0.65) dotted;
  89. }
  90. .jcrop-active,
  91. .jcrop-box {
  92. position: relative;
  93. }
  94. .jcrop-box {
  95. width: 100%;
  96. height: 100%;
  97. cursor: move;
  98. }
  99. /* Selection Handles */
  100. .jcrop-handle {
  101. z-index: 4;
  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. background-color: rgba(49, 28, 28, 0.58);
  171. border: 1px #eeeeee solid;
  172. width: 18px;
  173. height: 18px;
  174. font-size: 0;
  175. position: absolute;
  176. filter: alpha(opacity=80) !important;
  177. opacity: 0.8 !important;
  178. }
  179. .jcrop-touch .jcrop-handle.ord-n {
  180. left: 50%;
  181. margin-left: -10px;
  182. margin-top: -10px;
  183. top: 0;
  184. cursor: n-resize;
  185. }
  186. .jcrop-touch .jcrop-handle.ord-s {
  187. bottom: 0;
  188. left: 50%;
  189. margin-bottom: -10px;
  190. margin-left: -10px;
  191. cursor: s-resize;
  192. }
  193. .jcrop-touch .jcrop-handle.ord-e {
  194. margin-right: -10px;
  195. margin-top: -10px;
  196. right: 0;
  197. top: 50%;
  198. cursor: e-resize;
  199. }
  200. .jcrop-touch .jcrop-handle.ord-w {
  201. left: 0;
  202. margin-left: -10px;
  203. margin-top: -10px;
  204. top: 50%;
  205. cursor: w-resize;
  206. }
  207. .jcrop-touch .jcrop-handle.ord-nw {
  208. left: 0;
  209. margin-left: -10px;
  210. margin-top: -10px;
  211. top: 0;
  212. cursor: nw-resize;
  213. }
  214. .jcrop-touch .jcrop-handle.ord-ne {
  215. margin-right: -10px;
  216. margin-top: -10px;
  217. right: 0;
  218. top: 0;
  219. cursor: ne-resize;
  220. }
  221. .jcrop-touch .jcrop-handle.ord-se {
  222. bottom: 0;
  223. margin-bottom: -10px;
  224. margin-right: -10px;
  225. right: 0;
  226. cursor: se-resize;
  227. }
  228. .jcrop-touch .jcrop-handle.ord-sw {
  229. bottom: 0;
  230. left: 0;
  231. margin-bottom: -10px;
  232. margin-left: -10px;
  233. cursor: sw-resize;
  234. }
  235. /* Selection Dragbars */
  236. .jcrop-dragbar {
  237. font-size: 0;
  238. position: absolute;
  239. }
  240. .jcrop-dragbar.ord-n,
  241. .jcrop-dragbar.ord-s {
  242. height: 9px !important;
  243. width: 100%;
  244. }
  245. .jcrop-dragbar.ord-e,
  246. .jcrop-dragbar.ord-w {
  247. top: 0px;
  248. height: 100%;
  249. width: 9px !important;
  250. }
  251. .jcrop-dragbar.ord-n {
  252. margin-top: -5px;
  253. cursor: n-resize;
  254. top: 0px;
  255. }
  256. .jcrop-dragbar.ord-s {
  257. bottom: 0;
  258. margin-bottom: -5px;
  259. cursor: s-resize;
  260. }
  261. .jcrop-dragbar.ord-e {
  262. margin-right: -5px;
  263. right: 0;
  264. cursor: e-resize;
  265. }
  266. .jcrop-dragbar.ord-w {
  267. margin-left: -5px;
  268. cursor: w-resize;
  269. }
  270. /* Shading panels */
  271. .jcrop-shades {
  272. position: relative;
  273. top: 0;
  274. left: 0;
  275. }
  276. .jcrop-shades div {
  277. cursor: crosshair;
  278. }
  279. /* Various special states */
  280. .jcrop-noresize .jcrop-dragbar,
  281. .jcrop-noresize .jcrop-handle {
  282. display: none;
  283. }
  284. .jcrop-selection.jcrop-nodrag .jcrop-box,
  285. .jcrop-nodrag .jcrop-shades div {
  286. cursor: default;
  287. }
  288. /* The "jcrop-light" class/extension */
  289. .jcrop-light .jcrop-border {
  290. background: #ffffff;
  291. filter: alpha(opacity=70) !important;
  292. opacity: .70!important;
  293. }
  294. .jcrop-light .jcrop-handle {
  295. background-color: #000000;
  296. border-color: #ffffff;
  297. }
  298. /* The "jcrop-dark" class/extension */
  299. .jcrop-dark .jcrop-border {
  300. background: #000000;
  301. filter: alpha(opacity=70) !important;
  302. opacity: 0.7 !important;
  303. }
  304. .jcrop-dark .jcrop-handle {
  305. background-color: #ffffff;
  306. border-color: #000000;
  307. }
  308. /* Simple macro to turn off the antlines */
  309. .solid-line .jcrop-border {
  310. background: #ffffff;
  311. }
  312. .jcrop-thumb {
  313. position: absolute;
  314. overflow: hidden;
  315. z-index: 5;
  316. }
  317. /* Fix for twitter bootstrap et al. */
  318. .jcrop-active img,
  319. .jcrop-thumb img,
  320. .jcrop-thumb canvas {
  321. min-width: none;
  322. min-height: none;
  323. max-width: none;
  324. max-height: none;
  325. }
  326. /* Improved multiple selection styles - in progress */
  327. .jcrop-hl-active .jcrop-border {
  328. filter: alpha(opacity=20) !important;
  329. opacity: .20!important;
  330. }
  331. .jcrop-hl-active .jcrop-handle {
  332. filter: alpha(opacity=10) !important;
  333. opacity: .10!important;
  334. }
  335. .jcrop-hl-active .jcrop-selection:hover {
  336. /*
  337. .jcrop-handle {
  338. filter:Alpha(opacity=35)!important;
  339. opacity:.35!important;
  340. }
  341. */
  342. }
  343. .jcrop-hl-active .jcrop-selection:hover .jcrop-border {
  344. background-color: #ccc;
  345. filter: alpha(opacity=50) !important;
  346. opacity: .50!important;
  347. }
  348. .jcrop-hl-active .jcrop-selection.jcrop-current .jcrop-border {
  349. background: #808080 url('Jcrop.gif');
  350. opacity: .35!important;
  351. filter: alpha(opacity=35) !important;
  352. }
  353. .jcrop-hl-active .jcrop-selection.jcrop-current .jcrop-handle {
  354. filter: alpha(opacity=30) !important;
  355. opacity: .30!important;
  356. }
  357. .jcrop-hl-active .jcrop-selection.jcrop-focus .jcrop-border {
  358. background: url('Jcrop.gif');
  359. opacity: .65!important;
  360. filter: alpha(opacity=65) !important;
  361. }
  362. .jcrop-hl-active .jcrop-selection.jcrop-focus .jcrop-handle {
  363. filter: alpha(opacity=60) !important;
  364. opacity: .60!important;
  365. }
  366. /* Prevent background on button element */
  367. button.jcrop-box {
  368. background: none;
  369. }