forked from CGM_Public/pretix_original
Refs #80 -- Moved static files to a top-level directory
This commit is contained in:
@@ -1,75 +0,0 @@
|
||||
"use strict";
|
||||
|
||||
$(function () {
|
||||
$("input[data-toggle=radiocollapse]").change(function () {
|
||||
$($(this).attr("data-parent")).find(".collapse.in").collapse('hide');
|
||||
$($(this).attr("data-target")).collapse('show');
|
||||
});
|
||||
$(".js-only").removeClass("js-only");
|
||||
$(".variations").hide();
|
||||
$("a[data-toggle=variations]").click(function() {
|
||||
$(this).parent().parent().parent().find(".variations").slideToggle();
|
||||
});
|
||||
$(".collapsed").removeClass("collapsed").addClass("collapse");
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* Module for displaying "Waiting for..." dialog using Bootstrap
|
||||
*
|
||||
* @author Eugene Maslovich <ehpc@em42.ru>
|
||||
* MIT License
|
||||
*/
|
||||
|
||||
var waitingDialog = (function ($) {
|
||||
|
||||
// Creating modal dialog's DOM
|
||||
var $dialog = $(
|
||||
'<div class="modal fade" data-backdrop="static" data-keyboard="false" tabindex="-1" role="dialog" aria-hidden="true" style="padding-top:15%; overflow-y:visible;">' +
|
||||
'<div class="modal-dialog modal-m">' +
|
||||
'<div class="modal-content">' +
|
||||
'<div class="modal-header"><h3 style="margin:0;"></h3></div>' +
|
||||
'<div class="modal-body">' +
|
||||
'<div class="progress progress-striped active" style="margin-bottom:0;"><div class="progress-bar" style="width: 100%"></div></div>' +
|
||||
'</div>' +
|
||||
'</div></div></div>');
|
||||
|
||||
return {
|
||||
/**
|
||||
* Opens our dialog
|
||||
* @param message Custom message
|
||||
* @param options Custom options:
|
||||
* options.dialogSize - bootstrap postfix for dialog size, e.g. "sm", "m";
|
||||
* options.progressType - bootstrap postfix for progress bar type, e.g. "success", "warning".
|
||||
*/
|
||||
show: function (message, options) {
|
||||
// Assigning defaults
|
||||
var settings = $.extend({
|
||||
dialogSize: 'm',
|
||||
progressType: ''
|
||||
}, options);
|
||||
if (typeof message === 'undefined') {
|
||||
message = 'Loading';
|
||||
}
|
||||
if (typeof options === 'undefined') {
|
||||
options = {};
|
||||
}
|
||||
// Configuring dialog
|
||||
$dialog.find('.modal-dialog').attr('class', 'modal-dialog').addClass('modal-' + settings.dialogSize);
|
||||
$dialog.find('.progress-bar').attr('class', 'progress-bar');
|
||||
if (settings.progressType) {
|
||||
$dialog.find('.progress-bar').addClass('progress-bar-' + settings.progressType);
|
||||
}
|
||||
$dialog.find('h3').text(message);
|
||||
// Opening dialog
|
||||
$dialog.modal();
|
||||
},
|
||||
/**
|
||||
* Closes dialog
|
||||
*/
|
||||
hide: function () {
|
||||
$dialog.modal('hide');
|
||||
}
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
@@ -1,76 +0,0 @@
|
||||
.product-row {
|
||||
border-top: 1px solid @table-border-color;
|
||||
|
||||
&:last-child {
|
||||
}
|
||||
p:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.input-item-count {
|
||||
text-align: center;
|
||||
}
|
||||
.availability-box {
|
||||
text-align: center;
|
||||
|
||||
&.gone {
|
||||
color: @alert-danger-text;
|
||||
}
|
||||
&.unavailable {
|
||||
color: @alert-warning-text;
|
||||
}
|
||||
}
|
||||
}
|
||||
.item-with-variations .product-row.headline, .product-row.simple {
|
||||
border-top: 2px solid @table-border-color;
|
||||
}
|
||||
.item-with-variations:last-child {
|
||||
border-bottom: 2px solid @table-border-color;
|
||||
}
|
||||
|
||||
.panel-body address:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.cart-row, .product-row {
|
||||
padding: 10px 0;
|
||||
|
||||
.count form {
|
||||
display: inline;
|
||||
}
|
||||
.price, .count {
|
||||
text-align: right;
|
||||
}
|
||||
.price small,
|
||||
.availability-box small {
|
||||
display: block;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
&.total {
|
||||
border-top: 1px solid @table-border-color;
|
||||
}
|
||||
|
||||
dl {
|
||||
padding-left: 20px;
|
||||
margin-bottom: 0;
|
||||
|
||||
dd {
|
||||
padding-left: 20px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.panel-primary .panel-heading a {
|
||||
color: white;
|
||||
}
|
||||
.checkout-button-row {
|
||||
padding: 15px 0;
|
||||
}
|
||||
@media (max-width: @screen-sm-max) {
|
||||
.checkout-button-row div {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.page-header h1 small {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
.panel-title .radio {
|
||||
margin-left: 20px;
|
||||
}
|
||||
.form-control + .form-control-feedback {
|
||||
/* Fix for https://github.com/FortAwesome/Font-Awesome/issues/4313 */
|
||||
.form-control-feedback;
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
@import "../../bootstrap/less/bootstrap.less";
|
||||
@import "../../fontawesome/less/font-awesome.less";
|
||||
@fa-font-path: "../../fontawesome/fonts";
|
||||
|
||||
@brand-primary: #8E44B3;
|
||||
|
||||
@import "event.less";
|
||||
@import "forms.less";
|
||||
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 10px 0;
|
||||
font-size: 11px;
|
||||
}
|
||||
.page-header {
|
||||
position: relative;
|
||||
padding-bottom: 9px;
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
}
|
||||
.loginbox {
|
||||
padding-top: 15px;
|
||||
}
|
||||
}
|
||||
.js-only {
|
||||
display: none;
|
||||
}
|
||||
.locales {
|
||||
display: inline;
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
img {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
}
|
||||
.huge {
|
||||
font-size: 40px;
|
||||
}
|
||||
a:hover .panel-primary > .panel-heading {
|
||||
background-color: darken(@btn-primary-bg, 10%);
|
||||
border-color: darken(@btn-primary-border, 12%);
|
||||
}
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user