stuff
This commit is contained in:
parent
7927633ab6
commit
0ad55d3200
|
@ -1248,8 +1248,11 @@ module.exports = (_ => {
|
|||
notice.style.setProperty("max-width", `calc(100vw - ${sideMargin*2}px)`, "important");
|
||||
}
|
||||
notice.querySelector(BDFDB.dotCN.noticedismiss).addEventListener("click", _ => {
|
||||
notice.style.setProperty("overflow", "hidden", "important");
|
||||
notice.style.setProperty("height", "0px", "important");
|
||||
BDFDB.DOMUtils.addClass(notice, BDFDB.disCN.noticeclosing);
|
||||
if (options.forceStyle) {
|
||||
notice.style.setProperty("overflow", "hidden", "important");
|
||||
notice.style.setProperty("height", "0px", "important");
|
||||
}
|
||||
if (notice.tooltip && typeof notice.tooltip.removeTooltip == "function") notice.tooltip.removeTooltip();
|
||||
BDFDB.TimeUtils.timeout(_ => {
|
||||
if (typeof options.onClose == "function") options.onClose();
|
||||
|
|
|
@ -585,6 +585,7 @@
|
|||
"multiInputFirst": "multiInputFirst-5rMj_O",
|
||||
"multiInputLast": "multiInputLast-HWxgTr",
|
||||
"multiInputWrapper": "multiInputWrapper-g6Srtv",
|
||||
"noticeClosing": "closing-g5Srr2",
|
||||
"noticeText": "text-kRs522",
|
||||
"noticeUpdateText": "notice-message",
|
||||
"noticeWrapper": "noticeWrapper-8z511t",
|
||||
|
@ -2305,6 +2306,7 @@
|
|||
"notice": ["Notice", "notice"],
|
||||
"noticebrand": ["Notice", "colorBrand"],
|
||||
"noticebutton": ["Notice", "button"],
|
||||
"noticeclosing": ["BDFDB", "noticeClosing"],
|
||||
"noticecustom": ["Notice", "colorCustom"],
|
||||
"noticedanger": ["Notice", "colorDanger"],
|
||||
"noticedark": ["Notice", "colorDark"],
|
||||
|
|
|
@ -892,6 +892,10 @@ img:not([src]), img[src=""], img[src="null"] {
|
|||
border-radius: 0 !important;
|
||||
transition: height 10s ease !important;
|
||||
}
|
||||
[REPLACE_CLASS_noticeclosing] {
|
||||
height: 0 !important;
|
||||
overflow: hidden !important;
|
||||
}
|
||||
[REPLACE_CLASS_noticewrapper] [REPLACE_CLASS_noticeplatformicon] {
|
||||
margin-top: -7px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue