1182 lines
25 KiB
CSS
1182 lines
25 KiB
CSS
/**
|
|
* Wiki/Docs Module Styles
|
|
*
|
|
* Modern document experience with 3-panel layout
|
|
* Inspired by Notion, Google Docs, and Apple design language
|
|
*/
|
|
|
|
/* ==========================================================================
|
|
Layout Structure
|
|
========================================================================== */
|
|
|
|
.wiki-layout {
|
|
display: flex;
|
|
gap: 0;
|
|
height: calc(100vh - 120px);
|
|
position: relative;
|
|
}
|
|
|
|
/* Left Sidebar - Contents/Tree (collapsible to icons) */
|
|
.wiki-sidebar {
|
|
width: 200px;
|
|
flex-shrink: 0;
|
|
padding: 16px;
|
|
margin: 12px;
|
|
margin-right: 0;
|
|
border-radius: var(--box-radius-large, 20px);
|
|
background: var(--layered-background);
|
|
position: sticky;
|
|
top: 82px;
|
|
height: calc(100vh - 94px);
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
transition: width 0.25s ease, padding 0.25s ease;
|
|
}
|
|
|
|
/* Collapsed sidebar - icon only mode */
|
|
.wiki-sidebar.collapsed {
|
|
width: 56px;
|
|
padding: 12px 8px;
|
|
}
|
|
|
|
.wiki-sidebar.collapsed .wiki-sidebar-header {
|
|
padding-bottom: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.wiki-sidebar.collapsed .wiki-sidebar-title {
|
|
display: none;
|
|
}
|
|
|
|
.wiki-sidebar.collapsed .wiki-collapse-btn i {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.wiki-sidebar.collapsed .wiki-tree-link {
|
|
justify-content: center;
|
|
padding: 10px;
|
|
}
|
|
|
|
.wiki-sidebar.collapsed .wiki-tree-link span,
|
|
.wiki-sidebar.collapsed .wiki-tree-draft {
|
|
display: none;
|
|
}
|
|
|
|
.wiki-sidebar.collapsed .wiki-tree-link i {
|
|
font-size: 18px;
|
|
opacity: 1;
|
|
}
|
|
|
|
.wiki-sidebar.collapsed .wiki-create-btn {
|
|
justify-content: center;
|
|
padding: 10px;
|
|
}
|
|
|
|
.wiki-sidebar.collapsed .wiki-create-btn span {
|
|
display: none;
|
|
}
|
|
|
|
.wiki-sidebar-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--main-border-color);
|
|
}
|
|
|
|
.wiki-sidebar-title {
|
|
font-size: var(--font-size-s);
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
color: var(--secondary-font-color);
|
|
margin: 0;
|
|
}
|
|
|
|
/* Collapse button */
|
|
.wiki-collapse-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--secondary-font-color);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.wiki-collapse-btn:hover {
|
|
background: var(--secondary-background);
|
|
color: var(--primary-font-color);
|
|
}
|
|
|
|
|
|
/* Main Content Area */
|
|
.wiki-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--secondary-background);
|
|
border-radius: var(--box-radius);
|
|
position: relative;
|
|
}
|
|
|
|
/* Properties Toggle Button (top right corner) */
|
|
.wiki-properties-toggle-btn {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--layered-background);
|
|
border: 1px solid var(--main-border-color);
|
|
border-radius: 10px;
|
|
color: var(--secondary-font-color);
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.wiki-properties-toggle-btn:hover {
|
|
background: var(--accent1);
|
|
border-color: var(--accent1);
|
|
color: white;
|
|
}
|
|
|
|
.wiki-properties-toggle-btn.active {
|
|
background: var(--accent1);
|
|
border-color: var(--accent1);
|
|
color: white;
|
|
}
|
|
|
|
/* Content Layout - Contents | Document | Properties side by side */
|
|
.wiki-content-layout {
|
|
display: flex;
|
|
flex: 1;
|
|
min-height: 0;
|
|
position: relative;
|
|
}
|
|
|
|
/* Contents Panel (inside content area, left side) */
|
|
.wiki-contents-panel {
|
|
width: 320px;
|
|
flex-shrink: 0;
|
|
padding: 20px;
|
|
border-right: 1px solid var(--main-border-color);
|
|
overflow-y: auto;
|
|
transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
|
|
}
|
|
|
|
.wiki-contents-panel.collapsed {
|
|
width: 0;
|
|
padding: 0;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
border-right: none;
|
|
}
|
|
|
|
.wiki-panel-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--main-border-color);
|
|
}
|
|
|
|
.wiki-panel-header .widgettitle {
|
|
margin: 0;
|
|
padding: 0;
|
|
border-bottom: none;
|
|
}
|
|
|
|
/* Panel Toggle Buttons (caret buttons to show collapsed panels) */
|
|
.wiki-panel-toggle {
|
|
position: absolute;
|
|
top: 20px;
|
|
width: 24px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--layered-background);
|
|
border: 1px solid var(--main-border-color);
|
|
color: var(--secondary-font-color);
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
transition: all 0.15s ease, opacity 0.25s ease;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.wiki-panel-toggle.left {
|
|
left: 0;
|
|
border-radius: 0 8px 8px 0;
|
|
border-left: none;
|
|
}
|
|
|
|
.wiki-panel-toggle.right {
|
|
right: 0;
|
|
border-radius: 8px 0 0 8px;
|
|
border-right: none;
|
|
}
|
|
|
|
.wiki-panel-toggle.visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.wiki-panel-toggle:hover {
|
|
background: var(--accent1);
|
|
border-color: var(--accent1);
|
|
color: white;
|
|
}
|
|
|
|
.wiki-content-inner {
|
|
flex: 1;
|
|
padding: 32px 48px;
|
|
max-width: 100%;
|
|
overflow-y: auto;
|
|
position: relative;
|
|
}
|
|
|
|
/* Properties Panel (inside content area) */
|
|
.wiki-properties-panel {
|
|
width: 280px;
|
|
flex-shrink: 0;
|
|
padding: 20px 24px 20px 20px;
|
|
border-left: 1px solid var(--main-border-color);
|
|
overflow: hidden;
|
|
transition: width 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.wiki-properties-panel.collapsed {
|
|
width: 0;
|
|
padding: 0;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
border-left: none;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Document Header
|
|
========================================================================== */
|
|
|
|
.wiki-document-header {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
|
|
|
|
/* Tags Input */
|
|
.wiki-tags-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.wiki-document-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 16px;
|
|
font-size: var(--base-font-size);
|
|
color: var(--secondary-font-color);
|
|
}
|
|
|
|
.wiki-document-meta-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.wiki-document-meta-item i {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.wiki-document-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.wiki-document-tag {
|
|
display: inline-block;
|
|
padding: 4px 12px;
|
|
background: var(--layered-background);
|
|
border-radius: 16px;
|
|
font-size: var(--font-size-s);
|
|
color: var(--primary-font-color);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Document Body - Typography & Content
|
|
========================================================================== */
|
|
|
|
.wiki-document {
|
|
font-family: var(--primary-font-family);
|
|
font-size: var(--font-size-l);
|
|
line-height: 1.75;
|
|
color: var(--primary-font-color);
|
|
max-width: 900px;
|
|
}
|
|
|
|
/* Headings */
|
|
.wiki-document h1 {
|
|
font-size: 1.875em;
|
|
font-weight: 700;
|
|
margin: 1.5em 0 0.5em;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.wiki-document h2 {
|
|
font-size: 1.5em;
|
|
font-weight: 600;
|
|
margin: 1.4em 0 0.5em;
|
|
letter-spacing: -0.01em;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
.wiki-document h3 {
|
|
font-size: 1.25em;
|
|
font-weight: 600;
|
|
margin: 1.3em 0 0.4em;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.wiki-document h4 {
|
|
font-size: 1.1em;
|
|
font-weight: 600;
|
|
margin: 1.2em 0 0.4em;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.wiki-document h1:first-child,
|
|
.wiki-document h2:first-child,
|
|
.wiki-document h3:first-child,
|
|
.wiki-document h4:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* Paragraphs */
|
|
.wiki-document p {
|
|
margin: 0 0 1em;
|
|
}
|
|
|
|
.wiki-document p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Links */
|
|
.wiki-document a {
|
|
color: var(--accent1);
|
|
text-decoration: none;
|
|
border-bottom: 1px solid transparent;
|
|
transition: border-color 0.15s ease;
|
|
}
|
|
|
|
.wiki-document a:hover {
|
|
border-bottom-color: var(--accent1);
|
|
}
|
|
|
|
/* Lists */
|
|
.wiki-document ul,
|
|
.wiki-document ol {
|
|
margin: 0 0 1em;
|
|
padding-left: 1.5em;
|
|
}
|
|
|
|
.wiki-document li {
|
|
margin-bottom: 0.35em;
|
|
}
|
|
|
|
.wiki-document li:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Task Lists */
|
|
.wiki-document ul[data-type="taskList"] {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
}
|
|
|
|
.wiki-document ul[data-type="taskList"] li {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.wiki-document ul[data-type="taskList"] li label {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0;
|
|
}
|
|
|
|
.wiki-document ul[data-type="taskList"] input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
margin: 2px 0 0 0;
|
|
cursor: pointer;
|
|
accent-color: var(--accent1);
|
|
}
|
|
|
|
.wiki-document ul[data-type="taskList"] li[data-checked="true"] > div {
|
|
text-decoration: line-through;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Blockquotes */
|
|
.wiki-document blockquote {
|
|
margin: 1em 0;
|
|
padding: 16px 20px;
|
|
border-left: 3px solid var(--accent1);
|
|
background: var(--layered-background);
|
|
border-radius: 4px 16px 16px 4px;
|
|
font-style: italic;
|
|
color: var(--secondary-font-color);
|
|
}
|
|
|
|
.wiki-document blockquote p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* Code */
|
|
.wiki-document code {
|
|
font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;
|
|
font-size: 0.9em;
|
|
padding: 2px 6px;
|
|
background: var(--layered-background);
|
|
border-radius: 4px;
|
|
color: var(--accent1);
|
|
}
|
|
|
|
.wiki-document pre {
|
|
margin: 1em 0;
|
|
padding: 16px 20px;
|
|
background: var(--layered-background);
|
|
border-radius: 16px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.wiki-document pre code {
|
|
padding: 0;
|
|
background: none;
|
|
color: inherit;
|
|
font-size: 0.875em;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Tables */
|
|
.wiki-document table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
margin: 1em 0;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.wiki-document th,
|
|
.wiki-document td {
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
border: 1px solid var(--main-border-color);
|
|
}
|
|
|
|
.wiki-document th {
|
|
background: var(--layered-background);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.wiki-document tr:hover td {
|
|
background: var(--layered-background);
|
|
}
|
|
|
|
/* Images */
|
|
.wiki-document img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
border-radius: 16px;
|
|
margin: 1em 0;
|
|
}
|
|
|
|
/* Horizontal Rule */
|
|
.wiki-document hr {
|
|
border: none;
|
|
height: 1px;
|
|
background: var(--main-border-color);
|
|
margin: 2em 0;
|
|
}
|
|
|
|
/* Highlight/Mark */
|
|
.wiki-document mark {
|
|
background: rgba(255, 230, 0, 0.4);
|
|
padding: 1px 4px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Edit Mode Styling
|
|
========================================================================== */
|
|
|
|
.wiki-document-wrapper {
|
|
position: relative;
|
|
min-height: 200px;
|
|
}
|
|
|
|
/* Read mode - show text cursor to indicate editable */
|
|
.wiki-document-wrapper:not(.editing) {
|
|
cursor: text;
|
|
}
|
|
|
|
.wiki-document-wrapper:not(.editing):hover::after {
|
|
content: 'Click to edit';
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
padding: 4px 10px;
|
|
background: var(--layered-background);
|
|
border-radius: 8px;
|
|
font-size: 11px;
|
|
color: var(--secondary-font-color);
|
|
opacity: 0.8;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.wiki-document-wrapper.editing {
|
|
/* Subtle indication without heavy outlines */
|
|
}
|
|
|
|
.wiki-document-wrapper .tiptap-wrapper {
|
|
margin: 0;
|
|
border: 1px solid var(--main-border-color);
|
|
border-radius: 12px;
|
|
background: var(--secondary-background);
|
|
}
|
|
|
|
.wiki-document-wrapper .tiptap-toolbar {
|
|
position: sticky;
|
|
top: 70px;
|
|
z-index: 10;
|
|
margin: 0 !important;
|
|
padding: 10px 16px !important;
|
|
background: var(--layered-background) !important;
|
|
border: none !important;
|
|
border-bottom: 1px solid var(--main-border-color) !important;
|
|
border-radius: 11px 11px 0 0 !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.wiki-document-wrapper .tiptap-editor {
|
|
padding: 20px !important;
|
|
background: transparent !important;
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.wiki-document-wrapper .tiptap-editor .ProseMirror {
|
|
padding: 0;
|
|
min-height: 200px;
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.wiki-document-wrapper .tiptap-editor .ProseMirror:focus {
|
|
outline: none;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
/* Hidden textarea */
|
|
.wiki-editor-textarea {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Edit indicator */
|
|
.wiki-edit-indicator {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
background: var(--layered-background);
|
|
border: 1px solid var(--main-border-color);
|
|
border-radius: 20px;
|
|
font-size: var(--base-font-size);
|
|
color: var(--primary-font-color);
|
|
z-index: 100;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.wiki-edit-indicator.editing {
|
|
background: var(--accent1);
|
|
border-color: var(--accent1);
|
|
color: white;
|
|
}
|
|
|
|
.wiki-edit-indicator.saving {
|
|
background: var(--layered-background);
|
|
color: var(--accent1);
|
|
}
|
|
|
|
.wiki-edit-indicator.saved {
|
|
background: var(--green-bg, rgba(40, 167, 69, 0.15));
|
|
border-color: var(--green, #28a745);
|
|
color: var(--green, #28a745);
|
|
}
|
|
|
|
.wiki-edit-indicator.error {
|
|
background: var(--red-bg, rgba(220, 53, 69, 0.15));
|
|
border-color: var(--red, #dc3545);
|
|
color: var(--red, #dc3545);
|
|
}
|
|
|
|
.wiki-edit-indicator.saved {
|
|
color: var(--green);
|
|
}
|
|
|
|
.wiki-edit-indicator i {
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Properties Panel Styling
|
|
========================================================================== */
|
|
|
|
.wiki-properties-section {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.wiki-properties-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.wiki-activity-section .widgettitle {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.wiki-properties-section .form-group {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.wiki-properties-section .control-label {
|
|
font-size: var(--base-font-size);
|
|
font-weight: bold;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
/* Author with Avatar */
|
|
.wiki-author {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.wiki-author-avatar {
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: 50%;
|
|
background: var(--accent1);
|
|
color: white;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
|
|
|
|
/* Actions Section */
|
|
.wiki-actions-section {
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--main-border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.wiki-action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 14px;
|
|
border-radius: 12px;
|
|
font-size: var(--base-font-size);
|
|
font-weight: 500;
|
|
text-decoration: none;
|
|
color: var(--primary-font-color);
|
|
background: transparent;
|
|
border: none;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.wiki-action-btn:hover {
|
|
background: var(--layered-background);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.wiki-action-btn.delete {
|
|
color: var(--red, #dc3545);
|
|
}
|
|
|
|
.wiki-action-btn.delete:hover {
|
|
background: var(--red-bg, rgba(220, 53, 69, 0.1));
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Activity Feed
|
|
========================================================================== */
|
|
|
|
/* Activity section grows to fill available space */
|
|
.wiki-activity-section {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#wikiActivityContainer {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.wiki-activity-feed {
|
|
/* Content rendered inside #wikiActivityContainer via HTMX */
|
|
}
|
|
|
|
/* Delete button pinned to bottom */
|
|
.wiki-properties-footer {
|
|
margin-top: auto;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--main-border-color);
|
|
}
|
|
|
|
.wiki-activity-item {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--neutral);
|
|
font-size: var(--base-font-size);
|
|
}
|
|
|
|
.wiki-activity-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.wiki-activity-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: var(--layered-background);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
color: var(--secondary-font-color);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.wiki-activity-icon.edit {
|
|
background: var(--blue-bg, rgba(0, 123, 255, 0.1));
|
|
color: var(--accent1);
|
|
}
|
|
|
|
.wiki-activity-icon.comment {
|
|
background: var(--green-bg, rgba(40, 167, 69, 0.1));
|
|
color: var(--green);
|
|
}
|
|
|
|
.wiki-activity-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.wiki-activity-text {
|
|
color: var(--primary-font-color);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.wiki-activity-text strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.wiki-activity-icon.status {
|
|
background: var(--yellow-bg, rgba(255, 193, 7, 0.1));
|
|
color: var(--yellow, #e0a800);
|
|
}
|
|
|
|
.wiki-activity-time {
|
|
color: var(--secondary-font-color);
|
|
font-size: var(--font-size-xs);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.wiki-activity-detail {
|
|
color: var(--secondary-font-color);
|
|
font-style: italic;
|
|
}
|
|
|
|
.wiki-activity-loading {
|
|
padding: 16px 0;
|
|
text-align: center;
|
|
color: var(--secondary-font-color);
|
|
font-size: var(--base-font-size);
|
|
}
|
|
|
|
.wiki-activity-empty {
|
|
padding: 16px 0;
|
|
text-align: center;
|
|
color: var(--secondary-font-color);
|
|
font-size: var(--base-font-size);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Tree Navigation Enhancements
|
|
========================================================================== */
|
|
|
|
.wiki-tree {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.wiki-tree ul {
|
|
margin: 0;
|
|
padding: 0 0 0 16px;
|
|
list-style: none;
|
|
}
|
|
|
|
.wiki-tree-item {
|
|
margin: 2px 0;
|
|
}
|
|
|
|
.wiki-tree-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 12px;
|
|
border-radius: 12px;
|
|
color: var(--primary-font-color);
|
|
text-decoration: none;
|
|
font-size: var(--base-font-size);
|
|
transition: background 0.15s ease;
|
|
}
|
|
|
|
.wiki-tree-link:hover {
|
|
background: var(--secondary-background);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.wiki-tree-link.active {
|
|
background: var(--accent1);
|
|
color: white;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.wiki-tree-link i {
|
|
font-size: 14px;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.wiki-tree-link.active i {
|
|
opacity: 1;
|
|
}
|
|
|
|
.wiki-tree-draft {
|
|
font-size: var(--font-size-xs);
|
|
color: var(--secondary-font-color);
|
|
font-style: italic;
|
|
}
|
|
|
|
.wiki-tree-link.active .wiki-tree-draft,
|
|
.dropdown-menu > li > a.active .wiki-tree-draft,
|
|
.dropdown-menu > li > a:hover .wiki-tree-draft {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
/* Create Article Button */
|
|
.wiki-create-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 10px 14px;
|
|
margin-top: 16px;
|
|
border-radius: 14px;
|
|
background: transparent;
|
|
border: 1px dashed var(--main-border-color);
|
|
color: var(--secondary-font-color);
|
|
font-size: var(--base-font-size);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.wiki-create-btn:hover {
|
|
border-color: var(--accent1);
|
|
color: var(--accent1);
|
|
background: var(--secondary-background);
|
|
border-radius: 14px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Properties Toggle Button
|
|
========================================================================== */
|
|
|
|
.wiki-header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.wiki-properties-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 12px;
|
|
background: var(--layered-background);
|
|
border: 1px solid var(--main-border-color);
|
|
color: var(--secondary-font-color);
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
|
|
.wiki-properties-toggle:hover {
|
|
background: var(--accent1);
|
|
border-color: var(--accent1);
|
|
color: white;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.wiki-properties-toggle.active {
|
|
background: var(--accent1);
|
|
border-color: var(--accent1);
|
|
color: white;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Milestone Card (in document area)
|
|
========================================================================== */
|
|
|
|
.wiki-milestone-card {
|
|
margin-top: 32px;
|
|
padding: 0;
|
|
border: none;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
}
|
|
|
|
.wiki-milestone-card .milestonContainer,
|
|
.wiki-milestone-card .milestoneCard {
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Comments Section
|
|
========================================================================== */
|
|
|
|
.wiki-comments-section {
|
|
margin-top: 48px;
|
|
padding-top: 32px;
|
|
border-top: 1px solid var(--main-border-color);
|
|
}
|
|
|
|
.wiki-comments-section .widgettitle {
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Empty State
|
|
========================================================================== */
|
|
|
|
.wiki-empty-state {
|
|
text-align: center;
|
|
padding: 60px 24px;
|
|
color: var(--secondary-font-color);
|
|
}
|
|
|
|
.wiki-empty-state-icon {
|
|
width: 120px;
|
|
height: 120px;
|
|
margin: 0 auto 24px;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.wiki-empty-state-title {
|
|
font-size: var(--font-size-xl);
|
|
font-weight: 600;
|
|
color: var(--primary-font-color);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.wiki-empty-state-text {
|
|
margin-bottom: 24px;
|
|
font-size: var(--base-font-size);
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Responsive Design
|
|
========================================================================== */
|
|
|
|
/* Large screens - slightly smaller panels */
|
|
@media (max-width: 1400px) {
|
|
.wiki-properties-panel {
|
|
width: 240px;
|
|
}
|
|
|
|
.wiki-contents-panel {
|
|
width: 280px;
|
|
}
|
|
|
|
.wiki-content-inner {
|
|
padding: 28px 36px;
|
|
}
|
|
}
|
|
|
|
/* Medium screens (12-13" laptops) - auto-collapse both panels */
|
|
@media (max-width: 1280px) {
|
|
/* Auto-collapse contents panel */
|
|
.wiki-contents-panel {
|
|
width: 0;
|
|
padding: 0;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
border-right: none;
|
|
}
|
|
|
|
.wiki-panel-toggle.left {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
/* Auto-collapse properties panel */
|
|
.wiki-properties-panel {
|
|
width: 0;
|
|
padding: 0;
|
|
opacity: 0;
|
|
overflow: hidden;
|
|
border-left: none;
|
|
}
|
|
|
|
.wiki-panel-toggle.right {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.wiki-content-inner {
|
|
padding: 24px 32px;
|
|
}
|
|
|
|
}
|
|
|
|
/* Small-medium screens - overlay panels when shown */
|
|
@media (max-width: 1200px) {
|
|
/* Contents panel as overlay */
|
|
.wiki-contents-panel:not(.collapsed) {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 280px;
|
|
padding: 20px;
|
|
opacity: 1;
|
|
background: var(--secondary-background);
|
|
border-right: 1px solid var(--main-border-color);
|
|
box-shadow: var(--large-shadow);
|
|
z-index: 20;
|
|
}
|
|
|
|
/* Properties panel as overlay */
|
|
.wiki-properties-panel:not(.collapsed) {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 260px;
|
|
padding: 20px;
|
|
opacity: 1;
|
|
background: var(--secondary-background);
|
|
border-left: 1px solid var(--main-border-color);
|
|
box-shadow: var(--large-shadow);
|
|
z-index: 20;
|
|
}
|
|
}
|
|
|
|
/* Small screens - stack layout */
|
|
@media (max-width: 992px) {
|
|
.wiki-layout {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.wiki-sidebar {
|
|
width: auto;
|
|
max-width: none;
|
|
height: auto;
|
|
position: relative;
|
|
top: 0;
|
|
margin: 12px;
|
|
padding: 16px;
|
|
border-radius: var(--box-radius-large, 20px);
|
|
}
|
|
|
|
.wiki-content {
|
|
margin: 0 12px 12px;
|
|
}
|
|
|
|
.wiki-content-inner {
|
|
padding: 20px;
|
|
}
|
|
|
|
.wiki-document-wrapper .tiptap-wrapper {
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.wiki-document-wrapper .tiptap-editor {
|
|
padding: 12px 16px;
|
|
}
|
|
|
|
}
|
|
|
|
/* ==========================================================================
|
|
Dark Mode Adjustments
|
|
========================================================================== */
|
|
|
|
[data-theme="dark"] .wiki-document code {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
[data-theme="dark"] .wiki-document pre {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
[data-theme="dark"] .wiki-document mark {
|
|
background: rgba(255, 230, 0, 0.3);
|
|
}
|
|
|
|
/* Dark mode status colors handled by theme CSS variables */
|
|
|
|
[data-theme="dark"] .wiki-properties-panel {
|
|
box-shadow: -4px 0 16px rgba(0, 0, 0, 0.3);
|
|
}
|