Skip to content

Commit

Permalink
Add crises
Browse files Browse the repository at this point in the history
  • Loading branch information
jennie committed Nov 13, 2023
1 parent 4871c03 commit 0618e26
Show file tree
Hide file tree
Showing 4 changed files with 233 additions and 88 deletions.
17 changes: 16 additions & 1 deletion css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ html {
filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
animation: pulseGlow 2s infinite;
}

.planet-container.active-turn::before {
@apply text-4xl text-yellow-400 z-50;
content: "!";
Expand All @@ -77,6 +76,14 @@ html {
left: 50%;
transform: translateX(-50%);
}
#mapScreen.crisis .planet-container.active-turn::before {
@apply text-4xl text-red-600 z-50;
content: "❤️";
position: absolute;
top: -50px;
left: 50%;
transform: translateX(-50%);
}

@keyframes pulseGlow {
0%,
Expand Down Expand Up @@ -286,3 +293,11 @@ button {
#overlay {
@apply fixed top-0 left-0 w-full h-full bg-black bg-opacity-50 z-40;
}
.help-icon {
position: absolute;
top: -10px; /* Adjust as needed */
right: 50%;
transform: translateX(50%);
font-size: 20px; /* Adjust size as needed */
color: red; /* Or any color you prefer */
}
25 changes: 25 additions & 0 deletions twine_src/css/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,19 @@ html {
transform: translateX(-50%);
}

#mapScreen.crisis .planet-container.active-turn::before{
z-index: 50;
font-size: 2.25rem;
line-height: 2.5rem;
--tw-text-opacity: 1;
color: rgb(220 38 38 / var(--tw-text-opacity));
content: "❤️";
position: absolute;
top: -50px;
left: 50%;
transform: translateX(-50%);
}

@keyframes pulseGlow {
0%,
100% {
Expand Down Expand Up @@ -2296,6 +2309,18 @@ button:focus-visible{
--tw-bg-opacity: 0.5;
}

.help-icon {
position: absolute;
top: -10px;
/* Adjust as needed */
right: 50%;
transform: translateX(50%);
font-size: 20px;
/* Adjust size as needed */
color: red;
/* Or any color you prefer */
}

.focus\:ring-indigo-600:focus{
--tw-ring-opacity: 1;
--tw-ring-color: rgb(79 70 229 / var(--tw-ring-opacity));
Expand Down
Loading

0 comments on commit 0618e26

Please sign in to comment.