mirror of
https://github.com/bfloydd/streams.git
synced 2026-07-22 05:49:02 +00:00
fix up calendar centering
This commit is contained in:
parent
41fc8a2083
commit
0bbadef37d
1 changed files with 17 additions and 27 deletions
44
styles.css
44
styles.css
|
|
@ -86,13 +86,13 @@
|
|||
* CALENDAR COMPONENT STYLES
|
||||
*********************************************************/
|
||||
|
||||
.streams-calendar-top-nav {
|
||||
display: flex;
|
||||
.streams-calendar-top-nav,
|
||||
.streams-calendar-header {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
justify-content: space-between;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 16px;
|
||||
padding-bottom: 8px;
|
||||
border-bottom: 1px solid var(--background-modifier-border);
|
||||
}
|
||||
|
||||
.streams-calendar-back {
|
||||
|
|
@ -183,7 +183,7 @@
|
|||
right: 0;
|
||||
padding: 4px 0 0 0;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
|
||||
transition: box-shadow 0.2s ease;
|
||||
background-color: var(--background-secondary);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
||||
|
|
@ -198,41 +198,31 @@
|
|||
}
|
||||
|
||||
.streams-calendar-collapsed:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
.streams-calendar-expanded {
|
||||
position: absolute;
|
||||
position: relative;
|
||||
top: 0;
|
||||
right: 0;
|
||||
padding: 16px;
|
||||
width: 280px; /* Fixed width for consistency */
|
||||
width: 280px;
|
||||
background-color: var(--background-secondary);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
||||
opacity: 0;
|
||||
transform: scale(0.95);
|
||||
transition: all 0.3s ease;
|
||||
z-index: 1005;
|
||||
pointer-events: none;
|
||||
border: 1px solid rgba(0, 0, 0, 0.1);
|
||||
display: none;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
transform-origin: top center;
|
||||
}
|
||||
|
||||
.streams-calendar-expanded-active {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
pointer-events: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.streams-calendar-header {
|
||||
margin: 12px 0;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.streams-calendar-nav {
|
||||
|
|
@ -355,14 +345,14 @@
|
|||
|
||||
.streams-calendar-grid {
|
||||
display: grid !important;
|
||||
grid-template-columns: repeat(7, 32px); /* Fixed width columns */
|
||||
grid-template-columns: repeat(7, 32px);
|
||||
gap: 4px;
|
||||
width: 100%;
|
||||
min-width: 248px; /* 7 * 32px + 6 * 4px (gap) */
|
||||
background-color: var(--background-primary);
|
||||
width: 264px;
|
||||
padding: 8px;
|
||||
box-sizing: border-box;
|
||||
background-color: var(--background-primary);
|
||||
border-radius: 6px;
|
||||
border: none;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.streams-date-container {
|
||||
|
|
|
|||
Loading…
Reference in a new issue