SOLVED Adding Custom @media breakpoint layouts and overides
Posted 8 years 3 weeks ago
Hello,
I believe this is a gantry issue if not I apologize. I am currently working on a custom.scss overide for the remnant template with a joomla 3.6 install. You can view it here
brockporter.com/BrxResume/BrxRez/
I am tryting to create a thin column effect on the home page. I have done it withe the following css code ---
It is producing expected results. Now I am trying to alter the layouts, font sizes, for specific screen sizes. I believe it is @media queries I am looking for but could you direct me to tutorials on this I keep getting parsing errors when I try and change the settings
"Twig_Error_Runtime
An exception has been thrown during the rendering of a template ("CSS Compilation on file 'custom.scss' failed on error: Undefined mixin breakpoint: line: 14")."
I want to set up my custom.scss sheet to give me control over the individual style on specific breakpoints.
example
large desktop {my custom css here, plus larger fonts}
Desktop {my current custom padding}
tablet {reduce padding to 30%}
phone {set padding to 0}
mobile {padding set to 0, change font size and color}
mobile menu {change font-size & color}
If you could show me a tutorial that works in the rocket theme environment the stack overflow examples are producing the errors?
Thanks for your help in advance.
Brx
If it were me I'd target .g-container { instead of all those individual Section IDs... that may or may not work well depending on the Theme though.
... basically you just need to ensure your importing the dependencies at the top of your custom scss file and you can use the variables that map to the Breakpoint Settings as defined in the admin in your SCSS/CSS
SEARCH the forum first! These boards are rich in knowledge and vast in topics. This includes searching just the 'Solved' forums, using Google, and using ChatGPT