From 271b85f211c54cf882672af3b5740f793627b026 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mino=20Rem?= <29999+remino@users.noreply.github.com>
Date: Wed, 18 Sep 2024 23:38:44 +0900
Subject: [PATCH] Rename to dress.css:
- Renamed project to "dress.css" from "semcss" ("sem.css").
- Renamed dist files.
- Updated README.
- Updated share image.
- Added favicon.
- Added logo in header.
---
Gemfile.lock | 14 +-
README.md | 38 +--
assets/css/docs.sass | 14 ++
assets/css/{sem.sass => dress.sass} | 0
assets/img/share.svg | 2 +-
assets/js/playground.js | 6 +-
bin/publish | 2 +-
data/site.yml | 6 +-
dress.svg | 25 ++
locales/en.yml | 2 +-
package-lock.json | 219 ++++++++++--------
package.json | 14 +-
source/_footer.html.slim | 6 +-
source/_head.html.slim | 33 +--
source/_header.html.slim | 17 +-
source/dress.css.conf.erb | 9 +
source/{semcss => dress.css}/demo.html.slim | 2 +-
source/dress.css/dress.svg | 1 +
.../elements.html.md.erb | 8 +-
source/dress.css/favicon.png | Bin 0 -> 2705 bytes
source/dress.css/favicon.svg | 15 ++
source/{semcss => dress.css}/index.html.md | 0
source/dress.css/ld.svg | 1 +
source/{semcss => dress.css}/license.html.md | 0
.../playground.html.slim | 0
source/{semcss => dress.css}/remino.svg | 2 +-
source/dress.css/share.png | Bin 0 -> 41998 bytes
source/dress.css/triangles.svg | 1 +
source/layouts/layout.html.slim | 2 +-
source/semcss.conf.erb | 7 -
source/semcss/share.png | Bin 38023 -> 0 bytes
source/semcss/triangles.svg | 1 -
tests/responses.bats | 23 +-
33 files changed, 289 insertions(+), 181 deletions(-)
rename assets/css/{sem.sass => dress.sass} (100%)
create mode 100644 dress.svg
create mode 100644 source/dress.css.conf.erb
rename source/{semcss => dress.css}/demo.html.slim (99%)
create mode 120000 source/dress.css/dress.svg
rename source/{semcss => dress.css}/elements.html.md.erb (94%)
create mode 100644 source/dress.css/favicon.png
create mode 100644 source/dress.css/favicon.svg
rename source/{semcss => dress.css}/index.html.md (100%)
create mode 100644 source/dress.css/ld.svg
rename source/{semcss => dress.css}/license.html.md (100%)
rename source/{semcss => dress.css}/playground.html.slim (100%)
rename source/{semcss => dress.css}/remino.svg (96%)
create mode 100644 source/dress.css/share.png
create mode 100644 source/dress.css/triangles.svg
delete mode 100644 source/semcss.conf.erb
delete mode 100644 source/semcss/share.png
delete mode 100644 source/semcss/triangles.svg
diff --git a/Gemfile.lock b/Gemfile.lock
index cbe8f01..dab1c02 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -23,9 +23,9 @@ GEM
coffee-script-source
execjs
coffee-script-source (1.12.2)
- concurrent-ruby (1.3.3)
+ concurrent-ruby (1.3.4)
contracts (0.17)
- dotenv (3.1.2)
+ dotenv (3.1.4)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
@@ -107,13 +107,13 @@ GEM
middleman-syntax (3.4.0)
middleman-core (>= 3.2)
rouge (~> 3.2)
- minitest (5.24.1)
+ minitest (5.25.1)
padrino-helpers (0.15.3)
i18n (>= 0.6.7, < 2)
padrino-support (= 0.15.3)
tilt (>= 1.4.1, < 3)
padrino-support (0.15.3)
- parallel (1.25.1)
+ parallel (1.26.3)
parslet (2.0.0)
progress (3.6.0)
psych (3.3.4)
@@ -124,8 +124,7 @@ GEM
rb-fsevent (0.11.2)
rb-inotify (0.11.1)
ffi (~> 1.0)
- rexml (3.3.4)
- strscan
+ rexml (3.3.7)
rouge (3.30.0)
sassc (2.4.0)
ffi (~> 1.9)
@@ -133,11 +132,10 @@ GEM
slim (4.1.0)
temple (>= 0.7.6, < 0.9)
tilt (>= 2.0.6, < 2.1)
- strscan (3.1.0)
temple (0.8.2)
terser (1.2.3)
execjs (>= 0.3.0, < 3)
- thor (1.3.1)
+ thor (1.3.2)
tilt (2.0.11)
toml (0.3.0)
parslet (>= 1.8.0, < 3.0.0)
diff --git a/README.md b/README.md
index fa17928..cae19bb 100644
--- a/README.md
+++ b/README.md
@@ -1,14 +1,16 @@
-# sem.css: Semantic Style
+
-**Minimal class-less CSS for semantic HTML.**
+# dress.css
-[Site](https://remino.net/semcss/)
-| [Code Repo](https://github.com/remino/semcss)
-| [NPM Package](https://www.npmjs.com/package/semcss)
+The little black dress of CSS.
+
+[Site](https://remino.net/dress.css/)
+| [Code Repo](https://github.com/remino/dress.css)
+| [NPM Package](https://www.npmjs.com/package/dress.css)
By Rémino Rem
-- [Just write HTML and make it look good](#just-write-html-and-make-it-look-good)
+- [Minimal style for semantic HTML](#minimal-style-for-semantic-html)
- [Features](#features)
- [Installation](#installation)
- [HTML](#html)
@@ -21,9 +23,9 @@ By Rémino Rem
---
-## Just write HTML and make it look good
+## Minimal style for semantic HTML
-Introducing **sem.css**, a minimalist class-less stylesheet that makes your pages look good only by writing HTML.
+Introducing **dress.css**, a minimalist class-less stylesheet that makes your pages look good only by writing HTML.
This simple stylesheet was born from three things:
@@ -33,6 +35,8 @@ This simple stylesheet was born from three things:
Much of this stylesheet was inspired from [_new.css_](https://newcss.net/), with a few changes to vertical rhythm and markup for button links, and no external fonts.
+This stylesheet was formerly known as **sem.css** in version 1.2.4, and renamed as **dress.css** in version 2.0.0.
+
[Back to top](#)
---
@@ -62,7 +66,7 @@ There are many ways to include this stylesheet in your code. Here are a few exam
Add the stylesheet to your HTML and write your content:
```html
-
+
```
### NPM
@@ -70,22 +74,22 @@ Add the stylesheet to your HTML and write your content:
Install the package from NPM:
```bash
-npm install semcss
+npm install dress.css
```
-Then the stylesheet file should be available at `node_modules/semcss/dist/sem.css`.
+Then the stylesheet file should be available at `node_modules/dress.css/dist/dress.css`.
Use the file in your Sass files, or include it in your CSS, etc.
### Download
-Download the `sem.css` file from the [GitHub releases](https://github.com/remino/semcss/releases).
+Download the `dress.css` file from the [GitHub releases](https://github.com/remino/dress.css/releases).
---
## Usage
-To know which HTML tags are handled by this stylesheet with some suggested markup, see _[Elements](https://remino.net/semcss/elements/)_.
+To know which HTML tags are handled by this stylesheet with some suggested markup, see _[Elements](https://remino.net/dress.css/elements/)_.
[Back to top](#)
@@ -93,14 +97,14 @@ To know which HTML tags are handled by this stylesheet with some suggested marku
## Browser Support
-The **sem.css** stylesheet was checked with [`doiuse`](https://www.npmjs.com/package/doiuse):
+The **dress.css** stylesheet was checked with [`doiuse`](https://www.npmjs.com/package/doiuse):
```
-❯ doiuse -b 'defaults' -v dist/sem.css
+❯ doiuse -b 'defaults' -v dist/dress.css
[doiuse] Browsers: Firefox 129, Firefox 128, Chrome for Android 127, Firefox for Android 127, Android Browser 127, Chrome 127, Edge 127, Firefox 127, Chrome 126, Edge 126, Chrome 125, Firefox 115, Opera 111, Opera 110, Chrome 109, Opera Mobile 80, Samsung Internet 25, Samsung Internet 24, Safari on iOS 17, Safari on iOS 17, Safari 17, Safari 17, Safari on iOS 16, UC Browser for Android 15, Safari on iOS 15, QQ Browser 14, KaiOS Browser 3, KaiOS Browser 2, Opera Mini NaN
```
-While **sem.css** should work in the latest version of major browsers, it seems to have issues in some less-popular mobile versions, like Opera Mini. This stylesheet is not meant for legacy support.
+While **dress.css** should work in the latest version of major browsers, it seems to have issues in some less-popular mobile versions, like Opera Mini. This stylesheet is not meant for legacy support.
[Back to top](#)
@@ -125,7 +129,7 @@ Don't forget to give the project a star! Thanks again!
## License
-Distributed under the ISC License. See _[License](https://remino.net/semcss/license/)_.
+Distributed under the ISC License. See _[License](https://remino.net/dress.css/license/)_.
[Back to top](#)
diff --git a/assets/css/docs.sass b/assets/css/docs.sass
index 5c69348..cfc3d88 100644
--- a/assets/css/docs.sass
+++ b/assets/css/docs.sass
@@ -37,6 +37,20 @@ body
> menu
margin-block-start: 0.8em
+ > header
+ object
+ display: inline
+ margin-right: calc(var(--sc-m-v) / 2)
+ vertical-align: middle
+ margin-bottom: 12px
+
+ + p:has(img)
+ img
+ margin: 0
+
+ + h1
+ margin-block-start: 0
+
div.highlight
position: relative
diff --git a/assets/css/sem.sass b/assets/css/dress.sass
similarity index 100%
rename from assets/css/sem.sass
rename to assets/css/dress.sass
diff --git a/assets/img/share.svg b/assets/img/share.svg
index 1b3fbab..775282a 100644
--- a/assets/img/share.svg
+++ b/assets/img/share.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/assets/js/playground.js b/assets/js/playground.js
index d0dd02c..47abe1e 100644
--- a/assets/js/playground.js
+++ b/assets/js/playground.js
@@ -15,7 +15,7 @@ class PlaygroundApp extends HTMLElement {
this.innerHTML = `