MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (33 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
.sticky-header [id], | |||
.sticky-header-multi [id] { | |||
scroll-margin-top: 80px; | |||
vertical-align: top; | |||
} | |||
/* | |||
. | /*Update by Chandan Ramakrishnaiah Aug 18 2026*/ | ||
/* NanoFab Chat Assistant styles */ | |||
@keyframes nanofab-pulse { | |||
0%, 100% { transform: scale(1); } | |||
50% { transform: scale(1.15); } | |||
} | |||
@keyframes nanofab-toggle-pop { | |||
0% { transform: scale(1); } | |||
50% { transform: scale(0.85); } | |||
100% { transform: scale(1); } | |||
} | |||
#nanofab-chat-btn { | |||
position: fixed; | |||
bottom: 20px; | |||
right: 20px; | |||
width: 56px; | |||
height: 56px; | |||
border-radius: 50%; | |||
background: #990000; | |||
color: white; | |||
font-size: 34px; | |||
border: none; | |||
cursor: pointer; | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); | |||
z-index: 9999; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
transition: font-size 0.2s ease, transform 0.15s ease, background 0.15s ease; | |||
} | |||
#nanofab-chat-btn:hover { | |||
background: #b30000; | |||
transform: scale(1.08); | |||
} | |||
#nanofab-chat-btn.is-open { | |||
font-size: 22px; | |||
} | |||
#nanofab-chat-btn.pulse { | |||
animation: nanofab-pulse 0.6s ease-in-out 3; | |||
} | |||
#nanofab-chat-btn.toggle-pop { | |||
animation: nanofab-toggle-pop 0.25s ease; | |||
} | |||
#nanofab-chat-wrap { | |||
position: fixed; | |||
bottom: 90px; | |||
right: 20px; | |||
width: 400px; | |||
height: 600px; | |||
z-index: 9998; | |||
border-radius: 8px; | |||
overflow: hidden; | |||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); | |||
background: white; | |||
opacity: 0; | |||
transform: translateY(16px) scale(0.98); | |||
transform-origin: bottom right; | |||
pointer-events: none; | |||
transition: opacity 0.25s ease, transform 0.25s ease; | |||
} | |||
#nanofab-chat-wrap.open { | |||
opacity: 1; | |||
transform: translateY(0) scale(1); | |||
pointer-events: auto; | |||
} | |||
#nanofab-chat-wrap iframe { | |||
width: 100%; | |||
height: 100%; | |||
border: 0; | |||
} | |||
#nanofab-chat-greeting { | |||
position: fixed; | |||
bottom: 90px; | |||
right: 20px; | |||
max-width: 230px; | |||
background: white; | |||
color: #202122; | |||
font-size: 14px; | |||
line-height: 1.4; | |||
padding: 12px 32px 12px 14px; | |||
border-radius: 12px; | |||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); | |||
z-index: 9999; | |||
cursor: pointer; | |||
opacity: 0; | |||
transform: translateY(10px); | |||
pointer-events: none; | |||
transition: opacity 0.3s ease, transform 0.3s ease; | |||
} | |||
#nanofab-chat-greeting.show { | |||
opacity: 1; | |||
transform: translateY(0); | |||
pointer-events: auto; | |||
} | |||
#nanofab-chat-greeting::after { | |||
content: ''; | |||
position: absolute; | |||
bottom: -8px; | |||
right: 20px; | |||
border-width: 8px 8px 0 8px; | |||
border-style: solid; | |||
border-color: white transparent transparent transparent; | |||
} | |||
#nanofab-chat-greeting-close { | |||
position: absolute; | |||
top: 4px; | |||
right: 8px; | |||
background: none; | |||
border: none; | |||
font-size: 16px; | |||
line-height: 1; | |||
cursor: pointer; | |||
color: #72777d; | |||
padding: 2px 4px; | |||
} | |||
@media (max-width: 600px) { | |||
#nanofab-chat-wrap { | |||
width: calc(100vw - 20px); | |||
height: calc(100vh - 110px); | |||
right: 10px; | |||
bottom: 80px; | |||
} | |||
} | } | ||
Latest revision as of 16:48, 18 August 2026
/* CSS placed here will be applied to all skins */
.sticky-header [id],
.sticky-header-multi [id] {
scroll-margin-top: 80px;
vertical-align: top;
}
/*Update by Chandan Ramakrishnaiah Aug 18 2026*/
/* NanoFab Chat Assistant styles */
@keyframes nanofab-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.15); }
}
@keyframes nanofab-toggle-pop {
0% { transform: scale(1); }
50% { transform: scale(0.85); }
100% { transform: scale(1); }
}
#nanofab-chat-btn {
position: fixed;
bottom: 20px;
right: 20px;
width: 56px;
height: 56px;
border-radius: 50%;
background: #990000;
color: white;
font-size: 34px;
border: none;
cursor: pointer;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
transition: font-size 0.2s ease, transform 0.15s ease, background 0.15s ease;
}
#nanofab-chat-btn:hover {
background: #b30000;
transform: scale(1.08);
}
#nanofab-chat-btn.is-open {
font-size: 22px;
}
#nanofab-chat-btn.pulse {
animation: nanofab-pulse 0.6s ease-in-out 3;
}
#nanofab-chat-btn.toggle-pop {
animation: nanofab-toggle-pop 0.25s ease;
}
#nanofab-chat-wrap {
position: fixed;
bottom: 90px;
right: 20px;
width: 400px;
height: 600px;
z-index: 9998;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
background: white;
opacity: 0;
transform: translateY(16px) scale(0.98);
transform-origin: bottom right;
pointer-events: none;
transition: opacity 0.25s ease, transform 0.25s ease;
}
#nanofab-chat-wrap.open {
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
#nanofab-chat-wrap iframe {
width: 100%;
height: 100%;
border: 0;
}
#nanofab-chat-greeting {
position: fixed;
bottom: 90px;
right: 20px;
max-width: 230px;
background: white;
color: #202122;
font-size: 14px;
line-height: 1.4;
padding: 12px 32px 12px 14px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
z-index: 9999;
cursor: pointer;
opacity: 0;
transform: translateY(10px);
pointer-events: none;
transition: opacity 0.3s ease, transform 0.3s ease;
}
#nanofab-chat-greeting.show {
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
#nanofab-chat-greeting::after {
content: '';
position: absolute;
bottom: -8px;
right: 20px;
border-width: 8px 8px 0 8px;
border-style: solid;
border-color: white transparent transparent transparent;
}
#nanofab-chat-greeting-close {
position: absolute;
top: 4px;
right: 8px;
background: none;
border: none;
font-size: 16px;
line-height: 1;
cursor: pointer;
color: #72777d;
padding: 2px 4px;
}
@media (max-width: 600px) {
#nanofab-chat-wrap {
width: calc(100vw - 20px);
height: calc(100vh - 110px);
right: 10px;
bottom: 80px;
}
}