Skip to content

Commit 64abdfc

Browse files
committed
feat: adding block/inline folders and per-html5 element scss rules
1 parent 1039a47 commit 64abdfc

File tree

233 files changed

+46705
-356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+46705
-356
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
nbproject
1313
Thumbs.db
1414
/.vscode/
15+
/.history/
1516

1617
# Numerous always-ignore extensions
1718
*.diff
@@ -27,6 +28,7 @@ Thumbs.db
2728

2829
# Folders to ignore
2930
/node_modules/
31+
/vendor/
3032

3133
# Pico
3234
.pico

bin/console

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
declare(strict_types=1);
5+
6+
use PicoCss\Pico\Command\CreateSassForHtmlElements;
7+
use PicoCss\Pico\Command\MergeSpecifications;
8+
use Symfony\Component\Console\Output\OutputInterface;
9+
10+
require __DIR__ . '/../vendor/autoload.php';
11+
12+
$application = new Silly\Application('PicoCSS Specification Merger', '1.0.0');
13+
// Remove type-hint from $input argument to fix Silly closure error
14+
$application->command('merge:specs', function ($input, OutputInterface $output) {
15+
return (new MergeSpecifications())(null, $input, $output);
16+
})->descriptions('Merges the PicoCSS specifications into the HTML5 specifications from Extended HTMLDocument');
17+
18+
// $application->command('make:sass', function ($input, OutputInterface $output) {
19+
// return (new CreateSassForHtmlElements())($input, $output);
20+
// })->descriptions('Creates SASS files for all HTML elements based on the compiled PHP Element classes');
21+
22+
$application->run();

composer.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,13 @@
2626
"support": {
2727
"issues": "https://github.com/picocss/pico/issues/"
2828
},
29-
"license": "MIT"
30-
}
29+
"license": "MIT",
30+
"require": {
31+
"vardumper/extended-htmldocument": "^0.1.16"
32+
},
33+
"autoload": {
34+
"psr-4": {
35+
"PicoCss\\Pico\\": "src/"
36+
}
37+
}
38+
}

0 commit comments

Comments
 (0)