Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added callback for keypress using an object #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 7 additions & 14 deletions css/jquery.Jcrop.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
-ms-touch-action: none;
}
/* Selection Border */
.jcrop-vline,
.jcrop-hline {
.jcrop-vline, .jcrop-hline {
background: #ffffff url("Jcrop.gif");
font-size: 0;
position: absolute;
Expand Down Expand Up @@ -103,13 +102,11 @@
margin-left: -4px;
}
/* Dragbars */
.jcrop-dragbar.ord-n,
.jcrop-dragbar.ord-s {
.jcrop-dragbar.ord-n, .jcrop-dragbar.ord-s {
height: 7px;
width: 100%;
}
.jcrop-dragbar.ord-e,
.jcrop-dragbar.ord-w {
.jcrop-dragbar.ord-e, .jcrop-dragbar.ord-w {
height: 100%;
width: 7px;
}
Expand All @@ -128,8 +125,7 @@
margin-left: -4px;
}
/* The "jcrop-light" class/extension */
.jcrop-light .jcrop-vline,
.jcrop-light .jcrop-hline {
.jcrop-light .jcrop-vline, .jcrop-light .jcrop-hline {
background: #ffffff;
filter: alpha(opacity=70) !important;
opacity: .70!important;
Expand All @@ -142,8 +138,7 @@
border-radius: 3px;
}
/* The "jcrop-dark" class/extension */
.jcrop-dark .jcrop-vline,
.jcrop-dark .jcrop-hline {
.jcrop-dark .jcrop-vline, .jcrop-dark .jcrop-hline {
background: #000000;
filter: alpha(opacity=70) !important;
opacity: 0.7 !important;
Expand All @@ -156,12 +151,10 @@
border-radius: 3px;
}
/* Simple macro to turn off the antlines */
.solid-line .jcrop-vline,
.solid-line .jcrop-hline {
.solid-line .jcrop-vline, .solid-line .jcrop-hline {
background: #ffffff;
}
/* Fix for twitter bootstrap et al. */
.jcrop-holder img,
img.jcrop-preview {
.jcrop-holder img, img.jcrop-preview {
max-width: none;
}
3 changes: 1 addition & 2 deletions css/jquery.Jcrop.min.css
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* jquery.Jcrop.min.css v0.9.12 (build:20140524) */
.jcrop-holder{direction:ltr;text-align:left;-ms-touch-action:none}.jcrop-hline,.jcrop-vline{background:#fff url(Jcrop.gif);font-size:0;position:absolute}.jcrop-vline{height:100%;width:1px!important}.jcrop-vline.right{right:0}.jcrop-hline{height:1px!important;width:100%}.jcrop-hline.bottom{bottom:0}.jcrop-tracker{height:100%;width:100%;-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none}.jcrop-handle{background-color:#333;border:1px #eee solid;width:7px;height:7px;font-size:1px}.jcrop-handle.ord-n{left:50%;margin-left:-4px;margin-top:-4px;top:0}.jcrop-handle.ord-s{bottom:0;left:50%;margin-bottom:-4px;margin-left:-4px}.jcrop-handle.ord-e{margin-right:-4px;margin-top:-4px;right:0;top:50%}.jcrop-handle.ord-w{left:0;margin-left:-4px;margin-top:-4px;top:50%}.jcrop-handle.ord-nw{left:0;margin-left:-4px;margin-top:-4px;top:0}.jcrop-handle.ord-ne{margin-right:-4px;margin-top:-4px;right:0;top:0}.jcrop-handle.ord-se{bottom:0;margin-bottom:-4px;margin-right:-4px;right:0}.jcrop-handle.ord-sw{bottom:0;left:0;margin-bottom:-4px;margin-left:-4px}.jcrop-dragbar.ord-n,.jcrop-dragbar.ord-s{height:7px;width:100%}.jcrop-dragbar.ord-e,.jcrop-dragbar.ord-w{height:100%;width:7px}.jcrop-dragbar.ord-n{margin-top:-4px}.jcrop-dragbar.ord-s{bottom:0;margin-bottom:-4px}.jcrop-dragbar.ord-e{margin-right:-4px;right:0}.jcrop-dragbar.ord-w{margin-left:-4px}.jcrop-light .jcrop-hline,.jcrop-light .jcrop-vline{background:#fff;filter:alpha(opacity=70)!important;opacity:.7!important}.jcrop-light .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#000;border-color:#fff;border-radius:3px}.jcrop-dark .jcrop-hline,.jcrop-dark .jcrop-vline{background:#000;filter:alpha(opacity=70)!important;opacity:.7!important}.jcrop-dark .jcrop-handle{-moz-border-radius:3px;-webkit-border-radius:3px;background-color:#fff;border-color:#000;border-radius:3px}.solid-line .jcrop-hline,.solid-line .jcrop-vline{background:#fff}.jcrop-holder img,img.jcrop-preview{max-width:none}
/* jquery.Jcrop.min.css v0.9.12 (build:20150120) */
143 changes: 0 additions & 143 deletions demos/demo_files/demos.css
Original file line number Diff line number Diff line change
@@ -1,143 +0,0 @@
/* Jcrop Demo Site CSS - 2014 Tapmodo Interactive LLC - MIT License
Not required to run Jcrop - contains twitter bootstrap code */
/* To build these CSS files you must have LESS and run
* $ git submodule init
* $ git submodule update
* ...to pull in the Twitter bootstrap files
*/
.clearfix {
*zoom: 1;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
line-height: 0;
}
.clearfix:after {
clear: both;
}
.hide-text {
font: 0/0 a;
color: transparent;
text-shadow: none;
background-color: transparent;
border: 0;
}
.input-block-level {
display: block;
width: 100%;
min-height: 30px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* JCROP DEMOS CSS */
li small {
color: #f07878;
}
.inline-labels label {
display: inline;
}
div#interface.span3 fieldset {
margin-bottom: 1.5em;
}
div#interface.span3 fieldset legend {
margin-bottom: 2px;
padding-bottom: 2px;
line-height: 1.2;
}
.article h1 {
color: #333;
margin-top: .2em;
}
.jc-demo {
text-align: center;
}
.jcropper-holder {
border: 1px #bbb solid;
}
.jc-demo-box {
text-align: left;
margin: 2em auto;
background: white;
border: 1px #bbb solid;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.25);
-moz-box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.25);
box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.25);
padding: 1em 2em 2em;
}
form {
margin: 1.5em 0;
}
form.coords label {
margin-right: 1em;
font-weight: bold;
color: #900;
}
form.coords input {
width: 3em;
}
.ui-widget-overlay {
opacity: 0.80;
filter: alpha(opacity=70);
}
.jc-dialog {
padding-top: 1em;
}
.ui-dialog p tt {
color: yellow;
}
.jcrop-light .jcrop-selection {
-moz-box-shadow: 0px 0px 15px #999;
/* Firefox */
-webkit-box-shadow: 0px 0px 15px #999;
/* Safari, Chrome */
box-shadow: 0px 0px 15px #999;
/* CSS3 */
}
.jcrop-dark .jcrop-selection {
-moz-box-shadow: 0px 0px 15px #000;
/* Firefox */
-webkit-box-shadow: 0px 0px 15px #000;
/* Safari, Chrome */
box-shadow: 0px 0px 15px #000;
/* CSS3 */
}
.jcrop-fancy .jcrop-handle.ord-e {
-webkit-border-top-left-radius: 0px;
-webkit-border-bottom-left-radius: 0px;
}
.jcrop-fancy .jcrop-handle.ord-w {
-webkit-border-top-right-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
}
.jcrop-fancy .jcrop-handle.ord-nw {
-webkit-border-bottom-right-radius: 0px;
}
.jcrop-fancy .jcrop-handle.ord-ne {
-webkit-border-bottom-left-radius: 0px;
}
.jcrop-fancy .jcrop-handle.ord-sw {
-webkit-border-top-right-radius: 0px;
}
.jcrop-fancy .jcrop-handle.ord-se {
-webkit-border-top-left-radius: 0px;
}
.jcrop-fancy .jcrop-handle.ord-s {
-webkit-border-top-left-radius: 0px;
-webkit-border-top-right-radius: 0px;
}
.jcrop-fancy .jcrop-handle.ord-n {
-webkit-border-bottom-left-radius: 0px;
-webkit-border-bottom-right-radius: 0px;
}
.description {
margin: 16px 0;
}
.jcrop-droptarget canvas {
background-color: #f0f0f0;
}
Loading