mirror of
https://github.com/picocss/pico.git
synced 2025-04-20 16:46:14 -04:00
Docs: separate pages
This commit is contained in:
parent
cea5c8c04c
commit
bbb53c7dd4
61 changed files with 2994 additions and 1498 deletions
|
@ -12,14 +12,14 @@ export const grid = {
|
|||
add: 'Add column',
|
||||
remove: 'Remove column',
|
||||
},
|
||||
target: '#grids article',
|
||||
target: '#grid article',
|
||||
},
|
||||
grid: {
|
||||
current: 4,
|
||||
min: 1,
|
||||
max: 12,
|
||||
gridTarget: '#grids .grid',
|
||||
codeTarget: '#grids pre code',
|
||||
gridTarget: '#grid .grid',
|
||||
codeTarget: '#grid pre code',
|
||||
},
|
||||
|
||||
// Init
|
||||
|
@ -50,7 +50,7 @@ export const grid = {
|
|||
document.querySelector(this.buttons.target).before(buttons);
|
||||
|
||||
// Add button listener
|
||||
document.querySelector('#grids button.add').addEventListener(
|
||||
document.querySelector('#grid button.add').addEventListener(
|
||||
'click',
|
||||
function () {
|
||||
this.addColumn();
|
||||
|
@ -59,7 +59,7 @@ export const grid = {
|
|||
);
|
||||
|
||||
// Remove button listener
|
||||
document.querySelector('#grids button.remove').addEventListener(
|
||||
document.querySelector('#grid button.remove').addEventListener(
|
||||
'click',
|
||||
function () {
|
||||
this.removeColumn();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue