mirror of
https://github.com/yaye-work/note-diary.git
synced 2026-07-22 08:29:35 +00:00
241 lines
4.1 KiB
CSS
241 lines
4.1 KiB
CSS
.creation-calendar {
|
||
padding: 8px 10px;
|
||
}
|
||
|
||
.cc-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.cc-title {
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.cc-nav {
|
||
background: transparent;
|
||
border: none;
|
||
box-shadow: none;
|
||
padding: 2px 6px;
|
||
border-radius: 6px;
|
||
cursor: pointer;
|
||
color: var(--text-faint);
|
||
display: flex;
|
||
align-items: center;
|
||
width: fit-content;
|
||
}
|
||
.cc-nav svg {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
.cc-nav:hover {
|
||
box-shadow: none;
|
||
background: var(--background-modifier-hover);
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.cc-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(7, 1fr);
|
||
gap: 3px;
|
||
}
|
||
|
||
.cc-weekday {
|
||
text-align: center;
|
||
font-size: 0.7em;
|
||
color: var(--text-faint);
|
||
padding-bottom: 2px;
|
||
}
|
||
|
||
.cc-day {
|
||
aspect-ratio: 1;
|
||
border-radius: 6px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 2px;
|
||
font-size: 0.8em;
|
||
cursor: pointer;
|
||
position: relative;
|
||
color: var(--text-muted);
|
||
}
|
||
|
||
.cc-day:hover:not(.cc-empty) {
|
||
background: var(--background-modifier-hover);
|
||
}
|
||
|
||
.cc-empty {
|
||
cursor: default;
|
||
}
|
||
|
||
/* accent wash; --cc-strength (0.12–0.57) set inline from note count */
|
||
.cc-has-notes {
|
||
background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), var(--cc-strength, 0.15));
|
||
color: var(--text-normal);
|
||
}
|
||
.cc-has-notes:hover {
|
||
filter: brightness(1.1);
|
||
}
|
||
|
||
.cc-today .cc-daynum {
|
||
font-weight: 700;
|
||
color: var(--interactive-accent);
|
||
}
|
||
|
||
.cc-selected {
|
||
outline: 2px solid var(--interactive-accent);
|
||
outline-offset: -2px;
|
||
}
|
||
|
||
.cc-dots {
|
||
display: flex;
|
||
height: 5px;
|
||
}
|
||
|
||
.cc-dot {
|
||
width: 5px;
|
||
height: 5px;
|
||
border-radius: 50%;
|
||
background: var(--interactive-accent);
|
||
margin-left: -2px; /* overlap */
|
||
}
|
||
.cc-dot:first-child {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.cc-year-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 6px;
|
||
}
|
||
|
||
.cc-month {
|
||
aspect-ratio: 1.4;
|
||
border-radius: 8px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 2px;
|
||
cursor: pointer;
|
||
color: var(--text-muted);
|
||
}
|
||
.cc-month:hover {
|
||
background: var(--background-modifier-hover);
|
||
}
|
||
.cc-month.cc-has-notes {
|
||
color: var(--text-normal);
|
||
}
|
||
|
||
.cc-month-name {
|
||
font-size: 0.85em;
|
||
font-weight: 600;
|
||
}
|
||
.cc-month.cc-today .cc-month-name {
|
||
color: var(--interactive-accent);
|
||
font-weight: 700;
|
||
}
|
||
|
||
.cc-month-count {
|
||
font-size: 0.7em;
|
||
color: var(--text-faint);
|
||
}
|
||
|
||
.cc-panel {
|
||
margin-top: 12px;
|
||
border-top: 1px solid var(--background-modifier-border);
|
||
padding-top: 8px;
|
||
}
|
||
|
||
.cc-panel-title {
|
||
display: flex;
|
||
align-items: baseline;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
font-size: 0.85em;
|
||
font-weight: 600;
|
||
color: var(--text-muted);
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
.cc-panel-count {
|
||
flex-shrink: 0;
|
||
color: var(--text-faint);
|
||
font-weight: 500;
|
||
}
|
||
|
||
.cc-panel-empty {
|
||
font-size: 0.85em;
|
||
color: var(--text-faint);
|
||
}
|
||
|
||
.cc-note {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
padding: 15px 10px;
|
||
margin-bottom: 6px;
|
||
border-radius: 8px;
|
||
border: 1px solid var(--background-modifier-border);
|
||
background: var(--background-primary);
|
||
cursor: pointer;
|
||
}
|
||
.cc-note:hover {
|
||
background: var(--background-modifier-hover);
|
||
border-color: var(--interactive-accent);
|
||
}
|
||
|
||
.cc-note-head {
|
||
display: flex;
|
||
align-items: baseline;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
}
|
||
|
||
.cc-note-name {
|
||
font-weight: 700;
|
||
font-size: 1em;
|
||
color: var(--text-normal);
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.cc-note-time {
|
||
font-size: 0.7em;
|
||
color: var(--text-faint);
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.cc-note-preview {
|
||
font-size: 0.75em;
|
||
line-height: 1.4;
|
||
color: var(--text-faint);
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.cc-note-preview-empty {
|
||
font-style: italic;
|
||
color: var(--text-faint);
|
||
}
|
||
|
||
.cc-note-tags {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 4px;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.cc-note-tag {
|
||
font-size: 0.68em;
|
||
padding: 1px 7px;
|
||
border-radius: 999px;
|
||
background: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.15);
|
||
color: var(--interactive-accent);
|
||
}
|