🏡 Fully, a Full Width Discourse Theme

Hello @Renato_Mendes :wave:

Oh I see, so you only want to use the transparent background on one color scheme. I didn’t know that.

There are several ways to do this :arrow_down_small:

  1. dark-light-choose(): It’s possible to do this with it but not to practical in this case as it’s create variables. Better to use for colors.

  1. schemeType: This one is better to this use case if you want to use it by scheme type.
Use schemeType

Here is how to use schemeType

Remove the previous code from the component you created and place the new one to the component Color Definitions section as you see on the image.

This will only activate the code on light scheme.

Common / Color Definitions

@if #{schemeType()} == light {
  .desktop-view {
    .has-sidebar-page {
      .d-header-wrap {
        &:before {
          background: transparent;
          border-right: none;
        }
      }
    }
  }
}

  1. Targetable Color Schemes : If you have more color schemes and/or want to target a specific color scheme where you want to change things then this theme component is ideal for you.
Use Targetable Color Schemes

This component puts the actual color scheme to the html so you can target it with CSS.

Here is how to use it:

Install the component.
Check the color scheme id where you want to change things.
You can find here
Screenshot 2023-10-08 at 10.10.30

or

/admin/customize/colors
Colors page. Here if you click a color scheme the id will adds to the URL.

Now you can use this in the code. Don’t forget to remove the previously added code.

Screenshot 2023-10-08 at 10.17.05

html[color-scheme="your-color-scheme-id"] {  
  &.desktop-view {
    .has-sidebar-page {
      .d-header-wrap {
        &:before {
          background: transparent;
          border-right: none;
        }
      }
    }
  }
}

Hello @packman :wave: I sent you a PM.

2 Likes