**Motivations :** - document and enforce the secure websocket endpoint for the relay - streamline wallet setup flow without manual blockers **Modifications :** - update docs and service bootstrap logic to rely on VITE_BOOTSTRAPURL with explicit /ws suffix - clean wallet setup and block sync pages to run automatically without continue buttons - refresh shared styles and services to match the new initialization path and logging adjustments **Page affectées :** - docs/INTEGRATION.md - src/services/service.ts - src/pages/wallet-setup/wallet-setup.*
612 lines
11 KiB
CSS
Executable File
612 lines
11 KiB
CSS
Executable File
/* Signature page base */
|
|
body {
|
|
margin: 0;
|
|
min-height: 100vh;
|
|
background: #eef2f7;
|
|
color: var(--color-text-primary);
|
|
font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Navigation */
|
|
.nav-wrapper {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 70px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 26px;
|
|
background: linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(229, 236, 244, 0.9));
|
|
backdrop-filter: blur(12px);
|
|
box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
|
|
z-index: 30;
|
|
}
|
|
|
|
.brand-logo {
|
|
font-size: 1.4rem;
|
|
font-weight: 700;
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.nav-right-icons {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 18px;
|
|
}
|
|
|
|
.notification-bell,
|
|
.burger-menu {
|
|
width: 22px;
|
|
height: 22px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--color-text-secondary);
|
|
cursor: pointer;
|
|
transition: color var(--transition-base);
|
|
}
|
|
|
|
.notification-bell:hover,
|
|
.burger-menu:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.notification-container {
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.notification-badge {
|
|
position: absolute;
|
|
top: -6px;
|
|
right: -6px;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
padding: 0 6px;
|
|
border-radius: 999px;
|
|
background: var(--color-danger);
|
|
color: #fff;
|
|
font-size: 0.7rem;
|
|
font-weight: 700;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.notification-badge.is-visible {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.notification-board,
|
|
.menu-content {
|
|
position: absolute;
|
|
top: calc(100% + 12px);
|
|
right: 0;
|
|
width: min(300px, 88vw);
|
|
background: var(--color-surface);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-lg);
|
|
border: 1px solid rgba(148, 163, 184, 0.22);
|
|
padding: 10px 0;
|
|
display: none;
|
|
flex-direction: column;
|
|
z-index: 40;
|
|
}
|
|
|
|
.notification-board.is-visible,
|
|
.menu-content.is-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.notification-board .notification-element,
|
|
.menu-content a {
|
|
padding: 10px 18px;
|
|
color: var(--color-text-primary);
|
|
transition: background var(--transition-base);
|
|
}
|
|
|
|
.notification-board .notification-element:hover,
|
|
.menu-content a:hover {
|
|
background: rgba(58, 80, 107, 0.08);
|
|
}
|
|
|
|
/* Layout */
|
|
.container {
|
|
margin-top: 90px;
|
|
display: grid;
|
|
grid-template-columns: clamp(240px, 24%, 300px) minmax(0, 1fr);
|
|
gap: 24px;
|
|
padding: 24px 32px 48px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.group-list {
|
|
background: linear-gradient(135deg, #1f2c3d, #1b2735);
|
|
color: #fff;
|
|
border-radius: var(--radius-lg);
|
|
padding: 22px 18px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
box-shadow: var(--shadow-sm);
|
|
height: calc(100vh - 140px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.group-list ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.group-list li {
|
|
background: rgba(255, 255, 255, 0.09);
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 14px;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
|
|
}
|
|
|
|
.group-list li:hover,
|
|
.group-list li.active {
|
|
background: rgba(255, 255, 255, 0.18);
|
|
transform: translateX(4px);
|
|
box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Signature workspace */
|
|
.signature-workspace,
|
|
.process-details,
|
|
.chat-area {
|
|
background: var(--color-surface);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-md);
|
|
padding: 24px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
min-height: calc(100vh - 140px);
|
|
}
|
|
|
|
.signature-header,
|
|
.chat-header,
|
|
.process-details-header {
|
|
background: var(--color-primary);
|
|
color: #fff;
|
|
border-radius: var(--radius-md);
|
|
padding: 14px 18px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
font-weight: 600;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.process-details-header h2 {
|
|
margin: 0;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.process-details-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 10px 4px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
}
|
|
|
|
.details-section {
|
|
background: rgba(58, 80, 107, 0.06);
|
|
border-radius: var(--radius-md);
|
|
padding: 16px;
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
}
|
|
|
|
.details-section h3 {
|
|
margin: 0 0 12px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.documents-grid,
|
|
.roles-grid,
|
|
.documents-list {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
|
|
gap: 16px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.document-card,
|
|
.role-block {
|
|
background: #fff;
|
|
border-radius: var(--radius-md);
|
|
padding: 16px;
|
|
border-left: 4px solid var(--color-info);
|
|
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.document-card.private {
|
|
border-color: var(--color-warning);
|
|
}
|
|
|
|
.document-card.confidential {
|
|
border-color: var(--color-danger);
|
|
}
|
|
|
|
.document-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.document-visibility {
|
|
padding: 4px 10px;
|
|
border-radius: 999px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
background: rgba(58, 80, 107, 0.1);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.document-info p {
|
|
margin: 4px 0;
|
|
font-size: 0.9rem;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.signature-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 14px;
|
|
background: rgba(58, 80, 107, 0.06);
|
|
border-radius: var(--radius-md);
|
|
padding: 16px;
|
|
}
|
|
|
|
.signature-description,
|
|
.signature-documents {
|
|
display: flex;
|
|
gap: 12px;
|
|
overflow-x: auto;
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.signature-description li {
|
|
list-style: none;
|
|
min-width: 150px;
|
|
text-align: center;
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--color-primary);
|
|
color: #fff;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base), background var(--transition-base);
|
|
}
|
|
|
|
.signature-description li:hover {
|
|
background: var(--color-accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
/* Buttons */
|
|
.button,
|
|
.button-style,
|
|
.new-request-btn,
|
|
.sign-button,
|
|
.confirm-button,
|
|
.cancel-button,
|
|
.add-row-button,
|
|
.confirm-all-button,
|
|
.delete-row-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding: 10px 18px;
|
|
border-radius: var(--radius-md);
|
|
border: none;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: transform var(--transition-base), box-shadow var(--transition-base);
|
|
}
|
|
|
|
.button,
|
|
.button-style,
|
|
.new-request-btn,
|
|
.confirm-button,
|
|
.add-row-button,
|
|
.confirm-all-button {
|
|
background: linear-gradient(135deg, var(--color-primary), #25374a);
|
|
color: #fff;
|
|
}
|
|
|
|
.button:hover,
|
|
.button-style:hover,
|
|
.new-request-btn:hover,
|
|
.confirm-button:hover,
|
|
.add-row-button:hover,
|
|
.confirm-all-button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 14px 26px rgba(58, 80, 107, 0.28);
|
|
}
|
|
|
|
.cancel-button,
|
|
.delete-row-button,
|
|
.remove-member-btn,
|
|
.remove-file {
|
|
background: rgba(148, 163, 184, 0.25);
|
|
color: var(--color-text-primary);
|
|
}
|
|
|
|
.cancel-button:hover,
|
|
.delete-row-button:hover,
|
|
.remove-member-btn:hover,
|
|
.remove-file:hover {
|
|
background: rgba(148, 163, 184, 0.4);
|
|
}
|
|
|
|
/* Forms & inputs */
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
.form-group,
|
|
.form-group-members,
|
|
.members-selection-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-group label,
|
|
.members-selection-container label {
|
|
font-weight: 600;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.form-group input,
|
|
.form-group textarea,
|
|
.form-group select,
|
|
.members-selection {
|
|
border: 1px solid rgba(148, 163, 184, 0.35);
|
|
border-radius: var(--radius-md);
|
|
padding: 10px 12px;
|
|
background: #fff;
|
|
}
|
|
|
|
.members-selection {
|
|
max-height: 220px;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.member-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 8px;
|
|
border-radius: var(--radius-sm);
|
|
transition: background var(--transition-base);
|
|
}
|
|
|
|
.member-checkbox:hover {
|
|
background: rgba(58, 80, 107, 0.08);
|
|
}
|
|
|
|
/* Modals */
|
|
.modal,
|
|
.notifications-modal,
|
|
.qr-modal,
|
|
.request-modal,
|
|
.modal-document,
|
|
.pairing-modal,
|
|
.contract-popup-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.55);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
backdrop-filter: blur(12px);
|
|
z-index: 60;
|
|
padding: 24px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.modal.is-visible,
|
|
.notifications-modal.is-visible,
|
|
.qr-modal.is-visible,
|
|
.request-modal.is-visible,
|
|
.modal-document.is-visible,
|
|
.pairing-modal.is-visible,
|
|
.contract-popup-overlay.is-visible {
|
|
display: flex;
|
|
}
|
|
|
|
.modal-content,
|
|
.notifications-content,
|
|
.qr-modal-content,
|
|
.request-modal .modal-content,
|
|
.modal-document .modal-content,
|
|
.pairing-modal-content,
|
|
.contract-popup-content {
|
|
background: var(--color-surface);
|
|
border-radius: var(--radius-lg);
|
|
padding: 24px;
|
|
width: min(520px, 100%);
|
|
max-height: 80vh;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-lg);
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.close-popup,
|
|
.close-button,
|
|
.close-qr-modal,
|
|
.close-contract-popup,
|
|
.close-modal {
|
|
position: absolute;
|
|
top: 14px;
|
|
right: 14px;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: 1.4rem;
|
|
color: var(--color-text-secondary);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.close-popup:hover,
|
|
.close-button:hover,
|
|
.close-qr-modal:hover,
|
|
.close-contract-popup:hover,
|
|
.close-modal:hover {
|
|
color: var(--color-primary);
|
|
}
|
|
|
|
.modal-footer,
|
|
.button-group,
|
|
.header-buttons {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.file-upload-container,
|
|
.upload-area {
|
|
border: 2px dashed rgba(148, 163, 184, 0.45);
|
|
border-radius: var(--radius-md);
|
|
padding: 24px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
text-align: center;
|
|
transition: border-color var(--transition-base), background var(--transition-base);
|
|
}
|
|
|
|
.file-upload-container:hover,
|
|
.upload-area:hover,
|
|
.file-upload-container.dragover {
|
|
border-color: var(--color-primary);
|
|
background: rgba(58, 80, 107, 0.12);
|
|
}
|
|
|
|
.file-list,
|
|
.signatures-list,
|
|
.documents-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.file-item,
|
|
.signature-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-radius: var(--radius-md);
|
|
background: rgba(58, 80, 107, 0.08);
|
|
}
|
|
|
|
.signature-item.signed {
|
|
background: rgba(76, 175, 80, 0.18);
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.signature-item.pending {
|
|
background: rgba(255, 152, 0, 0.18);
|
|
color: var(--color-warning);
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 1024px) {
|
|
.container {
|
|
grid-template-columns: 1fr;
|
|
padding: 20px;
|
|
}
|
|
|
|
.group-list {
|
|
height: auto;
|
|
max-height: none;
|
|
}
|
|
|
|
.signature-workspace,
|
|
.process-details,
|
|
.chat-area {
|
|
min-height: auto;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.nav-wrapper {
|
|
height: auto;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 14px 18px;
|
|
}
|
|
|
|
.nav-right-icons {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.container {
|
|
padding: 16px 14px 32px;
|
|
}
|
|
|
|
.notification-board,
|
|
.menu-content {
|
|
right: auto;
|
|
left: 0;
|
|
width: min(320px, 100vw - 32px);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.button,
|
|
.button-style,
|
|
.new-request-btn,
|
|
.confirm-button,
|
|
.cancel-button {
|
|
width: 100%;
|
|
}
|
|
|
|
.documents-grid,
|
|
.roles-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
} |