mirror of
https://github.com/fzumpe/foundry-usernotes.git
synced 2026-10-23 05:01:01 +02:00
Replaced Scripts by ESModules and added cool stuff
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
.user-notes-appearance-settings {
|
||||
padding: 0.75rem;
|
||||
}
|
||||
|
||||
.user-notes-appearance-settings .notes {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.user-notes-appearance-settings fieldset {
|
||||
margin: 0 0 0.75rem 0;
|
||||
padding: 0.75rem;
|
||||
|
||||
border: 1px solid var(--color-border-light-primary, #7a695a);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.user-notes-appearance-settings legend {
|
||||
padding: 0 0.35rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.user-notes-appearance-settings .form-group {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.user-notes-appearance-settings .form-fields {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.user-notes-appearance-settings input[type="color"] {
|
||||
width: 3.5rem;
|
||||
min-width: 3.5rem;
|
||||
height: 2rem;
|
||||
|
||||
padding: 0;
|
||||
border: 1px solid var(--color-border-light-primary, #7a695a);
|
||||
border-radius: 4px;
|
||||
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.user-notes-appearance-settings input[type="text"] {
|
||||
flex: 1 1 auto;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.user-notes-range-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.user-notes-range-row input[type="range"] {
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
|
||||
.user-notes-range-row output {
|
||||
width: 3rem;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.user-notes-appearance-settings .sheet-footer,
|
||||
.user-notes-appearance-footer {
|
||||
margin-top: 0.75rem;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.user-notes-primary-actions {
|
||||
flex: 1 1 auto;
|
||||
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.user-notes-primary-actions button {
|
||||
flex: 1 1 0;
|
||||
}
|
||||
|
||||
.user-notes-appearance-footer > .user-notes-reset-appearance {
|
||||
flex: 0 0 auto;
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
.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-textarea {
|
||||
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-textarea:focus {
|
||||
outline: 1px solid var(--color-border-highlight, #ff6400);
|
||||
outline-offset: 0;
|
||||
}
|
||||
@@ -1,100 +0,0 @@
|
||||
.lbn-player-note-button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 1.65rem;
|
||||
height: 1.65rem;
|
||||
margin-left: 0.35rem;
|
||||
padding: 0;
|
||||
border: 1px solid var(--color-border-light-primary, #7a695a);
|
||||
border-radius: 4px;
|
||||
background: rgba(0, 0, 0, 0.18);
|
||||
color: var(--color-text-light-highlight, #f0f0e0);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.lbn-player-note-button:hover {
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
}
|
||||
|
||||
.lbn-notes-window {
|
||||
position: fixed;
|
||||
z-index: 100000;
|
||||
left: 140px;
|
||||
top: 120px;
|
||||
width: 420px;
|
||||
height: 330px;
|
||||
min-width: 260px;
|
||||
min-height: 180px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
resize: both;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--color-border-dark, #000);
|
||||
border-radius: 6px;
|
||||
background: var(--color-bg, #1f1f1f);
|
||||
box-shadow: 0 0 16px rgba(0, 0, 0, 0.55);
|
||||
}
|
||||
|
||||
.lbn-notes-window[hidden] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.lbn-titlebar {
|
||||
flex: 0 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
min-height: 2rem;
|
||||
padding: 0.25rem 0.4rem;
|
||||
background: rgba(0, 0, 0, 0.34);
|
||||
color: var(--color-text-light-highlight, #f0f0e0);
|
||||
cursor: move;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.lbn-title,
|
||||
.lbn-controls {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.lbn-status {
|
||||
opacity: 0.75;
|
||||
font-size: 0.78rem;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.lbn-controls button {
|
||||
width: 1.55rem;
|
||||
height: 1.55rem;
|
||||
padding: 0;
|
||||
border: 1px solid var(--color-border-light-primary, #7a695a);
|
||||
border-radius: 4px;
|
||||
background: rgba(255, 255, 255, 0.08);
|
||||
color: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.lbn-controls button:hover {
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
}
|
||||
|
||||
.lbn-textarea {
|
||||
flex: 1 1 auto;
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
box-sizing: border-box;
|
||||
resize: none;
|
||||
border: 0;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||||
padding: 0.65rem;
|
||||
font-family: var(--font-primary, sans-serif);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.4;
|
||||
color: var(--color-text-light-highlight, #f0f0e0);
|
||||
background: rgba(255, 255, 255, 0.045);
|
||||
outline: none;
|
||||
}
|
||||
Reference in New Issue
Block a user