Commit a71c0ca8 authored by yPhil's avatar yPhil

Fix: preloadHiddenDiv path(s)

parent 6c8cd6f7
......@@ -73,6 +73,20 @@
src: url('/static/font/BebasNeue.otf') format("opentype");
}
#preloadHiddenDiv {
height:0px;
overflow:hidden;
width:0px;
}
#preloadHiddenDiv > .logoTitle {
font-family: LobsterRegular;
}
#preloadHiddenDiv > .feedTitle {
font-family: BebasNeueRegular;
}
body {
background-color: var(--bg-color-ter);
font-family: Arial,Helvetica,sans-serif;
......@@ -186,12 +200,6 @@ i.feedControl:hover {
display:initial !important;
}
.preloadHiddenDiv {
height:0px;
overflow:hidden;
width:0px;
}
input {
margin:0;
padding: .4em;
......@@ -432,11 +440,8 @@ fieldset {
}
.ui-button.ui-state-active {
background-color: var(--ui-color-sec);
}
#menu .ui-button.ui-state-active {
border: 3px solid var(--ui-color-sec);
background-color: var(--ui-color-sec);
}
.ui-state-hover,
......@@ -474,28 +479,27 @@ a.ui-button:active,
background-color: var(--ui-color-sec);
}
.ui-button.ui-state-active.dangerous,
.null {
background-color: var(--ui-color-danger);
}
.ui-button.ui-state-active:hover,
.ui-button.ui-state-active:focus,
.null {
border: 3px solid var(--ui-color-sep);
}
.ui-button.ui-state-active.dangerous:active,
.ui-button.ui-state-active.dangerous:hover,
.ui-button.ui-state-active.dangerous:focus,
.null {
border: 3px solid var(--ui-color-sec);
border: 3px solid var(--ui-color-sen);
}
.ui-button.ui-state-active.dangerous,
.ui-button.dangerous:focus,
.ui-button.dangerous:hover,
.ui-button.dangerous:active,
label.ui-button.dangerous:hover,
.plop {
background-color: var(--ui-color-danger) !important;
color: var(--ui-color-pri) !important;
/* border: 3px solid var(--ui-color-danger) !important; */
}
......
......@@ -590,86 +590,5 @@ MOB.dialog = {
.dialog('open');
return;
});
},
question:function(qn) {
var questions = [
'a FASCIST',
'a LEFTIST',
'ALL OF THAT',
'NONE OF THAT'
];
$('#mobDialogs').load('/static/templates/dialogs.html #questionDialog', function() {
var $dialog = $('#questionDialog');
$dialog.dialog({
title: MOB.tr('Just answer the question'),
// position: {
// my: 'center',
// at: 'center',
// of: window
// },
autoOpen: false,
closeOnEscape: true,
resizable: false,
// height: 'auto',
width: MOB.utilities.vWidth(),
modal: true,
show: 'slide',
hide: 'explode',
buttons: [
{
text: MOB.tr('Hell, Yeah'),
title: MOB.tr('Hell, Yeah'),
class: 'translate',
click: function() {
$('#' + $(this).data('tabId')).text($dialog.find('#tabName').val());
MOB.tab.saveTabs();
// MOB.dialog.kill($dialog);
MOB.dialog.kill($dialog);
}
},
{
text: MOB.tr('What? No'),
title: MOB.tr('What? No'),
class: 'translate',
click: function() {
if (qn >= questions.length)
MOB.dialog.kill($dialog);
else {
MOB.dialog.question(qn++);
MOB.dialog.kill($dialog);
}
}
},
{
text: MOB.tr('Huh, Next question'),
title: MOB.tr('Huh, Next question'),
class: 'translate',
click: function() {
MOB.dialog.kill($dialog);
}
}
],
open: function() {
$('.ui-widget-overlay').on('click', function() {
MOB.dialog.kill($dialog);
});
$dialog.find('p').html(MOB.tr('Are you') + '<br />' + MOB.tr(questions[qn++]) + '?');
}
});
$dialog.dialog('open');
return;
});
}
};
......@@ -121,18 +121,6 @@
</div>
</div>
<div id="collectionDialog">
<div class="dialog">
<div class="content"></div>
</div>
</div>
<div id="questionDialog" title="Just answer the question">
<div class="dialog">
Yo!
</div>
</div>
<div id="helpDialog" title="Pétrolette">
<h1 class="translate"
data-title="What exactly is Pétrolette?"
......
......@@ -45,7 +45,7 @@
<body>
<div id="overlay"></div>
<div class="preloadHiddenDiv">
<div id="preloadHiddenDiv">
<i class="icon-arrows-cw"></i>
<i class="icon-cog-1"></i>
<i class="icon-cancel-2"></i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment