-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now uses CSS Modules to style components.
- Loading branch information
1 parent
6e07216
commit 0f5ec25
Showing
65 changed files
with
568 additions
and
464 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module "*.module.css" { | ||
const styles: Record<string, string>; | ||
export = styles; | ||
} |
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
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
67 changes: 67 additions & 0 deletions
67
packages/kitten-scientists/source/ui/UserInterface.module.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#ksColumn { | ||
min-width: 250px; | ||
max-width: 440px; | ||
vertical-align: top; | ||
padding-left: 8px; | ||
top: 20px; | ||
position: relative; | ||
overflow-y: auto; | ||
} | ||
.spacer { | ||
display: block; | ||
margin-bottom: 100px; | ||
} | ||
.ui { | ||
margin: 5px 0 10px 0; | ||
padding-right: 10px; | ||
font-size: 14px; | ||
} | ||
.ui ul { | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
.ui ul:after { | ||
clear: both; | ||
content: " "; | ||
display: block; | ||
height: 0; | ||
} | ||
|
||
.showActivity { | ||
cursor: pointer; | ||
display: inline-block; | ||
vertical-align: middle; | ||
} | ||
|
||
/* Dialogs */ | ||
.dialog.ks-dialog { | ||
display: flex; | ||
flex-direction: column; | ||
height: fit-content !important; | ||
box-shadow: none; | ||
} | ||
.dialog.ks-dialog .close { | ||
position: absolute; | ||
top: 10px; | ||
right: 15px; | ||
} | ||
|
||
/* Rules needed to enable stock warning. */ | ||
|
||
.ui #toggle-list-resources .stockWarn *, | ||
.ui #toggle-reset-list-resources .stockWarn * { | ||
color: #dd1e00; | ||
} | ||
|
||
/* Ensure the right column gets a scrollbar, when our content extends it too far down. */ | ||
#game #rightColumn { | ||
overflow-y: auto; | ||
} | ||
|
||
#game .res-row .res-cell.ks-stock-above { | ||
color: green; | ||
} | ||
#game .res-row .res-cell.ks-stock-below { | ||
color: red; | ||
} |
Oops, something went wrong.