-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add colors invert parameter Apply custom CSS in bootstrap/template mode
- Loading branch information
1 parent
467219b
commit 48e0538
Showing
14 changed files
with
103 additions
and
24 deletions.
There are no files selected for viewing
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/** | ||
* @package CG template switcher Module | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL | ||
* @copyright (c) 2025 ConseilGouz. All Rights Reserved. | ||
* @author ConseilGouz | ||
* | ||
**/ | ||
document.addEventListener("DOMContentLoaded", function(){ | ||
// check CG custom classes | ||
fields = document.querySelectorAll('.view-module .clear'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
field.parentNode.parentNode.style.clear = "both"; | ||
field.parentNode.parentNode.parentNode.style.clear = "both"; | ||
field.parentNode.parentNode.parentNode.parentNode.style.clear = "both"; | ||
} | ||
fields = document.querySelectorAll('.view-module .left'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
if (field.type == 'range') { | ||
field.parentNode.parentNode.parentNode.parentNode.style.float = "left"; | ||
} else if (field.children && field.children.length > 0 && field.children[0].type == "radio") { | ||
field.parentNode.parentNode.parentNode.style.float = "left"; | ||
} else { | ||
field.parentNode.parentNode.style.float = "left"; | ||
} | ||
} | ||
fields = document.querySelectorAll('.view-module .right'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
if (field.type == 'range') { | ||
field.parentNode.parentNode.parentNode.parentNode.style.float = "right"; | ||
} else if (field.children && field.children.length > 0 && field.children[0].type == "radio") { | ||
field.parentNode.parentNode.parentNode.style.float = "right"; | ||
} else { | ||
field.parentNode.parentNode.style.float = "right"; | ||
} | ||
} | ||
fields = document.querySelectorAll('.view-module .half'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
if (field.type == 'range') { | ||
field.parentNode.parentNode.parentNode.parentNode.style.width = "50%"; | ||
} else if (field.children && field.children.length > 0 && field.children[0].type == "radio") { | ||
field.parentNode.parentNode.parentNode.style.width = "50%"; | ||
} else { | ||
field.parentNode.parentNode.style.width = "50%"; | ||
} | ||
} | ||
fields = document.querySelectorAll('.view-module .gridauto'); | ||
for(var i=0; i< fields.length; i++) { | ||
let field = fields[i]; | ||
field.parentNode.parentNode.style.gridColumn = "auto"; | ||
} | ||
}) |
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
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
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