adminpanel 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +13 -0
- data/LICENSE.txt +22 -0
- data/README.md +34 -0
- data/Rakefile +1 -0
- data/adminpanel.gemspec +32 -0
- data/app/assets/fonts/.DS_Store +0 -0
- data/app/assets/fonts/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +255 -0
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/images/adminpanel/alpha.png +0 -0
- data/app/assets/images/adminpanel/arrows-active.png +0 -0
- data/app/assets/images/adminpanel/arrows-normal.png +0 -0
- data/app/assets/images/adminpanel/bgnoise.png +0 -0
- data/app/assets/images/adminpanel/crop.gif +0 -0
- data/app/assets/images/adminpanel/dialogs.png +0 -0
- data/app/assets/images/adminpanel/dotted.png +0 -0
- data/app/assets/images/adminpanel/favicon.ico +0 -0
- data/app/assets/images/adminpanel/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/adminpanel/glyphicons-halflings.png +0 -0
- data/app/assets/images/adminpanel/gritter-light.png +0 -0
- data/app/assets/images/adminpanel/gritter-long.png +0 -0
- data/app/assets/images/adminpanel/gritter.png +0 -0
- data/app/assets/images/adminpanel/hue.png +0 -0
- data/app/assets/images/adminpanel/icons-big.png +0 -0
- data/app/assets/images/adminpanel/icons-small.png +0 -0
- data/app/assets/images/adminpanel/ie-spacer.gif +0 -0
- data/app/assets/images/adminpanel/odinn.jpg +0 -0
- data/app/assets/images/adminpanel/pattern.jpg +0 -0
- data/app/assets/images/adminpanel/pattern_transp.png +0 -0
- data/app/assets/images/adminpanel/progress.gif +0 -0
- data/app/assets/images/adminpanel/quicklook-bg.png +0 -0
- data/app/assets/images/adminpanel/quicklook-icons.png +0 -0
- data/app/assets/images/adminpanel/rails.png +0 -0
- data/app/assets/images/adminpanel/resize.png +0 -0
- data/app/assets/images/adminpanel/saturation.png +0 -0
- data/app/assets/images/adminpanel/select2.png +0 -0
- data/app/assets/images/adminpanel/select2x2.png +0 -0
- data/app/assets/images/adminpanel/sidebar.png +0 -0
- data/app/assets/images/adminpanel/sort_asc.png +0 -0
- data/app/assets/images/adminpanel/sort_asc_disabled.png +0 -0
- data/app/assets/images/adminpanel/sort_both.png +0 -0
- data/app/assets/images/adminpanel/sort_desc.png +0 -0
- data/app/assets/images/adminpanel/sort_desc_disabled.png +0 -0
- data/app/assets/images/adminpanel/spinner-mini.gif +0 -0
- data/app/assets/images/adminpanel/spinner.gif +0 -0
- data/app/assets/images/adminpanel/toolbar.png +0 -0
- data/app/assets/javascripts/adminpanel/bootstrap-datepicker.js +1159 -0
- data/app/assets/javascripts/adminpanel/bootstrap-timepicker.js +803 -0
- data/app/assets/javascripts/adminpanel/bootstrap.js +2170 -0
- data/app/assets/javascripts/adminpanel/imagesloaded.js +13 -0
- data/app/assets/javascripts/adminpanel/init_editor.js +28 -0
- data/app/assets/javascripts/adminpanel/jquery.dataTables.min.js +155 -0
- data/app/assets/javascripts/adminpanel/jquery.facybox.js +395 -0
- data/app/assets/javascripts/adminpanel/jquery.masonry.min.js +10 -0
- data/app/assets/javascripts/adminpanel/jquery.slimscroll.min.js +14 -0
- data/app/assets/javascripts/adminpanel/medium-editor.js +703 -0
- data/app/assets/javascripts/adminpanel/products.js +14 -0
- data/app/assets/javascripts/adminpanel/realm.js +90 -0
- data/app/assets/javascripts/adminpanel/tables.js +126 -0
- data/app/assets/javascripts/application-admin.js +16 -0
- data/app/assets/stylesheets/adminpanel/_clearfix.css.scss +8 -0
- data/app/assets/stylesheets/adminpanel/alertify.css +242 -0
- data/app/assets/stylesheets/adminpanel/bootstrap.css +6103 -0
- data/app/assets/stylesheets/adminpanel/colorpicker.css +7 -0
- data/app/assets/stylesheets/adminpanel/datepicker.css +9 -0
- data/app/assets/stylesheets/adminpanel/elfinder.min.css +59 -0
- data/app/assets/stylesheets/adminpanel/facybox.css +146 -0
- data/app/assets/stylesheets/adminpanel/font-awesome.min.css +34 -0
- data/app/assets/stylesheets/adminpanel/fullcalendar.css +618 -0
- data/app/assets/stylesheets/adminpanel/fullcalendar.print.css +61 -0
- data/app/assets/stylesheets/adminpanel/medium-editor.css.scss +1 -0
- data/app/assets/stylesheets/adminpanel/select2.css +524 -0
- data/app/assets/stylesheets/adminpanel/theme.css +1563 -0
- data/app/assets/stylesheets/adminpanel/timepicker.css +82 -0
- data/app/assets/stylesheets/application-admin.css +14 -0
- data/app/controllers/adminpanel/application_controller.rb +18 -0
- data/app/controllers/adminpanel/categories_controller.rb +41 -0
- data/app/controllers/adminpanel/galleries_controller.rb +45 -0
- data/app/controllers/adminpanel/products_controller.rb +87 -0
- data/app/controllers/adminpanel/sections_controller.rb +46 -0
- data/app/controllers/adminpanel/sessions_controller.rb +26 -0
- data/app/controllers/adminpanel/users_controller.rb +85 -0
- data/app/helpers/adminpanel/application_helper.rb +73 -0
- data/app/helpers/custom_form_builder.rb +219 -0
- data/app/models/adminpanel/category.rb +7 -0
- data/app/models/adminpanel/contact.rb +25 -0
- data/app/models/adminpanel/gallery.rb +10 -0
- data/app/models/adminpanel/image.rb +6 -0
- data/app/models/adminpanel/product.rb +24 -0
- data/app/models/adminpanel/section.rb +16 -0
- data/app/models/adminpanel/user.rb +35 -0
- data/app/uploaders/adminpanel/gallery_uploader.rb +56 -0
- data/app/uploaders/adminpanel/image_uploader.rb +63 -0
- data/app/uploaders/adminpanel/section_uploader.rb +56 -0
- data/app/views/adminpanel/.DS_Store +0 -0
- data/app/views/adminpanel/categories/edit.html.erb +18 -0
- data/app/views/adminpanel/categories/index.html.erb +55 -0
- data/app/views/adminpanel/categories/new.html.erb +18 -0
- data/app/views/adminpanel/categories/show.html.erb +0 -0
- data/app/views/adminpanel/galleries/create.html.erb +2 -0
- data/app/views/adminpanel/galleries/delete.html.erb +2 -0
- data/app/views/adminpanel/galleries/edit.html.erb +26 -0
- data/app/views/adminpanel/galleries/index.html.erb +60 -0
- data/app/views/adminpanel/galleries/new.html.erb +18 -0
- data/app/views/adminpanel/galleries/show.html.erb +18 -0
- data/app/views/adminpanel/galleries/update.html.erb +2 -0
- data/app/views/adminpanel/products/.DS_Store +0 -0
- data/app/views/adminpanel/products/_image_fields.html.erb +24 -0
- data/app/views/adminpanel/products/_product_form.html.erb +31 -0
- data/app/views/adminpanel/products/edit.html.erb +10 -0
- data/app/views/adminpanel/products/index.html.erb +57 -0
- data/app/views/adminpanel/products/new.html.erb +10 -0
- data/app/views/adminpanel/products/show.html.erb +61 -0
- data/app/views/adminpanel/sections/_image_fields.html.erb +24 -0
- data/app/views/adminpanel/sections/create.html.erb +2 -0
- data/app/views/adminpanel/sections/destroy.html.erb +2 -0
- data/app/views/adminpanel/sections/edit.html.erb +40 -0
- data/app/views/adminpanel/sections/index.html.erb +38 -0
- data/app/views/adminpanel/sections/new.html.erb +27 -0
- data/app/views/adminpanel/sections/show.html.erb +28 -0
- data/app/views/adminpanel/sections/update.html.erb +2 -0
- data/app/views/adminpanel/sessions/new.html.erb +26 -0
- data/app/views/adminpanel/users/_form.html.erb +33 -0
- data/app/views/adminpanel/users/edit.html.erb +22 -0
- data/app/views/adminpanel/users/index.html.erb +55 -0
- data/app/views/adminpanel/users/new.html.erb +22 -0
- data/app/views/adminpanel/users/show.html.erb +21 -0
- data/app/views/layouts/_shim.html.erb +4 -0
- data/app/views/layouts/_side_menu.html.erb +45 -0
- data/app/views/layouts/_top_bar.html.erb +43 -0
- data/app/views/layouts/admin.html.erb +45 -0
- data/app/views/shared/_breadcrumb.html.erb +6 -0
- data/app/views/shared/_error_messages.html.erb +17 -0
- data/config/locales/en.yml +5 -0
- data/config/locales/es.yml +202 -0
- data/config/routes.rb +11 -0
- data/lib/adminpanel.rb +8 -0
- data/lib/adminpanel/engine.rb +5 -0
- data/lib/adminpanel/version.rb +3 -0
- metadata +349 -0
@@ -0,0 +1,14 @@
|
|
1
|
+
$(document).ready(function(){
|
2
|
+
$('form').on('click', '.add_fields', function(e) {
|
3
|
+
time = new Date().getTime();
|
4
|
+
regexp = new RegExp($(this).data('id'), 'g');
|
5
|
+
$(this).before($(this).data('fields').replace(regexp, time));
|
6
|
+
e.preventDefault();
|
7
|
+
});
|
8
|
+
|
9
|
+
$('form').on('click', '.remove_fields', function(e){
|
10
|
+
$(this).prev('input[type=hidden]').val('1');
|
11
|
+
$(this).parent().parent().parent().hide();
|
12
|
+
e.preventDefault();
|
13
|
+
});
|
14
|
+
});
|
@@ -0,0 +1,90 @@
|
|
1
|
+
|
2
|
+
$(function() {
|
3
|
+
|
4
|
+
// toggle arrow on menu items
|
5
|
+
$('.accordion-heading .accordion-toggle').click(function(){
|
6
|
+
$('.accordion-heading .accordion-toggle').not($(this)[0], '.accordion-heading .accordion-toggle.collapse').addClass('collapsed');
|
7
|
+
});
|
8
|
+
|
9
|
+
|
10
|
+
// show the overview boxes on the dashboard once they are loaded
|
11
|
+
$('.overview_boxes .box_row').css('display', 'inline-block');
|
12
|
+
|
13
|
+
// init tooltips on .tips class elements, text for the tooltip is in the data-title attribute on the element itself
|
14
|
+
$('.tip').tooltip();
|
15
|
+
|
16
|
+
// init popover on .pop class elements
|
17
|
+
$('.pop').popover({
|
18
|
+
title:$(this).data('title'),
|
19
|
+
content:$(this).data('content'),
|
20
|
+
placement:'top'
|
21
|
+
});
|
22
|
+
|
23
|
+
// prevent the top menu popover links to make the window scroll up because of href="#"
|
24
|
+
$('.visible-desktop #messages, .visible-desktop #notifications').click(function(e){
|
25
|
+
e.preventDefault();
|
26
|
+
});
|
27
|
+
|
28
|
+
|
29
|
+
// funtion to slide menu out from the left
|
30
|
+
$('.slide_menu_left').click(function(e){
|
31
|
+
|
32
|
+
e.preventDefault();
|
33
|
+
if($(".nav-collapse.collapse").hasClass('open_left')){
|
34
|
+
sidemenu_close();
|
35
|
+
}else{
|
36
|
+
sidemenu_open();
|
37
|
+
$('.main_container').bind('click', function(){
|
38
|
+
sidemenu_close();
|
39
|
+
});
|
40
|
+
// var handler = function() {
|
41
|
+
// sidemenu_close();
|
42
|
+
// };
|
43
|
+
// $(window).bind('resize', handler);
|
44
|
+
}
|
45
|
+
});
|
46
|
+
|
47
|
+
|
48
|
+
// collapse function for the widget
|
49
|
+
$('.widget-buttons a.collapse').click(function(){
|
50
|
+
if($(this).attr('data-collapsed') == 'false'){
|
51
|
+
$(this).closest('.widget').find('.widget-body').slideUp();
|
52
|
+
$(this).attr('data-collapsed', 'true').addClass('widget-hidden');
|
53
|
+
}else{
|
54
|
+
$(this).closest('.widget').find('.widget-body').slideDown();
|
55
|
+
$(this).attr('data-collapsed', 'false').removeClass('widget-hidden');
|
56
|
+
}
|
57
|
+
});
|
58
|
+
|
59
|
+
$('.datepicker-basic').datepicker();
|
60
|
+
}); // end document reday
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
//----- Side menu functions -----//
|
67
|
+
|
68
|
+
// slide menu out of view
|
69
|
+
function sidemenu_close(){
|
70
|
+
$(".main_container").stop().animate({
|
71
|
+
'left': '0'
|
72
|
+
}, 250, 'swing');
|
73
|
+
$(".nav-collapse.collapse").stop().animate({
|
74
|
+
'left': '-150px'
|
75
|
+
}, 250, 'swing').removeClass('open_left');
|
76
|
+
$('.main_container').unbind('click');
|
77
|
+
if(typeof handler != 'undefined'){
|
78
|
+
$(window).unbind('resize', handler);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
// slide menu in
|
83
|
+
function sidemenu_open(){
|
84
|
+
$(".main_container").stop().animate({
|
85
|
+
'left': '150px'
|
86
|
+
}, 250, 'swing');
|
87
|
+
$(".nav-collapse.collapse").stop().animate({
|
88
|
+
'left': '0'
|
89
|
+
}, 250, 'swing').addClass('open_left');
|
90
|
+
}
|
@@ -0,0 +1,126 @@
|
|
1
|
+
$.extend( $.fn.dataTableExt.oPagination, {
|
2
|
+
"bootstrap": {
|
3
|
+
"fnInit": function( oSettings, nPaging, fnDraw ) {
|
4
|
+
var oLang = oSettings.oLanguage.oPaginate;
|
5
|
+
var fnClickHandler = function ( e ) {
|
6
|
+
e.preventDefault();
|
7
|
+
if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) {
|
8
|
+
fnDraw( oSettings );
|
9
|
+
}
|
10
|
+
};
|
11
|
+
|
12
|
+
$(nPaging).addClass('pagination').append(
|
13
|
+
'<ul>'+
|
14
|
+
'<li class="prev disabled"><a href="#">← '+oLang.sPrevious+'</a></li>'+
|
15
|
+
'<li class="next disabled"><a href="#">'+oLang.sNext+' → </a></li>'+
|
16
|
+
'</ul>'
|
17
|
+
);
|
18
|
+
var els = $('a', nPaging);
|
19
|
+
$(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler );
|
20
|
+
$(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler );
|
21
|
+
},
|
22
|
+
|
23
|
+
"fnUpdate": function ( oSettings, fnDraw ) {
|
24
|
+
var iListLength = 5;
|
25
|
+
var oPaging = oSettings.oInstance.fnPagingInfo();
|
26
|
+
var an = oSettings.aanFeatures.p;
|
27
|
+
var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2);
|
28
|
+
|
29
|
+
if ( oPaging.iTotalPages < iListLength) {
|
30
|
+
iStart = 1;
|
31
|
+
iEnd = oPaging.iTotalPages;
|
32
|
+
}
|
33
|
+
else if ( oPaging.iPage <= iHalf ) {
|
34
|
+
iStart = 1;
|
35
|
+
iEnd = iListLength;
|
36
|
+
} else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) {
|
37
|
+
iStart = oPaging.iTotalPages - iListLength + 1;
|
38
|
+
iEnd = oPaging.iTotalPages;
|
39
|
+
} else {
|
40
|
+
iStart = oPaging.iPage - iHalf + 1;
|
41
|
+
iEnd = iStart + iListLength - 1;
|
42
|
+
}
|
43
|
+
|
44
|
+
for ( i=0, iLen=an.length ; i<iLen ; i++ ) {
|
45
|
+
// Remove the middle elements
|
46
|
+
$('li:gt(0)', an[i]).filter(':not(:last)').remove();
|
47
|
+
|
48
|
+
// Add the new list items and their event handlers
|
49
|
+
for ( j=iStart ; j<=iEnd ; j++ ) {
|
50
|
+
sClass = (j==oPaging.iPage+1) ? 'class="active"' : '';
|
51
|
+
$('<li '+sClass+'><a href="#">'+j+'</a></li>')
|
52
|
+
.insertBefore( $('li:last', an[i])[0] )
|
53
|
+
.bind('click', function (e) {
|
54
|
+
e.preventDefault();
|
55
|
+
oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength;
|
56
|
+
fnDraw( oSettings );
|
57
|
+
} );
|
58
|
+
}
|
59
|
+
|
60
|
+
// Add / remove disabled classes from the static elements
|
61
|
+
if ( oPaging.iPage === 0 ) {
|
62
|
+
$('li:first', an[i]).addClass('disabled');
|
63
|
+
} else {
|
64
|
+
$('li:first', an[i]).removeClass('disabled');
|
65
|
+
}
|
66
|
+
|
67
|
+
if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) {
|
68
|
+
$('li:last', an[i]).addClass('disabled');
|
69
|
+
} else {
|
70
|
+
$('li:last', an[i]).removeClass('disabled');
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
} );
|
76
|
+
$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
|
77
|
+
{
|
78
|
+
return {
|
79
|
+
"iStart": oSettings._iDisplayStart,
|
80
|
+
"iEnd": oSettings.fnDisplayEnd(),
|
81
|
+
"iLength": oSettings._iDisplayLength,
|
82
|
+
"iTotal": oSettings.fnRecordsTotal(),
|
83
|
+
"iFilteredTotal": oSettings.fnRecordsDisplay(),
|
84
|
+
"iPage": oSettings._iDisplayLength === -1 ?
|
85
|
+
0 : Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
|
86
|
+
"iTotalPages": oSettings._iDisplayLength === -1 ?
|
87
|
+
0 : Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
|
88
|
+
};
|
89
|
+
};
|
90
|
+
|
91
|
+
jQuery.fn.dataTableExt.aTypes.push(
|
92
|
+
function ( sData ) {
|
93
|
+
return 'html';
|
94
|
+
}
|
95
|
+
);
|
96
|
+
|
97
|
+
function SwitchCalendars(startCalendar, endCalendar, e) {
|
98
|
+
var endCalendarDate = new Date(e.date),
|
99
|
+
endCalendarInput = $('#end_date');
|
100
|
+
|
101
|
+
startCalendar.datepicker('hide');
|
102
|
+
endCalendarDate.setDate(endCalendarDate.getDate() + 1);
|
103
|
+
endCalendar.datepicker('setStartDate', endCalendarDate);
|
104
|
+
endCalendar.datepicker('update', endCalendarDate);
|
105
|
+
endCalendar.focus();
|
106
|
+
endCalendar.datepicker('show');
|
107
|
+
}
|
108
|
+
|
109
|
+
$(document).ready(function() {
|
110
|
+
$('#information-table').dataTable( {
|
111
|
+
"sDom": "<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",
|
112
|
+
"sPaginationType": "bootstrap",
|
113
|
+
"oLanguage": {
|
114
|
+
"sLengthMenu": "Registros: _MENU_ ",
|
115
|
+
"sZeroRecords": "No se encontro ningún registro que coincida con su búsqueda",
|
116
|
+
"sInfo": "Mostrando registros del _START_ al _END_ (_TOTAL_ registros en total)",
|
117
|
+
"sInfoEmpty": "No hay entradas para mostrar",
|
118
|
+
"sInfoFiltered": "(_MAX_ registros fueron filtrados)",
|
119
|
+
"sSearch": "Buscar:",
|
120
|
+
"oPaginate" : {
|
121
|
+
"sPrevious": "Anterior",
|
122
|
+
"sNext": "Siguiente"
|
123
|
+
}
|
124
|
+
}
|
125
|
+
});
|
126
|
+
} );
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// the compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require adminpanel/bootstrap
|
16
|
+
//= require_tree ./adminpanel/.
|
@@ -0,0 +1,242 @@
|
|
1
|
+
.alertify-show,
|
2
|
+
.alertify-log {
|
3
|
+
-webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1); /* older webkit */
|
4
|
+
-webkit-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
|
5
|
+
-moz-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
|
6
|
+
-ms-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
|
7
|
+
-o-transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275);
|
8
|
+
transition: all 500ms cubic-bezier(0.175, 0.885, 0.320, 1.275); /* easeOutBack */
|
9
|
+
}
|
10
|
+
.alertify-hide {
|
11
|
+
-webkit-transition: all 250ms cubic-bezier(0.600, 0, 0.735, 0.045); /* older webkit */
|
12
|
+
-webkit-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
13
|
+
-moz-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
14
|
+
-ms-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
15
|
+
-o-transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
16
|
+
transition: all 250ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */
|
17
|
+
}
|
18
|
+
.alertify-log-hide {
|
19
|
+
-webkit-transition: all 500ms cubic-bezier(0.600, 0, 0.735, 0.045); /* older webkit */
|
20
|
+
-webkit-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
21
|
+
-moz-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
22
|
+
-ms-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
23
|
+
-o-transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045);
|
24
|
+
transition: all 500ms cubic-bezier(0.600, -0.280, 0.735, 0.045); /* easeInBack */
|
25
|
+
}
|
26
|
+
.alertify-cover {
|
27
|
+
position: fixed; z-index: 99999;
|
28
|
+
top: 0; right: 0; bottom: 0; left: 0;
|
29
|
+
}
|
30
|
+
.alertify-cover-hidden {
|
31
|
+
display: none;
|
32
|
+
}
|
33
|
+
.alertify {
|
34
|
+
position: fixed; z-index: 99999;
|
35
|
+
top: 50px; left: 50%;
|
36
|
+
width: 550px;
|
37
|
+
margin-left: -275px;
|
38
|
+
opacity: 1;
|
39
|
+
}
|
40
|
+
.alertify-hidden {
|
41
|
+
-webkit-transform: translate(0,-150px);
|
42
|
+
-moz-transform: translate(0,-150px);
|
43
|
+
-ms-transform: translate(0,-150px);
|
44
|
+
-o-transform: translate(0,-150px);
|
45
|
+
transform: translate(0,-150px);
|
46
|
+
opacity: 0;
|
47
|
+
display: none\9; /* IE8 & IE7 */
|
48
|
+
}
|
49
|
+
.alertify-logs {
|
50
|
+
position: fixed;
|
51
|
+
z-index: 5000;
|
52
|
+
bottom: 10px;
|
53
|
+
right: 10px;
|
54
|
+
width: 300px;
|
55
|
+
}
|
56
|
+
.alertify-log {
|
57
|
+
display: block;
|
58
|
+
margin-top: 10px;
|
59
|
+
position: relative;
|
60
|
+
right: -300px;
|
61
|
+
opacity: 0;
|
62
|
+
}
|
63
|
+
.alertify-log-show {
|
64
|
+
right: 0;
|
65
|
+
opacity: 1;
|
66
|
+
}
|
67
|
+
.alertify-log-hide {
|
68
|
+
-webkit-transform: translate(300px, 0);
|
69
|
+
-moz-transform: translate(300px, 0);
|
70
|
+
-ms-transform: translate(300px, 0);
|
71
|
+
-o-transform: translate(300px, 0);
|
72
|
+
transform: translate(300px, 0);
|
73
|
+
opacity: 0;
|
74
|
+
}
|
75
|
+
.alertify-dialog {
|
76
|
+
padding: 25px;
|
77
|
+
}
|
78
|
+
.alertify-resetFocus {
|
79
|
+
border: 0;
|
80
|
+
clip: rect(0 0 0 0);
|
81
|
+
height: 1px;
|
82
|
+
margin: -1px;
|
83
|
+
overflow: hidden;
|
84
|
+
padding: 0;
|
85
|
+
position: absolute;
|
86
|
+
width: 1px;
|
87
|
+
}
|
88
|
+
.alertify-inner {
|
89
|
+
text-align: center;
|
90
|
+
}
|
91
|
+
.alertify-text {
|
92
|
+
margin-bottom: 15px;
|
93
|
+
width: 100%;
|
94
|
+
-webkit-box-sizing: border-box;
|
95
|
+
-moz-box-sizing: border-box;
|
96
|
+
box-sizing: border-box;
|
97
|
+
font-size: 100%;
|
98
|
+
}
|
99
|
+
.alertify-buttons {
|
100
|
+
}
|
101
|
+
.alertify-button {
|
102
|
+
/* line-height and font-size for input button */
|
103
|
+
line-height: 1.5;
|
104
|
+
font-size: 100%;
|
105
|
+
display: inline-block;
|
106
|
+
cursor: pointer;
|
107
|
+
margin-left: 5px;
|
108
|
+
}
|
109
|
+
|
110
|
+
@media only screen and (max-width: 680px) {
|
111
|
+
.alertify,
|
112
|
+
.alertify-logs {
|
113
|
+
width: 90%;
|
114
|
+
-webkit-box-sizing: border-box;
|
115
|
+
-moz-box-sizing: border-box;
|
116
|
+
box-sizing: border-box;
|
117
|
+
}
|
118
|
+
.alertify {
|
119
|
+
left: 5%;
|
120
|
+
margin: 0;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
|
125
|
+
/**
|
126
|
+
* Twitter Bootstrap Look and Feel
|
127
|
+
* Based on http://twitter.github.com/bootstrap/
|
128
|
+
*/
|
129
|
+
.alertify,
|
130
|
+
.alertify-log {
|
131
|
+
font-family: sans-serif;
|
132
|
+
}
|
133
|
+
.alertify {
|
134
|
+
background: #FFF;
|
135
|
+
border: 1px solid #8E8E8E; /* browsers that don't support rgba */
|
136
|
+
border: 1px solid rgba(0,0,0,.3);
|
137
|
+
border-radius: 6px;
|
138
|
+
box-shadow: 0 3px 7px rgba(0,0,0,.3);
|
139
|
+
-webkit-background-clip: padding; /* Safari 4? Chrome 6? */
|
140
|
+
-moz-background-clip: padding; /* Firefox 3.6 */
|
141
|
+
background-clip: padding-box; /* Firefox 4, Safari 5, Opera 10, IE 9 */
|
142
|
+
}
|
143
|
+
.alertify-dialog {
|
144
|
+
padding: 0;
|
145
|
+
}
|
146
|
+
.alertify-inner {
|
147
|
+
text-align: left;
|
148
|
+
}
|
149
|
+
.alertify-message {
|
150
|
+
padding: 15px;
|
151
|
+
margin: 0;
|
152
|
+
}
|
153
|
+
.alertify-text-wrapper {
|
154
|
+
padding: 0 15px;
|
155
|
+
}
|
156
|
+
.alertify-text {
|
157
|
+
color: #555;
|
158
|
+
border-radius: 4px;
|
159
|
+
padding: 8px;
|
160
|
+
background-color: #FFF;
|
161
|
+
border: 1px solid #CCC;
|
162
|
+
box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
|
163
|
+
}
|
164
|
+
.alertify-text:focus {
|
165
|
+
border-color: rgba(82,168,236,.8);
|
166
|
+
outline: 0;
|
167
|
+
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
|
168
|
+
}
|
169
|
+
|
170
|
+
.alertify-buttons {
|
171
|
+
padding: 14px 15px 15px;
|
172
|
+
background: #F5F5F5;
|
173
|
+
border-top: 1px solid #DDD;
|
174
|
+
border-radius: 0 0 6px 6px;
|
175
|
+
box-shadow: inset 0 1px 0 #FFF;
|
176
|
+
text-align: right;
|
177
|
+
}
|
178
|
+
.alertify-button {
|
179
|
+
margin-left: 10px;
|
180
|
+
border-radius: 4px;
|
181
|
+
font-weight: normal;
|
182
|
+
padding: 4px 12px;
|
183
|
+
text-decoration: none;
|
184
|
+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(0, 0, 0, .05);
|
185
|
+
background-image: -webkit-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
|
186
|
+
background-image: -moz-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
|
187
|
+
background-image: -ms-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
|
188
|
+
background-image: -o-linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
|
189
|
+
background-image: linear-gradient(top, rgba(255,255,255,.3), rgba(255,255,255,0));
|
190
|
+
}
|
191
|
+
.alertify-button:focus {
|
192
|
+
outline: none;
|
193
|
+
box-shadow: 0 0 5px #2B72D5;
|
194
|
+
}
|
195
|
+
.alertify-button:active {
|
196
|
+
position: relative;
|
197
|
+
box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
198
|
+
}
|
199
|
+
.alertify-button-cancel {
|
200
|
+
text-shadow: 0 -1px 0 rgba(255,255,255,.75);
|
201
|
+
background-color: #E6E6E6;
|
202
|
+
border: 1px solid #BBB;
|
203
|
+
color: #333;
|
204
|
+
background-image: -webkit-linear-gradient(top, #FFF, #E6E6E6);
|
205
|
+
background-image: -moz-linear-gradient(top, #FFF, #E6E6E6);
|
206
|
+
background-image: -ms-linear-gradient(top, #FFF, #E6E6E6);
|
207
|
+
background-image: -o-linear-gradient(top, #FFF, #E6E6E6);
|
208
|
+
background-image: linear-gradient(top, #FFF, #E6E6E6);
|
209
|
+
}
|
210
|
+
.alertify-button-cancel:hover {
|
211
|
+
background: #E6E6E6;
|
212
|
+
}
|
213
|
+
.alertify-button-ok {
|
214
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
215
|
+
background-color: #04C;
|
216
|
+
border: 1px solid #04C;
|
217
|
+
border-color: #04C #04C #002A80;
|
218
|
+
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
|
219
|
+
color: #FFF;
|
220
|
+
}
|
221
|
+
.alertify-button-ok:hover {
|
222
|
+
background: #04C;
|
223
|
+
}
|
224
|
+
|
225
|
+
.alertify-log {
|
226
|
+
background: #D9EDF7;
|
227
|
+
padding: 8px 14px;
|
228
|
+
border-radius: 4px;
|
229
|
+
color: #3A8ABF;
|
230
|
+
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
231
|
+
border: 1px solid #BCE8F1;
|
232
|
+
}
|
233
|
+
.alertify-log-error {
|
234
|
+
color: #B94A48;
|
235
|
+
background: #F2DEDE;
|
236
|
+
border: 1px solid #EED3D7;
|
237
|
+
}
|
238
|
+
.alertify-log-success {
|
239
|
+
color: #468847;
|
240
|
+
background: #DFF0D8;
|
241
|
+
border: 1px solid #D6E9C6;
|
242
|
+
}
|