mirror of
https://github.com/bfloydd/streams.git
synced 2026-07-22 12:50:25 +00:00
348 lines
6.7 KiB
CSS
348 lines
6.7 KiB
CSS
/*
|
|
|
|
This CSS file will be included with your plugin, and
|
|
available in the app when your plugin is enabled.
|
|
|
|
If your plugin does not need CSS, delete this file.
|
|
|
|
*/
|
|
|
|
.streams-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
|
gap: 20px;
|
|
padding: 20px;
|
|
}
|
|
|
|
.stream-card {
|
|
background-color: var(--background-secondary);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.stream-card h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 20px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.stream-ribbon-icon {
|
|
opacity: 0.8;
|
|
transition: opacity 0.2s ease-in-out;
|
|
}
|
|
|
|
.stream-ribbon-icon:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.stream-calendar-top-nav {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.stream-calendar-back {
|
|
cursor: pointer;
|
|
padding: 4px 8px;
|
|
color: var(--text-muted);
|
|
font-size: 16px;
|
|
}
|
|
|
|
.stream-calendar-name {
|
|
font-weight: 600;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.stream-calendar-today-nav {
|
|
cursor: pointer;
|
|
padding: 4px 8px;
|
|
color: var(--text-accent);
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.stream-calendar-back:hover,
|
|
.stream-calendar-today-nav:hover {
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Update existing calendar styles for better spacing */
|
|
.stream-calendar-widget {
|
|
position: absolute;
|
|
top: 32px;
|
|
right: 100%;
|
|
z-index: 1000;
|
|
font-size: 12px;
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.stream-calendar-collapsed {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
transition: opacity 0.3s ease;
|
|
background-color: var(--background-primary);
|
|
border-radius: 6px;
|
|
box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
|
|
min-width: 80px;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
}
|
|
|
|
.stream-calendar-expanded {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
padding: 16px;
|
|
min-width: 250px;
|
|
background-color: var(--background-primary);
|
|
border-radius: 6px;
|
|
box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
|
|
opacity: 0;
|
|
transform: scale(0.95);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.calendar-expanded {
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
.stream-calendar-header {
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.calendar-day {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 32px;
|
|
min-width: 32px;
|
|
padding: 2px;
|
|
position: relative;
|
|
overflow: visible;
|
|
}
|
|
|
|
.calendar-day:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.calendar-day:active {
|
|
background-color: var(--background-modifier-active);
|
|
}
|
|
|
|
.calendar-day.empty {
|
|
cursor: default;
|
|
min-height: 32px;
|
|
min-width: 32px;
|
|
}
|
|
|
|
.calendar-day.empty:hover,
|
|
.calendar-day.empty:active {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.calendar-day-header {
|
|
padding: 6px;
|
|
color: var(--text-muted);
|
|
font-size: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.stream-calendar-today-button {
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.stream-calendar-nav-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.stream-calendar-day-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
color: var(--text-muted);
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.stream-calendar-day-nav:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.stream-calendar-day-nav:active {
|
|
background-color: var(--background-modifier-active);
|
|
}
|
|
|
|
.stream-calendar-today-button {
|
|
white-space: nowrap;
|
|
pointer-events: none;
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Styles for the Create File view */
|
|
.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: fade-in 0.3s ease-in-out;
|
|
}
|
|
|
|
@keyframes 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;
|
|
}
|
|
|
|
/* Mobile adjustments */
|
|
.is-mobile .streams-create-file-content {
|
|
width: 100%;
|
|
max-width: none;
|
|
padding: 30px 20px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.is-phone .streams-create-file-date {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
/* Hide the calendar icon */
|
|
svg.svg-icon.lucide-calendar {
|
|
display: none;
|
|
}
|
|
|
|
/* Alternative way to hide it if the above doesn't work */
|
|
[data-icon="calendar"] {
|
|
display: none;
|
|
}
|
|
|
|
/* Calendar grid fixes */
|
|
.stream-calendar-grid {
|
|
display: grid !important;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 4px;
|
|
width: 100%;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.date-container {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
}
|