vers. 2.6.0
This commit is contained in:
+418
-1
@@ -418,4 +418,421 @@ button#formatToggleBtn {
|
||||
body.appBody>* {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* PWA STYLES (Banner, Nav Button, and Instructions Modal) */
|
||||
|
||||
/* Hide all PWA install indicators when running as standalone installed app */
|
||||
@media (display-mode: standalone) {
|
||||
.pwa-install-btn,
|
||||
.pwa-install-banner,
|
||||
.pwa-install-btn-nav {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* iOS navigation standalone fallback check */
|
||||
@media (display-mode: standalone) {
|
||||
body.appBody {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
}
|
||||
|
||||
/* PWA Install Banner Style */
|
||||
.pwa-install-banner {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(120px);
|
||||
width: 90%;
|
||||
max-width: 500px;
|
||||
background: rgba(24, 34, 92, 0.95);
|
||||
backdrop-filter: blur(15px);
|
||||
-webkit-backdrop-filter: blur(15px);
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
border-radius: 24px;
|
||||
padding: 16px;
|
||||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
|
||||
z-index: 100000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
|
||||
opacity: 0;
|
||||
color: white;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pwa-install-banner.show {
|
||||
transform: translateX(-50%) translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.pwa-banner-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.pwa-banner-logo {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pwa-banner-text {
|
||||
flex: 1;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.pwa-banner-title {
|
||||
font-weight: 700;
|
||||
font-size: 1rem;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.pwa-banner-desc {
|
||||
font-size: 0.75rem;
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
margin-top: 2px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.pwa-banner-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pwa-banner-btn {
|
||||
background: linear-gradient(135deg, #f7b835, #f5a623);
|
||||
color: #10194b;
|
||||
border: none;
|
||||
padding: 8px 16px;
|
||||
border-radius: 30px;
|
||||
font-weight: 700;
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 12px rgba(247, 184, 53, 0.3);
|
||||
transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.pwa-banner-btn:hover {
|
||||
background: linear-gradient(135deg, #ffd05c, #ffb633);
|
||||
}
|
||||
|
||||
.pwa-banner-btn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
.pwa-banner-close-btn {
|
||||
background: rgba(255, 255, 255, 0.1);
|
||||
border: none;
|
||||
color: white;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.pwa-banner-close-btn:hover {
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
/* Nav Link Install Button */
|
||||
.pwa-install-btn-nav {
|
||||
color: #f7b835 !important;
|
||||
font-weight: 700;
|
||||
border: 1px solid #f7b835;
|
||||
padding: 4px 12px !important;
|
||||
border-radius: 20px;
|
||||
display: inline-flex !important;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
background: rgba(247, 184, 53, 0.1);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.pwa-install-btn-nav:hover {
|
||||
background: #f7b835 !important;
|
||||
color: #10194b !important;
|
||||
}
|
||||
|
||||
/* PWA Instructions Modal Overlay */
|
||||
.pwa-modal-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
z-index: 110000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pwa-modal-overlay.show {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.pwa-modal-content {
|
||||
background: #18225c;
|
||||
color: white;
|
||||
width: 90%;
|
||||
max-width: 420px;
|
||||
border-radius: 24px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.15);
|
||||
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
|
||||
transform: scale(0.9);
|
||||
transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
|
||||
overflow: hidden;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.pwa-modal-overlay.show .pwa-modal-content {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
.pwa-modal-header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
|
||||
.pwa-modal-header h3 {
|
||||
font-size: 1.1rem;
|
||||
margin: 0;
|
||||
font-weight: 700;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.pwa-modal-close-btn-top {
|
||||
background: none;
|
||||
border: none;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
transition: color 0.2s;
|
||||
}
|
||||
|
||||
.pwa-modal-close-btn-top:hover {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.pwa-modal-body {
|
||||
padding: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.pwa-modal-app-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin-bottom: 20px;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
.pwa-modal-logo {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.pwa-modal-steps {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.pwa-step {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.pwa-step-num {
|
||||
background: #f7b835;
|
||||
color: #10194b;
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-weight: 700;
|
||||
font-size: 0.8rem;
|
||||
flex-shrink: 0;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.pwa-step-text {
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.4;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
|
||||
.pwa-step-text strong {
|
||||
color: #f7b835;
|
||||
}
|
||||
|
||||
.pwa-inline-icon {
|
||||
vertical-align: middle;
|
||||
margin: 0 2px;
|
||||
background: rgba(255, 255, 255, 0.12);
|
||||
border-radius: 6px;
|
||||
padding: 2px 4px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.pwa-install-banner {
|
||||
width: 95%;
|
||||
bottom: 10px;
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.pwa-banner-content {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.pwa-banner-desc {
|
||||
font-size: 0.7rem;
|
||||
}
|
||||
|
||||
.pwa-banner-btn {
|
||||
padding: 6px 12px;
|
||||
font-size: 0.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* OFFLINE SCREEN STYLES */
|
||||
.offline-overlay {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(16, 25, 75, 0.96);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
z-index: 999999;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition: opacity 0.5s ease, visibility 0.5s ease;
|
||||
}
|
||||
|
||||
.offline-overlay.active {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.offline-content {
|
||||
text-align: center;
|
||||
color: white;
|
||||
padding: 40px;
|
||||
max-width: 400px;
|
||||
width: 90%;
|
||||
font-family: 'Poppins', sans-serif;
|
||||
}
|
||||
|
||||
.offline-icon {
|
||||
font-size: 80px;
|
||||
color: #ff5e5e;
|
||||
margin-bottom: 24px;
|
||||
animation: pulse-offline 2s infinite ease-in-out;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.offline-title {
|
||||
font-size: 1.8rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 12px;
|
||||
letter-spacing: -0.5px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.offline-desc {
|
||||
font-size: 1rem;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
margin-bottom: 30px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.offline-btn {
|
||||
background: linear-gradient(135deg, #f7b835, #f5a623);
|
||||
color: #10194b;
|
||||
border: none;
|
||||
padding: 12px 30px;
|
||||
font-size: 0.95rem;
|
||||
font-weight: 700;
|
||||
border-radius: 50px;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
|
||||
transition: transform 0.2s, box-shadow 0.2s;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.offline-btn:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 6px 20px rgba(245, 166, 35, 0.6);
|
||||
color: #10194b;
|
||||
}
|
||||
|
||||
.offline-btn:active {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.offline-btn:disabled {
|
||||
opacity: 0.8;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@keyframes pulse-offline {
|
||||
0% { transform: scale(1); opacity: 0.8; }
|
||||
50% { transform: scale(1.08); opacity: 1; }
|
||||
100% { transform: scale(1); opacity: 0.8; }
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
.spinner-offline {
|
||||
display: inline-block;
|
||||
}
|
||||
Reference in New Issue
Block a user