first commit
This commit is contained in:
124
libraries/grid/plugins/impromptu/jquery-impromptu.css
Normal file
124
libraries/grid/plugins/impromptu/jquery-impromptu.css
Normal file
@@ -0,0 +1,124 @@
|
||||
/*! jQuery-Impromptu - v5.2.5 - 2014-09-01
|
||||
* http://trentrichardson.com/Impromptu
|
||||
* Copyright (c) 2014 Trent Richardson; Licensed MIT */
|
||||
.jqifade{
|
||||
position: absolute;
|
||||
background-color: #777777;
|
||||
}
|
||||
div.jqi{
|
||||
width: 400px;
|
||||
max-width:90%;
|
||||
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
font-size: 11px;
|
||||
text-align: left;
|
||||
border: solid 1px #eeeeee;
|
||||
border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
padding: 7px;
|
||||
}
|
||||
div.jqi .jqicontainer{
|
||||
}
|
||||
div.jqi .jqiclose{
|
||||
position: absolute;
|
||||
top: 4px; right: -2px;
|
||||
width: 18px;
|
||||
cursor: default;
|
||||
color: #bbbbbb;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.jqi .jqistate{
|
||||
background-color: #fff;
|
||||
}
|
||||
div.jqi .jqititle{
|
||||
padding: 5px 10px;
|
||||
font-size: 16px;
|
||||
line-height: 20px;
|
||||
border-bottom: solid 1px #eeeeee;
|
||||
}
|
||||
div.jqi .jqimessage{
|
||||
padding: 10px;
|
||||
line-height: 20px;
|
||||
color: #444444;
|
||||
}
|
||||
div.jqi .jqibuttons{
|
||||
text-align: right;
|
||||
margin: 0 -7px -7px -7px;
|
||||
border-top: solid 1px #e4e4e4;
|
||||
background-color: #f4f4f4;
|
||||
border-radius: 0 0 6px 6px;
|
||||
-moz-border-radius: 0 0 6px 6px;
|
||||
-webkit-border-radius: 0 0 6px 6px;
|
||||
}
|
||||
div.jqi .jqibuttons button{
|
||||
margin: 0;
|
||||
padding: 15px 20px;
|
||||
background-color: transparent;
|
||||
font-weight: normal;
|
||||
border: none;
|
||||
border-left: solid 1px #e4e4e4;
|
||||
color: #777;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
div.jqi .jqibuttons button.jqidefaultbutton{
|
||||
color: #489afe;
|
||||
}
|
||||
div.jqi .jqibuttons button:hover,
|
||||
div.jqi .jqibuttons button:focus{
|
||||
color: #287ade;
|
||||
outline: none;
|
||||
}
|
||||
.jqiwarning .jqi .jqibuttons{
|
||||
background-color: #b95656;
|
||||
}
|
||||
|
||||
/* sub states */
|
||||
div.jqi .jqiparentstate::after{
|
||||
background-color: #777;
|
||||
opacity: 0.6;
|
||||
filter: alpha(opacity=60);
|
||||
content: '';
|
||||
position: absolute;
|
||||
top:0;left:0;bottom:0;right:0;
|
||||
border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
}
|
||||
div.jqi .jqisubstate{
|
||||
position: absolute;
|
||||
top:0;
|
||||
left: 20%;
|
||||
width: 60%;
|
||||
padding: 7px;
|
||||
border: solid 1px #eeeeee;
|
||||
border-top: none;
|
||||
border-radius: 0 0 6px 6px;
|
||||
-moz-border-radius: 0 0 6px 6px;
|
||||
-webkit-border-radius: 0 0 6px 6px;
|
||||
}
|
||||
div.jqi .jqisubstate .jqibuttons button{
|
||||
padding: 10px 18px;
|
||||
}
|
||||
|
||||
/* arrows for tooltips/tours */
|
||||
.jqi .jqiarrow{ position: absolute; height: 0; width:0; line-height: 0; font-size: 0; border: solid 10px transparent;}
|
||||
|
||||
.jqi .jqiarrowtl{ left: 10px; top: -20px; border-bottom-color: #ffffff; }
|
||||
.jqi .jqiarrowtc{ left: 50%; top: -20px; border-bottom-color: #ffffff; margin-left: -10px; }
|
||||
.jqi .jqiarrowtr{ right: 10px; top: -20px; border-bottom-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowbl{ left: 10px; bottom: -20px; border-top-color: #ffffff; }
|
||||
.jqi .jqiarrowbc{ left: 50%; bottom: -20px; border-top-color: #ffffff; margin-left: -10px; }
|
||||
.jqi .jqiarrowbr{ right: 10px; bottom: -20px; border-top-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowlt{ left: -20px; top: 10px; border-right-color: #ffffff; }
|
||||
.jqi .jqiarrowlm{ left: -20px; top: 50%; border-right-color: #ffffff; margin-top: -10px; }
|
||||
.jqi .jqiarrowlb{ left: -20px; bottom: 10px; border-right-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowrt{ right: -20px; top: 10px; border-left-color: #ffffff; }
|
||||
.jqi .jqiarrowrm{ right: -20px; top: 50%; border-left-color: #ffffff; margin-top: -10px; }
|
||||
.jqi .jqiarrowrb{ right: -20px; bottom: 10px; border-left-color: #ffffff; }
|
||||
|
||||
719
libraries/grid/plugins/impromptu/jquery-impromptu.js
vendored
Normal file
719
libraries/grid/plugins/impromptu/jquery-impromptu.js
vendored
Normal file
@@ -0,0 +1,719 @@
|
||||
/*! jQuery-Impromptu - v5.2.5 - 2014-09-01
|
||||
* http://trentrichardson.com/Impromptu
|
||||
* Copyright (c) 2014 Trent Richardson; Licensed MIT */
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* setDefaults - Sets the default options
|
||||
* @param message String/Object - String of html or Object of states
|
||||
* @param options Object - Options to set the prompt
|
||||
* @return jQuery - container with overlay and prompt
|
||||
*/
|
||||
$.prompt = function(message, options) {
|
||||
// only for backwards compat, to be removed in future version
|
||||
if(options !== undefined && options.classes !== undefined && typeof options.classes === 'string'){
|
||||
options = { box: options.classes };
|
||||
}
|
||||
|
||||
$.prompt.options = $.extend({},$.prompt.defaults,options);
|
||||
$.prompt.currentPrefix = $.prompt.options.prefix;
|
||||
|
||||
// Be sure any previous timeouts are destroyed
|
||||
if($.prompt.timeout){
|
||||
clearTimeout($.prompt.timeout);
|
||||
}
|
||||
$.prompt.timeout = false;
|
||||
|
||||
var opts = $.prompt.options,
|
||||
$body = $(document.body),
|
||||
$window = $(window);
|
||||
|
||||
//build the box and fade
|
||||
var msgbox = '<div class="'+ $.prompt.options.prefix +'box '+ opts.classes.box +'">';
|
||||
if(opts.useiframe && ($('object, applet').length > 0)) {
|
||||
msgbox += '<iframe src="javascript:false;" style="display:block;position:absolute;z-index:-1;" class="'+ opts.prefix +'fade '+ opts.classes.fade +'"></iframe>';
|
||||
} else {
|
||||
msgbox +='<div class="'+ opts.prefix +'fade '+ opts.classes.fade +'"></div>';
|
||||
}
|
||||
msgbox += '<div class="'+ opts.prefix +' '+ opts.classes.prompt +'">'+
|
||||
'<form action="javascript:false;" onsubmit="return false;" class="'+ opts.prefix +'form '+ opts.classes.form +'">'+
|
||||
'<div class="'+ opts.prefix +'close '+ opts.classes.close +'">'+ opts.closeText +'</div>'+
|
||||
'<div class="'+ opts.prefix +'states"></div>'+
|
||||
'</form>'+
|
||||
'</div>'+
|
||||
'</div>';
|
||||
|
||||
$.prompt.jqib = $(msgbox).appendTo($body);
|
||||
$.prompt.jqi = $.prompt.jqib.children('.'+ opts.prefix);//.data('jqi',opts);
|
||||
$.prompt.jqif = $.prompt.jqib.children('.'+ opts.prefix +'fade');
|
||||
|
||||
//if a string was passed, convert to a single state
|
||||
if(message.constructor === String){
|
||||
message = {
|
||||
state0: {
|
||||
title: opts.title,
|
||||
html: message,
|
||||
buttons: opts.buttons,
|
||||
position: opts.position,
|
||||
focus: opts.focus,
|
||||
defaultButton: opts.defaultButton,
|
||||
submit: opts.submit
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
//build the states
|
||||
$.prompt.options.states = {};
|
||||
var k,v;
|
||||
for(k in message){
|
||||
v = $.extend({},$.prompt.defaults.state,{name:k},message[k]);
|
||||
$.prompt.addState(v.name, v);
|
||||
|
||||
if($.prompt.currentStateName === ''){
|
||||
$.prompt.currentStateName = v.name;
|
||||
}
|
||||
}
|
||||
|
||||
//Events
|
||||
$.prompt.jqi.on('click', '.'+ opts.prefix +'buttons button', function(e){
|
||||
var $t = $(this),
|
||||
$state = $t.parents('.'+ opts.prefix +'state'),
|
||||
stateobj = $.prompt.options.states[$state.data('jqi-name')],
|
||||
msg = $state.children('.'+ opts.prefix +'message'),
|
||||
clicked = stateobj.buttons[$t.text()] || stateobj.buttons[$t.html()],
|
||||
forminputs = {};
|
||||
|
||||
// if for some reason we couldn't get the value
|
||||
if(clicked === undefined){
|
||||
for(var i in stateobj.buttons){
|
||||
if(stateobj.buttons[i].title === $t.text() || stateobj.buttons[i].title === $t.html()){
|
||||
clicked = stateobj.buttons[i].value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//collect all form element values from all states.
|
||||
$.each($.prompt.jqi.children('form').serializeArray(),function(i,obj){
|
||||
if (forminputs[obj.name] === undefined) {
|
||||
forminputs[obj.name] = obj.value;
|
||||
} else if (typeof forminputs[obj.name] === Array || typeof forminputs[obj.name] === 'object') {
|
||||
forminputs[obj.name].push(obj.value);
|
||||
} else {
|
||||
forminputs[obj.name] = [forminputs[obj.name],obj.value];
|
||||
}
|
||||
});
|
||||
|
||||
// trigger an event
|
||||
var promptsubmite = new $.Event('impromptu:submit');
|
||||
promptsubmite.stateName = stateobj.name;
|
||||
promptsubmite.state = $state;
|
||||
$state.trigger(promptsubmite, [clicked, msg, forminputs]);
|
||||
|
||||
if(!promptsubmite.isDefaultPrevented()){
|
||||
$.prompt.close(true, clicked,msg,forminputs);
|
||||
}
|
||||
});
|
||||
|
||||
// if the fade is clicked blink the prompt
|
||||
var fadeClicked = function(){
|
||||
if(opts.persistent){
|
||||
var offset = (opts.top.toString().indexOf('%') >= 0? ($window.height()*(parseInt(opts.top,10)/100)) : parseInt(opts.top,10)),
|
||||
top = parseInt($.prompt.jqi.css('top').replace('px',''),10) - offset;
|
||||
|
||||
//$window.scrollTop(top);
|
||||
$('html,body').animate({ scrollTop: top }, 'fast', function(){
|
||||
var i = 0;
|
||||
$.prompt.jqib.addClass(opts.prefix +'warning');
|
||||
var intervalid = setInterval(function(){
|
||||
$.prompt.jqib.toggleClass(opts.prefix +'warning');
|
||||
if(i++ > 1){
|
||||
clearInterval(intervalid);
|
||||
$.prompt.jqib.removeClass(opts.prefix +'warning');
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
else {
|
||||
$.prompt.close(true);
|
||||
}
|
||||
};
|
||||
|
||||
// listen for esc or tab keys
|
||||
var keyDownEventHandler = function(e){
|
||||
var key = (window.event) ? event.keyCode : e.keyCode;
|
||||
|
||||
//escape key closes
|
||||
if(key === 27) {
|
||||
fadeClicked();
|
||||
}
|
||||
|
||||
//enter key pressed trigger the default button if its not on it, ignore if it is a textarea
|
||||
if(key === 13){
|
||||
var $defBtn = $.prompt.getCurrentState().find('.'+ opts.prefix +'defaultbutton');
|
||||
var $tgt = $(e.target);
|
||||
|
||||
if($tgt.is('textarea,.'+opts.prefix+'button') === false && $defBtn.length > 0){
|
||||
e.preventDefault();
|
||||
$defBtn.click();
|
||||
}
|
||||
}
|
||||
|
||||
//constrain tabs, tabs should iterate through the state and not leave
|
||||
if (key === 9){
|
||||
var $inputels = $('input,select,textarea,button',$.prompt.getCurrentState());
|
||||
var fwd = !e.shiftKey && e.target === $inputels[$inputels.length-1];
|
||||
var back = e.shiftKey && e.target === $inputels[0];
|
||||
if (fwd || back) {
|
||||
setTimeout(function(){
|
||||
if (!$inputels){
|
||||
return;
|
||||
}
|
||||
var el = $inputels[back===true ? $inputels.length-1 : 0];
|
||||
|
||||
if (el){
|
||||
el.focus();
|
||||
}
|
||||
},10);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
$.prompt.position();
|
||||
$.prompt.style();
|
||||
|
||||
$.prompt.jqif.click(fadeClicked);
|
||||
$window.resize({animate:false}, $.prompt.position);
|
||||
$.prompt.jqi.find('.'+ opts.prefix +'close').click($.prompt.close);
|
||||
$.prompt.jqib.on("keydown",keyDownEventHandler)
|
||||
.on('impromptu:loaded', opts.loaded)
|
||||
.on('impromptu:close', opts.close)
|
||||
.on('impromptu:statechanging', opts.statechanging)
|
||||
.on('impromptu:statechanged', opts.statechanged);
|
||||
|
||||
// Show it
|
||||
$.prompt.jqif[opts.show](opts.overlayspeed);
|
||||
$.prompt.jqi[opts.show](opts.promptspeed, function(){
|
||||
|
||||
var $firstState = $.prompt.jqi.find('.'+ opts.prefix +'states .'+ opts.prefix +'state').eq(0);
|
||||
$.prompt.goToState($firstState.data('jqi-name'));
|
||||
|
||||
$.prompt.jqib.trigger('impromptu:loaded');
|
||||
});
|
||||
|
||||
// Timeout
|
||||
if(opts.timeout > 0){
|
||||
$.prompt.timeout = setTimeout(function(){ $.prompt.close(true); },opts.timeout);
|
||||
}
|
||||
|
||||
return $.prompt.jqib;
|
||||
};
|
||||
|
||||
$.prompt.defaults = {
|
||||
prefix:'jqi',
|
||||
classes: {
|
||||
box: '',
|
||||
fade: '',
|
||||
prompt: '',
|
||||
form: '',
|
||||
close: '',
|
||||
title: '',
|
||||
message: '',
|
||||
buttons: '',
|
||||
button: '',
|
||||
defaultButton: ''
|
||||
},
|
||||
title: '',
|
||||
closeText: '×',
|
||||
buttons: {
|
||||
Ok: true
|
||||
},
|
||||
loaded: function(e){},
|
||||
submit: function(e,v,m,f){},
|
||||
close: function(e,v,m,f){},
|
||||
statechanging: function(e, from, to){},
|
||||
statechanged: function(e, to){},
|
||||
opacity: 0.6,
|
||||
zIndex: 1050,
|
||||
overlayspeed: 'fast',
|
||||
promptspeed: 'fast',
|
||||
show: 'fadeIn',
|
||||
focus: 0,
|
||||
defaultButton: 0,
|
||||
useiframe: false,
|
||||
top: '15%',
|
||||
position: {
|
||||
container: null,
|
||||
x: null,
|
||||
y: null,
|
||||
arrow: null,
|
||||
width: null
|
||||
},
|
||||
persistent: true,
|
||||
timeout: 0,
|
||||
states: {},
|
||||
state: {
|
||||
name: null,
|
||||
title: '',
|
||||
html: '',
|
||||
buttons: {
|
||||
Ok: true
|
||||
},
|
||||
focus: 0,
|
||||
defaultButton: 0,
|
||||
position: {
|
||||
container: null,
|
||||
x: null,
|
||||
y: null,
|
||||
arrow: null,
|
||||
width: null
|
||||
},
|
||||
submit: function(e,v,m,f){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* currentPrefix String - At any time this show be the prefix
|
||||
* of the current prompt ex: "jqi"
|
||||
*/
|
||||
$.prompt.currentPrefix = $.prompt.defaults.prefix;
|
||||
|
||||
/**
|
||||
* currentStateName String - At any time this is the current state
|
||||
* of the current prompt ex: "state0"
|
||||
*/
|
||||
$.prompt.currentStateName = "";
|
||||
|
||||
/**
|
||||
* setDefaults - Sets the default options
|
||||
* @param o Object - Options to set as defaults
|
||||
* @return void
|
||||
*/
|
||||
$.prompt.setDefaults = function(o) {
|
||||
$.prompt.defaults = $.extend({}, $.prompt.defaults, o);
|
||||
};
|
||||
|
||||
/**
|
||||
* setStateDefaults - Sets the default options for a state
|
||||
* @param o Object - Options to set as defaults
|
||||
* @return void
|
||||
*/
|
||||
$.prompt.setStateDefaults = function(o) {
|
||||
$.prompt.defaults.state = $.extend({}, $.prompt.defaults.state, o);
|
||||
};
|
||||
|
||||
/**
|
||||
* position - Repositions the prompt (Used internally)
|
||||
* @return void
|
||||
*/
|
||||
$.prompt.position = function(e){
|
||||
var restoreFx = $.fx.off,
|
||||
$state = $.prompt.getCurrentState(),
|
||||
stateObj = $.prompt.options.states[$state.data('jqi-name')],
|
||||
pos = stateObj? stateObj.position : undefined,
|
||||
$window = $(window),
|
||||
bodyHeight = document.body.scrollHeight, //$(document.body).outerHeight(true),
|
||||
windowHeight = $(window).height(),
|
||||
documentHeight = $(document).height(),
|
||||
height = bodyHeight > windowHeight ? bodyHeight : windowHeight,
|
||||
top = parseInt($window.scrollTop(),10) + ($.prompt.options.top.toString().indexOf('%') >= 0?
|
||||
(windowHeight*(parseInt($.prompt.options.top,10)/100)) : parseInt($.prompt.options.top,10));
|
||||
|
||||
// when resizing the window turn off animation
|
||||
if(e !== undefined && e.data.animate === false){
|
||||
$.fx.off = true;
|
||||
}
|
||||
|
||||
$.prompt.jqib.css({
|
||||
position: "absolute",
|
||||
height: height,
|
||||
width: "100%",
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0
|
||||
});
|
||||
$.prompt.jqif.css({
|
||||
position: "fixed",
|
||||
height: height,
|
||||
width: "100%",
|
||||
top: 0,
|
||||
left: 0,
|
||||
right: 0,
|
||||
bottom: 0
|
||||
});
|
||||
|
||||
// tour positioning
|
||||
if(pos && pos.container){
|
||||
var offset = $(pos.container).offset();
|
||||
|
||||
if($.isPlainObject(offset) && offset.top !== undefined){
|
||||
$.prompt.jqi.css({
|
||||
position: "absolute"
|
||||
});
|
||||
$.prompt.jqi.animate({
|
||||
top: offset.top + pos.y,
|
||||
left: offset.left + pos.x,
|
||||
marginLeft: 0,
|
||||
width: (pos.width !== undefined)? pos.width : null
|
||||
});
|
||||
top = (offset.top + pos.y) - ($.prompt.options.top.toString().indexOf('%') >= 0? (windowHeight*(parseInt($.prompt.options.top,10)/100)) : parseInt($.prompt.options.top,10));
|
||||
$('html,body').animate({ scrollTop: top }, 'slow', 'swing', function(){});
|
||||
}
|
||||
}
|
||||
// custom state width animation
|
||||
else if(pos && pos.width){
|
||||
$.prompt.jqi.css({
|
||||
position: "absolute",
|
||||
left: '50%'
|
||||
});
|
||||
$.prompt.jqi.animate({
|
||||
top: pos.y || top,
|
||||
left: pos.x || '50%',
|
||||
marginLeft: ((pos.width/2)*-1),
|
||||
width: pos.width
|
||||
});
|
||||
}
|
||||
// standard prompt positioning
|
||||
else{
|
||||
$.prompt.jqi.css({
|
||||
position: "absolute",
|
||||
top: top,
|
||||
left: '50%',//$window.width()/2,
|
||||
marginLeft: (($.prompt.jqi.outerWidth(false)/2)*-1)
|
||||
});
|
||||
}
|
||||
|
||||
// restore fx settings
|
||||
if(e !== undefined && e.data.animate === false){
|
||||
$.fx.off = restoreFx;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* style - Restyles the prompt (Used internally)
|
||||
* @return void
|
||||
*/
|
||||
$.prompt.style = function(){
|
||||
$.prompt.jqif.css({
|
||||
zIndex: $.prompt.options.zIndex,
|
||||
display: "none",
|
||||
opacity: $.prompt.options.opacity
|
||||
});
|
||||
$.prompt.jqi.css({
|
||||
zIndex: $.prompt.options.zIndex+1,
|
||||
display: "none"
|
||||
});
|
||||
$.prompt.jqib.css({
|
||||
zIndex: $.prompt.options.zIndex
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* get - Get the prompt
|
||||
* @return jQuery - the prompt
|
||||
*/
|
||||
$.prompt.get = function(state) {
|
||||
return $('.'+ $.prompt.currentPrefix);
|
||||
};
|
||||
|
||||
/**
|
||||
* addState - Injects a state into the prompt
|
||||
* @param statename String - Name of the state
|
||||
* @param stateobj Object - options for the state
|
||||
* @param afterState String - selector of the state to insert after
|
||||
* @return jQuery - the newly created state
|
||||
*/
|
||||
$.prompt.addState = function(statename, stateobj, afterState) {
|
||||
var state = "",
|
||||
$state = null,
|
||||
arrow = "",
|
||||
title = "",
|
||||
opts = $.prompt.options,
|
||||
$jqistates = $('.'+ $.prompt.currentPrefix +'states'),
|
||||
buttons = [],
|
||||
showHtml,defbtn,k,v,l,i=0;
|
||||
|
||||
stateobj = $.extend({},$.prompt.defaults.state, {name:statename}, stateobj);
|
||||
|
||||
if(stateobj.position.arrow !== null){
|
||||
arrow = '<div class="'+ opts.prefix + 'arrow '+ opts.prefix + 'arrow'+ stateobj.position.arrow +'"></div>';
|
||||
}
|
||||
if(stateobj.title && stateobj.title !== ''){
|
||||
title = '<div class="lead '+ opts.prefix + 'title '+ opts.classes.title +'">'+ stateobj.title +'</div>';
|
||||
}
|
||||
|
||||
showHtml = stateobj.html;
|
||||
if (typeof stateobj.html === 'function') {
|
||||
showHtml = 'Error: html function must return text';
|
||||
}
|
||||
|
||||
state += '<div id="'+ opts.prefix +'state_'+ statename +'" class="'+ opts.prefix + 'state" data-jqi-name="'+ statename +'" style="display:none;">'+
|
||||
arrow + title +
|
||||
'<div class="'+ opts.prefix +'message '+ opts.classes.message +'">' + showHtml +'</div>'+
|
||||
'<div class="'+ opts.prefix +'buttons '+ opts.classes.buttons +'"'+ ($.isEmptyObject(stateobj.buttons)? 'style="display:none;"':'') +'>';
|
||||
|
||||
// state buttons may be in object or array, lets convert objects to arrays
|
||||
if($.isArray(stateobj.buttons)){
|
||||
buttons = stateobj.buttons;
|
||||
}
|
||||
else if($.isPlainObject(stateobj.buttons)){
|
||||
for(k in stateobj.buttons){
|
||||
if(stateobj.buttons.hasOwnProperty(k)){
|
||||
buttons.push({ title: k, value: stateobj.buttons[k] });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// iterate over each button and create them
|
||||
for(i=0, l=buttons.length; i<l; i++){
|
||||
v = buttons[i],
|
||||
defbtn = stateobj.focus === i || (isNaN(stateobj.focus) && stateobj.defaultButton === i) ? ($.prompt.currentPrefix + 'defaultbutton ' + opts.classes.defaultButton) : '';
|
||||
|
||||
state += '<button class="'+ opts.classes.button +' '+ $.prompt.currentPrefix + 'button '+ defbtn;
|
||||
|
||||
if(typeof v.classes !== "undefined"){
|
||||
state += ' '+ ($.isArray(v.classes)? v.classes.join(' ') : v.classes) + ' ';
|
||||
}
|
||||
|
||||
state += '" name="' + opts.prefix + '_' + statename + '_button' + v.title.replace(/[^a-z0-9]+/gi,'') + '" id="' + opts.prefix + '_' + statename + '_button' + v.title.replace(/[^a-z0-9]+/gi,'') + '" value="' + v.value + '">' + v.title + '</button>';
|
||||
}
|
||||
|
||||
state += '</div></div>';
|
||||
|
||||
$state = $(state);
|
||||
|
||||
$state.on('impromptu:submit', stateobj.submit);
|
||||
|
||||
if(afterState !== undefined){
|
||||
$jqistates.find('#'+ $.prompt.currentPrefix +'state_'+ afterState).after($state);
|
||||
}
|
||||
else{
|
||||
$jqistates.append($state);
|
||||
}
|
||||
|
||||
$.prompt.options.states[statename] = stateobj;
|
||||
|
||||
return $state;
|
||||
};
|
||||
|
||||
/**
|
||||
* removeState - Removes a state from the prompt
|
||||
* @param state String - Name of the state
|
||||
* @param newState String - Name of the state to transition to
|
||||
* @return Boolean - returns true on success, false on failure
|
||||
*/
|
||||
$.prompt.removeState = function(state, newState) {
|
||||
var $state = $.prompt.getState(state),
|
||||
rm = function(){ $state.remove(); };
|
||||
|
||||
if($state.length === 0){
|
||||
return false;
|
||||
}
|
||||
|
||||
// transition away from it before deleting
|
||||
if($state.css('display') !== 'none'){
|
||||
if(newState !== undefined && $.prompt.getState(newState).length > 0){
|
||||
$.prompt.goToState(newState, false, rm);
|
||||
}
|
||||
else if($state.next().length > 0){
|
||||
$.prompt.nextState(rm);
|
||||
}
|
||||
else if($state.prev().length > 0){
|
||||
$.prompt.prevState(rm);
|
||||
}
|
||||
else{
|
||||
$.prompt.close();
|
||||
}
|
||||
}
|
||||
else{
|
||||
$state.slideUp('slow', rm);
|
||||
}
|
||||
|
||||
return true;
|
||||
};
|
||||
|
||||
/**
|
||||
* getState - Get the state by its name
|
||||
* @param state String - Name of the state
|
||||
* @return jQuery - the state
|
||||
*/
|
||||
$.prompt.getState = function(state) {
|
||||
return $('#'+ $.prompt.currentPrefix +'state_'+ state);
|
||||
};
|
||||
$.prompt.getStateContent = function(state) {
|
||||
return $.prompt.getState(state);
|
||||
};
|
||||
|
||||
/**
|
||||
* getCurrentState - Get the current visible state
|
||||
* @return jQuery - the current visible state
|
||||
*/
|
||||
$.prompt.getCurrentState = function() {
|
||||
return $.prompt.getState($.prompt.getCurrentStateName());
|
||||
};
|
||||
|
||||
/**
|
||||
* getCurrentStateName - Get the name of the current visible state
|
||||
* @return String - the current visible state's name
|
||||
*/
|
||||
$.prompt.getCurrentStateName = function() {
|
||||
return $.prompt.currentStateName;
|
||||
};
|
||||
|
||||
/**
|
||||
* goToState - Goto the specified state
|
||||
* @param state String - name of the state to transition to
|
||||
* @param subState Boolean - true to be a sub state within the currently open state
|
||||
* @param callback Function - called when the transition is complete
|
||||
* @return jQuery - the newly active state
|
||||
*/
|
||||
$.prompt.goToState = function(state, subState, callback) {
|
||||
var $jqi = $.prompt.get(),
|
||||
jqiopts = $.prompt.options,
|
||||
$state = $.prompt.getState(state),
|
||||
stateobj = jqiopts.states[$state.data('jqi-name')],
|
||||
promptstatechanginge = new $.Event('impromptu:statechanging'),
|
||||
opts = $.prompt.options;
|
||||
|
||||
if(stateobj !== undefined){
|
||||
|
||||
|
||||
if (typeof stateobj.html === 'function') {
|
||||
var contentLaterFunc = stateobj.html;
|
||||
$state.find('.' + opts.prefix +'message ').html(contentLaterFunc());
|
||||
}
|
||||
|
||||
// subState can be ommitted
|
||||
if(typeof subState === 'function'){
|
||||
callback = subState;
|
||||
subState = false;
|
||||
}
|
||||
|
||||
$.prompt.jqib.trigger(promptstatechanginge, [$.prompt.getCurrentStateName(), state]);
|
||||
|
||||
if(!promptstatechanginge.isDefaultPrevented() && $state.length > 0){
|
||||
$.prompt.jqi.find('.'+ $.prompt.currentPrefix +'parentstate').removeClass($.prompt.currentPrefix +'parentstate');
|
||||
|
||||
if(subState){ // hide any open substates
|
||||
// get rid of any substates
|
||||
$.prompt.jqi.find('.'+ $.prompt.currentPrefix +'substate').not($state)
|
||||
.slideUp(jqiopts.promptspeed)
|
||||
.removeClass('.'+ $.prompt.currentPrefix +'substate')
|
||||
.find('.'+ $.prompt.currentPrefix +'arrow').hide();
|
||||
|
||||
// add parent state class so it can be visible, but blocked
|
||||
$.prompt.jqi.find('.'+ $.prompt.currentPrefix +'state:visible').addClass($.prompt.currentPrefix +'parentstate');
|
||||
|
||||
// add substate class so we know it will be smaller
|
||||
$state.addClass($.prompt.currentPrefix +'substate');
|
||||
}
|
||||
else{ // hide any open states
|
||||
$.prompt.jqi.find('.'+ $.prompt.currentPrefix +'state').not($state)
|
||||
.slideUp(jqiopts.promptspeed)
|
||||
.find('.'+ $.prompt.currentPrefix +'arrow').hide();
|
||||
}
|
||||
$.prompt.currentStateName = stateobj.name;
|
||||
|
||||
$state.slideDown(jqiopts.promptspeed,function(){
|
||||
var $t = $(this);
|
||||
|
||||
// if focus is a selector, find it, else its button index
|
||||
if(typeof(stateobj.focus) === 'string'){
|
||||
$t.find(stateobj.focus).eq(0).focus();
|
||||
}
|
||||
else{
|
||||
$t.find('.'+ $.prompt.currentPrefix +'defaultbutton').focus();
|
||||
}
|
||||
|
||||
$t.find('.'+ $.prompt.currentPrefix +'arrow').show(jqiopts.promptspeed);
|
||||
|
||||
if (typeof callback === 'function'){
|
||||
$.prompt.jqib.on('impromptu:statechanged', callback);
|
||||
}
|
||||
$.prompt.jqib.trigger('impromptu:statechanged', [state]);
|
||||
if (typeof callback === 'function'){
|
||||
$.prompt.jqib.off('impromptu:statechanged', callback);
|
||||
}
|
||||
});
|
||||
if(!subState){
|
||||
$.prompt.position();
|
||||
}
|
||||
} // end isDefaultPrevented()
|
||||
}// end stateobj !== undefined
|
||||
|
||||
return $state;
|
||||
};
|
||||
|
||||
/**
|
||||
* nextState - Transition to the next state
|
||||
* @param callback Function - called when the transition is complete
|
||||
* @return jQuery - the newly active state
|
||||
*/
|
||||
$.prompt.nextState = function(callback) {
|
||||
var $next = $('#'+ $.prompt.currentPrefix +'state_'+ $.prompt.getCurrentStateName()).next();
|
||||
if($next.length > 0){
|
||||
$.prompt.goToState( $next.attr('id').replace($.prompt.currentPrefix +'state_',''), callback );
|
||||
}
|
||||
return $next;
|
||||
};
|
||||
|
||||
/**
|
||||
* prevState - Transition to the previous state
|
||||
* @param callback Function - called when the transition is complete
|
||||
* @return jQuery - the newly active state
|
||||
*/
|
||||
$.prompt.prevState = function(callback) {
|
||||
var $prev = $('#'+ $.prompt.currentPrefix +'state_'+ $.prompt.getCurrentStateName()).prev();
|
||||
if($prev.length > 0){
|
||||
$.prompt.goToState( $prev.attr('id').replace($.prompt.currentPrefix +'state_',''), callback );
|
||||
}
|
||||
return $prev;
|
||||
};
|
||||
|
||||
/**
|
||||
* close - Closes the prompt
|
||||
* @param callback Function - called when the transition is complete
|
||||
* @param clicked String - value of the button clicked (only used internally)
|
||||
* @param msg jQuery - The state message body (only used internally)
|
||||
* @param forvals Object - key/value pairs of all form field names and values (only used internally)
|
||||
* @return jQuery - the newly active state
|
||||
*/
|
||||
$.prompt.close = function(callCallback, clicked, msg, formvals){
|
||||
if($.prompt.timeout){
|
||||
clearTimeout($.prompt.timeout);
|
||||
$.prompt.timeout = false;
|
||||
}
|
||||
|
||||
if($.prompt.jqib){
|
||||
$.prompt.jqib.fadeOut('fast',function(){
|
||||
|
||||
$.prompt.jqib.trigger('impromptu:close', [clicked,msg,formvals]);
|
||||
|
||||
$.prompt.jqib.remove();
|
||||
|
||||
$(window).off('resize',$.prompt.position);
|
||||
});
|
||||
}
|
||||
$.prompt.currentStateName = "";
|
||||
};
|
||||
|
||||
/**
|
||||
* Enable using $('.selector').prompt({});
|
||||
* This will grab the html within the prompt as the prompt message
|
||||
*/
|
||||
$.fn.prompt = function(options){
|
||||
if(options === undefined){
|
||||
options = {};
|
||||
}
|
||||
if(options.withDataAndEvents === undefined){
|
||||
options.withDataAndEvents = false;
|
||||
}
|
||||
|
||||
$.prompt($(this).clone(options.withDataAndEvents).html(),options);
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
91
libraries/grid/plugins/impromptu/themes/base.css
Normal file
91
libraries/grid/plugins/impromptu/themes/base.css
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
------------------------------
|
||||
Impromptu Base Styles
|
||||
------------------------------
|
||||
*/
|
||||
.jqifade{
|
||||
position: absolute;
|
||||
background-color: #777777;
|
||||
}
|
||||
div.jqi{
|
||||
width: 400px;
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
text-align: left;
|
||||
border: solid 1px #eeeeee;
|
||||
border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
padding: 7px;
|
||||
}
|
||||
div.jqi .jqicontainer{
|
||||
}
|
||||
div.jqi .jqiclose{
|
||||
position: absolute;
|
||||
top: 4px; right: -2px;
|
||||
width: 18px;
|
||||
cursor: default;
|
||||
color: #bbbbbb;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.jqi .jqistate{
|
||||
background-color: #fff;
|
||||
}
|
||||
div.jqi .jqiparentstate::after{
|
||||
background-color: #eee;
|
||||
opacity: 0.7;
|
||||
filter: alpha(opacity=70);
|
||||
content: '';
|
||||
position: absolute;
|
||||
top:0;left:0;bottom:0;right:0;
|
||||
border-radius: 6px;
|
||||
-moz-border-radius: 6px;
|
||||
-webkit-border-radius: 6px;
|
||||
}
|
||||
div.jqi .jqisubstate{
|
||||
|
||||
position: absolute;
|
||||
top:0;
|
||||
left: 20%;
|
||||
width: 60%;
|
||||
padding: 7px;
|
||||
border: solid 1px #eeeeee;
|
||||
border-top: none;
|
||||
border-radius: 0 0 6px 6px;
|
||||
-moz-border-radius: 0 0 6px 6px;
|
||||
-webkit-border-radius: 0 0 6px 6px;
|
||||
}
|
||||
div.jqi .jqititle{
|
||||
padding: 5px 10px;
|
||||
border-bottom: solid 1px #eeeeee;
|
||||
}
|
||||
div.jqi .jqimessage{
|
||||
padding: 10px;
|
||||
color: #444444;
|
||||
}
|
||||
div.jqi .jqibuttons{
|
||||
padding: 5px;
|
||||
text-align: right;
|
||||
}
|
||||
div.jqi button{
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
|
||||
.jqi .jqiarrow{ position: absolute; height: 0; width:0; line-height: 0; font-size: 0; border: solid 10px transparent;}
|
||||
|
||||
.jqi .jqiarrowtl{ left: 10px; top: -20px; border-bottom-color: #ffffff; }
|
||||
.jqi .jqiarrowtc{ left: 50%; top: -20px; border-bottom-color: #ffffff; margin-left: -10px; }
|
||||
.jqi .jqiarrowtr{ right: 10px; top: -20px; border-bottom-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowbl{ left: 10px; bottom: -20px; border-top-color: #ffffff; }
|
||||
.jqi .jqiarrowbc{ left: 50%; bottom: -20px; border-top-color: #ffffff; margin-left: -10px; }
|
||||
.jqi .jqiarrowbr{ right: 10px; bottom: -20px; border-top-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowlt{ left: -20px; top: 10px; border-right-color: #ffffff; }
|
||||
.jqi .jqiarrowlm{ left: -20px; top: 50%; border-right-color: #ffffff; margin-top: -10px; }
|
||||
.jqi .jqiarrowlb{ left: -20px; bottom: 10px; border-right-color: #ffffff; }
|
||||
|
||||
.jqi .jqiarrowrt{ right: -20px; top: 10px; border-left-color: #ffffff; }
|
||||
.jqi .jqiarrowrm{ right: -20px; top: 50%; border-left-color: #ffffff; margin-top: -10px; }
|
||||
.jqi .jqiarrowrb{ right: -20px; bottom: 10px; border-left-color: #ffffff; }
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
------------------------------
|
||||
classic impromptu
|
||||
------------------------------
|
||||
*/
|
||||
.impromptuwarning .impromptu{ background-color: #aaaaaa; }
|
||||
.impromptufade{
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
div.impromptu{
|
||||
position: absolute;
|
||||
background-color: #cccccc;
|
||||
padding: 10px;
|
||||
width: 300px;
|
||||
text-align: left;
|
||||
}
|
||||
div.impromptu .impromptuclose{
|
||||
float: right;
|
||||
margin: -35px -10px 0 0;
|
||||
cursor: pointer;
|
||||
color: #213e80;
|
||||
}
|
||||
div.impromptu .impromptucontainer{
|
||||
background-color: #213e80;
|
||||
padding: 5px;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.impromptu .impromptumessage{
|
||||
background-color: #415ea0;
|
||||
padding: 10px;
|
||||
}
|
||||
div.impromptu .impromptubuttons{
|
||||
text-align: center;
|
||||
padding: 5px 0 0 0;
|
||||
}
|
||||
div.impromptu button{
|
||||
padding: 3px 10px 3px 10px;
|
||||
margin: 0 10px;
|
||||
}
|
||||
59
libraries/grid/plugins/impromptu/themes/clean-blue.css
Normal file
59
libraries/grid/plugins/impromptu/themes/clean-blue.css
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
------------------------------
|
||||
clean blue
|
||||
------------------------------
|
||||
*/
|
||||
.cleanbluewarning .cleanblue{
|
||||
background-color: #acb4c4;
|
||||
}
|
||||
.cleanbluefade{
|
||||
position: absolute;
|
||||
background-color: #aaaaaa;
|
||||
}
|
||||
div.cleanblue{
|
||||
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
width: 300px;
|
||||
font-size: 11px;
|
||||
text-align: left;
|
||||
border: solid 1px #213e80;
|
||||
}
|
||||
div.cleanblue .cleanbluecontainer{
|
||||
background-color: #ffffff;
|
||||
border-top: solid 14px #213e80;
|
||||
padding: 5px;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.cleanblue .cleanblueclose{
|
||||
float: right;
|
||||
width: 18px;
|
||||
cursor: default;
|
||||
margin: -19px -12px 0 0;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
}
|
||||
div.cleanblue .cleanbluemessage{
|
||||
padding: 10px;
|
||||
line-height: 20px;
|
||||
font-size: 11px;
|
||||
color: #333333;
|
||||
}
|
||||
div.cleanblue .cleanbluebuttons{
|
||||
text-align: right;
|
||||
padding: 5px 0 5px 0;
|
||||
border: solid 1px #eeeeee;
|
||||
background-color: #f4f4f4;
|
||||
}
|
||||
div.cleanblue button{
|
||||
padding: 3px 10px;
|
||||
margin: 0 10px;
|
||||
background-color: #314e90;
|
||||
border: solid 1px #f4f4f4;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
div.cleanblue button:hover{
|
||||
border: solid 1px #d4d4d4;
|
||||
}
|
||||
50
libraries/grid/plugins/impromptu/themes/ext-blue.css
Normal file
50
libraries/grid/plugins/impromptu/themes/ext-blue.css
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
------------------------------
|
||||
Ext Blue
|
||||
------------------------------
|
||||
*/
|
||||
.extbluewarning .extblue{
|
||||
border:1px red solid;
|
||||
}
|
||||
.extbluefade{
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
}
|
||||
div.extblue{
|
||||
border:1px #6289B6 solid;
|
||||
position: absolute;
|
||||
background-color: #CAD8EA;
|
||||
padding: 0;
|
||||
width: 300px;
|
||||
text-align: left;
|
||||
}
|
||||
div.extblue .extblueclose{
|
||||
background-color: #CAD8EA;
|
||||
margin:2px -2px 0 0;
|
||||
cursor: pointer;
|
||||
color: red;
|
||||
text-align: right;
|
||||
}
|
||||
div.extblue .extbluecontainer{
|
||||
background-color: #CAD8EA;
|
||||
padding: 0 5px 5px 5px;
|
||||
color: #000000;
|
||||
font:normal 11px Verdana;
|
||||
}
|
||||
div.extblue .extbluemessage{
|
||||
background-color: #CAD8EA;
|
||||
padding: 0;
|
||||
margin:0 15px 15px 15px;
|
||||
}
|
||||
div.extblue .extbluebuttons{
|
||||
text-align: center;
|
||||
padding: 0px 0 0 0;
|
||||
}
|
||||
div.extblue button{
|
||||
padding: 1px 4px;
|
||||
margin: 0 10px;
|
||||
background-color:#cccccc;
|
||||
font-weight:normal;
|
||||
font-family:Verdana;
|
||||
font-size:10px;
|
||||
}
|
||||
69
libraries/grid/plugins/impromptu/themes/smooth.css
Normal file
69
libraries/grid/plugins/impromptu/themes/smooth.css
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
------------------------------
|
||||
Smooth
|
||||
------------------------------
|
||||
*/
|
||||
.jqismoothfade{
|
||||
position: absolute;
|
||||
background-color: #333333;
|
||||
}
|
||||
div.jqismooth{
|
||||
width: 350px;
|
||||
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
|
||||
position: absolute;
|
||||
background-color: #ffffff;
|
||||
font-size: 11px;
|
||||
text-align: left;
|
||||
border: solid 3px #e2e8e6;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
padding: 7px;
|
||||
}
|
||||
div.jqismooth .jqismoothcontainer{
|
||||
font-weight: bold;
|
||||
}
|
||||
div.jqismooth .jqismoothclose{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 18px;
|
||||
cursor: default;
|
||||
text-align: center;
|
||||
padding: 2px 0 4px 0;
|
||||
color: #727876;
|
||||
font-weight: bold;
|
||||
background-color: #e2e8e6;
|
||||
-moz-border-radius-bottomLeft: 5px;
|
||||
-webkit-border-bottom-left-radius: 5px;
|
||||
border-left: solid 1px #e2e8e6;
|
||||
border-bottom: solid 1px #e2e8e6;
|
||||
}
|
||||
div.jqismooth .jqismoothmessage{
|
||||
padding: 10px;
|
||||
line-height: 20px;
|
||||
color: #444444;
|
||||
}
|
||||
div.jqismooth .jqismoothbuttons{
|
||||
text-align: right;
|
||||
padding: 5px 0 5px 0;
|
||||
border: solid 1px #e2e8e6;
|
||||
background-color: #f2f8f6;
|
||||
}
|
||||
div.jqismooth button{
|
||||
padding: 3px 10px;
|
||||
margin: 0 10px;
|
||||
background-color: #2F6073;
|
||||
border: solid 1px #f4f4f4;
|
||||
color: #ffffff;
|
||||
font-weight: bold;
|
||||
font-size: 12px;
|
||||
}
|
||||
div.jqismooth button:hover{
|
||||
background-color: #728A8C;
|
||||
}
|
||||
div.jqismooth button.jqismoothdefaultbutton{
|
||||
background-color: #BF5E26;
|
||||
}
|
||||
.jqismoothwarning .jqismooth .jqismoothbuttons{
|
||||
background-color: #BF5E26;
|
||||
}
|
||||
44
libraries/grid/plugins/impromptu/themes/zoo.css
Normal file
44
libraries/grid/plugins/impromptu/themes/zoo.css
Normal file
@@ -0,0 +1,44 @@
|
||||
/* The Impromptzoo theme by Trent Richardson, based on http://stammtec.de/work/upload-dialog/ */
|
||||
|
||||
/* layout */
|
||||
.jqizoofade{ position: absolute; background-color: #000; }
|
||||
div.jqizoo{ width: 400px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; position: absolute; background-color: #ffffff; font-size: 11px; text-align: left;
|
||||
border: solid 2px #333; border-radius: 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px; }
|
||||
|
||||
/* container */
|
||||
div.jqizoo .jqizoocontainer{ background-color: #5b6776; }
|
||||
div.jqizoo .jqizooclose{ position: absolute; top: 0; right: 8px; width: 20px; padding: 2px 0 2px 0; text-align: center; cursor: default; color: #fff; font-weight: bold; text-shadow: 1px 1px 1px #333;
|
||||
background-color: #d4797b; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#d4797b), to(#b34b4d)); background-image: -webkit-linear-gradient(top, #d4797b, #b34b4d); background-image: -moz-linear-gradient(top, #d4797b, #b34b4d); background-image: -ms-linear-gradient(top, #d4797b, #b34b4d); background-image: -o-linear-gradient(top, #d4797b, #b34b4d);
|
||||
border: solid 1px #555; border-top: none; border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px;}
|
||||
div.jqizoo .jqizootitle{ padding: 10px 10px; font-size: 14px; color: #333; line-height: 20px; text-align: center; text-shadow: 1px 1px 1px #999; letter-spacing: 1px;
|
||||
background-color: #f0f0f0; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#f0f0f0), to(#dbdbdb)); background-image: -webkit-linear-gradient(top, #f0f0f0, #dbdbdb); background-image: -moz-linear-gradient(top, #f0f0f0, #dbdbdb); background-image: -ms-linear-gradient(top, #f0f0f0, #dbdbdb); background-image: -o-linear-gradient(top, #f0f0f0, #dbdbdb);
|
||||
border-bottom: solid 1px #949494; border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; -webkit-border-radius: 5px 5px 0 0; }
|
||||
div.jqizoo .jqizoomessage{ padding: 10px; line-height: 20px; color: #444444; background-color: #fff;
|
||||
border-bottom: solid 1px #333; border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; }
|
||||
|
||||
/* buttons */
|
||||
div.jqizoo .jqizoobuttons{ text-align: right; padding: 6px 0 6px 0;
|
||||
background-color: #5b6776; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#5b6776), to(#303940)); background-image: -webkit-linear-gradient(top, #5b6776, #303940); background-image: -moz-linear-gradient(top, #5b6776, #303940); background-image: -ms-linear-gradient(top, #5b6776, #303940); background-image: -o-linear-gradient(top, #5b6776, #303940);
|
||||
border-radius: 0 0 5px 5px; -moz-border-radius: 0 0 5px 5px; -webkit-border-radius: 0 0 5px 5px; }
|
||||
div.jqizoo button{ padding: 3px 10px; margin: 0 10px; background-color: #2F6073; color: #ffffff; font-weight: bold; font-size: 12px; text-shadow: 1px 1px 1px #333;
|
||||
background-color: #78a0ce; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#78a0ce), to(#516cb6)); background-image: -webkit-linear-gradient(top, #78a0ce, #516cb6); background-image: -moz-linear-gradient(top, #78a0ce, #516cb6); background-image: -ms-linear-gradient(top, #78a0ce, #516cb6); background-image: -o-linear-gradient(top, #78a0ce, #516cb6);
|
||||
/* yellow background-color: #dab150; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#dab150), to(#c49629)); background-image: -webkit-linear-gradient(top, #dab150, #c49629); background-image: -moz-linear-gradient(top, #dab150, #c49629); background-image: -ms-linear-gradient(top, #dab150, #c49629); background-image: -o-linear-gradient(top, #dab150, #c49629); */
|
||||
border: solid 1px #192432; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; }
|
||||
div.jqizoo button:hover{ color: #eee; }
|
||||
div.jqizoo button.jqizoodefaultbutton{ background-color: #d4797b; background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#d4797b), to(#b34b4d)); background-image: -webkit-linear-gradient(top, #d4797b, #b34b4d); background-image: -moz-linear-gradient(top, #d4797b, #b34b4d); background-image: -ms-linear-gradient(top, #d4797b, #b34b4d); background-image: -o-linear-gradient(top, #d4797b, #b34b4d); }
|
||||
.jqizoowarning .jqizoo .jqizoobuttons button{ border-color: #dab150; }
|
||||
|
||||
/* arrows */
|
||||
.jqizoo .jqizooarrow{ position: absolute; height: 0; width:0; line-height: 0; font-size: 0; border: solid 10px transparent; }
|
||||
.jqizoo .jqizooarrowtl{ left: 10px; top: -20px; border-bottom-color: #333; }
|
||||
.jqizoo .jqizooarrowtc{ left: 50%; top: -20px; border-bottom-color: #333; margin-left: -10px; }
|
||||
.jqizoo .jqizooarrowtr{ right: 10px; top: -20px; border-bottom-color: #333; }
|
||||
.jqizoo .jqizooarrowbl{ left: 10px; bottom: -20px; border-top-color: #333; }
|
||||
.jqizoo .jqizooarrowbc{ left: 50%; bottom: -20px; border-top-color: #333; margin-left: -10px; }
|
||||
.jqizoo .jqizooarrowbr{ right: 10px; bottom: -20px; border-top-color: #333; }
|
||||
.jqizoo .jqizooarrowlt{ left: -20px; top: 10px; border-right-color: #333; }
|
||||
.jqizoo .jqizooarrowlm{ left: -20px; top: 50%; border-right-color: #333; margin-top: -10px; }
|
||||
.jqizoo .jqizooarrowlb{ left: -20px; bottom: 10px; border-right-color: #333; }
|
||||
.jqizoo .jqizooarrowrt{ right: -20px; top: 10px; border-left-color: #333; }
|
||||
.jqizoo .jqizooarrowrm{ right: -20px; top: 50%; border-left-color: #333; margin-top: -10px; }
|
||||
.jqizoo .jqizooarrowrb{ right: -20px; bottom: 10px; border-left-color: #333; }
|
||||
Reference in New Issue
Block a user