foundry-usernotes/styles/user-notes-window.css

172 lines
3.0 KiB
CSS

.user-notes-window {
position: fixed;
z-index: 100000;
left: 200px;
top: 150px;
width: 500px;
height: 400px;
min-width: 280px;
min-height: 180px;
max-width: calc(100vw - 40px);
max-height: calc(100vh - 40px);
display: flex;
flex-direction: column;
resize: both;
overflow: hidden;
box-sizing: border-box;
border: 1px solid var(--color-border-dark, #000);
border-radius: 6px;
background: var(--user-notes-window-background, rgba(25, 24, 19, 0.96));
color: var(--user-notes-window-text-color, #f0f0e0);
box-shadow: 0 0 16px rgba(0, 0, 0, 0.55);
}
.user-notes-window[hidden] {
display: none;
}
.user-notes-titlebar {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
padding: 0.45rem 0.55rem;
background: rgba(0, 0, 0, 0.35);
border-bottom: 1px solid var(--color-border-dark, #000);
cursor: move;
user-select: none;
}
.user-notes-title,
.user-notes-controls {
display: inline-flex;
align-items: center;
gap: 0.4rem;
}
.user-notes-title {
min-width: 0;
font-weight: bold;
}
.user-notes-status {
opacity: 0.75;
font-size: 0.78rem;
white-space: nowrap;
}
.user-notes-controls button {
width: 1.55rem;
height: 1.55rem;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0;
border: 1px solid var(--color-border-light-primary, #7a695a);
border-radius: 4px;
background: rgba(0, 0, 0, 0.18);
color: var(--user-notes-window-text-color, #f0f0e0);
cursor: pointer;
}
.user-notes-controls button:hover {
background: rgba(255, 255, 255, 0.16);
}
.user-notes-content {
flex: 1 1 auto;
min-height: 0;
display: flex;
padding: 0.5rem;
box-sizing: border-box;
}
.user-notes-content .jodit-container {
flex: 1 1 auto;
width: 100% !important;
height: 100% !important;
min-width: 0;
min-height: 0;
box-sizing: border-box;
}
.user-notes-content .jodit-workplace {
min-height: 0 !important;
}
.user-notes-content .jodit-wysiwyg {
min-height: 0 !important;
background: var(--user-notes-textarea-background, rgba(255, 255, 255, 0.92));
color: var(--user-notes-textarea-color, #111111);
}
.user-notes-content .jodit-toolbar__box {
flex: 0 0 auto;
}
.user-notes-content .jodit-status-bar {
display: none;
}
.user-notes-editor {
flex: 1 1 auto;
width: 100%;
height: 100%;
min-width: 0;
min-height: 0;
resize: none;
box-sizing: border-box;
padding: 0.55rem;
border: 1px solid var(--color-border-light-primary, #7a695a);
border-radius: 4px;
background: var(--user-notes-textarea-background, rgba(255, 255, 255, 0.92));
color: var(--user-notes-textarea-color, #111111);
font-family: inherit;
font-size: 0.95rem;
line-height: 1.35;
}
.user-notes-editor:focus {
outline: 1px solid var(--color-border-highlight, #ff6400);
outline-offset: 0;
}
.user-notes-window table {
border-collapse: collapse;
width: auto;
}
.user-notes-window th,
.user-notes-window td {
border: 1px solid currentColor;
padding: 0.25rem 0.4rem;
}