Bug 1027057, use correct origin for arrowpanel animations in rtl, r=dao

This commit is contained in:
Neil Deakin 2014-06-24 12:35:26 -04:00
parent ca7d53fbb2
commit 35cc9e33ee
2 changed files with 32 additions and 36 deletions

View File

@ -954,32 +954,30 @@ chatbox:-moz-full-screen-ancestor > .chat-titlebar {
opacity: 1.0;
}
#BMB_bookmarksPopup[arrowposition="after_start"] {
#BMB_bookmarksPopup[animate="cancel"] {
transform: none;
}
#BMB_bookmarksPopup[arrowposition="after_start"]:-moz-locale-dir(ltr),
#BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(rtl) {
transform-origin: 20px top;
}
#BMB_bookmarksPopup[arrowposition="after_end"] {
#BMB_bookmarksPopup[arrowposition="after_end"]:-moz-locale-dir(ltr),
#BMB_bookmarksPopup[arrowposition="after_start"]:-moz-locale-dir(rtl) {
transform-origin: calc(100% - 20px) top;
}
#BMB_bookmarksPopup[arrowposition="before_start"] {
#BMB_bookmarksPopup[arrowposition="before_start"]:-moz-locale-dir(ltr),
#BMB_bookmarksPopup[arrowposition="before_end"]:-moz-locale-dir(rtl) {
transform-origin: 20px bottom;
}
#BMB_bookmarksPopup[arrowposition="before_end"] {
#BMB_bookmarksPopup[arrowposition="before_end"]:-moz-locale-dir(ltr),
#BMB_bookmarksPopup[arrowposition="before_start"]:-moz-locale-dir(rtl) {
transform-origin: calc(100% - 20px) bottom;
}
#BMB_bookmarksPopup[arrowposition="after_start"][animate="cancel"],
#BMB_bookmarksPopup[arrowposition="before_end"][animate="cancel"] {
transform: none;
}
#BMB_bookmarksPopup[arrowposition="after_end"][animate="cancel"],
#BMB_bookmarksPopup[arrowposition="before_start"][animate="cancel"] {
transform: none;
}
%endif
/* Customize mode */

View File

@ -421,52 +421,50 @@ panel[type="arrow"][animate="open"] {
opacity: 1.0;
}
panel[arrowposition="after_start"] {
panel[animate="cancel"] {
transform: none;
}
panel[arrowposition="after_start"]:-moz-locale-dir(ltr),
panel[arrowposition="after_end"]:-moz-locale-dir(rtl) {
transform-origin: 20px top;
}
panel[arrowposition="after_end"] {
panel[arrowposition="after_end"]:-moz-locale-dir(ltr),
panel[arrowposition="after_start"]:-moz-locale-dir(rtl) {
transform-origin: calc(100% - 20px) top;
}
panel[arrowposition="before_start"] {
panel[arrowposition="before_start"]:-moz-locale-dir(ltr),
panel[arrowposition="before_end"]:-moz-locale-dir(rtl) {
transform-origin: 20px bottom;
}
panel[arrowposition="before_end"] {
panel[arrowposition="before_end"]:-moz-locale-dir(ltr),
panel[arrowposition="before_start"]:-moz-locale-dir(rtl) {
transform-origin: calc(100% - 20px) bottom;
}
panel[arrowposition="start_before"] {
panel[arrowposition="start_before"]:-moz-locale-dir(ltr),
panel[arrowposition="end_before"]:-moz-locale-dir(rtl) {
transform-origin: right 20px;
}
panel[arrowposition="start_after"] {
panel[arrowposition="start_after"]:-moz-locale-dir(ltr),
panel[arrowposition="end_after"]:-moz-locale-dir(rtl) {
transform-origin: right calc(100% - 20px);
}
panel[arrowposition="end_before"] {
panel[arrowposition="end_before"]:-moz-locale-dir(ltr),
panel[arrowposition="start_before"]:-moz-locale-dir(rtl) {
transform-origin: left 20px;
}
panel[arrowposition="end_after"] {
panel[arrowposition="end_after"]:-moz-locale-dir(ltr),
panel[arrowposition="start_after"]:-moz-locale-dir(rtl) {
transform-origin: left calc(100% - 20px);
}
panel[arrowposition="after_start"][animate="cancel"],
panel[arrowposition="before_end"][animate="cancel"],
panel[arrowposition="end_before"][animate="cancel"],
panel[arrowposition="start_after"][animate="cancel"] {
transform: none;
}
panel[arrowposition="after_end"][animate="cancel"],
panel[arrowposition="before_start"][animate="cancel"],
panel[arrowposition="start_before"][animate="cancel"],
panel[arrowposition="end_after"][animate="cancel"] {
transform: none;
}
%endif
%ifdef XP_MACOSX