mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-22 13:03:05 +08:00
This commit makes the following changes: - uses fullcalendar 6 - replaces the server generated upcoming dates for recurring events with a frontend implementation of the RRULE standard (using the fullcalendar RRULE plugin) - displays a preview of the event on click on the upcoming events calendar --------- Co-authored-by: chapoi <101828855+chapoi@users.noreply.github.com> Co-authored-by: Martin Brennan <martin@discourse.org>
103 lines
1.7 KiB
SCSS
Vendored
103 lines
1.7 KiB
SCSS
Vendored
@keyframes d-tooltip-opening {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.fk-d-tooltip {
|
|
&__trigger {
|
|
display: inline-flex;
|
|
cursor: pointer;
|
|
|
|
.touch & {
|
|
@include unselectable;
|
|
}
|
|
|
|
&-container {
|
|
display: flex;
|
|
}
|
|
}
|
|
|
|
&__inner-content {
|
|
display: flex;
|
|
overflow: hidden;
|
|
overflow-wrap: break-word;
|
|
padding: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
&__content {
|
|
background-color: var(--secondary);
|
|
border-radius: var(--d-border-radius);
|
|
border: 1px solid var(--content-border-color);
|
|
box-shadow: var(--shadow-dropdown);
|
|
z-index: z("max");
|
|
width: max-content;
|
|
position: absolute;
|
|
top: 0;
|
|
display: flex !important;
|
|
padding: 0;
|
|
|
|
&.-animated {
|
|
animation: d-tooltip-opening 0.15s ease-in;
|
|
|
|
&[data-placement^="bottom"] {
|
|
transform-origin: top center;
|
|
}
|
|
|
|
&[data-placement^="top"] {
|
|
transform-origin: bottom center;
|
|
}
|
|
|
|
&[data-placement^="right"] {
|
|
transform-origin: center left;
|
|
}
|
|
|
|
&[data-placement^="left"] {
|
|
transform-origin: center right;
|
|
}
|
|
}
|
|
|
|
.arrow {
|
|
z-index: z("max");
|
|
position: absolute;
|
|
}
|
|
|
|
&[data-placement^="top"] {
|
|
.arrow {
|
|
bottom: -11px;
|
|
rotate: 180deg;
|
|
}
|
|
}
|
|
|
|
&[data-placement^="top-start"] {
|
|
.arrow {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
|
|
&[data-placement^="bottom"] {
|
|
.arrow {
|
|
top: -11px;
|
|
}
|
|
}
|
|
|
|
&[data-placement^="right"] {
|
|
.arrow {
|
|
rotate: -90deg;
|
|
left: -11px;
|
|
}
|
|
}
|
|
|
|
&[data-placement^="left"] {
|
|
.arrow {
|
|
rotate: 90deg;
|
|
right: -11px;
|
|
}
|
|
}
|
|
}
|
|
}
|