-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
329 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
## Raw CSS | ||
## 🍣 Raw CSS | ||
|
||
This is an npm package, but the build is created with deno. | ||
⚠️raw.css is currently under development and will not be production-ready any time soon (maybe never will). | ||
|
||
#### Running with deno | ||
### Development | ||
|
||
``` | ||
deno run --unstable --allow-read --allow-write build.ts | ||
``` | ||
|
||
#### Running with denon | ||
``` | ||
denon start | ||
``` | ||
- `yarn release`: Pulbish a new version | ||
- `yarn build`: Put css files together |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="../raw.css"> | ||
<title>🍣 raw.css docs</title> | ||
</head> | ||
|
||
<body> | ||
<button>Button</button> | ||
<button disabled>Disabled Button</button> | ||
<div class="pattern__sidebar"> | ||
<div> | ||
<aside> | ||
<form> | ||
<input type="text" aria-label="Search" /> | ||
<button type="submit">Search</button> | ||
</form> | ||
<button>Button</button> | ||
<button disabled>Disabled Button</button> | ||
</aside> | ||
<main> | ||
<h1>🍣 Raw.css </h1> | ||
</main> | ||
</div> | ||
</div> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"execMap": { | ||
"css": "yarn build" | ||
}, | ||
"watch": [ | ||
"src/" | ||
], | ||
"ext": "js,json,css" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** raw.css sidebar pattern **/ | ||
|
||
:root { | ||
--pattern-sidebar--gutter: 3ch; | ||
--pattern-sidebar--aside-width: 30ch; | ||
--pattern-sidebar--content-width: 55%; | ||
--pattern-sidebar--height: 100vh; | ||
} | ||
|
||
/** layout **/ | ||
.pattern__sidebar { | ||
overflow: hidden; | ||
height: var(--pattern-sidebar--height); | ||
} | ||
|
||
/** container **/ | ||
.pattern__sidebar > * { | ||
display: flex; | ||
flex-wrap: wrap; | ||
margin: calc(var(--pattern-sidebar--gutter) / 2 * -1); | ||
height: calc(100% + var(--pattern-sidebar--gutter)); | ||
} | ||
|
||
/** both aside and main **/ | ||
.pattern__sidebar > * > aside, main { | ||
margin: calc(var(--pattern-sidebar--gutter) / 2); | ||
flex-basis: var(--pattern-sidebar--aside-width); | ||
flex-grow: 1; | ||
} | ||
|
||
/** main **/ | ||
.pattern__sidebar > * > main { | ||
flex-basis: 0; | ||
flex-grow: 999; | ||
min-width: calc(var(--pattern-sidebar--content-width) - var(--pattern-sidebar--gutter)); | ||
} |
Oops, something went wrong.