mirror of
https://github.com/bfloydd/streams.git
synced 2026-07-22 12:50:25 +00:00
739 lines
16 KiB
CSS
739 lines
16 KiB
CSS
/*********************************************************
|
|
* GLOBAL STREAM INDICATOR STYLES
|
|
*********************************************************/
|
|
|
|
.streams-global-indicator {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: 4px 8px;
|
|
margin-left: 8px;
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
color: var(--text-normal);
|
|
transition: all 0.2s ease;
|
|
user-select: none;
|
|
}
|
|
|
|
.streams-global-indicator:hover {
|
|
background: var(--background-modifier-hover);
|
|
border-color: var(--text-accent);
|
|
color: var(--text-accent);
|
|
}
|
|
|
|
.streams-global-indicator:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
|
|
/*********************************************************
|
|
* LAYOUT & CONTAINER STYLES
|
|
*********************************************************/
|
|
|
|
.streams-plugin-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.streams-plugin-card {
|
|
background-color: var(--background-secondary);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.streams-plugin-card h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 20px;
|
|
border-bottom: none;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.streams-ribbon-icon {
|
|
opacity: 0.8;
|
|
transition: opacity 0.2s ease-in-out;
|
|
}
|
|
|
|
.streams-ribbon-icon:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Icon display states */
|
|
.streams-icon-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.streams-icon-hidden {
|
|
display: none;
|
|
}
|
|
|
|
/*********************************************************
|
|
* SETTINGS UI STYLES
|
|
*********************************************************/
|
|
|
|
.streams-setting-header {
|
|
margin: 20px 0 10px;
|
|
padding-bottom: 5px;
|
|
border-bottom: none;
|
|
font-size: 1em;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.streams-setting-indent {
|
|
margin-left: 20px;
|
|
border-left: 2px solid var(--background-modifier-border);
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.streams-setting-double-indent {
|
|
margin-left: 40px;
|
|
border-left: 2px solid var(--background-modifier-border);
|
|
padding-left: 10px;
|
|
}
|
|
|
|
.streams-setting-item.no-border-top {
|
|
border-top: none !important;
|
|
margin-top: -10px;
|
|
}
|
|
|
|
.streams-folder-valid {
|
|
border-color: var(--text-success) !important;
|
|
background-color: rgba(0, 200, 0, 0.05) !important;
|
|
transition: background-color 0.3s ease, border-color 0.3s ease;
|
|
}
|
|
|
|
.streams-folder-invalid {
|
|
border-color: var(--text-error) !important;
|
|
background-color: rgba(200, 0, 0, 0.05) !important;
|
|
transition: background-color 0.3s ease, border-color 0.3s ease;
|
|
}
|
|
|
|
/*********************************************************
|
|
* CALENDAR COMPONENT STYLES
|
|
*********************************************************/
|
|
|
|
.streams-calendar-top-nav,
|
|
.streams-calendar-header {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
justify-content: space-between;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
|
|
.streams-calendar-name {
|
|
font-weight: 600;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.streams-calendar-today-nav {
|
|
cursor: pointer;
|
|
padding: 4px 8px;
|
|
color: var(--text-accent);
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.streams-calendar-today-nav:hover {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.streams-calendar-component {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 10000;
|
|
font-size: 12px;
|
|
margin: 0;
|
|
pointer-events: auto;
|
|
background: var(--background-primary);
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
box-shadow: none;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 14px;
|
|
}
|
|
|
|
/* Position relative to the content container that contains cm-panels */
|
|
.streams-markdown-view-content {
|
|
position: relative;
|
|
}
|
|
|
|
.streams-markdown-view-content .streams-calendar-component {
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
/* Ensure content starts below the streams bar */
|
|
.view-content {
|
|
padding-top: 32px !important;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.is-phone .streams-calendar-component {
|
|
font-size: 11px;
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Calendar label */
|
|
.streams-calendar-label {
|
|
font-size: 0.7em;
|
|
color: var(--text-muted);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
|
|
.streams-calendar-collapsed {
|
|
position: relative;
|
|
top: 0;
|
|
right: 0;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
min-width: 200px;
|
|
width: 100%;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
z-index: 1000;
|
|
pointer-events: auto;
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex: 1;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.streams-calendar-collapsed:hover {
|
|
background-color: var(--background-primary);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.streams-calendar-nav-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
margin: 0;
|
|
background-color: transparent;
|
|
border-radius: 0;
|
|
padding: 0;
|
|
border: none;
|
|
gap: 12px;
|
|
flex: 1;
|
|
}
|
|
|
|
.streams-calendar-day-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
transition: all 0.2s ease;
|
|
background-color: var(--background-modifier-hover);
|
|
border: 1px solid var(--background-modifier-border);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.streams-calendar-day-nav:hover {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
transform: scale(1.05);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.streams-calendar-day-nav:active {
|
|
background-color: var(--interactive-accent-hover);
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.streams-calendar-today-button {
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
flex: 0 0 auto;
|
|
text-align: center;
|
|
font-weight: 600;
|
|
color: var(--text-normal);
|
|
margin: 0 8px;
|
|
font-size: 15px;
|
|
min-width: 60px;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.streams-calendar-change-stream {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: var(--text-muted);
|
|
margin: 0;
|
|
flex: 1;
|
|
justify-content: center;
|
|
background-color: var(--background-modifier-hover);
|
|
border: 1px solid var(--background-modifier-border);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.streams-calendar-change-stream:hover {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.streams-calendar-change-stream-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.streams-calendar-change-stream-icon svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.streams-calendar-change-stream-text {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
color: inherit;
|
|
}
|
|
|
|
/* Streams dropdown styles */
|
|
.streams-calendar-streams-dropdown {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
left: 0;
|
|
right: 0;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
z-index: 1006;
|
|
border: 1px solid var(--background-modifier-border);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.streams-calendar-stream-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.streams-calendar-stream-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.streams-calendar-stream-item:hover {
|
|
background-color: var(--interactive-hover);
|
|
}
|
|
|
|
.streams-calendar-stream-item-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.streams-calendar-stream-item-icon svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.streams-calendar-stream-item-name {
|
|
font-size: 0.9em;
|
|
color: var(--text-normal);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.streams-calendar-stream-item-selected {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.streams-calendar-stream-item-selected .streams-calendar-stream-item-name {
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.streams-calendar-stream-item-selected .streams-calendar-stream-item-icon svg {
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.streams-calendar-stream-item-checkmark {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.streams-calendar-stream-item-checkmark svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
|
|
.streams-calendar-expanded {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 16px;
|
|
width: 100%;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 0 0 8px 8px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
opacity: 0;
|
|
transition: all 0.3s ease;
|
|
z-index: 1005;
|
|
pointer-events: none;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
transform-origin: top center;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.streams-calendar-expanded-active {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.streams-today-button-expanded {
|
|
opacity: 0;
|
|
}
|
|
|
|
.streams-calendar-nav {
|
|
cursor: pointer;
|
|
color: var(--text-normal);
|
|
padding: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
background-color: var(--background-primary);
|
|
border: none;
|
|
transition: background-color 0.2s ease, transform 0.1s ease;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.streams-calendar-nav:hover {
|
|
color: var(--text-on-accent);
|
|
background-color: var(--interactive-accent);
|
|
border-radius: 4px;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.streams-calendar-nav:active {
|
|
transform: scale(0.95);
|
|
background-color: var(--interactive-accent-hover);
|
|
}
|
|
|
|
.streams-calendar-date {
|
|
font-weight: 600;
|
|
text-align: center;
|
|
flex: 1;
|
|
margin: 0 12px;
|
|
}
|
|
|
|
.streams-calendar-day {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
border: none;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s ease, transform 0.1s ease;
|
|
min-width: 32px; /* Fixed width for day cells */
|
|
min-height: 32px; /* Fixed height for day cells */
|
|
width: 32px;
|
|
height: 32px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.streams-calendar-day:hover {
|
|
background-color: var(--interactive-hover);
|
|
transform: scale(1.05);
|
|
border-color: var(--background-modifier-border);
|
|
}
|
|
|
|
.streams-calendar-day:active {
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.streams-calendar-day.empty {
|
|
cursor: default;
|
|
min-height: 32px;
|
|
min-width: 32px;
|
|
}
|
|
|
|
.streams-calendar-day.empty:hover,
|
|
.streams-calendar-day.empty:active {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.streams-calendar-day-header {
|
|
padding: 6px;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
text-align: center;
|
|
width: 32px; /* Fixed width for headers */
|
|
}
|
|
|
|
|
|
.streams-calendar-grid {
|
|
display: grid !important;
|
|
grid-template-columns: repeat(7, 32px);
|
|
gap: 4px;
|
|
width: 264px;
|
|
padding: 8px;
|
|
box-sizing: border-box;
|
|
background-color: var(--background-primary);
|
|
border-radius: 6px;
|
|
margin: 0;
|
|
}
|
|
|
|
.streams-date-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.streams-calendar-day {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 2px;
|
|
border: none;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.streams-calendar-day.viewed {
|
|
border-color: var(--text-accent);
|
|
background-color: var(--background-primary-alt);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.streams-dot-container {
|
|
display: flex;
|
|
gap: 2px;
|
|
height: 4px;
|
|
}
|
|
|
|
.streams-content-dot {
|
|
width: 4px;
|
|
height: 4px;
|
|
border-radius: 50%;
|
|
background-color: var(--text-muted);
|
|
}
|
|
|
|
.streams-calendar-day:hover .streams-content-dot {
|
|
background-color: var(--text-normal);
|
|
}
|
|
|
|
.streams-calendar-day.today {
|
|
color: var(--text-accent);
|
|
font-weight: 600;
|
|
background-color: var(--background-primary-alt);
|
|
border: 1px solid var(--text-accent);
|
|
box-shadow: none;
|
|
}
|
|
|
|
.streams-calendar-day.today .streams-content-dot {
|
|
background-color: var(--text-accent);
|
|
}
|
|
|
|
/* Removed old calendar label styles */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*********************************************************
|
|
* CREATE FILE VIEW STYLES
|
|
*********************************************************/
|
|
|
|
.streams-create-file-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
padding: 20px;
|
|
background-color: var(--background-primary);
|
|
}
|
|
|
|
.streams-create-file-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
max-width: 500px;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 12px;
|
|
padding: 40px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
text-align: center;
|
|
animation: streams-fade-in 0.3s ease-in-out;
|
|
}
|
|
|
|
@keyframes streams-fade-in {
|
|
from { opacity: 0; transform: translateY(10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
.streams-create-file-icon {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.streams-create-file-icon svg {
|
|
width: 48px;
|
|
height: 48px;
|
|
color: var(--text-accent);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.streams-create-file-stream-container {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.streams-create-file-stream-icon {
|
|
margin-right: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.streams-create-file-stream-icon svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.streams-create-file-stream {
|
|
font-size: 1.1em;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.streams-create-file-date {
|
|
font-size: 2em;
|
|
font-weight: 700;
|
|
color: var(--text-normal);
|
|
margin-bottom: 30px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.streams-create-file-path {
|
|
font-family: var(--font-monospace);
|
|
font-size: 0.8em;
|
|
color: var(--text-muted);
|
|
margin-bottom: 32px;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.streams-create-file-button-container {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.streams-create-file-button {
|
|
padding: 10px 24px;
|
|
font-size: 1.1em;
|
|
border-radius: 6px;
|
|
transition: all 0.2s ease;
|
|
background-color: var(--interactive-accent);
|
|
text-align: center;
|
|
}
|
|
|
|
.streams-create-file-button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.streams-create-file-button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.streams-create-file-button-text {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.streams-create-file-button svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
|
|
/*********************************************************
|
|
* RESPONSIVE STYLES
|
|
*********************************************************/
|
|
|
|
.is-mobile .streams-create-file-content {
|
|
width: 100%;
|
|
max-width: none;
|
|
padding: 30px 20px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.is-mobile .streams-create-file-container {
|
|
padding: 20px;
|
|
}
|
|
|
|
.is-phone .streams-create-file-date {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
|
|
/*********************************************************
|
|
* UTILITY STYLES
|
|
*********************************************************/
|
|
|
|
.streams-plugin-hidden.side-dock-ribbon-action {
|
|
display: none !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
height: 0 !important;
|
|
width: 0 !important;
|
|
opacity: 0 !important;
|
|
pointer-events: none !important;
|
|
position: absolute !important;
|
|
overflow: hidden !important;
|
|
clip: rect(0, 0, 0, 0) !important;
|
|
}
|