Skip to content

Commit

Permalink
reset: invert border defaults, improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
vwkd committed Dec 6, 2023
1 parent 4a66b5b commit faad784
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ After resetting everything, this style sheet also includes modern default styles
- Flex Layout as default layout, instead of Flow Layout
- `<html>` element default size is viewport size, instead of height being only content height
- `<body>` element default size is viewport size
- Border style as solid instead of none, border width as none instead of medium, such that can add solid border just by setting its width



Expand Down
11 changes: 10 additions & 1 deletion reset.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@ head, meta, title, link, style, script {
outline-offset: var(--focus-outline-offset, 0);
}

/* fix sizing box and default layout */
/* include border in box size
*/

/* make Flex Layout default layout
*/

/* invert border defaults
*/

*, *::before, *::after {
box-sizing: border-box;
display: flex;
border-width: 0;
border-style: solid;
}

/* make root element size of viewport
Expand Down

0 comments on commit faad784

Please sign in to comment.