Coder Social home page Coder Social logo

Comments (7)

matt8707 avatar matt8707 commented on May 10, 2024

Can you post your popup yaml?

```yaml

action: fire-dom-event
browser_mod:
  command: popup

```

from hass-config.

maverik80 avatar maverik80 commented on May 10, 2024

Can you post your popup yaml?

```yaml

action: fire-dom-event
browser_mod:
  command: popup

action: fire-dom-event
browser_mod:
title: Luci Zona Giorno
command: popup
style:
$: |
.mdc-dialog
.mdc-dialog__container
.mdc-dialog__surface {
border-radius: 15px;
}
auto_close: false

card:
    type: grid
    title: 
    view_layout:
      grid-area: vardagsrum
    columns: 3
    cards:

          - entity: light.sala
            name: Sala
            template:
              - light
              - icon_hue
            tap_action:
              action: toggle
            type: custom:button-card
          - entity: light.luce_soggiorno
            name: Piantana
            template:
              - light
              - icon_shade
            tap_action:
              action: toggle
            type: custom:button-card
          - entity: light.led_tv
            name: Led TV
            icon: mdi:led-strip-variant
            template:
              - light
              - icon_spot
            tap_action:
              action: toggle
            type: custom:button-card
          - entity: light.cucina
            name: Cucina
            template:
              - light
              - icon_hue
            tap_action:
              action: toggle
            type: custom:button-card
          - entity: light.corridoio
            name: Corridoio
            icon: bha:ceiling-spot-lamp
            template:
              - light
              - icon_spot
            tap_action:
              action: toggle
            type: custom:button-card
          - entity: light.abajour_corridoio
            name: abajour
            icon: mdi:lamp
            template:
              - light
              - icon_spot
            tap_action:
              action: toggle
            type: custom:button-card

from hass-config.

matt8707 avatar matt8707 commented on May 10, 2024
  style:
    $: |
      .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
        border-radius: 15px;
      }
    hui-grid-card$: |
      #root {
        padding: 1.5em;
        padding-bottom: 2em;
      }

from hass-config.

maverik80 avatar maverik80 commented on May 10, 2024

thank you man,

  style:
    $: |
      .mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
        border-radius: 15px;
      }
    hui-grid-card$: |
      #root {
        padding: 1.5em;
        padding-bottom: 2em;
      }

thank you very much, it worked perfectly, a beer is due :) if possible i would like to have another info on the css icons, i'm modifying one of your icons, icon_tv but i can't get the static image and the animation in fade out and fade in, but only the static and fade in, you could take a look at the attached file, sorry but I'm a beginner with css
icon_xbox.txt

from hass-config.

PabloAriza avatar PabloAriza commented on May 10, 2024

Hi Matt

Is there any book / web recommended to learn how to deal with these issues? I love to see them work but i'd love more to understand why it does.

Thanks for everything

from hass-config.

matt8707 avatar matt8707 commented on May 10, 2024

If you have some html/css knowledge, it's pretty straightforward. Google searchterm css or searchterm stackoverflow. The hard part is shadow dom. Every card is in its own isolated "container", but with card-mod you can style pretty much anything. I made this tool to help with css selectors card-mod-helper.

from hass-config.

matt8707 avatar matt8707 commented on May 10, 2024

i'm modifying one of your icons, icon_tv but i can't get the static image and the animation in fade out and fade in, but only the static and fade in

that will be hard, you want to morph two different icons? The easiest would be to fade them like icon_imac

from hass-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.