From 61850ff46136f604850f853cae4ea9985ee3c3d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=8D=9A=E4=BA=9E?= Date: Wed, 21 Dec 2022 09:57:53 +0800 Subject: [PATCH] Remove z-index in css files. --- app/assets/stylesheets/calendar.scss | 4 ---- app/assets/stylesheets/fullcalendar.css | 13 +++---------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/app/assets/stylesheets/calendar.scss b/app/assets/stylesheets/calendar.scss index 0ccb56f..ac9e21f 100644 --- a/app/assets/stylesheets/calendar.scss +++ b/app/assets/stylesheets/calendar.scss @@ -147,10 +147,6 @@ vertical-align: bottom; } -.calendar_mode { - z-index: 2; -} - .mode_switch { text-transform: capitalize; } diff --git a/app/assets/stylesheets/fullcalendar.css b/app/assets/stylesheets/fullcalendar.css index 475287b..4482ac0 100644 --- a/app/assets/stylesheets/fullcalendar.css +++ b/app/assets/stylesheets/fullcalendar.css @@ -479,7 +479,6 @@ a.fc-event:hover { /* ---------------------------------------------------------------------------------------------------- */ .fc-event .fc-event-main { position: relative; - z-index: 2; } /* dragging */ /* ---------------------------------------------------------------------------------------------------- */ @@ -708,7 +707,7 @@ A HORIZONTAL event display: table; } .fc .fc-daygrid-body { /* a
that wraps the table */ position: relative; - z-index: 1; /* container inner z-index's because s can't do it */ + /* container inner z-index's because s can't do it */ } .fc .fc-daygrid-day.fc-day-today { background-color: rgba(255, 220, 40, 0.15); @@ -737,7 +736,6 @@ A HORIZONTAL event } .fc .fc-daygrid-day-number { position: relative; - z-index: 4; padding: 4px; } .fc { @@ -800,11 +798,9 @@ A HORIZONTAL event } .fc .fc-daygrid-event { - z-index: 6; margin-top: 1px; } .fc .fc-daygrid-event.fc-event-mirror { - z-index: 7; } .fc { @@ -821,7 +817,6 @@ A HORIZONTAL event display: table; } .fc .fc-daygrid-more-link { position: relative; - z-index: 4; cursor: pointer; } .fc { @@ -831,7 +826,6 @@ A HORIZONTAL event } .fc .fc-daygrid-week-number { position: absolute; - z-index: 5; top: 0; padding: 2px; min-width: 1.5em; @@ -1048,14 +1042,14 @@ A VERTICAL event bottom: calc(var(--fc-event-resizer-dot-total-width, 8px) / -2); } .fc .fc-timegrid .fc-daygrid-body { /* the all-day daygrid within the timegrid view */ - z-index: 2; /* put above the timegrid-body so that more-popover is above everything. TODO: better solution */ + /* put above the timegrid-body so that more-popover is above everything. TODO: better solution */ } .fc .fc-timegrid-divider { padding: 0 0 2px; /* browsers get confused when you set height. use padding instead */ } .fc .fc-timegrid-body { position: relative; - z-index: 1; /* scope the z-indexes of slots and cols */ + /* scope the z-indexes of slots and cols */ min-height: 100%; /* fill height always, even when slat table doesn't grow */ } .fc .fc-timegrid-axis-chunk { /* for advanced ScrollGrid */ @@ -1068,7 +1062,6 @@ A VERTICAL event } .fc .fc-timegrid-slots { position: relative; - z-index: 1; } .fc .fc-timegrid-slot { /* a */ height: 1.5em;