0
Welcome Guest! Login
0 items Join Now

SOLVED Particles : Embed css in a twig file ? Particles in media folder?

  • SOLVED Particles : Embed css in a twig file ? Particles in media folder?

    Posted 6 years 7 months ago
    • Hi

      2 questions about particles

      If i want to create new particle, I have to create a Yalm file, a twig file and dedicated scss file
      i want to create a joomla package for particles (install via joomla installer) to upload these 3 files into web site in the right place

      1) Embed css in a twig file ?
      css could be load in custom.scss file but need manual modification
      i can load the css (mynewcss.scss) file in custom/scss folder and add
      @import 'mynewcss';
      in custom.scss file
      possible to embed or load scss in twig file ?
      or we have another possibility ?

      2) for joomla package i need to know where to load my files
      for g5_hydrogen i can add my files (yalm and twig) in /templates/g5_hydrogen/custom/particles folder
      logically should be aso in
      /media/gantry5/engines/nucleus/particles
      to avoid template selection ?
      just for confirmation

      thanks

      Bertrand
    • www.en-toutes-lettres.fr
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2678
    • Web Developer

    Re: SOLVED Particles : Embed css in a twig file ? Particles in media folder?

    Posted 6 years 7 months ago
  • Re: SOLVED Particles : Embed css in a twig file ? Particles in media folder?

    Posted 6 years 7 months ago
    • Thanks Damir

      seems OK for twig and Yalm file

      My main issue is for custom scss data additions

      on this topic
      docs.gantry.org/gantry5/advanced/css-js-twig
      you learn us how to embed css in a twig file

      But not OK with scss
      Exemple if you have data like
      background: $accent-color-1;

      need to be added to the custom.scss file to be recompiled, not possible directly as css data

      so

      Possible add new lines in an existing custom.scss file ??
      Or put somewhere in gantry's folder a scss file which can be added at the end after compilation to the custom.css ??

      take care

      Bertrand
    • www.en-toutes-lettres.fr
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2678
    • Web Developer

    Re: SOLVED Particles : Embed css in a twig file ? Particles in media folder?

    Posted 6 years 7 months ago
  • Re: SOLVED Particles : Embed css in a twig file ? Particles in media folder?

    Posted 6 years 7 months ago
    • Damir's Avatar
    • Damir
    • Preeminent Rocketeer
    • Posts: 22450
    • Thanks: 2678
    • Web Developer

    Re: SOLVED Particles : Embed css in a twig file ? Particles in media folder?

    Posted 6 years 7 months ago

Time to create page: 0.090 seconds