Skip to content

Commit

Permalink
Implement player planet panel
Browse files Browse the repository at this point in the history
  • Loading branch information
jennie committed Nov 14, 2023
1 parent 800bf14 commit 5db79df
Show file tree
Hide file tree
Showing 9 changed files with 171 additions and 825 deletions.
32 changes: 30 additions & 2 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ html {
#planet-info {
@apply flex flex-row self-end flex-grow z-20 justify-end h-1/3 mx-6;
}

.player-screen {
#planet-info {
@apply h-2/3;
}
}
#rep {
@apply flex flex-col self-start z-30 mr-6 w-64;
}
Expand All @@ -61,7 +65,7 @@ html {
}

.passage-choices span {
@apply block font-bold cursor-pointer hover:text-neutral-950 text-neutral-800 border-b-2 border-b-neutral-800;
@apply block font-bold cursor-pointer hover:text-neutral-950 text-neutral-800;
}

.active-turn img {
Expand Down Expand Up @@ -102,6 +106,30 @@ body.crisis #weekPreamble {
@apply content-end justify-end mr-6 flex-col p-6 overflow-y-auto bg-neutral-100 bg-opacity-75 rounded-t-2xl h-full w-full;
}

#hud.player-screen #passageContainer {
@apply mr-0 flex-col p-6 overflow-y-auto bg-neutral-900 bg-opacity-75 rounded-2xl h-full w-full text-neutral-200;
}

#hud.player-screen #passageContainer > * {
@apply mb-4 text-neutral-200;
}

#hud.player-screen #passageContainer #passage h2 {
@apply text-2xl font-bold text-neutral-50 mb-4;
}

#hud.player-screen #passageContainer #passage p {
@apply text-base text-neutral-200 mb-4;
}

#hud.player-screen #passageContainer #passage pre {
@apply font-mono text-base text-neutral-200;
}

#hud.player-screen #rep {
@apply hidden;
}

body.map {
padding: 0;
overflow: hidden;
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"autoprefixer": "^10.4.16",
"postcss": "^8.4.31",
"postcss-import": "^15.1.0",
"postcss-nested": "^6.0.1",
"postcss-nesting": "^12.0.1",
"tailwindcss": "^3.3.5"
},
Expand Down
3 changes: 2 additions & 1 deletion postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// postcss.config.js
module.exports = {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
tailwindcss: {},
autoprefixer: {},
},
};
9 changes: 4 additions & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
/** @type {import('tailwindcss').Config} */
/* @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./twine_src/**/*.{html,js,twee}",
],
content: ["./twine_src/**/*.{html,js,twee}"],
theme: {
extend: {
fontFamily: {
body: "Helvetica",
display: "Handjet",
sans: "Helvetica",
mono: "Courier New",
},
},
},
plugins: [require("@tailwindcss/typography"), require('@tailwindcss/forms')],
plugins: [require("@tailwindcss/typography"), require("@tailwindcss/forms")],
};
Loading

0 comments on commit 5db79df

Please sign in to comment.