Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
remino committed Aug 3, 2024
0 parents commit 20695fa
Show file tree
Hide file tree
Showing 61 changed files with 8,835 additions and 0 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults, last 2 versions, not dead
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = tab

[*.md]
trim_trailing_whitespace = false

[*.yml]
indent_style = space
indent_size = 2
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DEPLOY_DEST=example.com:example.com/env/production/pods/200-pod/
DEPLOY_SRC=build/
42 changes: 42 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"env": {
"browser": true,
"node": true
},
"extends": ["airbnb-base", "plugin:no-template-curly-in-string-fix/recommended"],
"overrides": [
{
"files": ["source/nav/nav.js"],
"rules": {
"wrap-iife": ["error", "inside"]
}
}
],
"root": true,
"rules": {
"arrow-parens": ["error", "as-needed"],
"import/extensions": [
"error",
{
"mjs": "always",
"js": "always"
}
],
"indent": [
"error",
"tab",
{
"SwitchCase": 1
}
],
"no-tabs": [
"error",
{
"allowIndentationTabs": true
}
],
"no-underscore-dangle": 1,
"nuxt/no-cjs-in-config": "off",
"semi": ["error", "never"]
}
}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.build
.build_images
.bundle
.cache
.DS_Store
.env
.sass-cache
build/
deploy/
dist/
node_modules/
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js
2 changes: 2 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodejs 18.11.0
ruby 3.1.2
16 changes: 16 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
source 'https://rubygems.org'

gem 'htmlcompressor'
gem 'image_optim', '~> 0.31.2'
gem 'middleman', '~> 4.2'
gem 'middleman-autoprefixer', '~> 3.0'
gem 'middleman-livereload'
gem 'middleman-minify-html', '~> 3.4'
gem 'middleman-reslib', github: 'remino/middleman-reslib', tag: 'v0.3.15'
gem 'psych', '< 4'
gem 'redcarpet'
gem 'slim', '~> 4'
gem 'terser'
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby, :x64_mingw]
gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw, :x64_mingw]
gem 'yui-compressor'
170 changes: 170 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
GIT
remote: https://github.com/remino/middleman-reslib.git
revision: 272f9caa19d7eb5c8d2650b837f7433400847ffe
tag: v0.3.15
specs:
middleman-reslib (0.3.15)
fastimage (>= 2.2.7)
kramdown (>= 2.4.0)
middleman-core (>= 4.4.2)

GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.8.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
addressable (2.8.6)
public_suffix (>= 2.0.2, < 6.0)
autoprefixer-rails (10.4.16.0)
execjs (~> 2)
backports (3.25.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.2.3)
contracts (0.17)
dotenv (3.1.2)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
erubis (2.7.0)
eventmachine (1.2.7)
execjs (2.9.1)
exifr (1.4.0)
fast_blank (1.0.1)
fastimage (2.3.1)
ffi (1.16.3)
fspath (3.1.2)
haml (6.3.0)
temple (>= 0.8.2)
thor
tilt
hamster (3.0.0)
concurrent-ruby (~> 1.0)
hashie (3.6.0)
htmlcompressor (0.2.0)
http_parser.rb (0.8.0)
i18n (1.6.0)
concurrent-ruby (~> 1.0)
image_optim (0.31.3)
exifr (~> 1.2, >= 1.2.2)
fspath (~> 3.0)
image_size (>= 1.5, < 4)
in_threads (~> 1.3)
progress (~> 3.0, >= 3.0.1)
image_size (3.4.0)
in_threads (1.6.0)
kramdown (2.4.0)
rexml
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
memoist (0.16.2)
middleman (4.5.0)
coffee-script (~> 2.2)
haml (>= 4.0.5)
kramdown (>= 2.3.0)
middleman-cli (= 4.5.0)
middleman-core (= 4.5.0)
middleman-autoprefixer (3.0.0)
autoprefixer-rails (~> 10.0)
middleman-core (>= 4.0.0)
middleman-cli (4.5.0)
thor (>= 0.17.0, < 2.0)
middleman-core (4.5.0)
activesupport (>= 6.1, < 7.1)
addressable (~> 2.4)
backports (~> 3.6)
bundler (~> 2.0)
contracts (~> 0.13)
dotenv
erubis
execjs (~> 2.0)
fast_blank
fastimage (~> 2.0)
hamster (~> 3.0)
hashie (~> 3.4)
i18n (~> 1.6.0)
listen (~> 3.0)
memoist (~> 0.14)
padrino-helpers (~> 0.15.0)
parallel
rack (>= 1.4.5, < 3)
sassc (~> 2.0)
servolux
tilt (~> 2.0.9)
toml
uglifier (~> 3.0)
webrick
middleman-livereload (3.4.7)
em-websocket (~> 0.5.1)
middleman-core (>= 3.3)
rack-livereload (~> 0.3.15)
middleman-minify-html (3.4.1)
htmlcompressor (~> 0.2.0)
middleman-core (>= 3.2)
minitest (5.22.3)
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.24.0)
parslet (2.0.0)
progress (3.6.0)
psych (3.3.4)
public_suffix (5.0.5)
rack (2.2.9)
rack-livereload (0.3.17)
rack
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
redcarpet (3.6.0)
rexml (3.2.6)
sassc (2.4.0)
ffi (~> 1.9)
servolux (0.13.0)
slim (4.1.0)
temple (>= 0.7.6, < 0.9)
tilt (>= 2.0.6, < 2.1)
temple (0.8.2)
terser (1.2.2)
execjs (>= 0.3.0, < 3)
thor (1.3.1)
tilt (2.0.11)
toml (0.3.0)
parslet (>= 1.8.0, < 3.0.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
webrick (1.8.1)
yui-compressor (0.12.0)

PLATFORMS
arm64-darwin-21
x86_64-linux

DEPENDENCIES
htmlcompressor
image_optim (~> 0.31.2)
middleman (~> 4.2)
middleman-autoprefixer (~> 3.0)
middleman-livereload
middleman-minify-html (~> 3.4)
middleman-reslib!
psych (< 4)
redcarpet
slim (~> 4)
terser
tzinfo-data
wdm (~> 0.1)
yui-compressor

BUNDLED WITH
2.3.22
15 changes: 15 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ISC License

Copyright (c) 2022 Rémino Rem

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
43 changes: 43 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# sem.css Semantic Style

<https://remino.net/semcss/>

**Minimalist class-less styling only with HTML.**

By Rémino Rem <https://remino.net/>

---

This simple stylesheet was born from three things:

- How the rendering of HTML without CSS hasn't changed much since the first Web browser in 1991.
- How common readers in some browsers (like the one in Safari) simplifies the styling the pages to focus on legibility.
- How writing CSS for simple pages is painful or at least time-consuming.

Introducing **<mark>sem.css</mark>**, a minimalist class-less stylesheet that makes your pages look good only by writing HTML.

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.

## Features

- **Small**: Less than 2.5 KiB, gzipped.
- **Class-less**: No need to add classes to your HTML elements.
- **Modern**: Uses CSS variables, viewport sizes, and flexbox.
- **Readable**: Focus on the content, not the style.
- **Responsive**: Uses relative units, works well on all screen sizes.
- **Accessible**: Uses semantic HTML elements and ARIA roles.
- **Printable**: Looks good on paper.
- **Localizable**: Works both with left-to-right and right-to-left languages.
- **Customizable**: Add your own styles on top of it, or add a theme by changing variables.

## Usage

Add the stylesheet to your HTML and write your content:

```html
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/sem.css">
```

To know which HTML tags are handled by this stylesheet, see _[Elements](elements/)_.

##
40 changes: 40 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
namespace :build do
def build(env)
puts "Building for #{env}"
system "TARGET=#{env} bundle exec middleman build --clean"
end

desc "Build site for staging"
task :staging do
build :staging
end

desc "Build site for production"
task :production do
build :production
end
end

namespace :deploy do
def deploy(env)
puts "Building for #{env}"
system "bin/deploy -c .env -c .env.#{env} -r"
end

desc "Deploy site for staging"
task :staging do
deploy :staging
end

desc "Deploy site for production"
task :production do
deploy :production
end
end

desc "Serve development site"
task :serve do
system "bundle exec middleman server"
end

task default: :serve
Loading

0 comments on commit 20695fa

Please sign in to comment.