Files
workavia-calendar-front/src/components/Calendar/Calendar.styl
T
lenhanphung 5ae838c425 UI/update sidebar (#480)
* update minicalendar

* update left sidebar

* chore: update twake-mui to version 1.1.4

- Update @linagora/twake-mui from local file to npm package 1.1.4
- Add margin to TempCalendarsInput section in sidebar
- Remove margin from PeopleSearch component (moved to parent)

* Changed wording on my calendars and event creation button

---------

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
2026-02-02 10:02:23 +01:00

128 lines
2.3 KiB
Stylus

.App
background-color #f3f6f9
display flex
flex-direction column
justify-content space-between
.main-layout
display flex
height calc(100vh - 90px)
.main-layout.calendar-layout
background-color #fff
flex-direction row
.calendar
flex-grow 1
height 100%
overflow hidden
.calendarListHeader
padding-top 10px
display flex
align-items center
margin-left 25%
.sidebar
border-right 2px solid #f3f4f6
width 270px
height 100%
flex-direction column
overflow-y: scroll
overflow-x: hidden
scrollbar-width: thin
scrollbar-color: transparent transparent
.sidebar::-webkit-scrollbar
width: 8px
.sidebar::-webkit-scrollbar-track
background: transparent
.sidebar::-webkit-scrollbar-thumb
background-color: rgba(0, 0, 0, 0.3)
border-radius: 4px
opacity: 0
transition: opacity 0.3s ease
.sidebar:hover::-webkit-scrollbar-thumb
background-color: rgba(0, 0, 0, 0.5)
opacity: 1
.sidebar:hover
scrollbar-color: rgba(0, 0, 0, 0.5) transparent
// .declined-event
// opacity 0.7
// .needs-action-event
// opacity 0.7
// border dashed 1px #ffffff
[data-theme="dark"] .fc-timegrid-slot::after
border-top 1px dotted rgba(255, 255, 255, 0.2)
#calendar
flex 1
overflow hidden /* Important: let FullCalendar handle internal scroll */
/* Base container */
.fc-daygrid-day-top
display flex
flex-direction column
align-items center
padding 0.5rem 0
font-family "Inter", sans-serif
/* sidebar*/
.sidebar-calendar
width 280px
background-color #fff
border-radius 12px
box-shadow 0 4px 12px rgba(0, 0, 0, 0.1)
padding 20px
display flex
flex-direction column
gap 30px
font-family "Segoe UI", Tahoma, Geneva, Verdana, sans-serif
/* sidebar header */
.sidebar-calendar h2
font-size 1.3rem
font-weight 700
color #333
margin 0 0 10px 0
/* Calendar list */
.calendar-list
list-style none
padding 0
margin 0
display flex
flex-direction column
gap 15px
.calendar-list li
display flex
align-items center
gap 10px
font-weight 600
color #444
padding 10px 15px
border-radius 10px
transition background-color 0.2s ease
cursor pointer
.event-dot
margin-top 2px
width 6px
height 6px
background-color #d93025
border-radius 50%
margin-left auto
margin-right auto
.weekSelector
display flex
flex-direction column
align-items center