mirror of
https://github.com/Xevion/trivia.git
synced 2025-12-13 22:13:18 -06:00
fixed table padding and duplicate css, fixed toggle button and simplified click area
This commit is contained in:
@@ -51,11 +51,8 @@ function ToggleAutorefresh() {
|
|||||||
// Client Initialization
|
// Client Initialization
|
||||||
$().ready(function () {
|
$().ready(function () {
|
||||||
// Setup all click functions
|
// Setup all click functions
|
||||||
$(".js-scroll-row-start").on("click", ToggleAutoscroll);
|
$(".js-scroll-row").on("click", ToggleAutoscroll);
|
||||||
$(".js-scroll-row-stop").on("click", ToggleAutoscroll);
|
$(".js-refresh").on("click", ToggleAutorefresh);
|
||||||
|
|
||||||
$(".js-refresh-start").on("click", ToggleAutorefresh);
|
|
||||||
$(".js-refresh-stop").on("click", ToggleAutorefresh).addClass("pointer");
|
|
||||||
|
|
||||||
ToggleAutoscroll()
|
ToggleAutoscroll()
|
||||||
ToggleAutorefresh()
|
ToggleAutorefresh()
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ body { font-family: Calibri, Arial, sans-serif; margin: 0; padding: 0; position:
|
|||||||
tr[data-row-index="0"] td { border-top: 0.25em solid #000; }
|
tr[data-row-index="0"] td { border-top: 0.25em solid #000; }
|
||||||
|
|
||||||
.ui-header { background-color: #b51329; border-bottom: 2px solid #27233a; color: #fff; padding: 0.5em 1em; }
|
.ui-header { background-color: #b51329; border-bottom: 2px solid #27233a; color: #fff; padding: 0.5em 1em; }
|
||||||
.ui-content { padding: 0.5em 1em; }
|
/*.ui-content { padding: 0.5em 1em; }*/
|
||||||
.ui-footer { }
|
.ui-footer { }
|
||||||
|
|
||||||
.center { text-align: center; }
|
.center { text-align: center; }
|
||||||
@@ -36,25 +36,3 @@ tr[data-row-index="0"] td { border-top: 0.25em solid #000; }
|
|||||||
.table-striped > tbody > tr.has-warning:nth-child(odd) { background-color: #faf2cc; border-color: #f8e5be; }
|
.table-striped > tbody > tr.has-warning:nth-child(odd) { background-color: #faf2cc; border-color: #f8e5be; }
|
||||||
.table-hover > tbody > tr:hover { background-color: #e0e0e0; } /* hover needs to come after striped so that striped rows have hover */
|
.table-hover > tbody > tr:hover { background-color: #e0e0e0; } /* hover needs to come after striped so that striped rows have hover */
|
||||||
.table-hover > tbody > tr.has-warning:hover, .table-hover > tbody > tr.has-warning-hover:hover { background-color: #f8edb5; border-color: #f6e79d; }
|
.table-hover > tbody > tr.has-warning:hover, .table-hover > tbody > tr.has-warning-hover:hover { background-color: #f8edb5; border-color: #f6e79d; }
|
||||||
|
|
||||||
.ui-header {
|
|
||||||
background-color: #b51329;
|
|
||||||
border-bottom: 2px solid #27233a;
|
|
||||||
color: #fff;
|
|
||||||
padding: 0.5em 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.controls {
|
|
||||||
float: right;
|
|
||||||
font-size: 80%;
|
|
||||||
padding-top: 0.25em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ui-content {
|
|
||||||
padding: 0.5em 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.small-no-wrap {
|
|
||||||
white-space: nowrap;
|
|
||||||
width: 1%;
|
|
||||||
}
|
|
||||||
@@ -16,14 +16,18 @@
|
|||||||
EfTA Trivia Night
|
EfTA Trivia Night
|
||||||
</span>
|
</span>
|
||||||
<span class="controls pointer">
|
<span class="controls pointer">
|
||||||
<span class="js-scroll-row">Scroll</span>
|
<span class="js-scroll-row">
|
||||||
<span class="js-scroll-row-start">Start</span>
|
Scroll
|
||||||
<span class="js-scroll-row-stop">Stop</span>
|
<span class="js-scroll-row-start">Start</span>
|
||||||
|
<span class="js-scroll-row-stop">Stop</span>
|
||||||
|
</span>
|
||||||
|
|
|
|
||||||
<span class="js-refresh">Refresh</span>
|
<span class="js-refresh">
|
||||||
<span class="js-refresh-start">Start</span>
|
Refresh
|
||||||
<span class="js-refresh-stop">Stop</span>
|
<span class="js-refresh-start">Start</span>
|
||||||
<span class="js-refresh-count"></span>
|
<span class="js-refresh-stop">Stop</span>
|
||||||
|
<span class="js-refresh-count"></span>
|
||||||
|
</span>
|
||||||
</span>
|
</span>
|
||||||
</header>
|
</header>
|
||||||
<div class="ui-content">
|
<div class="ui-content">
|
||||||
|
|||||||
Reference in New Issue
Block a user