-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up of the htdocs/themes directories.
Move gateway.scss and achievements.scss into htdocs/js subfolders. Rename the math4.js file to htdocs/js/System/system.js. Rename the math4.scss file to htdocs/js/System/system.scss. These files do not belong in the theme directories and should not be considered theme-able. Where possible, the page specific code in the math4.js (now system.js) file has been moved into the page specific JavaScript file for that page. The aria label hack that was in math4.js has been removed. It is clear that is not doing the correct thing, and it is probably less of a problem to have an aria label that reads "answer 1" even when there are no other answers than the numerous cases that it is changing aria labels to just "answer" when it shouldn't. One case is if there is only one text answer and there are other answers (radio buttons, checkboxes, etc) on the page. In this case the "answer 1" is changed to "answer" even when there is more than one answer on the page. Also in gateway quizzes the "problem n" prefix is removed if there is only one problem on the page, and it shouldn't be. Aria labels in general need to be rethought, but this JavaScript hack is just incorrect. Update the README files in the themes directories a bit. More could be done here to give better directions on how to customize themes. The name of the htdocs/js directory really needs to be changed. It is really the public "assets" location, and not just JavaScript. The htdocs/css directory should be removed as well. Also change "npm install" to "npm ci" in the warnings that are issued if the `static-assets.json` files are not found.
- Loading branch information
Showing
28 changed files
with
54 additions
and
70 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
This is an "alternative" colorization to math4. If you want to provide | ||
multiple themes to your users you should follow this as an example. | ||
This is an "alternative" colorization to math4. If you want to provide | ||
multiple themes to your users you should follow this as an example. | ||
|
||
Everything (except the override files) should be a link pointing back to | ||
math4. This will make it so that all your themes will automatically get | ||
updates. All of your changes should be in the override files. | ||
Everything except for the math4-overrides.js, math4-overrides.css, | ||
_theme-colors.scss, and _theme-overrides.scss files should be links pointing | ||
back to the corresponding files in math4. This will make it so that all your | ||
themes will automatically get updates. All of your changes should be in the | ||
listed override files. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This is an "alternative" colorization to math4. If you want to provide | ||
multiple themes to your users you should follow this as an example. | ||
|
||
Everything except for the math4-overrides.js, math4-overrides.css, | ||
_theme-colors.scss, and _theme-overrides.scss files should be links pointing | ||
back to the corresponding files in math4. This will make it so that all your | ||
themes will automatically get updates. All of your changes should be in the | ||
listed override files. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
This is an "alternative" colorization to math4. If you want to provide | ||
multiple themes to your users you should follow this as an example. | ||
This is an "alternative" colorization to math4. If you want to provide | ||
multiple themes to your users you should follow this as an example. | ||
|
||
Everything (except the override files) should be a link pointing back to | ||
math4. This will make it so that all your themes will automatically get | ||
updates. All of your changes should be in the override files. | ||
Everything except for the math4-overrides.js, math4-overrides.css, | ||
_theme-colors.scss, and _theme-overrides.scss files should be links pointing | ||
back to the corresponding files in math4. This will make it so that all your | ||
themes will automatically get updates. All of your changes should be in the | ||
listed override files. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
This folder contains the files necessary for the math4 theme. These files are | ||
tracked by git and any changes made to them will be overwritten when you | ||
upgrade. The two exceptions are math4-overrides.css and math4-overrides.js. | ||
tracked by git and any changes made to them will be overwritten when you | ||
upgrade. The two exceptions are math4-overrides.css and math4-overrides.js. | ||
|
||
These files do not need to be present, but if they are they will be included | ||
in system.conf and will override the math4.css and math4.js theme. They can | ||
created by copying math4-overrides.css.dist and math4-overrides.js.dist. This | ||
is similar to how localOverrides.conf interacts with defaults.conf and | ||
localOverrides.conf.dist. In particular if you upgrade your server | ||
math4-overrides.js and math4-overrides.css will not change, but their .dist | ||
versions and the other math4 theme files may change. This might cause problems | ||
until you merge the changes. | ||
These files do not need to be present, but if they are they will be included in | ||
system.conf and can be used for general overrides. They can created by copying | ||
math4-overrides.css.dist and math4-overrides.js.dist. This is similar to how | ||
localOverrides.conf interacts with defaults.conf and localOverrides.conf.dist. | ||
In particular if you upgrade your server math4-overrides.js and | ||
math4-overrides.css will not change, but their .dist versions and the other | ||
math4 theme files may change. This might cause problems until you merge the | ||
changes. | ||
|
||
If you want to customize math4 you should only change math4-overrides.css and | ||
math4-overrides.js. Note: Because you can include arbitrary jQuery in | ||
math4-overrides.js you can actually change pretty much anything, including | ||
adding new html or changing existing html. | ||
math4-overrides.js. Note: Because you can include arbitrary JavaScript in | ||
math4-overrides.js you can actually change pretty much anything, including | ||
adding new html or changing existing html. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters