feat: Change game structure
- New template - Rename screens - New partial for menu - New data file for menu content - Separate styles
This commit is contained in:
parent
a1b5aa8c59
commit
19577eca8c
10 changed files with 261 additions and 221 deletions
155
source/style/modules/game/_tfw.scss
Normal file
155
source/style/modules/game/_tfw.scss
Normal file
|
|
@ -0,0 +1,155 @@
|
|||
@use 'sass:list';
|
||||
@use "sass:map";
|
||||
|
||||
@use "../../hippie-style/hippie";
|
||||
|
||||
.body_tfw {
|
||||
@extend .h_full_view;
|
||||
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
|
||||
th,
|
||||
.important {
|
||||
color: white;
|
||||
background-color: hippie.basic_color(echo);
|
||||
}
|
||||
|
||||
.important {
|
||||
padding: hippie.$space_half;
|
||||
border-block: hippie.$width_border_basic solid hippie.$color_back_basic;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.subtle {
|
||||
@extend .txt_smaller;
|
||||
|
||||
color: hippie.$color_darkest;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.success {
|
||||
color: hippie.basic_color(alpha);
|
||||
}
|
||||
|
||||
& > header {
|
||||
& > button.active {
|
||||
border-color: hippie.$color_highlight_basic;
|
||||
color: hippie.$color_highlight_basic;
|
||||
background-color: hippie.$color_action_basic;
|
||||
}
|
||||
|
||||
& > button:not(:first-child, :last-child, :nth-child(2)) {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
& > div {
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
flex: auto;
|
||||
min-height: 0;
|
||||
|
||||
& > main {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
flex: auto;
|
||||
gap: hippie.$space_double;
|
||||
min-height: 0;
|
||||
|
||||
& > div:first-child {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
& > div:last-child {
|
||||
flex: 2;
|
||||
}
|
||||
|
||||
& > div:nth-child(2) {
|
||||
flex: 4;
|
||||
display: flex;
|
||||
flex-flow: column nowrap;
|
||||
gap: hippie.$space_basic;
|
||||
min-height: 0;
|
||||
|
||||
div:first-child {
|
||||
flex: auto;
|
||||
overflow: auto;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
div:last-child {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
nav {
|
||||
& > *:not(:last-child) {
|
||||
margin-bottom: hippie.$space_basic;
|
||||
}
|
||||
|
||||
input:not([type="checkbox"], [type="range"]) {
|
||||
@extend .input_io;
|
||||
}
|
||||
}
|
||||
|
||||
table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
|
||||
th {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
td {
|
||||
position: relative;
|
||||
height: 4em;
|
||||
vertical-align: top;
|
||||
|
||||
span {
|
||||
z-index: map.get(hippie.$z-indexes, "content-bottom");
|
||||
position: relative;
|
||||
color: white;
|
||||
}
|
||||
|
||||
canvas {
|
||||
z-index: map.get(hippie.$z-indexes, "default");
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.l {
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.q {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.t, .s {
|
||||
width: 20%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& > footer {
|
||||
justify-content: space-between;
|
||||
padding: hippie.$space_basic;
|
||||
|
||||
& > button:last-child {
|
||||
//margin-left: auto;
|
||||
padding-inline: 2em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue