Open nvallinoto opened 6 months ago
The customcss is working as expected, i.e:
.form-label label,
.form-label > p,
.form-shortname {
font-style: italic;
}
it is the effect of the settings that is not as would be thought to be expected. That is the bug.
Unselecting an attribute in the development tools is not the same as defining a value for it.
Hi, you are right unselecting an attribute is not the same as defining it.
In my case I'm trying to redefining the color of the font (from white to black) when hovering the menu item of navigation bar.
If I understood as custom css is working what you define in it will be the last css file uploaded.
I tried several solutions:
for example this one
#adaptable-page-header-wrapper #main-navbar .navbar-nav .context-header-settings-menu .action-menu-trigger a.dropdown-toggle:hover, #adaptable-page-header-wrapper #main-navbar .navbar-nav .region-main-settings-menu .action-menu-trigger a.dropdown-toggle:hover { color: #000 !important; }
but when I reload the site the css is not modified. It appears as defined originally.
As if the custom css was not loaded.
Perhaps I'm missing some steps.
Thanks for the help to find the right way to do it.
Are you saving the CSS setting?
yes. I tried also to modify these rules to change the behaviour without success :
.nav-link:hover,.nav-link:focus { color: #000 !important; } header .nav-item:hover, header li.nav-item:hover, a.nav-link:hover, li.nav-item:hover { color: #000 !important; }
Pragmatically I don't provide one to one support for custom code without being financially compensated. Sometimes I choose to answer questions on the Moodle forums. In this case, I have recognised that there is an issue with the theme in terms of the setting that pertains to this area. This I have already addressed in the development (supporters only) repository. It is my intention to make the changes in the public release soon.
Hi, after a while I understood that custom css was not working as expected because from a specific line it was broken. It was caused by a not well written custom css (could be a comment or an empty space before the rule). Now I removed the problem and all is working as expected. The issue can be closed. If possible let me know the content of the issue will be released in the public code. Otherwise good work.
I normally announce releases on https://x.com/gjbarnard, https://moodle.org/mod/forum/view.php?id=46 and the core code should alert you to updates on https://moodle.org/plugins/theme_adaptable.
Describe the bug I modified the css in order to change the text colour of items when hovering the navbar menu (from white to black).
To Reproduce Steps to reproduce the behavior:
In the navbar styles I have the following settings theme_adaptable | menubkcolor = #1b1c1f theme_adaptable | menufontcolor = #ffffff theme_adaptable | menuhovercolor = #FFED0D
Expected behavior Hovering the navbar menu the font colour of items should appear black as indicated in the custom css. See picture below.
When I modify the css diretly with Chrome inspecting function it works (unselecting the color property)
I tried also with this rules (not working as well)
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information): Moodle: 4.1 Theme Adaptable: 401.1.10 - 2022112311 Browser version: Google Chrome version 124.0.6367.207 (Build ufficiale) (64 bit) on Windows 10
Just two additional informations: