mirror of
https://github.com/fzumpe/foundry-usernotes.git
synced 2026-06-06 21:00:03 +02:00
303 lines
6.4 KiB
CSS
303 lines
6.4 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);
|
|
}
|
|
|
|
/*
|
|
* Fixed inner padding:
|
|
* The editor is pinned to the window content area and grows/shrinks with it.
|
|
*/
|
|
.user-notes-content {
|
|
flex: 1 1 auto;
|
|
min-height: 0;
|
|
min-width: 0;
|
|
|
|
display: flex;
|
|
|
|
padding: 0.5rem;
|
|
box-sizing: border-box;
|
|
|
|
overflow: hidden;
|
|
}
|
|
|
|
/*
|
|
* Original textarea fallback.
|
|
* Jodit replaces/wraps this element when available.
|
|
*/
|
|
.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;
|
|
}
|
|
|
|
/*
|
|
* Jodit layout.
|
|
* These rules force Jodit to fill the padded content area and inherit
|
|
* the configured User Notes colors.
|
|
*/
|
|
.user-notes-content .jodit-container,
|
|
.user-notes-content .jodit {
|
|
flex: 1 1 auto;
|
|
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
|
|
min-width: 0 !important;
|
|
min-height: 0 !important;
|
|
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
|
|
background: var(--user-notes-textarea-background, rgba(255, 255, 255, 0.92)) !important;
|
|
color: var(--user-notes-textarea-color, #111111) !important;
|
|
}
|
|
|
|
/*
|
|
* Toolbar remains at the top and uses the window colors.
|
|
*/
|
|
.user-notes-content .jodit-toolbar__box,
|
|
.user-notes-content .jodit-toolbar__box:not(:empty) {
|
|
flex: 0 0 auto;
|
|
|
|
opacity: 1 !important;
|
|
|
|
background: var(--user-notes-window-background-solid, #191813) !important;
|
|
color: var(--user-notes-window-text-color, #f0f0e0) !important;
|
|
|
|
border-color: var(--color-border-light-primary, #7a695a) !important;
|
|
}
|
|
|
|
.user-notes-content .jodit-toolbar-button,
|
|
.user-notes-content .jodit-toolbar-button__button,
|
|
.user-notes-content .jodit-toolbar-button__trigger,
|
|
.user-notes-content .jodit-toolbar-button__text,
|
|
.user-notes-content .jodit-icon {
|
|
opacity: 1 !important;
|
|
color: var(--user-notes-window-text-color, #f0f0e0) !important;
|
|
fill: var(--user-notes-window-text-color, #f0f0e0) !important;
|
|
}
|
|
|
|
.user-notes-content .jodit-toolbar-button__button,
|
|
.user-notes-content .jodit-toolbar-button__trigger {
|
|
background: transparent !important;
|
|
}
|
|
|
|
.user-notes-content .jodit-toolbar-button__button:hover,
|
|
.user-notes-content .jodit-toolbar-button__trigger:hover {
|
|
background: rgba(255, 255, 255, 0.16) !important;
|
|
}
|
|
/*
|
|
* Toolbar buttons.
|
|
*/
|
|
.user-notes-content .jodit-toolbar-button,
|
|
.user-notes-content .jodit-toolbar-button__button,
|
|
.user-notes-content .jodit-toolbar-button__trigger {
|
|
color: var(--user-notes-window-text-color, #f0f0e0) !important;
|
|
}
|
|
|
|
.user-notes-content .jodit-toolbar-button__button:hover,
|
|
.user-notes-content .jodit-toolbar-button__trigger:hover {
|
|
background: rgba(255, 255, 255, 0.16) !important;
|
|
}
|
|
|
|
/*
|
|
* Dropdown / popup content should remain readable.
|
|
*/
|
|
.user-notes-content .jodit-popup,
|
|
.user-notes-content .jodit-dialog,
|
|
.user-notes-content .jodit-ui-group,
|
|
.user-notes-content .jodit-toolbar-editor-collection {
|
|
color: #111111;
|
|
}
|
|
|
|
/*
|
|
* Main editor workplace fills all remaining height below the toolbar.
|
|
*/
|
|
.user-notes-content .jodit-workplace {
|
|
flex: 1 1 auto !important;
|
|
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
|
|
min-width: 0 !important;
|
|
min-height: 0 !important;
|
|
|
|
display: flex !important;
|
|
flex-direction: column !important;
|
|
|
|
overflow: hidden !important;
|
|
|
|
background: var(--user-notes-textarea-background, rgba(255, 255, 255, 0.92)) !important;
|
|
color: var(--user-notes-textarea-color, #111111) !important;
|
|
}
|
|
|
|
/*
|
|
* Actual editable area.
|
|
*/
|
|
.user-notes-content .jodit-wysiwyg {
|
|
flex: 1 1 auto !important;
|
|
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
|
|
min-width: 0 !important;
|
|
min-height: 0 !important;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: auto !important;
|
|
|
|
background: var(--user-notes-textarea-background, rgba(255, 255, 255, 0.92)) !important;
|
|
color: var(--user-notes-textarea-color, #111111) !important;
|
|
|
|
font-family: inherit;
|
|
font-size: 0.95rem;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
/*
|
|
* Do not let Jodit reset child text colors away from the configured editor color.
|
|
* Inline styles generated by the editor may still override this when users
|
|
* explicitly choose colors inside the editor.
|
|
*/
|
|
.user-notes-content .jodit-wysiwyg * {
|
|
color: inherit;
|
|
}
|
|
|
|
/*
|
|
* Hide Jodit's status bar to preserve vertical space.
|
|
*/
|
|
.user-notes-content .jodit-status-bar {
|
|
display: none !important;
|
|
}
|
|
|
|
/*
|
|
* Tables inside notes.
|
|
*/
|
|
.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;
|
|
}
|