1
0
Fork 0
tsgames/src/games/storywriter/assets/editor.module.css

92 lines
1.6 KiB
CSS

.editor {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
background: var(--bg);
padding: 36px 0 0;
}
.title {
padding: 0 72px 24px;
font-family: 'Georgia', serif;
font-size: 32px;
font-weight: bold;
color: var(--text);
text-align: center;
}
.content {
flex: 1;
overflow-y: auto;
padding: 0 72px 72px;
}
.editable {
width: 100%;
min-height: 100%;
resize: none;
font-family: 'Georgia', serif;
font-size: 17px;
line-height: 1.9;
color: var(--textColor);
background: transparent;
box-sizing: border-box;
&::placeholder {
color: var(--text-muted);
font-style: italic;
}
&::selection {
background: var(--bg-active);
color: var(--yellow);
}
}
.placeholder {
display: flex;
align-items: center;
justify-content: center;
height: 200px;
color: var(--text-muted);
font-style: italic;
border: 2px dashed var(--border);
border-radius: 8px;
}
.tabs {
display: flex;
border-top: 1px solid var(--border);
padding: 0 12px;
gap: 6px;
}
.tabRight {
margin-left: auto;
}
.tab {
padding: 12px 16px;
background: transparent;
border: none;
border-top: 2px solid transparent;
color: var(--text-muted);
cursor: pointer;
font-size: 14px;
transition: all 0.2s;
margin-top: -1px;
&:hover {
color: var(--text);
background: var(--bg-hover);
}
&.active {
color: var(--accent);
border-top-color: var(--accent);
}
}