Skip to content

Commit

Permalink
Merge pull request Dashticz#727 from lokonli/v3.7.2-beta
Browse files Browse the repository at this point in the history
V3.7.2 beta
  • Loading branch information
lokonli authored Dec 28, 2020
2 parents 95b7750 + e354ad0 commit b93bfcb
Show file tree
Hide file tree
Showing 15 changed files with 228 additions and 170 deletions.
152 changes: 90 additions & 62 deletions css/creative.css
Original file line number Diff line number Diff line change
Expand Up @@ -315,24 +315,31 @@
border-bottom: 0px !important;
}

.graphclose .close{
color: white;
opacity: 0.7
}

.graphclose .close:focus, .graphclose .close:hover {
color: white;
opacity: 1
}

/*
next css sets the default height of the frame popup
*/

/*
.popupheight {
height: calc(95vh - 150px);
}
*/

.modal-body .glyphicon {
color: #a80002;
cursor: help;
}

.modal-dialog-settings {
width: 70%;
margin: 80px auto;
}

.nav {
border-bottom: 1px solid #e5e5e5;
Expand Down Expand Up @@ -385,6 +392,8 @@ next css sets the default height of the frame popup
.modal-dialog-custom {
min-width: 10px;
width: 80%;
height: 80%;
margin: auto;
}

.material-switch>input[type='checkbox'] {
Expand Down Expand Up @@ -763,6 +772,15 @@ a.playlist {
height: 300px;
}
*/
.modal-content {
display: flex;
flex-direction: column;
height: 100%;
}

.modal-body {
height: 100%
}

.modal.opengraph .modal-content {
background-color: #222;
Expand All @@ -783,12 +801,15 @@ a.playlist {

.graphwidth {
min-width: 30px;
width: 100vw;
width: 80%;
}

@media (min-width: 768px) {
.graphwidth {
width: 80vw;
@media (max-width: 768px) {
/* .graphwidth {
width: 100vw;
}*/
.modal-dialog {
width: 100%
}
}

Expand Down Expand Up @@ -1908,23 +1929,29 @@ a:not([href]) {
text-align: center;
}

.modal-dialog {
display: inline-block;
text-align: left;
vertical-align: middle;
min-width: 50%;
margin-left:auto;
margin-right: auto;
}

@media screen and (min-width: 768px) {
.modal:before {
display: inline-block;
vertical-align: middle;
content: ' ';
height: 100%;
}
}

.modal-dialog {
display: inline-block;
text-align: left;
vertical-align: middle;
min-width: 50%;
.modal-dialog-settings {
margin: 80px auto;
vertical-align: top;
}
}


/* START: NEWS BLOCK*/

#newsTicker {
Expand Down Expand Up @@ -2696,30 +2723,41 @@ td.agenda-title {
background-color: rgba(0, 0, 0, 0.2);
}

.sec-modal .sec-frame {
position: relative
}

.sec-frame {
border-radius: 5px;
position: relative;
width: 12em;
margin: 0 auto
}

.sec-frame.decorated {
background-image: url(../img/bg14.jpg);
-webkit-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.75);
box-shadow: 0px 6px 20px 5px rgba(0, 0, 0, 0.75), inset 0px 5px 7px -2px rgba(252, 252, 252, 0.2), inset 0 -14px 8px 2px rgba(0, 0, 0, 0.7);
border-radius: 5px;
position: relative;
height: 100%;
padding: 1em;
}

.sec-frame:not(.decorated) {
background-color: rgba(0,0,0,0.2);
}

.sec-frame .keypad-header {
display: flex;
white-space: nowrap;
align-items: center;
justify-content: center;
height: 5%;
position: absolute;
width: 100%;
top: 7%;
font-size: 2vw;
height: 2em;
font-size: 100%;
}

.sec-frame .keypad-header .fas {
font-size: 100%;
font-size: 100% !important;
}

.sec-frame .keypad-header .text {
Expand Down Expand Up @@ -2755,30 +2793,20 @@ td.agenda-title {
color: #494848;
text-align: center;
font-family: monospace;
position: absolute;
bottom: 7%;
width: 100%;
height: 3%;
font-size: 0.6vw;
font-size: 50%;
line-height: 2;
}

.sec-frame .keypad-input {
text-align: left;
position: absolute;
width: 80%;
top: 15%;
height: 75%;
margin: 0 10%;
margin: 0 2%;
}

.sec-frame .keypad-input table {
border-collapse: separate;
border-spacing: 1px;
width: 100%;
position: absolute;
top: 12%;
margin: 0;
height: 82%;
}

.sec-frame .keypad-input table td {
Expand All @@ -2788,22 +2816,19 @@ td.agenda-title {

.sec-frame .keypad-input table tr {
white-space: nowrap;
height: 25%;
}

.sec-frame .keypad-input .input-container {
background-color: #161616;
position: absolute;
overflow: hidden;
height: 10%;
left: 2%;
right: 2%;
margin: 0 2%;
}

.sec-frame.decorated .keypad-input .input-container {
box-shadow: 0px 2px 9px 1px rgba(0, 0, 0, 0.8);
}

.sec-frame .keypad-input .key-input {
font-family: 'Audiowide' !important;
font-size: 2vw;
width: 100%;
border-radius: 3px;
background-color: #161616;
Expand All @@ -2813,6 +2838,7 @@ td.agenda-title {
font-family: monospace;
text-align: center;
height: 100%;
font-size: 70%;
}

.text-strobe {
Expand Down Expand Up @@ -2842,16 +2868,20 @@ td.agenda-title {
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-box-shadow: 0px 11px 22px #000000, 0px 3px 15px rgba(0, 0, 0, 0.4), inset 0px 1px 0px rgba(255, 255, 255, 0.3), inset 0px 0px 3px rgba(255, 255, 255, 0.5);
-moz-box-shadow: 0px 11px 22px #000000, 0px 3px 15px rgba(0, 0, 0, 0.4), inset 0px 1px 0px rgba(255, 255, 255, 0.3), inset 0px 0px 3px rgba(255, 255, 255, 0.5);
box-shadow: 0px 11px 22px #000000, 0px 3px 15px rgba(0, 0, 0, 0.4), inset 0px 1px 0px rgba(255, 255, 255, 0.3), inset 0px 0px 3px rgba(255, 255, 255, 0.5);
font-family: monospace;
text-transform: uppercase;
font-weight: 900;
font-size: 3.5vw;
display: flex;
justify-content: center;
align-items: center;
font-size: 100%;
line-height: 1.75;
}

.sec-frame.decorated .keypad-input .key {
-webkit-box-shadow: 0px 11px 22px #000000, 0px 3px 15px rgba(0, 0, 0, 0.4), inset 0px 1px 0px rgba(255, 255, 255, 0.3), inset 0px 0px 3px rgba(255, 255, 255, 0.5);
-moz-box-shadow: 0px 11px 22px #000000, 0px 3px 15px rgba(0, 0, 0, 0.4), inset 0px 1px 0px rgba(255, 255, 255, 0.3), inset 0px 0px 3px rgba(255, 255, 255, 0.5);
box-shadow: 0px 11px 22px #000000, 0px 3px 15px rgba(0, 0, 0, 0.4), inset 0px 1px 0px rgba(255, 255, 255, 0.3), inset 0px 0px 3px rgba(255, 255, 255, 0.5);
}

.sec-frame .keypad-input .key:not(.disabled):hover {
Expand Down Expand Up @@ -2938,8 +2968,8 @@ td.agenda-title {

.screw {
position: absolute;
width: 5%;
height: 4%;
width: 0.5em;
height: 0.5em;
border-radius: 100%;
background: -moz-linear-gradient( -45deg, #adadad 0%, #e1e1e1 51%, #dddddd 68%, #f6f6f6 100%);
background: -webkit-gradient( linear, left top, right bottom, color-stop(0%, #adadad), color-stop(51%, #e1e1e1), color-stop(68%, #dddddd), color-stop(100%, #f6f6f6));
Expand Down Expand Up @@ -2970,23 +3000,23 @@ td.agenda-title {
}

.sec-frame .screw.tl {
top: 3%;
left: 3%;
top: 0.5em;
left: 0.5em;
}

.sec-frame .screw.tr {
top: 3%;
right: 3%;
top: 0.5em;
right: 0.5em;
}

.sec-frame .screw.bl {
bottom: 3%;
left: 3%;
bottom: 0.5em;
left: 0.5em;
}

.sec-frame .screw.br {
bottom: 3%;
right: 3%;
bottom: 0.5em;
right: 0.5em;
}

.sec-frame td .status.key.disabled {
Expand Down Expand Up @@ -3983,12 +4013,10 @@ td.agenda-title {
}


/*

.colorpicker .modal-content {
max-width: 90%;
min-width: unset;
width: 50%;
}*/
height: fit-content;
}

.colorpicker .cp-iro {
overflow-x: auto;
Expand Down
3 changes: 0 additions & 3 deletions custom/custom.css

This file was deleted.

10 changes: 0 additions & 10 deletions custom/custom.js

This file was deleted.

3 changes: 0 additions & 3 deletions custom_2/custom.css

This file was deleted.

10 changes: 0 additions & 10 deletions custom_2/custom.js

This file was deleted.

4 changes: 2 additions & 2 deletions dist/bundle.js

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions docs/blocks/specials/security_panel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,29 @@ This will show a Dashticz security panel, which automatically scales to the colu

.. image :: secpanel.jpg
Block parameter
^^^^^^^^^^^^^^^
.. list-table::
:header-rows: 1
:widths: 5, 30
:class: tight-table

* - Parameter
- Description
* - decorate
- | ``true``: Show security panel decorated with screws, title, background image. (=default)
| ``false`` Remove the decorations. This will result in a block with reduced height.
* - scale
- | Scale factor for the width of the clock. Should be smaller than 1. Height scales automatically.
| ``0.75``: Scales the clock down to 75% (default ``1`` = 100%).
* - headerText
- | The text to show in the header of the security panel
| ``'Dashticz'`` (=default)
* - footerText
- | The text to show in the header of the security panel
| ``'Dashticz Security Panel, 2020'`` (=default)
Additionally, if you have set your Domoticz security panel to "Armed Away", you can now configure Dashticz to secure automatically by applying the following setting in *CONFIG.js*::

config['security_panel_lock'] = 1;
Expand Down
Loading

0 comments on commit b93bfcb

Please sign in to comment.