mirror of
https://github.com/picocss/pico.git
synced 2025-04-22 09:26:14 -04:00
Docs: Update Customization
This commit is contained in:
parent
a0c65bcded
commit
ba5fd1c9e5
3 changed files with 57 additions and 30 deletions
2
docs/js/pico.docs.min.js
vendored
2
docs/js/pico.docs.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -12,9 +12,9 @@
|
|||
*/
|
||||
|
||||
var colors = {
|
||||
target: '#customization h5', // Buttons inserted after target
|
||||
selectorButton: '#customization button[data-color]', // Button selector in Dom
|
||||
selectorTheme: '#customization', // Theme selector in Dom
|
||||
target: '#customization article[data-theme="generated"]', // Buttons inserted before target
|
||||
selectorButton: '#customization button[data-color]', // Button selector in Dom
|
||||
selectorTheme: '#customization', // Theme selector in Dom
|
||||
styles: '',
|
||||
|
||||
// Source: https://material.io/design/color/the-color-system.html
|
||||
|
@ -384,7 +384,7 @@
|
|||
// Insert buttons
|
||||
var buttons = document.createElement('FIGURE');
|
||||
buttons.innerHTML = colorButtons;
|
||||
document.querySelector(colors.target).after(buttons);
|
||||
document.querySelector(colors.target).before(buttons);
|
||||
|
||||
// Buttons listeners
|
||||
var buttonsAll = document.querySelectorAll(colors.selectorButton);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue