0
Welcome Guest! Login
0 items Join Now

SOLVED Gantry 5 Particle SCSS Overrides

    • Dan Walker's Avatar
    • Dan Walker
    • Elite Rocketeer
    • Posts: 529
    • Thanks: 21
    • Designer/Developer

    SOLVED Gantry 5 Particle SCSS Overrides

    Posted 4 years 5 months ago
    • Suppose I have a particle with its standard scss file in /rt_template/scss/template/particles/_particle.scss.
      If I then create an override in rt_template/custom/scss/_particle.scss.
      Does G5 still read the original scss file and then add the override scss or does the override scss replace the original scss file completely?
      If I creat the override in rt_template/custom/scss/particles/_particle.scss would it behave differently?
    • Last Edit: 4 years 5 months ago by Dan Walker.
    • Dan Walker - Web Designer & Developer @ Top Webs Network
      Custom Joomla & Wordpress Websites
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED Gantry 5 Particle SCSS Overrides

    Posted 4 years 5 months ago
    • Dan Walker's Avatar
    • Dan Walker
    • Elite Rocketeer
    • Posts: 529
    • Thanks: 21
    • Designer/Developer

    Re: SOLVED Gantry 5 Particle SCSS Overrides

    Posted 4 years 5 months ago
    • I understand that the override has to be imported into custom.scss. I did some experimentation and answered my question.
      The _particle.scss file in the custom folder does not replace the original _particle.scss, it just adds rules to the compiled scss. Therefore, the rule with the highest priority wins, as usual, which could be from the custom folder or from the original _particle.scss. This is the way that it makes most sense to do scss overrides, so I just wanted to confirm it.
    • Dan Walker - Web Designer & Developer @ Top Webs Network
      Custom Joomla & Wordpress Websites
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2679
    • Web Developer

    Re: SOLVED Gantry 5 Particle SCSS Overrides

    Posted 4 years 5 months ago

Time to create page: 0.051 seconds