V. 2.1.0 - Yohns Fork

This commit is contained in:
Yohn 2024-11-27 00:38:59 -05:00
parent b611b528bc
commit 42b62b10a6
10 changed files with 66 additions and 38 deletions

View file

@ -13,6 +13,11 @@
[![License](https://img.shields.io/badge/license-MIT-%230172ad)](https://github.com/picocss/pico/blob/master/LICENSE.md) [![License](https://img.shields.io/badge/license-MIT-%230172ad)](https://github.com/picocss/pico/blob/master/LICENSE.md)
[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/picocss.svg?style=social&label=Follow%20%40picocss)](https://twitter.com/picocss) [![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/picocss.svg?style=social&label=Follow%20%40picocss)](https://twitter.com/picocss)
## Yohns Updated Version
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!
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.
## Minimal CSS Framework for Semantic HTML ## Minimal CSS Framework for Semantic HTML
A minimalist and lightweight starter kit that prioritizes semantic syntax, making every HTML element responsive and elegant by default. 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
## Table of contents ## Table of contents
- [Quick start](#quick-start) 1. [Yohns Updated Version](#yohns-updated-version)
- [Class-less version](#class-less-version) 2. [Minimal CSS Framework for Semantic HTML](#minimal-css-framework-for-semantic-html)
- [Limitations](#limitations) 3. [Whats new in v2?](#whats-new-in-v2)
- [Documentation](#documentation) 4. [A Superpowered HTML Reset](#a-superpowered-html-reset)
- [Browser Support](#browser-support) 5. [Table of contents](#table-of-contents)
- [Contributing](#contributing) 6. [Quick start](#quick-start)
- [Copyright and license](#copyright-and-license) 1. [Install manually](#install-manually)
2. [Usage from CDN](#usage-from-cdn)
3. [Install with NPM](#install-with-npm)
4. [Starter HTML template](#starter-html-template)
7. [Class-less version](#class-less-version)
8. [Limitations](#limitations)
9. [Documentation](#documentation)
10. [Browser Support](#browser-support)
11. [Contributing](#contributing)
12. [Copyright and license](#copyright-and-license)
## Quick start ## Quick start
@ -63,20 +77,20 @@ There are 4 ways to get started with pico.css:
Alternatively, you can use [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@picocss/pico) to link pico.css. Alternatively, you can use [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@picocss/pico) to link pico.css.
```html ```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css" /> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@yohns/picocss@2.1.0/css/pico.min.css" />
``` ```
### Install with NPM ### Install with NPM
```shell ```shell
npm install @picocss/pico npm i @yohns/picocss
``` ```
<!--
Or Or
```shell ```shell
yarn add @picocss/pico yarn add @picocss/pico
``` ```-->
Then, import Pico into your SCSS file with [@use](https://sass-lang.com/documentation/at-rules/use): Then, import Pico into your SCSS file with [@use](https://sass-lang.com/documentation/at-rules/use):
@ -84,11 +98,11 @@ Then, import Pico into your SCSS file with [@use](https://sass-lang.com/document
@use "pico"; @use "pico";
``` ```
### Install with Composer <!--### Install with Composer
```shell ```shell
composer require picocss/pico composer require picocss/pico
``` ```-->
### Starter HTML template ### Starter HTML template
@ -121,7 +135,7 @@ Use the default `.classless` version if you need centered viewports:
```html ```html
<link <link
rel="stylesheet" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css" href="https://cdn.jsdelivr.net/npm/@yohns/picocss@2.1.0/css/pico.classless.min.css"
/> />
``` ```
@ -130,7 +144,7 @@ Or use the `.fluid.classless` version if you need a fluid container:
```html ```html
<link <link
rel="stylesheet" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.fluid.classless.min.css" href="https://cdn.jsdelivr.net/npm/@yohns/picocss@2.1.0/css/pico.fluid.classless.min.css"
/> />
``` ```
@ -145,7 +159,7 @@ Then just write pure HTML, and it should look great:
<meta name="color-scheme" content="light dark" /> <meta name="color-scheme" content="light dark" />
<link <link
rel="stylesheet" rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css" href="https://cdn.jsdelivr.net/npm/@yohns/picocss@2.1.0/css/pico.classless.min.css"
/> />
<title>Hello, world!</title> <title>Hello, world!</title>
</head> </head>

1
demo/Moved2Docs.txt Normal file
View file

@ -0,0 +1 @@
Moved to the docs directory so I can put the updated features on github pages.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 484 KiB

View file

@ -49,6 +49,12 @@
<!-- /Header --> <!-- /Header -->
</div> </div>
<main class="col-12 col-md-9 col-lg-10"> <main class="col-12 col-md-9 col-lg-10">
<article>
<header><h2>Yohns PicoCSS Fork</h2></header>
<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>
<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>
<footer>If this fork has helped you, please <a href="https://github.com/Yohn/PicoCSS">Like</a> this fork!</footer>
</article>
<!-- Validation --> <!-- Validation -->
<form action="javascript:void(0);"> <form action="javascript:void(0);">
<article id="group"> <article id="group">
@ -364,14 +370,14 @@
<!-- ./ Modal example --> <!-- ./ Modal example -->
<!-- Minimal theme switcher --> <!-- Minimal theme switcher -->
<script src="js/minimal-theme-switcher.js"></script> <script src="js/MinimalThemeSwitcher.js"></script>
<!-- Modal --> <!-- Modal -->
<script src="js/modal.js"></script> <script src="js/Modal.js"></script>
<!-- alert notifications --> <!-- alert notifications -->
<script src="js/notifications.js"></script> <script src="js/Notifications.js"></script>
<script src="js/FileValidator.js"></script> <script src="js/FileValidator.js"></script>
<script src="js/accordion.js"></script> <script src="js/Accordion.js"></script>
<script> <script>
document.addEventListener("DOMContentLoaded", () => { document.addEventListener("DOMContentLoaded", () => {
const checkFile = document.getElementById("checkFile"); const checkFile = document.getElementById("checkFile");
@ -396,8 +402,6 @@ document.addEventListener("DOMContentLoaded", () => {
}); });
}); });
}); });
</script> </script>
</body> </body>
</html> </html>

View file

@ -1,14 +1,23 @@
{ {
"name": "@picocss/pico", "name": "@yohns/picocss",
"version": "2.0.6", "version": "2.1.0",
"description": "Minimal CSS Framework for semantic HTML", "description": "Minimal CSS Framework for semantic HTML, updated with enhanced capabilities.",
"author": "Lucas Larroche", "authors": [
{
"name": "Lucas Larroche",
"website": "https://github.com/picocss/pico"
},
{
"name": "John Brittaines",
"website": "https://github.com/Yohn/PicoCSS"
}
],
"main": "css/pico.min.css", "main": "css/pico.min.css",
"homepage": "https://picocss.com", "homepage": "https://picocss.com",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/picocss/pico.git" "url": "git+https://github.com/Yohn/PicoCSS.git"
}, },
"publishConfig": { "publishConfig": {
"tag": "next" "tag": "next"
@ -27,7 +36,7 @@
"semantic" "semantic"
], ],
"bugs": { "bugs": {
"url": "https://github.com/picocss/pico/issues" "url": "https://github.com/Yohn/PicoCSS/issues"
}, },
"scripts": { "scripts": {
"✨": "run-s build", "✨": "run-s build",
@ -45,13 +54,13 @@
"build:autoprefix": "postcss --config css --replace css/*.css !css/*.min.css", "build:autoprefix": "postcss --config css --replace css/*.css !css/*.min.css",
"build-dev:minify": "cleancss -O1 --with-rebase --batch --batch-suffix .min css/*.css !css/*.min.css", "build-dev:minify": "cleancss -O1 --with-rebase --batch --batch-suffix .min css/*.css !css/*.min.css",
"build:minify": "cleancss -O1 --with-rebase --batch --batch-suffix .min css/*.css !css/*.min.css", "build:minify": "cleancss -O1 --with-rebase --batch --batch-suffix .min css/*.css !css/*.min.css",
"prelint": "echo '[@picocss/pico] ✨ Lint'", "prelint": "echo '[@Yohn/PicoCSS] ✨ Lint'",
"prebuild:css": "echo '[@picocss/pico] ✨ Compile'", "prebuild:css": "echo '[@Yohn/PicoCSS] ✨ Compile'",
"prebuild:themes": "echo '[@picocss/pico] ✨ Compile themes'", "prebuild:themes": "echo '[@Yohn/PicoCSS] ✨ Compile themes'",
"prebuild:autoprefix": "echo '[@picocss/pico] ✨ Autoprefix'", "prebuild:autoprefix": "echo '[@Yohn/PicoCSS] ✨ Autoprefix'",
"prebuild:minify": "echo '[@picocss/pico] ✨ Minify'", "prebuild:minify": "echo '[@Yohn/PicoCSS] ✨ Minify'",
"start": "echo '\\033[96m[@picocss/pico] ✨ Start\\033[0m'", "start": "echo '\\033[96m[@Yohn/PicoCSS] ✨ Start\\033[0m'",
"done": "echo '\\033[32m[@picocss/pico] ✨ Done\\033[0m'" "done": "echo '\\033[32m[@Yohn/PicoCSS] ✨ Done\\033[0m'"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.4", "autoprefixer": "^10.4",