NoteJS/public/style-calendar.css
Fovway 7def129e14 refactor: Redesign calendar as compact sidebar box with improved layout
- Changed calendar from full sidebar to compact containerized box
- Reduced calendar size (190px width) to minimize space usage
- Increased main container max-width from 600px to 850px for two-column layout
- Added proper styling for .main element (white background, shadow, padding)
- Improved visual hierarchy with matching design patterns
- Updated CSS version for cache busting
2025-10-18 00:39:21 +07:00

145 lines
2.2 KiB
CSS

/* Компактные стили для календаря */
.main-wrapper {
display: flex;
gap: 15px;
align-items: flex-start;
width: 100%;
}
.calendar-box {
flex-shrink: 0;
width: 190px;
background: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
border-radius: 8px;
padding: 10px;
}
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
gap: 4px;
}
.calendar-header h3 {
margin: 0;
font-size: 11px;
font-weight: 600;
color: #333;
min-width: 75px;
text-align: center;
flex: 1;
}
.calendar-nav-btn {
background: #f0f0f0;
border: 1px solid #ddd;
border-radius: 3px;
padding: 2px 5px;
cursor: pointer;
font-size: 11px;
color: #333;
transition: all 0.2s ease;
}
.calendar-nav-btn:hover {
background: #007bff;
color: white;
border-color: #007bff;
}
.calendar-weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 1px;
margin-bottom: 5px;
}
.weekday {
text-align: center;
font-size: 8px;
font-weight: 600;
color: #666;
padding: 1px 0;
text-transform: uppercase;
}
.calendar-days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 1px;
}
.calendar-day {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
border-radius: 3px;
cursor: pointer;
background: #f8f9fa;
color: #666;
border: 1px solid transparent;
transition: all 0.2s ease;
position: relative;
}
.calendar-day:hover {
background: #e8f4f8;
border-color: #007bff;
}
.calendar-day.other-month {
color: #ccc;
background: #fafafa;
}
.calendar-day.today {
background: #007bff;
color: white;
font-weight: 600;
border-color: #0056cc;
}
.calendar-day.today:hover {
background: #0056cc;
}
.calendar-day.selected {
background: #28a745;
color: white;
font-weight: 600;
border-color: #1e7e34;
}
.calendar-day.selected:hover {
background: #1e7e34;
}
.main {
flex: 1;
min-width: 300px;
}
/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
.main-wrapper {
flex-direction: column;
}
.calendar-box {
width: 100%;
}
.main {
min-width: auto;
}
.container {
max-width: 100%;
}
}