DBuit / Homekit-panel-card

Homekit panel card for home assistant
MIT License
304 stars 54 forks source link

Changing column spacing #107

Closed lukewelch closed 3 years ago

lukewelch commented 3 years ago

Hi

Is it possible to change the spacing between columns? and also change the spacing between the top of the screen and the top of the first row?

thanks

DBuit commented 3 years ago

Hello,

spacing between columns and tiles is not possible atm. The amount of tiles in a column that you set in your config is used to calculate the width of the column so if you change the spacing with the style option this would break and not all tiles will fit on 1 row.

The space above a row can be changed with the style option try this for the first row of tiles on your dashboard:

- type: "custom:homekit-card"
        style: |
          .row:first-child {
               padding-top:100px!important;  //Adds 100px of space above the first row
               padding-bottom:100px!important; //Adds 100px of space below the first row
           }
clearwave1 commented 1 year ago

Please add all of the styles that are possible to your documentation.

The style you posted above doesn't seem to do anything.