Skip to content

Commit

Permalink
Merge pull request #16 from domoticz/beta
Browse files Browse the repository at this point in the history
V1.15.5
  • Loading branch information
davidlb authored Jul 3, 2020
2 parents 73386b3 + 4a3005e commit 3f2fdc7
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
1 change: 1 addition & 0 deletions css/dashboard_mobile.css
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ body.dashMobile table.mobileitem td.name a:after {
color: inherit;
font-size: 12px;
text-align: center;
width: 18px;
}

body.dashMobile table.mobileitem td#status,
Expand Down
14 changes: 11 additions & 3 deletions custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ h4,
#logdata,
#logdata_status,
#logdata_error {
background: var(--main-item-bg-color);
background: var(--main-navbar-bg-color);
}

.lognorm {
Expand Down Expand Up @@ -1175,7 +1175,7 @@ button.savebtn:disabled {

.display .ui-widget-content {
background: transparent;
color: black;
color: var(--main-text-color);
border: none;
border-bottom: 1px solid var(--main-blue-color);
}
Expand Down Expand Up @@ -1216,7 +1216,10 @@ table.dataTable thead th {
.dataTables_wrapper tr.even {
height: 45px;
color: var(--main-text-color) !important;
background-color: transparent;
}

.dataTables_wrapper tr.odd {
background-color: var(--main-disabled-color);
}

.dataTables_wrapper tr.even {
Expand Down Expand Up @@ -1406,8 +1409,13 @@ input#AcceptNewHardware:checked ~ button {
border-radius: 0;
border: none;
border-bottom: 1px solid var(--main-blue-color);
color: var(--main-text-color);
font-family: main-font;
}
select.ui-corner-all option {
background: var(--main-navbar-bg-color);
}

/* =Setup */
/* Footer */
/* =Footer */
Expand Down
1 change: 1 addition & 0 deletions custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ function init_theme() {
mutations.forEach(function(mutation) {
$("#main-view").children("div.container").removeClass("container").addClass("container-fluid");
removeRowDivider();
setCorrectDashboardLinksforMobile();
});
});
var targetNode = document.getElementById("holder");
Expand Down
8 changes: 8 additions & 0 deletions js/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ function setDevicesNativeSelectorForMobile() {
});
}

function setCorrectDashboardLinksforMobile() {
if (!isMobile) return;
$("table.mobileitem td#name > img").each(function() {
var script = $(this).attr("onclick");
$(this).wrap('<a onclick="' + script + '"></a>');
});
}

function setAllDevicesFeatures() {
switchState = {
on: $.t("On"),
Expand Down
2 changes: 1 addition & 1 deletion theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Machinon",
"description": "Machinon custom theme, simple and light",
"license": "GNU General Public License v3.0",
"version":"1.15.4",
"version":"1.15.5",
"author": "EdddieN",
"homepage": "https://www.machinon.com",
"wiki": "https://www.domoticz.com/wiki/Machinon_Theme",
Expand Down

0 comments on commit 3f2fdc7

Please sign in to comment.