Beautified

pull/703/head^2
TimZ99 2019-02-17 19:57:28 +01:00
parent 560dc8a9a5
commit 9eac461700
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
6 changed files with 86 additions and 68 deletions

View File

@ -32,8 +32,7 @@ $().ready(function () {
var $origin = $(this).data('modal-origin');
if ($origin.is('a')) {
window.location = $origin.attr('href');
}
else {
} else {
$origin.next('input[type=hidden]').attr('value', 1);
$origin.closest('form').submit();
}
@ -129,8 +128,7 @@ function psm_saveLayout(layout) {
$("#flow-layout").hide();
$("#block-layout").removeClass('active');
$("#table-layout").addClass('active');
}
else {
} else {
$("#list-layout").hide();
$("#flow-layout").show();
$("#block-layout").addClass('active');

View File

@ -6,11 +6,9 @@ $(".search_input").keyup(function () {
col2 = this.cells[1].innerText.toLowerCase().indexOf(searchTerm);
if (col1 >= 0) {
$(this).attr('visible', 'true');
}
else if (col2 >= 0) {
} else if (col2 >= 0) {
$(this).attr('visible', 'true');
}
else {
} else {
$(this).attr('visible', 'false');
}
});
@ -19,8 +17,7 @@ $(".search_input").keyup(function () {
if ($(".search_input").is(":placeholder-shown")) {
$('.search_icon i').show();
$('.search_icon p').hide();
}
else{
} else {
$('.search_icon i').hide();
$('.search_icon p').show();
@ -29,8 +26,7 @@ $(".search_input").keyup(function () {
if (jobCount == '0') {
$('.no-result').show();
}
else {
} else {
$('.no-result').hide();
}
});

View File

@ -1,7 +1,5 @@
$theme-colors: (
"primary": #006AE0,
"success": #20883A
);
$theme-colors: ("primary": #006AE0,
"success": #20883A);
@import "../plugin/bootstrap/scss/_functions";
@import "../plugin/bootstrap/scss/functions";
@import "../plugin/bootstrap/scss/variables";

View File

@ -8,6 +8,7 @@
caret-color: transparent;
line-height: 44px;
transition: width 0.4s linear;
&:not(:placeholder-shown) {
padding: 0 10px;
width: 100%;
@ -23,11 +24,13 @@
background-color: #353b48;
border-radius: 40px;
padding: 10px;
&:hover {
>.search_icon {
background: white;
color: #e74c3c;
}
>.search_input {
padding: 0 10px;
max-width: 450px;
@ -48,6 +51,7 @@
align-items: center;
border-radius: 50%;
color: white;
p {
height: 0.6em;
font-weight: bold;

View File

@ -2,11 +2,14 @@ html {
position: relative;
min-height: 100%;
}
html[dir='rtl'] {
#auto_refresh_servers,
#log_retention_period {
border-left-width: 0px
}
#auto_refresh_servers_input,
#log_retention_period_input {
border-top-left-radius: .25rem;
@ -15,10 +18,12 @@ html[dir='rtl'] {
border-bottom-right-radius: 0;
}
}
body {
padding-top: 4.5rem;
margin-bottom: 80px;
}
.footer {
position: absolute;
bottom: 0;
@ -27,34 +32,44 @@ body {
line-height: 60px;
background-color: #f5f5f5;
}
.navbar-dark .navbar-nav .nav-link {
color: rgba(255, 255, 255, .64);
&:focus,
&:hover {
color: rgba(255, 255, 255, .85);
}
}
dl, dt, dd{
dl,
dt,
dd {
margin-bottom: 0;
}
footer .text-muted {
color: #4C5557 !important;
}
a,
button,
.nav-link {
min-height: 44px !important;
min-width: 44px !important;
}
a.icon {
text-decoration: none;
cursor: pointer;
padding-left: 10px;
}
#auto_refresh_servers,
#log_retention_period {
border-right-width: 0px
}
#auto_refresh_servers_input,
#log_retention_period_input {
border-top-right-radius: .25rem;
@ -62,33 +77,40 @@ a.icon {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
form.form-signin input[type="text"],
form.form-reset input[type="text"] {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
form.form-signin input[type="password"] {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
form.form-reset {
input#input-password {
border-radius: 0;
}
input#input-password-repeat {
border-top-left-radius: 0;
border-top-right-radius: 0;
}
}
form.form-signin,
form.form-forgot,
form.form-reset {
margin: auto;
}
table tr[visible='false'],
.no-result {
display: none;
}
table tr[visible='true'] {
display: table-row;
}