Initial commit: Waypoint Obsidian plugin with calendar, recent files, and bookmarks
This commit is contained in:
+294
@@ -0,0 +1,294 @@
|
||||
/* ── Waypoint Base ── */
|
||||
|
||||
.waypoint-view {
|
||||
padding: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.waypoint-view .waypoint-section {
|
||||
margin-bottom: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.waypoint-view .waypoint-section:last-child {
|
||||
margin-top: auto;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.waypoint-view .waypoint-section-header {
|
||||
font-size: var(--font-ui-small);
|
||||
font-weight: var(--font-semibold);
|
||||
color: var(--text-muted);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 4px;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
/* ── Calendar ── */
|
||||
|
||||
.waypoint-calendar {
|
||||
font-size: var(--font-ui-small);
|
||||
}
|
||||
|
||||
.waypoint-calendar-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
|
||||
.waypoint-calendar-breadcrumb {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: var(--font-ui-medium);
|
||||
font-weight: var(--font-semibold);
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.waypoint-calendar-breadcrumb .waypoint-clickable {
|
||||
color: var(--text-muted);
|
||||
cursor: var(--cursor);
|
||||
padding: 1px 4px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.waypoint-calendar-breadcrumb .waypoint-clickable:hover {
|
||||
color: var(--text-accent);
|
||||
background-color: var(--background-modifier-active-hover);
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-separator {
|
||||
color: var(--text-faint);
|
||||
margin: 0 2px;
|
||||
}
|
||||
|
||||
.waypoint-calendar-today-group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.waypoint-calendar-today-group button {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: var(--cursor);
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
color: var(--text-muted);
|
||||
font-size: var(--font-ui-small);
|
||||
}
|
||||
|
||||
.waypoint-calendar-today-group button:hover {
|
||||
color: var(--text-accent);
|
||||
background-color: var(--background-modifier-active-hover);
|
||||
}
|
||||
|
||||
.waypoint-calendar-today-group .waypoint-calendar-today-btn {
|
||||
font-weight: var(--font-medium);
|
||||
}
|
||||
|
||||
.waypoint-calendar table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.waypoint-calendar th,
|
||||
.waypoint-calendar td {
|
||||
text-align: center;
|
||||
padding: 2px 1px;
|
||||
font-size: var(--font-ui-small);
|
||||
}
|
||||
|
||||
.waypoint-calendar th {
|
||||
font-weight: var(--font-medium);
|
||||
color: var(--text-faint);
|
||||
font-size: calc(var(--font-ui-small) * 0.85);
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-weeknum {
|
||||
font-size: calc(var(--font-ui-small) * 0.75);
|
||||
color: var(--text-faint);
|
||||
font-weight: var(--font-light);
|
||||
cursor: var(--cursor);
|
||||
padding: 2px 0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-weeknum:hover {
|
||||
color: var(--text-accent);
|
||||
background-color: var(--background-modifier-active-hover);
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-day {
|
||||
cursor: var(--cursor);
|
||||
padding: 3px 0;
|
||||
border-radius: 6px;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-day:hover {
|
||||
background-color: var(--background-modifier-active-hover);
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-day.other-month {
|
||||
opacity: 0.35;
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-day.today {
|
||||
color: var(--text-accent);
|
||||
border: 1px solid var(--text-accent);
|
||||
font-weight: var(--font-semibold);
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-day.has-note::after {
|
||||
content: '';
|
||||
display: block;
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
border-radius: 50%;
|
||||
background-color: var(--text-faint);
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.waypoint-calendar .waypoint-day.today.has-note::after {
|
||||
background-color: var(--text-accent);
|
||||
}
|
||||
/* ── Recent Files ── */
|
||||
|
||||
.waypoint-recent-files .nav-file {
|
||||
padding: 2px 0;
|
||||
}
|
||||
|
||||
.waypoint-recent-files .nav-file-title {
|
||||
padding: 2px 28px 2px 4px;
|
||||
font-size: var(--font-ui-small);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.waypoint-recent-files .waypoint-recent-remove {
|
||||
position: absolute;
|
||||
right: 4px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
opacity: 0;
|
||||
cursor: var(--cursor);
|
||||
color: var(--text-faint);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
pointer-events: none;
|
||||
transition: opacity 100ms;
|
||||
}
|
||||
|
||||
.waypoint-recent-files .nav-file-title:hover .waypoint-recent-remove {
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.waypoint-recent-files .waypoint-recent-remove:hover {
|
||||
color: var(--text-accent);
|
||||
}
|
||||
|
||||
/* ── Favorites ── */
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 2px 8px 2px 4px;
|
||||
font-size: var(--font-ui-small);
|
||||
cursor: var(--cursor);
|
||||
border-radius: 4px;
|
||||
user-select: none;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-item:hover {
|
||||
background-color: var(--background-modifier-active-hover);
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-item .waypoint-bm-icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-item .waypoint-bm-label {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-group {
|
||||
font-weight: var(--font-medium);
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-group .waypoint-bm-chevron {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
transition: transform 150ms;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-group.collapsed .waypoint-bm-chevron {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-children {
|
||||
padding-left: 16px;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-children.collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* ── Drag-and-drop ── */
|
||||
|
||||
.waypoint-bm-dragging {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bm-drop-line {
|
||||
border-top: 3px solid var(--text-accent) !important;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bm-drop-line.waypoint-bm-drop-below {
|
||||
border-top: none !important;
|
||||
border-bottom: 3px solid var(--text-accent) !important;
|
||||
}
|
||||
|
||||
/* ── Separator & Spacer ── */
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-item.waypoint-bookmark-separator {
|
||||
padding: 0;
|
||||
min-height: auto;
|
||||
height: auto;
|
||||
border: none;
|
||||
cursor: grab;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-item.waypoint-bookmark-separator::after {
|
||||
content: '';
|
||||
display: block;
|
||||
height: 1px;
|
||||
margin: 6px 8px;
|
||||
background: var(--background-modifier-border);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.waypoint-favorites .waypoint-bookmark-item.waypoint-bookmark-spacer {
|
||||
padding: 0;
|
||||
min-height: auto;
|
||||
height: 14px;
|
||||
border: none;
|
||||
cursor: grab;
|
||||
background: transparent;
|
||||
}
|
||||
Reference in New Issue
Block a user