-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: refactor layout and learning experience with TailwindCSS
- Loading branch information
Showing
43 changed files
with
789 additions
and
183 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
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,27 @@ | ||
# https://github.com/pixijs/pixi.js/blob/dev/.github/workflows/nodejs.yml | ||
# https://github.com/actions/setup-node | ||
name: Node.js CI | ||
|
||
on: | ||
push: | ||
branches: ['**'] | ||
tags: ['**'] | ||
release: | ||
types: ['created'] | ||
pull_request: | ||
branches: ['**'] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12.x] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
- run: yarn | ||
- run: yarn lint | ||
- run: yarn build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* https://stylelint.io/user-guide/configure | ||
*/ | ||
const main = { | ||
extends: 'stylelint-config-recommended', | ||
} | ||
|
||
module.exports = main |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
body { | ||
background-color: var(--bg); | ||
color: var(--color-title); | ||
transition: background-color 0.3s; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/** | ||
* copy-pasta of good starting point nuxt-content nested HTML | ||
* Bookmark: | ||
* - https://github.com/nuxt/content/blob/%40nuxt/content-theme-docs%400.6.0/packages/theme-docs/src/assets/css/main.css#L14-L88 | ||
*/ | ||
|
||
.nuxt-content { | ||
@apply break-words font-light; | ||
|
||
& a { | ||
@apply underline text-indigo-500; | ||
} | ||
& a:hover { | ||
@apply text-indigo-800; | ||
} | ||
|
||
& .nuxt-content-highlight { | ||
@apply relative grid; | ||
|
||
/* Style filename span added by @nuxt/content */ | ||
& > .filename { | ||
@apply absolute right-0 top-0 text-gray-100 z-10 font-mono text-sm tracking-tight leading-none mr-4 mt-3; | ||
} | ||
|
||
/* Add top padding to code blocks with filename */ | ||
& > .filename + pre[class*='language-'] { | ||
@apply pt-8 bg-gray-800 static; | ||
} | ||
|
||
& pre { | ||
@apply overflow-scroll break-all; | ||
} | ||
|
||
/* Style copy button added in `pages/_.vue` */ | ||
& > .copy { | ||
@apply hidden absolute right-0 bottom-0 leading-none shadow-lg px-2 py-2 text-white bg-gray-800 text-sm uppercase rounded-md border border-white font-semibold mr-3 mb-3; | ||
|
||
&:hover { | ||
@apply bg-gray-700; | ||
} | ||
|
||
&:focus { | ||
@apply outline-none bg-gray-600; | ||
} | ||
} | ||
&:hover { | ||
& > .copy { | ||
@apply block; | ||
} | ||
} | ||
} | ||
|
||
/** ***** **/ | ||
|
||
& h1, | ||
& h2, | ||
& h3, | ||
& h4, | ||
& h5, | ||
& h6 { | ||
@apply mt-5 mb-2 italic font-serif; | ||
|
||
color: var(--color-subtitle); | ||
} | ||
& h2, | ||
& h1 { | ||
color: var(--color-title); | ||
} | ||
& h2 { | ||
@apply text-2xl; | ||
} | ||
& h3 { | ||
@apply text-xl; | ||
} | ||
& h4, | ||
& h5, | ||
& h6 { | ||
@apply text-lg; | ||
} | ||
& li { | ||
@apply list-inside; | ||
|
||
color: inherit; | ||
} | ||
& ul { | ||
list-style-type: disc; | ||
} | ||
& ol { | ||
@apply italic; | ||
|
||
list-style-type: lower-roman; | ||
} | ||
& li, | ||
& blockquote { | ||
@apply pl-4; | ||
} | ||
} |
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,30 @@ | ||
:root { | ||
--color-sandwich-bg: #000; | ||
--color-sandwich-text: #fff; | ||
--color-container: #fff; | ||
--color-backdrop: #e5e5e5; | ||
--bg: var(--color-backdrop); | ||
--color: #577f79; | ||
--color-title: #262626; | ||
--color-subtitle: #999; | ||
--color-primary: #214761; | ||
--color-secondary: #bb3f3f; | ||
--color-tertiary: #cb7723; | ||
--bg-secondary: #e5e5e5; | ||
--border-color: #aaa; | ||
} | ||
|
||
.dark-mode { | ||
--color-sandwich-bg: #000; | ||
--color-sandwich-text: #fff; | ||
--color-container: #577f79; | ||
--color-backdrop: #214761; | ||
--bg: var(--color-backdrop); | ||
--color: #f4f7f3; | ||
--color-title: #262626; | ||
--color-subtitle: #999; | ||
--color-primary: #577f79; | ||
--color-secondary: #fdf9f3; | ||
--bg-secondary: #214761; | ||
--border-color: #061a17; | ||
} |
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
Oops, something went wrong.