├── pages
├── index.js
├── _app.js
└── posts
│ └── goodcss.md
└── package.json
/pages/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { Link } from 'react-router-dom'
3 | ddimport posts from '../posts'
4 |
5 | export default () =>
6 |
7 |
Writing
8 |
9 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "mrmrs-writing",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1",
8 | "dev": "x0 pages -o"
9 | },
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "@compositor/x0": "^5.1.0-2",
14 | "emotion-theming": "^9.2.3",
15 | "react-emotion": "^9.2.3",
16 | "react-router-dom": "^4.3.1",
17 | "rebass": "^2.0.0-7",
18 | "styled-components": "^3.3.2",
19 | "styled-system": "^2.3.1"
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/pages/_app.js:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import { Link } from 'react-router-dom'
3 |
4 | const Script = ({ src }) =>
5 |
10 |
11 | export default ({ render }) =>
12 |
13 |
16 |
17 | {render()}
18 |
19 |
24 |
25 |
26 |
27 | const ga = '(function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,"script","//www.google-analytics.com/analytics.js","ga"); ga("create", "UA-4603832-6", "auto"); ga("send", "pageview");'
28 |
--------------------------------------------------------------------------------
/pages/posts/goodcss.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: "Good CSS"
3 | layout: alt
4 | ---
5 |
6 | {{page.date | date: "%d %B %Y"}}
7 |
8 | Since I've started authoring css, I've been asking myself and other css developers the same question: What is 'good css?'
9 | After many years of writing, refactoring, and deleting css; this is a short list of things I believe to be true.
10 |
11 |
12 |
13 |
14 | Good CSS...
15 |
16 |
17 | Doesn't break any functionality of plain html.
18 | Makes an interface more readable for everyone on any device.
19 | Enhances the usability and accessibility of an interface on all devices for all users.
20 | Allows you to quickly change a single interface without breaking other interfaces.
21 | Renders quickly in the browser.
22 | Runs at 60fps (no jank on window resize or during scrolling).
23 |
24 |
25 | Good CSS is...
26 |
27 |
28 | Highly reusable - even across projects.
29 | Well documented.
30 | Easy to read and understand.
31 | ID free.
32 | Mobile-first.
33 | Easy to maintain.
34 | As small as possible.
35 | Unassuming.
36 |
37 |
38 |
--------------------------------------------------------------------------------