All Projects → vladocar → Css Micro Reset

vladocar / Css Micro Reset

Licence: mit
Minimal barebone CSS Reset

Projects that are alternatives of or similar to Css Micro Reset

elza
Private, fast and minimal web browser based on electron with built-in tor.
Stars: ✭ 45 (-87.25%)
Mutual labels:  minimal
Thebestmotherfuckingwebsite
The title says it all.
Stars: ✭ 288 (-18.41%)
Mutual labels:  minimal
Metric
Minimal metrics for Go (counter/gauge/histogram). No dependencies. Compatible with expvar. Web UI included.
Stars: ✭ 319 (-9.63%)
Mutual labels:  minimal
release-auth
Handles the authentication for `release`
Stars: ✭ 20 (-94.33%)
Mutual labels:  micro
Go Micro
A pluggable Go framework for distributed systems development
Stars: ✭ 17,350 (+4815.01%)
Mutual labels:  micro
Fullstack Typescript
FAST FullStack React with TypeScript starter kit.
Stars: ✭ 295 (-16.43%)
Mutual labels:  minimal
create-react-redux-app
React boilerplate based on create-react-app
Stars: ✭ 49 (-86.12%)
Mutual labels:  minimal
Microservices
micro 微服务实例教程,包含JWT鉴权、熔断、监控、链路追踪、健康检查、跨域等
Stars: ✭ 341 (-3.4%)
Mutual labels:  micro
Micro
A modern and intuitive terminal-based text editor
Stars: ✭ 18,526 (+5148.16%)
Mutual labels:  micro
Styled Reset
Eric Meyer's Reset CSS for styled-components
Stars: ✭ 305 (-13.6%)
Mutual labels:  reset
Protoc Gen Micro
Protobuf code generation for Micro. Moved to go-micro/cmd/protoc-gen-micro.
Stars: ✭ 270 (-23.51%)
Mutual labels:  micro
Furo
A clean customizable documentation theme for Sphinx
Stars: ✭ 267 (-24.36%)
Mutual labels:  minimal
Gretchen
Making fetch happen in TypeScript.
Stars: ✭ 301 (-14.73%)
Mutual labels:  micro
plenopticam
Light-field imaging application for plenoptic cameras
Stars: ✭ 111 (-68.56%)
Mutual labels:  micro
Beedle
A tiny library inspired by Redux & Vuex to help you manage state in your JavaScript apps
Stars: ✭ 329 (-6.8%)
Mutual labels:  minimal
react-micro-modal
Accessible, lightweight and configurable modal component with a11y-enabled.
Stars: ✭ 36 (-89.8%)
Mutual labels:  micro
Hamsters
A mini Scala utility library
Stars: ✭ 292 (-17.28%)
Mutual labels:  minimal
Go Project Sample
Introduce the best practice experience of Go project with a complete project example.通过一个完整的项目示例介绍Go语言项目的最佳实践经验.
Stars: ✭ 344 (-2.55%)
Mutual labels:  micro
Portfolyou
A beautiful portfolio Jekyll theme that works with GitHub Pages.
Stars: ✭ 334 (-5.38%)
Mutual labels:  minimal
Lightdm Mini Greeter
A Minimal, Configurable, Single-User GTK3 LightDM Greeter
Stars: ✭ 304 (-13.88%)
Mutual labels:  minimal

CSS Micro Reset

You probably don't need CSS Reset, at least not the complete CSS Reset.

Every Browser has its own CSS Reset. Resetting it again means that later you need to set all reset elements.

Basically you have:

Browser Reset -> Your Reset -> Setting all Reset Elements -> Probably more styling after.

A typical H1 tag mistake:

/* "Chrome  Reset" - default Chrome CSS stylesheet */

h1 {
    display: block;
    font-size: 2em;
    -webkit-margin-before: 0.67em;
    -webkit-margin-after: 0.67em;
    -webkit-margin-start: 0px;
    -webkit-margin-end: 0px;
    font-weight: bold;
}

/* Your Reset */

h1 {
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 1;
  font-weight: normal;

}

/* Now you need to set the H1 */

h1 {
  margin: 0 0 0 1em;
  line-height: 1.5;
  font-weight: normal;
}

/* And probably you will do one more further H1 setting */

h1 {
color: #111;
font: 2em/1.5 Arial, sans-serif;
font-weight: normal;
}

/* I will assume one or two more setting of H1 tag here :) */

We've all made this mistake too many times.

Why not skip the reset and just set the elements that you need for your project?

Also why are you resetting some elements if you are not using them in your project. For example, if you don't have forms in your project, don't reset them.

Another thing: It's Ok for some elements to be different between browsers.

Why not start with bare bones reset and only add some elements if needed?

I've done just that: CSS Micro Reset

Feel free to add or remove elements to CSS Micro Reset, don't just blindly use it. For example, if you don't use tables, remove all the table related tags in the CSS Micro Reset.

Like I said in the beginning: You may not need this or any other CSS reset.

Before use, understand what this reset does.

Download or Install

You can copy-paste the CSS code, use the direct download, or use npm:

Note: I'm avere that using npm for project this small is ridiculous. But when I don't put npm there is always someone who complains why there is no: npm, yarn, bower and where is CDN link?

$ npm i css-micro-reset

Or use the CDN link:

 <link rel="stylesheet" href="https://unpkg.com/[email protected]/micro-css-reset.css">

License

This project is licensed under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].