Backed out changeset 51db5bd34c2a (Bug 1811143) for causing test failures. r=backout DONTBUILD

This commit is contained in:
Alessandro Castellani 2023-01-31 08:52:40 -08:00
Родитель 48761440bd
Коммит 36d2ce2045
4 изменённых файлов: 15 добавлений и 62 удалений

Просмотреть файл

@ -948,11 +948,3 @@ async function printCalendar() {
await PrintUtils.loadPrintBrowser("chrome://calendar/content/printing-template.html"); await PrintUtils.loadPrintBrowser("chrome://calendar/content/printing-template.html");
PrintUtils.startPrintWindow(PrintUtils.printBrowser.browsingContext, {}); PrintUtils.startPrintWindow(PrintUtils.printBrowser.browsingContext, {});
} }
/**
* Toggle the visibility of the calendars list.
*
* @param {Event} event - The click DOMEvent.
*/
function toggleVisibilityCalendarsList(event) {
document.getElementById("calendar-list-inner-pane").togglePane(event);
}

Просмотреть файл

@ -182,18 +182,20 @@
flex="1" flex="1"
mode="calendar,task" mode="calendar,task"
refcontrol="calendar_toggle_calendarlist_command"> refcontrol="calendar_toggle_calendarlist_command">
<html:button id="calendarListHeader" <hbox align="center" class="calendar-list-header">
class="calendar-list-header button-flat" <checkbox id="calendar-list-header"
onclick="toggleVisibilityCalendarsList(event);"> checked="true"
<html:span data-l10n-id="calendar-list-header"></html:span> class="treenode-checkbox"
<html:img id="toggleCalendarIcon" flex="1"
src="chrome://messenger/skin/icons/new/nav-down-sm.svg" label="&calendar.list.header.label;"/>
alt="" /> <toolbarbutton class="toolbarbutton-1 calendar-list-create themeable-brighttext"
</html:button> command="calendar_new_calendar_command"
tooltiptext="&calendar.context.newserver.label;"/>
</hbox>
<calendar-modevbox id="calendar-list-inner-pane" <calendar-modevbox id="calendar-list-inner-pane"
flex="1" flex="1"
mode="calendar,task" mode="calendar,task"
refcontrol="calendarListHeader" refcontrol="calendar-list-header"
oncontextmenu="openCalendarListItemContext(event);"> oncontextmenu="openCalendarListItemContext(event);">
<html:ol id="calendar-list" is="orderable-tree-listbox" <html:ol id="calendar-list" is="orderable-tree-listbox"
role="listbox"></html:ol> role="listbox"></html:ol>
@ -212,7 +214,6 @@
</li> </li>
</template> </template>
</calendar-modevbox> </calendar-modevbox>
<div id="calendarButtonsBottomSpacer"></div>
<html:div id="sideButtonsBottom" xmlns="http://www.w3.org/1999/xhtml"> <html:div id="sideButtonsBottom" xmlns="http://www.w3.org/1999/xhtml">
<button id="importCalendar" <button id="importCalendar"
class="calendar-sidebar-bottom-button" class="calendar-sidebar-bottom-button"

Просмотреть файл

@ -6,7 +6,6 @@
:root { :root {
--calendar-view-nav-btn-padding: 6px; --calendar-view-nav-btn-padding: 6px;
--calendar-list-header-padding: 9px 12px;
--calendar-list-item-padding: 3px; --calendar-list-item-padding: 3px;
--calendar-list-item-margin: 3px; --calendar-list-item-margin: 3px;
--calendar-list-item-dot-size: 9px; --calendar-list-item-dot-size: 9px;
@ -15,16 +14,14 @@
:root[uidensity="compact"] { :root[uidensity="compact"] {
--calendar-view-nav-btn-padding: 0px; --calendar-view-nav-btn-padding: 0px;
--calendar-list-header-padding: 6px 9px; --calendar-list-item-padding: 0px;
--calendar-list-item-padding: 1px; --calendar-list-item-margin: 0px;
--calendar-list-item-margin: 1px;
--calendar-list-item-dot-size: 6px; --calendar-list-item-dot-size: 6px;
--calendar-list-item-dot-gap: 3px; --calendar-list-item-dot-gap: 3px;
} }
:root[uidensity="touch"] { :root[uidensity="touch"] {
--calendar-view-nav-btn-padding: 6px; --calendar-view-nav-btn-padding: 6px;
--calendar-list-header-padding: 9px 15px;
--calendar-list-item-padding: 6px; --calendar-list-item-padding: 6px;
--calendar-list-item-margin: 6px; --calendar-list-item-margin: 6px;
--calendar-list-item-dot-size: 9px; --calendar-list-item-dot-size: 9px;
@ -34,32 +31,8 @@
/* Calendar Items */ /* Calendar Items */
.calendar-list-header { .calendar-list-header {
display: flex; background-color: var(--viewCalendarHeaderBackground);
justify-content: space-between; padding-block: 2px;
align-items: center;
-moz-context-properties: stroke;
stroke: currentColor;
min-height: auto;
min-width: auto;
margin: 0;
background-color: transparent;
border-color: transparent;
border-radius: 0;
padding: var(--calendar-list-header-padding);
font-size: 1.1rem;
font-weight: 600;
}
.calendar-list-header > * {
pointer-events: none;
}
.calendar-list-header:hover {
border-color: transparent !important;
}
#calendarListHeader[checked="false"] > img {
transform: rotate(-90deg);
} }
.calendar-list-create { .calendar-list-create {
@ -111,9 +84,6 @@ checkbox.treenode-checkbox:not([checked="true"]):-moz-locale-dir(rtl) > .checkbo
checkbox.treenode-checkbox > .checkbox-check { checkbox.treenode-checkbox > .checkbox-check {
transition: transform 200ms ease; transition: transform 200ms ease;
} }
#calendarListHeader > img {
transition: transform 150ms ease;
}
#calendar-list > li, #calendar-list > li,
#calendar-list > li > :is(.calendar-displayed,.calendar-more-button) { #calendar-list > li > :is(.calendar-displayed,.calendar-more-button) {
transition: opacity 250ms ease; transition: opacity 250ms ease;
@ -391,10 +361,6 @@ checkbox.treenode-checkbox > .checkbox-label-center-box > .checkbox-label-box >
-moz-box-align: center; -moz-box-align: center;
} }
#calendarButtonsBottomSpacer {
-moz-box-flex: 1;
}
#sideButtonsBottom { #sideButtonsBottom {
display: inline-flex; display: inline-flex;
justify-content: space-between; justify-content: space-between;

Просмотреть файл

@ -10,10 +10,6 @@ calendar-notifications-label = Show notifications for upcoming events
calendar-add-notification-button = calendar-add-notification-button =
.label = Add notification .label = Add notification
## Side panel
calendar-list-header = Calendars
# Variables: # Variables:
# $calendarName (String) - Calendar name as given by the user # $calendarName (String) - Calendar name as given by the user
calendar-list-item-tooltip = calendar-list-item-tooltip =
@ -29,8 +25,6 @@ calendar-new-event-primary-button = New Event
calendar-new-task-primary-button = New Task calendar-new-task-primary-button = New Task
## Calendar navigation
calendar-nav-button-prev-tooltip-day = calendar-nav-button-prev-tooltip-day =
.title = Previous Day .title = Previous Day
.accesskey = s .accesskey = s