It is very strangeā¦
I want to hide the title with css and make the āXā button as absolute. I done it, it was working, but after I have refreshed the page, nothing works now.
With this was working in the first place:
card_mod:
style:
ha-dialog$: |
.mdc-dialog .mdc-dialog__scrim {
background-color: var(--mdc-dialog-scrim-color, rgba(0, 0, 0, 0.92)) !important;
}
ha-dialog: |
.heading{position:absolute !important}
.content{margin-top:20px !important}
.heading ha-header-bar .main-title{display:none !important}
Then, after I have refreshed the page, the code was changed like this:
card_mod:
style:
ha-dialog$: |
.mdc-dialog .mdc-dialog__scrim {
background-color: var(--mdc-dialog-scrim-color, rgba(0, 0, 0, 0.92)) !important;
}
ha-dialog: >
.heading{position:absolute !important}
.content{margin-top:20px !important}
.heading ha-header-bar .main-title{display:none !important}
And even if I changed the code back, nothing worked. I canāt make the heading as absolute position. Any idea?
Edit: now it is working again, then stops and so on I need to delete cache everytime I want to work, If I make another change, everything will be as initial, then again delete browser cache Very strange
Edit2: Now seems that the code does not changes itself after refreshā¦
Edit3: Amazingly strange :)) It is still chaning my code, only that sign, from " | " to " > ", but I think I understand why. Seems to work, but I need to delete cache after I finish any editing. I use Firefox
Thanks again, for help
End: I have removed the title and I moved the āXā button to the middle bottom of the screen, in order to have more room from top, this is the code and the result:
Last Edit: Added a little blink effect as well, in order to see it better
ha-dialog: >
.heading ha-header-bar, .heading{position:absolute
!important;width:0px;height:0px} .heading ha-header-bar
.main-title{display:none !important} .heading ha-header-bar
ha-icon-button{position:fixed;bottom:0;margin-bottom:30px;left:
50%;transform: translateX(-50%);animation: ha-icon-button 1.0s
linear infinite;border-radius:50px;color: #6cbaff;} @keyframes
ha-icon-button {
0% {box-shadow: 0 0 40px #6cbaff8c;}
50% {box-shadow: none;}
100% {box-shadow: 0 0 40px #6cbaff8c;}
}