mahagr on v5.5.0
Changelog update Fixed WordPress 5.6 `add_theme_… Grav 1.7 ColorPicker Flex Basis… and 3 more (compare)
mahagr on develop
Composer update (compare)
Nm my question... have used bowser (v1.x) before... wasn't getting any result with v2.x - but tried a bit more...
For any one wanting browser detection and be able to add some classes to body to add some conditional css... wha I did...
In gantry just made a JS snipped for src and a js snippet for the actual use:
The src = https://cdn.jsdelivr.net/npm/bowser@2.11.0/es5.js
The usage is:
window.addEventListener("load", function() {
// PARSE USER AGENT
var result = bowser.getParser(navigator.userAgent).getResult();
// BROWSER INFO
console.log(result.browser.name);
console.log(result.browser.version);
console.log(result.engine);
// BROWSER ADD TO BODY
jQuery('body').addClass(result.browser.name);
// OPERATING SYSTEM
console.log(result.os.name);
jQuery('body').addClass(result.os.name);
console.log(result.os.version);
console.log(result.os.versionName);
// PLATFORM
console.log(result.platform.type);
jQuery('body').addClass(result.platform.type);
});
of-course you can remove the console.log items, but was helpful in seeing what it'll show
@HarisAKabara_twitter
Something other than the snippet I sent across yesterday must have changed on the site.
Ok, you have a class of 'Sticky' in your #g-navigation block tag, but there is no CSS linked to it! Yesterday the navbar was sticky and adding the flex statements wouldn't have changed this.
I see you're using Joomlead JL Brighton as a base design, are you also using the Joomlead UIKIT3 Atom in your Layouts?
If so, open your Base Outline, remove the 'Sticky' class, leave the 'center' class in place. Then, Open the Navigation Block section settings (the cog icon on the Section - not the Particle/Menu Block) and add this as a Tag Attribute 'key'
jl-sticky
This will use the UIKIT3 version of the sticky navbar
If, you're using the standard UIKIT Atom and jl-sticky does not work, then try this value in the same field instead:
uk-sticky
@marvays a rem value makes sense, you can check the body font size in Chrome Inspector. Do you use Inspector or some equivalent developer browser extension?
Always, always, always add the new values to your custom.scss :) never be tempted to overwrite system css
If you use the browser dev tools then you can paste the selector and statement into your custom.scss file directly from the Inspector Pane
I am having difficulty in changing the tooltip background color in the Hydrogen template.
I added the following code to the custom.scss file:
/* change background color on JCE tooltip
.tooltip .tooltip-inner {
background-color: #800000 !important;
border-color: #800000 !important;
}
.tooltip .tooltip.top .tooltip-arrow {
border-top-color:#800000 !important;
}
Yes, I recompile the temmplates and cleared the website cache! :)
It didn't change it.
So I created a templates/g5_hydrogen/custom/assets/css/ folder and copied the media/gantry5/assets/css/bootstrap-gantry.css into that folder. I directly changed the #000000 to #800000 in the tooltip styles but it didn't work.
Here is the website page link: https://bamadenver.com/game-schedule/2020-football
Any suggestions?
@marvays This is Chrome Inspector in use
I took a shot of the issue on he site by @LukeDouglas2
So, open your site in Chrome and press F12 for Chrome Inspector, is this familiar to you @marvays ?
Problem: I have a Joomla based G5 custom template site that reports a 403 error in the console when trying to access /templates/[template_name]/custom/css-compiled
I also tested and verified this using webpagetest.org
Observation: the folder in question is writable (0755 permission) and contains recent css files. BUT it does not contain any .MAP versions of the css. If I look at other sites I've built they all contain several .css.map versions
Does anyone know if the missing .map.css files are important (it looks like they are) and based on the above info can anyone suggest a fix?