Create PlayerSheet
This commit is contained in:
parent
e0578d425d
commit
e224f819a3
11 changed files with 252 additions and 0 deletions
60
styles/Apps/PlayerSheet.css
Normal file
60
styles/Apps/PlayerSheet.css
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
.taf.PlayerSheet {
|
||||
> .window-content {
|
||||
padding: 0.5rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.sheet-header, fieldset, .content {
|
||||
border-radius: 8px;
|
||||
border: 1px solid rebeccapurple;
|
||||
}
|
||||
|
||||
.window-content > header {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
padding: 4px;
|
||||
}
|
||||
|
||||
.attributes {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-around;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.attr-range {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
width: 100px;
|
||||
|
||||
> input {
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
flex-grow: 1;
|
||||
overflow: hidden;
|
||||
|
||||
&:not(:has(> prose-mirror)) {
|
||||
padding: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
prose-mirror {
|
||||
height: 100%;
|
||||
background: var(--color-cool-5);
|
||||
|
||||
menu {
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
5
styles/elements/headers.css
Normal file
5
styles/elements/headers.css
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.taf > .window-content {
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
6
styles/elements/input.css
Normal file
6
styles/elements/input.css
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
.taf > .window-content input {
|
||||
&.large {
|
||||
--input-height: 2.5rem;
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
9
styles/elements/p.css
Normal file
9
styles/elements/p.css
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
.taf > .window-content p {
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
5
styles/elements/prose-mirror.css
Normal file
5
styles/elements/prose-mirror.css
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.taf > .window-content prose-mirror {
|
||||
.editor-content {
|
||||
padding: 0 8px 8px;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
@layer resets, elements, components, partials, apps, exceptions;
|
||||
|
||||
/* Resets */
|
||||
|
||||
/* Elements */
|
||||
@import url("./elements/headers.css") layer(elements);
|
||||
@import url("./elements/input.css") layer(elements);
|
||||
@import url("./elements/p.css") layer(elements);
|
||||
@import url("./elements/prose-mirror.css") layer(elements);
|
||||
|
||||
/* Apps */
|
||||
@import url("./Apps/PlayerSheet.css") layer(apps);
|
||||
5
styles/resets/inputs.css
Normal file
5
styles/resets/inputs.css
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
.taf > .window-content {
|
||||
button, input {
|
||||
all: initial;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue