Hadashboard - modal dialog buttons - SOLVED

I know this isn’t technically a hass issue, but looking for some assistance if possible.

I am trying to implement hadashboard on my hass instance and having a formatting issue. I am using a customized version of the hygge skin. When I click the alarm panel, the modal dialog opens but the buttons only press when they are not on top of a widget (on the lines between the widgets - for example, hitting the 8 only works if I touch it right between the “Garage Side Door” and “Patio Door” sensors. Red arrows bad, green good) I have played with the opacity and rgba settings on different classes and can’t seem to get it. Any suggestions? Here are a couple of screen shots as well as my dashboard.css.

Also, the 1, 2, 3 work fine over the default widgets. The numbers over sensors and scenes have issues. The 4 works fine over the weather widget, but the problem starts in the bottom half over the sensor.

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  padding: 0;
}

body {
  overflow: hidden;
  background: transparent url(/custom_css/home/img/house1.JPG);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 105%;
  background-position: center; 
  margin: 0;
  font-size: 12px;
  color: #fff;
  padding: 0;
  line-height: 1;
  font-family: 'Helvetica Neue', 'Helvetica', 'Open Sans', 'Arial'
}

b, strong {
  font-weight: bold;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  border: 0;
  -ms-interpolation-mode: bicubic;
  vertical-align: center;
}

img, object {
  max-width: 100%;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;}

iframe {
  max-width: 100%;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

td {
  vertical-align: middle;
}

ul, ol {
  padding: 0;
  margin: 0;
}

h1, h2, h3, h4, h5, p {
  padding: 0;
  margin: 0;
}
h1 {
  margin-bottom: 6px;
  text-align: center;
  font-size: 100%;
  font-weight: 200;
}
h2 {
  font-size: 300%;
  font-weight: 400;
  color: #fff;
}
h3 {
  font-size: 125%;
  font-weight: 300;
  color: #fff;
}

input {
  background-color: #444;
  border: none;
}

h1.title{
  font-weight: bold;
}

.dashboard_main {
    margin: 0px auto;
}

.gridster {
  margin: 0px auto;
}

.icon-background {
  pointer-events: none;
  width: 100%!important;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.1;
  font-size: 1300%;
  text-align: center;
  margin-top: 82px;
}

.list-nostyle {
  list-style: none;
}

.gridster ul {
  list-style: none;
}

.gs-w {
  width: 100%;
  display: table;
  cursor: pointer;
  z-index: auto !important;
}

.iframe {
  position: relative;
  overflow: hidden;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;}

.widget {
  padding: 0px 0px;
  text-align: center;
  width: 100%;
  display: table-cell;
  vertical-align: middle;
  opacity: 0.9;
  background-color: #eee;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  z-index: -1;
}

  .title {
    color: #fff;
  }

  .icon-inactive {
    color: #888;
  }

  .icon-active {
    color: #aaff00;
  }
}

#container {
  padding-top: 0px;
}

.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,1);
    z-index: 9999;
    opacity:0;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}

.modalDialogOpen {
    opacity:0.95;
    pointer-events: auto;
}

.modalDialogClose {
    opacity:0;
    pointer-events: none;
}

.modalDialog > div {
    width: 275px;
    position: relative;
    margin: 3% auto;
    padding: 5px 20px 13px 20px;
    border-radius: 10px;
    opacity:1;
}

.modalDialogCloseButton {
    line-height: 50px;
    position: absolute;
    right: -25px;
    text-align: center;
    top: -20px;
    width: 50px;
    text-decoration: none;
    font-weight: bold;
    -webkit-border-radius: 25px;
    -moz-border-radius: 25px;
    border-radius: 25px;
}

.modalDialogCloseButton:hover { background: #444; }

when i started to build customized widgets i have realized that when you use opaque widgets, you will get problems when you use z-index

and when andrew built the alarm widget, he didnt know that so the alarm widget is using z-index.

solution?
i dont know yet.
at this moment:

  1. dont use opaque widgets if you want to use alarmwidget or
  2. dont use alarmwidget if you want to use opaque widgets
  3. dont try to use 2 alarm widgets in 1 dashboard

or
4) find out a way to get a popup without using z-index and create your own alarm widget or tell Andrew or me how to :wink:

Thanks for the post. I actually went back to the base hygge skin and made all of my changes via the variables.yaml vs. messing with the css and all works now!

1 Like

you also thanks.
it got me rethinking.
using z-index with opacity might work when the z-index is set in the main css.
so maybe i can use that also for some elements.