th3jesta / ha-lcars

LCARS theme for Home Assistant
MIT License
275 stars 19 forks source link

New Class Request #52

Closed CmdreIsaacHull closed 1 year ago

CmdreIsaacHull commented 1 year ago

I would love to have a few new classes so that I can streamline my MSD markers. I thought about making changes in the don't make changes section, but I decided making this request would be safer and could help anyone 🤣

Here is what I have been doing for my markers with plain button cards. I'd give them a class of msd-left and msd-right:

#class: msd-left
show_name: true
show_icon: false
type: button
name: environmental controls
tap_action:
  action: navigate
  navigation_path: /dashboard-home/environmental-controls
card_mod:
  style: |
    ha-card {
      margin: 0px 15px 23px 0px !important;
      background: black !important;
      font-size: 1.5em !important;
      font-weight: 700 !important;
      color: var(--lcars-orange) !important;
      text-transform: uppercase !important;
      text-align: right !important;
      display: flex !important;
      align-items: flex-end !important;
      border-radius: 0 0 0 0 !important;
    }
#class: msd-right
show_name: true
show_icon: false
type: button
name: lighting controls
tap_action:
  action: navigate
  navigation_path: /dashboard-home/lighting-controls
card_mod:
  style: |
    ha-card {
      margin: 0px 15px 23px 18px !important;
      background: black !important;
      font-size: 1.5em !important;
      font-weight: 700 !important;
      color: var(--lcars-orange) !important;
      text-transform: uppercase !important;
      text-align: left !important;
      display: flex !important;
      align-items: flex-start !important;
      flex-direction: column-reverse !important;
      border-radius: 0 0 0 0 !important;
    }

Obviously some or a lot of that code isn't needed, but I just kept adding and hitting the !important; button over and over until it was right.

CmdreIsaacHull commented 1 year ago

image

CmdreIsaacHull commented 1 year ago

could we also get a middle-open class? it would be nice when doing a couple items in a horizontal stack. I think it would also help to make some of the oddball cards look better

th3jesta commented 1 year ago

Coming in 2.0