Make QOffice apps standalone Office-style surfaces
This commit is contained in:
+315
-185
@@ -37,7 +37,7 @@ body,
|
||||
}
|
||||
|
||||
body {
|
||||
overflow: hidden;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
button,
|
||||
@@ -54,96 +54,14 @@ button {
|
||||
|
||||
.qoffice-shell {
|
||||
display: grid;
|
||||
grid-template-columns: 116px minmax(0, 1fr);
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
overflow: hidden;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.app-rail {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
border-right: 1px solid var(--line);
|
||||
background: #fbfcfe;
|
||||
}
|
||||
|
||||
.brand {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 52px;
|
||||
padding: 0 18px;
|
||||
color: #0e5da8;
|
||||
font-size: 18px;
|
||||
font-weight: 760;
|
||||
}
|
||||
|
||||
.app-nav {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 14px 8px;
|
||||
}
|
||||
|
||||
.app-nav-item {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
justify-items: center;
|
||||
gap: 7px;
|
||||
min-height: 84px;
|
||||
padding: 10px 6px;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 7px;
|
||||
background: transparent;
|
||||
color: #334155;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.app-nav-item span:last-child {
|
||||
max-width: 96px;
|
||||
overflow-wrap: anywhere;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.app-nav-item:hover,
|
||||
.app-nav-item.is-active {
|
||||
border-color: #c7d8eb;
|
||||
background: #edf6ff;
|
||||
}
|
||||
|
||||
.app-icon {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 7px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.accent-word .app-icon {
|
||||
background: var(--word);
|
||||
}
|
||||
|
||||
.accent-sheets .app-icon {
|
||||
background: var(--sheets);
|
||||
}
|
||||
|
||||
.accent-slides .app-icon {
|
||||
background: var(--slides);
|
||||
}
|
||||
|
||||
.accent-mail .app-icon {
|
||||
background: var(--mail);
|
||||
}
|
||||
|
||||
.rail-footer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 14px 8px 20px;
|
||||
}
|
||||
|
||||
.icon-button,
|
||||
.tool-button,
|
||||
.compact-command,
|
||||
@@ -169,34 +87,68 @@ button {
|
||||
|
||||
.workspace {
|
||||
display: grid;
|
||||
grid-template-rows: 52px 124px minmax(0, 1fr) 34px;
|
||||
grid-template-rows: 34px 36px minmax(0, 1fr) 28px;
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.titlebar {
|
||||
display: flex;
|
||||
display: grid;
|
||||
grid-template-columns: 150px minmax(0, 1fr) auto;
|
||||
position: relative;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 0 18px 0 22px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: rgba(255, 255, 255, 0.94);
|
||||
gap: 14px;
|
||||
min-height: 34px;
|
||||
padding: 0 10px;
|
||||
background: #2f5f9f;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.titlebar strong {
|
||||
display: block;
|
||||
font-size: 15px;
|
||||
font-size: 13px;
|
||||
font-weight: 650;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.titlebar span {
|
||||
color: var(--muted);
|
||||
color: rgba(255, 255, 255, 0.82);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.quick-access {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.quick-access button {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
border: 0;
|
||||
border-radius: 3px;
|
||||
background: transparent;
|
||||
color: #ffffff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.quick-access button:hover {
|
||||
background: rgba(255, 255, 255, 0.16);
|
||||
}
|
||||
|
||||
.window-title {
|
||||
justify-self: center;
|
||||
min-width: 170px;
|
||||
}
|
||||
|
||||
.titlebar-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
@@ -205,15 +157,27 @@ button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 236px;
|
||||
height: 34px;
|
||||
padding: 0 10px;
|
||||
min-width: 270px;
|
||||
height: 24px;
|
||||
padding: 0 9px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
border-radius: 0;
|
||||
background: var(--surface);
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.titlebar .command-search {
|
||||
width: min(320px, 32vw);
|
||||
min-width: 220px;
|
||||
border-color: rgba(255, 255, 255, 0.28);
|
||||
background: rgba(255, 255, 255, 0.36);
|
||||
color: #15345c;
|
||||
}
|
||||
|
||||
.titlebar .command-search input::placeholder {
|
||||
color: #15345c;
|
||||
}
|
||||
|
||||
.command-search input,
|
||||
.mail-search input {
|
||||
min-width: 0;
|
||||
@@ -223,11 +187,11 @@ button {
|
||||
}
|
||||
|
||||
.primary-command {
|
||||
height: 34px;
|
||||
height: 26px;
|
||||
padding: 0 12px;
|
||||
border-color: #0e5da8;
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
border-color: rgba(255, 255, 255, 0.55);
|
||||
background: #ffffff;
|
||||
color: #2f5f9f;
|
||||
font-weight: 650;
|
||||
}
|
||||
|
||||
@@ -246,13 +210,13 @@ button {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 36px;
|
||||
padding-left: 14px;
|
||||
padding: 0 10px 0 0;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.ribbon-tabs button {
|
||||
height: 36px;
|
||||
padding: 0 14px;
|
||||
padding: 0 13px;
|
||||
border: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
background: transparent;
|
||||
@@ -300,11 +264,20 @@ button {
|
||||
}
|
||||
|
||||
.surface-host {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
grid-template-rows: minmax(0, 1fr);
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.surface-host > * {
|
||||
min-width: 0;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.statusbar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -322,7 +295,7 @@ button {
|
||||
|
||||
.editor-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 320px;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
height: 100%;
|
||||
min-height: 0;
|
||||
}
|
||||
@@ -336,6 +309,11 @@ button {
|
||||
background: #eef3f8;
|
||||
}
|
||||
|
||||
.document-stage {
|
||||
position: relative;
|
||||
background: #dedede;
|
||||
}
|
||||
|
||||
.module-toolbar {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
@@ -384,9 +362,9 @@ button {
|
||||
}
|
||||
|
||||
.module-toolbar select,
|
||||
.inspector select,
|
||||
.inspector input,
|
||||
.inspector textarea {
|
||||
.office-workbar select,
|
||||
.office-workbar input,
|
||||
.office-workbar textarea {
|
||||
height: 34px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 6px;
|
||||
@@ -400,6 +378,84 @@ button {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.compact-command.is-active {
|
||||
border-color: var(--accent);
|
||||
background: #e8f2ff;
|
||||
color: #0f5fae;
|
||||
}
|
||||
|
||||
.toolbar-status {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 34px;
|
||||
padding: 0 10px;
|
||||
border-left: 1px solid var(--line);
|
||||
color: var(--muted);
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.office-workbar {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 0;
|
||||
overflow-x: auto;
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.office-tool-section {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 62px;
|
||||
padding: 8px 12px;
|
||||
border-right: 1px solid var(--line);
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.office-tool-title {
|
||||
align-self: end;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.office-field {
|
||||
display: inline-grid;
|
||||
gap: 2px;
|
||||
color: var(--muted);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.office-field input,
|
||||
.office-field select {
|
||||
min-width: 110px;
|
||||
}
|
||||
|
||||
.office-field-wide input {
|
||||
min-width: 190px;
|
||||
}
|
||||
|
||||
.office-check {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--text);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.office-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 28px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
background: #f8fafc;
|
||||
color: #475569;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.cell-format-tools {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -499,7 +555,7 @@ button {
|
||||
.page-ruler {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(9, 1fr);
|
||||
width: min(1000px, calc(100% - 80px));
|
||||
width: clamp(794px, calc(100% - 80px), 1000px);
|
||||
height: 26px;
|
||||
margin: 12px auto 0;
|
||||
color: #7a8797;
|
||||
@@ -511,10 +567,39 @@ button {
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
.paper {
|
||||
width: min(1000px, calc(100% - 80px));
|
||||
min-height: 1180px;
|
||||
.vertical-page-ruler {
|
||||
position: sticky;
|
||||
left: 0;
|
||||
z-index: 1;
|
||||
float: left;
|
||||
display: grid;
|
||||
grid-template-rows: repeat(19, 42px);
|
||||
width: 18px;
|
||||
min-height: 798px;
|
||||
margin-top: 0;
|
||||
border-right: 1px solid #c5cfdb;
|
||||
background: #f4f4f4;
|
||||
color: #475569;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.vertical-page-ruler span {
|
||||
border-top: 1px solid #c5cfdb;
|
||||
writing-mode: vertical-rl;
|
||||
text-align: start;
|
||||
}
|
||||
|
||||
.paper-frame {
|
||||
position: relative;
|
||||
width: clamp(794px, calc(100% - 80px), 1000px);
|
||||
margin: 0 auto 38px;
|
||||
}
|
||||
|
||||
.paper {
|
||||
--qword-page-height: 1180px;
|
||||
min-height: var(--qword-page-height);
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
padding: 72px 86px;
|
||||
border: 1px solid #c7d1dd;
|
||||
background: #ffffff;
|
||||
@@ -522,6 +607,42 @@ button {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.page-break-guides {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.page-break-guides span {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
height: 24px;
|
||||
border-top: 1px dashed #94a3b8;
|
||||
color: #64748b;
|
||||
font-size: 11px;
|
||||
transform: translateY(-12px);
|
||||
}
|
||||
|
||||
.page-break-guides span::before,
|
||||
.page-break-guides span::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 11px;
|
||||
width: calc(50% - 58px);
|
||||
border-top: 1px dashed #94a3b8;
|
||||
}
|
||||
|
||||
.page-break-guides span::before {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.page-break-guides span::after {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.document-content h1 {
|
||||
margin: 0 0 18px;
|
||||
padding-bottom: 14px;
|
||||
@@ -599,56 +720,6 @@ button {
|
||||
background: #edf2f7;
|
||||
}
|
||||
|
||||
.inspector {
|
||||
min-width: 0;
|
||||
overflow: auto;
|
||||
border-left: 1px solid var(--line);
|
||||
background: #fbfcfe;
|
||||
}
|
||||
|
||||
.inspector-tabs {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
height: 48px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.inspector-tabs button {
|
||||
border: 0;
|
||||
border-bottom: 2px solid transparent;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.inspector-tabs button.is-active {
|
||||
border-bottom-color: var(--accent);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.inspector section {
|
||||
padding: 18px 20px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.inspector h3 {
|
||||
margin: 0 0 14px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.inspector label {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
margin-bottom: 14px;
|
||||
color: #4b5563;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.inspector label span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
@@ -747,6 +818,21 @@ button {
|
||||
background: #f8fbff;
|
||||
}
|
||||
|
||||
.sheet-grid th.is-hidden-column,
|
||||
.sheet-grid th.is-hidden-row,
|
||||
.sheet-grid td.is-hidden-column,
|
||||
.sheet-grid td.is-hidden-row {
|
||||
background-image: repeating-linear-gradient(135deg, rgba(15, 95, 174, 0.08) 0 8px, transparent 8px 16px);
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.sheet-grid td.is-hidden-column input,
|
||||
.sheet-grid td.is-hidden-column textarea,
|
||||
.sheet-grid td.is-hidden-row input,
|
||||
.sheet-grid td.is-hidden-row textarea {
|
||||
color: #64748b;
|
||||
}
|
||||
|
||||
.sheet-grid td.is-linked input,
|
||||
.sheet-grid td.is-linked textarea {
|
||||
color: #0f5fae;
|
||||
@@ -914,7 +1000,7 @@ button {
|
||||
}
|
||||
|
||||
.slides-layout {
|
||||
grid-template-columns: 190px minmax(0, 1fr) 320px;
|
||||
grid-template-columns: 190px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.slide-strip {
|
||||
@@ -970,7 +1056,7 @@ button {
|
||||
|
||||
.slide-stage {
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr);
|
||||
grid-template-rows: auto auto minmax(0, 1fr);
|
||||
padding-bottom: 24px;
|
||||
}
|
||||
|
||||
@@ -1127,6 +1213,44 @@ button {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.notes-inline {
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.notes-inline .notes-field {
|
||||
width: 220px;
|
||||
min-height: 44px;
|
||||
height: 46px;
|
||||
padding: 6px 8px;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.office-workbar .slide-image-list {
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
max-width: 220px;
|
||||
overflow-x: auto;
|
||||
}
|
||||
|
||||
.office-workbar .slide-image-list button {
|
||||
min-width: 96px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.office-workbar .image-geometry-grid {
|
||||
grid-template-columns: repeat(4, 72px);
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.office-workbar .image-geometry-grid input {
|
||||
width: 72px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.office-workbar .danger-command {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.mail-layout {
|
||||
display: grid;
|
||||
grid-template-columns: 190px 360px minmax(0, 1fr);
|
||||
@@ -1409,18 +1533,17 @@ button {
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.app-rail,
|
||||
.titlebar,
|
||||
.ribbon,
|
||||
.statusbar,
|
||||
.module-toolbar,
|
||||
.inspector,
|
||||
.slide-strip,
|
||||
.mail-folders,
|
||||
.message-list-panel,
|
||||
.message-actions,
|
||||
.compose-panel,
|
||||
.page-ruler {
|
||||
.page-ruler,
|
||||
.vertical-page-ruler {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
@@ -1433,6 +1556,15 @@ button {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.paper-frame {
|
||||
width: auto;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.page-break-guides {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.slide-canvas {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
@@ -1458,11 +1590,9 @@ button {
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.qoffice-shell {
|
||||
grid-template-columns: 74px minmax(0, 1fr);
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.brand,
|
||||
.app-nav-item span:last-child,
|
||||
.ribbon,
|
||||
.command-search {
|
||||
display: none;
|
||||
@@ -1484,17 +1614,12 @@ button {
|
||||
font-size: 0;
|
||||
}
|
||||
|
||||
.app-nav-item {
|
||||
min-height: 58px;
|
||||
}
|
||||
|
||||
.editor-layout,
|
||||
.slides-layout,
|
||||
.mail-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.inspector,
|
||||
.slide-strip,
|
||||
.mail-folders,
|
||||
.message-list-panel {
|
||||
@@ -1504,21 +1629,26 @@ button {
|
||||
.document-stage,
|
||||
.spreadsheet-stage,
|
||||
.slide-stage {
|
||||
overflow-x: hidden;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.page-ruler {
|
||||
display: none;
|
||||
display: grid;
|
||||
width: 794px;
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.paper-frame {
|
||||
width: 794px;
|
||||
margin: 0 auto 32px;
|
||||
}
|
||||
|
||||
.paper {
|
||||
width: 100%;
|
||||
min-height: auto;
|
||||
margin: 0;
|
||||
padding: 40px 28px 56px;
|
||||
border-right: 0;
|
||||
border-left: 0;
|
||||
box-shadow: none;
|
||||
--qword-page-height: 1123px;
|
||||
min-height: var(--qword-page-height);
|
||||
padding: 56px 64px;
|
||||
border: 1px solid #c7d1dd;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
|
||||
.module-toolbar {
|
||||
|
||||
Reference in New Issue
Block a user