Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to configure the heading format defaults #124

Open
elisajdu opened this issue Oct 7, 2022 · 11 comments
Open

Ability to configure the heading format defaults #124

elisajdu opened this issue Oct 7, 2022 · 11 comments

Comments

@elisajdu
Copy link

elisajdu commented Oct 7, 2022

As pointed out in another Issue, the heading formats revert to defaults when a person switches to another format and then back to OneTopic. Additionally, the default format isn't ideal for most cases. It doesn't provide contrast to emphasize the existence of tabs.

Would it be possible to

  1. create administrator settings that set the default heading format?
  2. save the user-configured heading formats?

Thank you,
Elisa

@davidherney
Copy link
Owner

Hi @elisajdu

Can you explain me more about it? It isn't clear to me. Maybe can propose any graphic explanation.

Saludos

@elisajdu
Copy link
Author

elisajdu commented Oct 7, 2022

On the server I am currently using, the default Header is shown below.
image

I can go into each section and manually set the Header parameters.
image

So that the Header looks like this
image

In the first, the tabs are not obvious. They do not stand out. They do in the second. The second also matches the institutional color scheme. HOWEVER, if I were to switch to another format and then switch back, the Header would revert to defaults and I would have to manually set the Header in each section again.

It would be EXCEEDINGLY CONVENIENT if the administrators could set the defaults and if the Header format would be saved if a person changes format. A user could still override the defaults, but at least the default matches the institutional color scheme.

Please advise if you have any additional questions.

Thx

@davidherney
Copy link
Owner

Hi @elisajdu ...

The correct way to change it (institutionally) is in the Moodle theme level. The changes in the theme impact all the platform.

You can add a single CSS in the moodle theme to apply the change:

.format-onetopic .onetopic .nav-tabs > li > a {
background-color: rgb(140, 32, 4);
color: rgb(255, 255, 255);
}

Can you add this CSS? Or, can you only change the course properties?

Saludos

@elisajdu
Copy link
Author

@davidherney

Got it, Thanks!

@elisajdu elisajdu reopened this Feb 24, 2023
@elisajdu
Copy link
Author

Sorry. Just getting around to this now.

This is what it looks like manually setting the parameters in each tab:

image

Using the custom CSS code below, I get
.format-onetopic .onetopic .nav-tabs > li > a {
background-color: rgb(168,51,50);
color: rgb(255,255,255);
font-weight: bold;
}

image

@davidherney
Copy link
Owner

I applied your CSS code... this is the result

imagen

@RogueAgent991
Copy link

RogueAgent991 commented Feb 25, 2023

Same person. Different account.

Very interesting.

I'm using Cognito theme in Moodle 4.1.1
I have tested on Opera, Firefox, and Safari, and confirmed the following:

CSS code:
image

Result:
image

And like I mentioned previously, if I manually enter the values for each section, it works as expected.
image

Should the theme have any impact on implementation?
Would you like to test with the theme?

@RogueAgent991
Copy link

Tried it with Boost theme as well. Same issue.

Also found this in the code. element style is empty, despite custom CSS being input.

image

element style is populated when entering code for each section.

image

@RogueAgent991
Copy link

RogueAgent991 commented Feb 25, 2023

This code works.

.format-onetopic .nav-tabs > li > a {
background-color: rgb(168,51,50) !important;
color: rgb(255,255,255) !important;
font-weight: bold;
}

@davidherney
Copy link
Owner

Ok... for Moodle 4.x is different. The @RogueAgent991 proposal is close but I change something in order to exclude the new Moodle configuration tabs.

.format-onetopic .course-content .nav-tabs > li > a {
  background-color: rgb(168,51,50) !important;
  color: rgb(255,255,255) !important;
  font-weight: bold;
  margin-right: 1px;
}

imagen

@RogueAgent991
Copy link

Excellent. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants