Skip to content

Commit 42b62b1

Browse files
committed
V. 2.1.0 - Yohns Fork
1 parent b611b52 commit 42b62b1

10 files changed

+66
-38
lines changed

README.md

+30-16
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
[![License](https://img.shields.io/badge/license-MIT-%230172ad)](https://github.com/picocss/pico/blob/master/LICENSE.md)
1414
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/picocss.svg?style=social&label=Follow%20%40picocss)](https://twitter.com/picocss)
1515

16+
## Yohns Updated Version
17+
I'm not sure if the original [Pico CSS](https://github.com/picocss/pico) repository is abandoned or not, but I really liked what they had to offer, and wanted to help not let this awesomely simple and easy to use front end framework disappear, so I merged as many of open pull requests that fixed some issues, and / or enhanced the project that were available at the time. I'll try to help keep it viable and do some bug fixes if any arise, and would alway appreciate anyone elses help to continue keeping this alive!
18+
19+
You can see the new features I, and many others have created pull requests for by going to [Yohns Pico CSS](https://yohn.github.io/PicoCSS). This page just has the demos of most of the features I have merged, or added to the project.
20+
1621
## Minimal CSS Framework for Semantic HTML
1722

1823
A minimalist and lightweight starter kit that prioritizes semantic syntax, making every HTML element responsive and elegant by default.
@@ -38,13 +43,22 @@ With just the right amount of everything, Pico is great starting point for a cle
3843

3944
## Table of contents
4045

41-
- [Quick start](#quick-start)
42-
- [Class-less version](#class-less-version)
43-
- [Limitations](#limitations)
44-
- [Documentation](#documentation)
45-
- [Browser Support](#browser-support)
46-
- [Contributing](#contributing)
47-
- [Copyright and license](#copyright-and-license)
46+
1. [Yohns Updated Version](#yohns-updated-version)
47+
2. [Minimal CSS Framework for Semantic HTML](#minimal-css-framework-for-semantic-html)
48+
3. [What’s new in v2?](#whats-new-in-v2)
49+
4. [A Superpowered HTML Reset](#a-superpowered-html-reset)
50+
5. [Table of contents](#table-of-contents)
51+
6. [Quick start](#quick-start)
52+
1. [Install manually](#install-manually)
53+
2. [Usage from CDN](#usage-from-cdn)
54+
3. [Install with NPM](#install-with-npm)
55+
4. [Starter HTML template](#starter-html-template)
56+
7. [Class-less version](#class-less-version)
57+
8. [Limitations](#limitations)
58+
9. [Documentation](#documentation)
59+
10. [Browser Support](#browser-support)
60+
11. [Contributing](#contributing)
61+
12. [Copyright and license](#copyright-and-license)
4862

4963
## Quick start
5064

@@ -63,32 +77,32 @@ There are 4 ways to get started with pico.css:
6377
Alternatively, you can use [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@picocss/pico) to link pico.css.
6478

6579
```html
66-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css" />
80+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@yohns/picocss@2.1.0/css/pico.min.css" />
6781
```
6882

6983
### Install with NPM
7084

7185
```shell
72-
npm install @picocss/pico
86+
npm i @yohns/picocss
7387
```
74-
88+
<!--
7589
Or
7690
7791
```shell
7892
yarn add @picocss/pico
79-
```
93+
```-->
8094

8195
Then, import Pico into your SCSS file with [@use](https://sass-lang.com/documentation/at-rules/use):
8296

8397
```SCSS
8498
@use "pico";
8599
```
86100

87-
### Install with Composer
101+
<!--### Install with Composer
88102
89103
```shell
90104
composer require picocss/pico
91-
```
105+
```-->
92106

93107
### Starter HTML template
94108

@@ -121,7 +135,7 @@ Use the default `.classless` version if you need centered viewports:
121135
```html
122136
<link
123137
rel="stylesheet"
124-
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
138+
href="https://cdn.jsdelivr.net/npm/@yohns/picocss@2.1.0/css/pico.classless.min.css"
125139
/>
126140
```
127141

@@ -130,7 +144,7 @@ Or use the `.fluid.classless` version if you need a fluid container:
130144
```html
131145
<link
132146
rel="stylesheet"
133-
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.fluid.classless.min.css"
147+
href="https://cdn.jsdelivr.net/npm/@yohns/picocss@2.1.0/css/pico.fluid.classless.min.css"
134148
/>
135149
```
136150

@@ -145,7 +159,7 @@ Then just write pure HTML, and it should look great:
145159
<meta name="color-scheme" content="light dark" />
146160
<link
147161
rel="stylesheet"
148-
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
162+
href="https://cdn.jsdelivr.net/npm/@yohns/picocss@2.1.0/css/pico.classless.min.css"
149163
/>
150164
<title>Hello, world!</title>
151165
</head>

demo/Moved2Docs.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Moved to the docs directory so I can put the updated features on github pages.
Binary file not shown.

demo/index.html renamed to docs/index.html

+13-9
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ <h1>Pico</h1>
4949
<!-- /Header -->
5050
</div>
5151
<main class="col-12 col-md-9 col-lg-10">
52+
<article>
53+
<header><h2>Yohns PicoCSS Fork</h2></header>
54+
<p>I've merged some open pull requests from the <a href="https://github.com/picocss/pico">original Pico</a> repository, and then added a few more enhancements that I either needed for a project (timeline) or wanted to make the building process of websites easier (<code>:user-valid</code> "validation", using <code>&lt;label&gt;</code> within groups, <code>.row</code> &amp; <code>.row-fluid</code> and the <code>.col-*</code> classes like Bootstrap, <code>.align-*</code> and more.) The demo docs here is the main enhanced that have been added to the <a href="https://picocss.com/">Pico CSS 2.0.6</a> branch, for more docs, refer to the original <a href="https://picocss.com/docs">Pico CSS docs</a>.</p>
55+
<p>Some of the demos on this page do require <a href="https://github.com/Yohn/PicoCSS/tree/main/docs/js">Vanilla JavaScript Files</a> to work the same as the preview here. I may get a build script going to compile the javascript plugins / components later. Let me know if this feature would help you.</p>
56+
<footer>If this fork has helped you, please <a href="https://github.com/Yohn/PicoCSS">Like</a> this fork!</footer>
57+
</article>
5258
<!-- Validation -->
5359
<form action="javascript:void(0);">
5460
<article id="group">
@@ -364,18 +370,18 @@ <h3>Confirm your action!</h3>
364370
<!-- ./ Modal example -->
365371

366372
<!-- Minimal theme switcher -->
367-
<script src="js/minimal-theme-switcher.js"></script>
373+
<script src="js/MinimalThemeSwitcher.js"></script>
368374

369375
<!-- Modal -->
370-
<script src="js/modal.js"></script>
376+
<script src="js/Modal.js"></script>
371377
<!-- alert notifications -->
372-
<script src="js/notifications.js"></script>
378+
<script src="js/Notifications.js"></script>
373379
<script src="js/FileValidator.js"></script>
374-
<script src="js/accordion.js"></script>
380+
<script src="js/Accordion.js"></script>
375381
<script>
376382
document.addEventListener("DOMContentLoaded", () => {
377-
const checkFile = document.getElementById("checkFile");
378-
new FileValidator(checkFile);
383+
const checkFile = document.getElementById("checkFile");
384+
new FileValidator(checkFile);
379385

380386
const alignButtons = document.querySelectorAll(".change-row-align");
381387
const alignRow = document.getElementById("row-align-example");
@@ -396,8 +402,6 @@ <h3>Confirm your action!</h3>
396402
});
397403
});
398404
});
399-
400-
401405
</script>
402406
</body>
403-
</html>
407+
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

+22-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
11
{
2-
"name": "@picocss/pico",
3-
"version": "2.0.6",
4-
"description": "Minimal CSS Framework for semantic HTML",
5-
"author": "Lucas Larroche",
2+
"name": "@yohns/picocss",
3+
"version": "2.1.0",
4+
"description": "Minimal CSS Framework for semantic HTML, updated with enhanced capabilities.",
5+
"authors": [
6+
{
7+
"name": "Lucas Larroche",
8+
"website": "https://github.com/picocss/pico"
9+
},
10+
{
11+
"name": "John Brittaines",
12+
"website": "https://github.com/Yohn/PicoCSS"
13+
}
14+
],
615
"main": "css/pico.min.css",
716
"homepage": "https://picocss.com",
817
"license": "MIT",
918
"repository": {
1019
"type": "git",
11-
"url": "git+https://github.com/picocss/pico.git"
20+
"url": "git+https://github.com/Yohn/PicoCSS.git"
1221
},
1322
"publishConfig": {
1423
"tag": "next"
@@ -27,7 +36,7 @@
2736
"semantic"
2837
],
2938
"bugs": {
30-
"url": "https://github.com/picocss/pico/issues"
39+
"url": "https://github.com/Yohn/PicoCSS/issues"
3140
},
3241
"scripts": {
3342
"✨": "run-s build",
@@ -45,13 +54,13 @@
4554
"build:autoprefix": "postcss --config css --replace css/*.css !css/*.min.css",
4655
"build-dev:minify": "cleancss -O1 --with-rebase --batch --batch-suffix .min css/*.css !css/*.min.css",
4756
"build:minify": "cleancss -O1 --with-rebase --batch --batch-suffix .min css/*.css !css/*.min.css",
48-
"prelint": "echo '[@picocss/pico] ✨ Lint'",
49-
"prebuild:css": "echo '[@picocss/pico] ✨ Compile'",
50-
"prebuild:themes": "echo '[@picocss/pico] ✨ Compile themes'",
51-
"prebuild:autoprefix": "echo '[@picocss/pico] ✨ Autoprefix'",
52-
"prebuild:minify": "echo '[@picocss/pico] ✨ Minify'",
53-
"start": "echo '\\033[96m[@picocss/pico] ✨ Start\\033[0m'",
54-
"done": "echo '\\033[32m[@picocss/pico] ✨ Done\\033[0m'"
57+
"prelint": "echo '[@Yohn/PicoCSS] ✨ Lint'",
58+
"prebuild:css": "echo '[@Yohn/PicoCSS] ✨ Compile'",
59+
"prebuild:themes": "echo '[@Yohn/PicoCSS] ✨ Compile themes'",
60+
"prebuild:autoprefix": "echo '[@Yohn/PicoCSS] ✨ Autoprefix'",
61+
"prebuild:minify": "echo '[@Yohn/PicoCSS] ✨ Minify'",
62+
"start": "echo '\\033[96m[@Yohn/PicoCSS] ✨ Start\\033[0m'",
63+
"done": "echo '\\033[32m[@Yohn/PicoCSS] ✨ Done\\033[0m'"
5564
},
5665
"devDependencies": {
5766
"autoprefixer": "^10.4",

0 commit comments

Comments
 (0)