Merge pull request #229 from ONLYOFFICE/bugfix/layout-fixes

fix layout
This commit is contained in:
Sergey Linnik
2021-12-13 15:42:15 +03:00
committed by GitHub
23 changed files with 70 additions and 36 deletions

View File

@ -87,10 +87,6 @@
} }
@media (max-width: 1008px) { @media (max-width: 1008px) {
#portal-info {
width: 65vw;
}
.left-panel { .left-panel {
margin-left: 0; margin-left: 0;
} }
@ -312,6 +308,9 @@
.tableRow td:first-child { .tableRow td:first-child {
max-width: 17%; max-width: 17%;
} }
#portal-info {
max-width: 60vw;
}
} }
.downloadContentCellShift:after { .downloadContentCellShift:after {

View File

@ -22,6 +22,7 @@
} }
body { body {
display: inline-table;
background: #FFFFFF; background: #FFFFFF;
color: #333333; color: #333333;
font-family: Open Sans; font-family: Open Sans;
@ -98,6 +99,10 @@ header img {
width: 896px; width: 896px;
} }
#portal-info {
max-width: 65vw;
}
.portal-name { .portal-name {
color: #FF6F3D; color: #FF6F3D;
font-size: 24px; font-size: 24px;

View File

@ -139,7 +139,7 @@
<td class="section"> <td class="section">
<div class="main-panel"> <div class="main-panel">
<% var storedFiles = DocManagerHelper.GetStoredFiles(); %> <% var storedFiles = DocManagerHelper.GetStoredFiles(); %>
<div id="portal-info" style="display: <%= storedFiles.Any() ? "none" : "block" %>"> <div id="portal-info" style="display: <%= storedFiles.Any() ? "none" : "table-cell" %>">
<span class="portal-name">ONLYOFFICE Document Editors Welcome!</span> <span class="portal-name">ONLYOFFICE Document Editors Welcome!</span>
<span class="portal-descr"> <span class="portal-descr">
Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors. Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.

View File

@ -87,10 +87,6 @@
} }
@media (max-width: 1008px) { @media (max-width: 1008px) {
#portal-info {
width: 65vw;
}
.left-panel { .left-panel {
margin-left: 0; margin-left: 0;
} }
@ -312,6 +308,9 @@
.tableRow td:first-child { .tableRow td:first-child {
max-width: 17%; max-width: 17%;
} }
#portal-info {
max-width: 60vw;
}
} }
.downloadContentCellShift:after { .downloadContentCellShift:after {

View File

@ -22,6 +22,7 @@ html {
} }
body { body {
display: inline-table;
background: #FFFFFF; background: #FFFFFF;
color: #333333; color: #333333;
font-family: Open Sans; font-family: Open Sans;
@ -98,6 +99,10 @@ header img {
width: 896px; width: 896px;
} }
#portal-info {
max-width: 65vw;
}
.portal-name { .portal-name {
color: #FF6F3D; color: #FF6F3D;
font-size: 24px; font-size: 24px;

View File

@ -140,7 +140,7 @@
<td class="section"> <td class="section">
<% var storedFiles = GetStoredFiles(); %> <% var storedFiles = GetStoredFiles(); %>
<div class="main-panel"> <div class="main-panel">
<div id="portal-info" style="display: <%= storedFiles.Any() ? "none" : "block" %>"> <div id="portal-info" style="display: <%= storedFiles.Any() ? "none" : "table-cell" %>">
<span class="portal-name">ONLYOFFICE Document Editors Welcome!</span> <span class="portal-name">ONLYOFFICE Document Editors Welcome!</span>
<span class="portal-descr"> <span class="portal-descr">
Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors. Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.

View File

@ -98,6 +98,10 @@ header img {
width: 896px; width: 896px;
} }
#portal-info {
max-width: 65vw;
}
.portal-name { .portal-name {
color: #FF6F3D; color: #FF6F3D;
font-size: 24px; font-size: 24px;

View File

@ -127,7 +127,7 @@
</td> </td>
<td class="section"> <td class="section">
<div class="main-panel"> <div class="main-panel">
<div id="portal-info" th:attr="tooltip=${tooltip}" th:style="${not #lists.isEmpty(files)} ? 'display: none' : 'display: block' "> <div id="portal-info" th:attr="tooltip=${tooltip}" th:style="${not #lists.isEmpty(files)} ? 'display: none' : 'display: table-cell' ">
<span class="portal-name">ONLYOFFICE Document Editors Welcome!</span> <span class="portal-name">ONLYOFFICE Document Editors Welcome!</span>
<span class="portal-descr"> <span class="portal-descr">
Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors. Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.

View File

@ -86,10 +86,6 @@
} }
@media (max-width: 1008px) { @media (max-width: 1008px) {
#portal-info {
width: 65vw;
}
.left-panel { .left-panel {
margin-left: 0; margin-left: 0;
} }
@ -299,6 +295,9 @@
.tableRow td:first-child { .tableRow td:first-child {
max-width: 17%; max-width: 17%;
} }
#portal-info {
max-width: 60vw;
}
} }
.downloadContentCellShift:after { .downloadContentCellShift:after {

View File

@ -22,6 +22,7 @@ html {
} }
body { body {
display: inline-table;
background: #FFFFFF; background: #FFFFFF;
color: #333333; color: #333333;
font-family: Open Sans; font-family: Open Sans;
@ -98,6 +99,10 @@ header img {
width: 896px; width: 896px;
} }
#portal-info {
max-width: 65vw;
}
.portal-name { .portal-name {
color: #FF6F3D; color: #FF6F3D;
font-size: 24px; font-size: 24px;

View File

@ -139,7 +139,7 @@
<% DocumentManager.Init(request, response); %> <% DocumentManager.Init(request, response); %>
<% File[] files = DocumentManager.GetStoredFiles(null); %> <% File[] files = DocumentManager.GetStoredFiles(null); %>
<div class="main-panel"> <div class="main-panel">
<div id="portal-info" style="display: <%= files.length > 0 ? "none" : "block" %>"> <div id="portal-info" style="display: <%= files.length > 0 ? "none" : "table-cell" %>">
<span class="portal-name">ONLYOFFICE Document Editors Welcome!</span> <span class="portal-name">ONLYOFFICE Document Editors Welcome!</span>
<span class="portal-descr"> <span class="portal-descr">
Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors. Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.

View File

@ -87,10 +87,6 @@
} }
@media (max-width: 1008px) { @media (max-width: 1008px) {
#portal-info {
width: 65vw;
}
.left-panel { .left-panel {
margin-left: 0; margin-left: 0;
} }
@ -312,6 +308,9 @@
.tableRow td:first-child { .tableRow td:first-child {
max-width: 17%; max-width: 17%;
} }
#portal-info {
max-width: 60vw;
}
} }
.downloadContentCellShift:after { .downloadContentCellShift:after {

View File

@ -97,6 +97,10 @@ header img {
width: 896px; width: 896px;
} }
#portal-info {
max-width: 65vw;
}
.portal-name { .portal-name {
color: #FF6F3D; color: #FF6F3D;
font-size: 24px; font-size: 24px;

View File

@ -133,7 +133,7 @@
</td> </td>
<td class="section"> <td class="section">
<div class="main-panel"> <div class="main-panel">
<div id="portal-info" style="display: <%= storedFiles.length > 0 ? "none" : "block" %>"> <div id="portal-info" style="display: <%= storedFiles.length > 0 ? "none" : "table-cell" %>">
<span class="portal-name">ONLYOFFICE Document Editors Welcome!</span> <span class="portal-name">ONLYOFFICE Document Editors Welcome!</span>
<span class="portal-descr"> <span class="portal-descr">
Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors. Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.

View File

@ -87,10 +87,6 @@
} }
@media (max-width: 1008px) { @media (max-width: 1008px) {
#portal-info {
width: 65vw;
}
.left-panel { .left-panel {
margin-left: 0; margin-left: 0;
} }
@ -312,6 +308,10 @@
.tableRow td:first-child { .tableRow td:first-child {
max-width: 17%; max-width: 17%;
} }
#portal-info {
max-width: 60vw;
}
} }
.downloadContentCellShift:after { .downloadContentCellShift:after {

View File

@ -22,6 +22,7 @@ html {
} }
body { body {
display: inline-table;
background: #FFFFFF; background: #FFFFFF;
color: #333333; color: #333333;
font-family: Open Sans; font-family: Open Sans;
@ -97,6 +98,10 @@ header img {
width: 896px; width: 896px;
} }
#portal-info {
max-width: 65vw;
}
.portal-name { .portal-name {
color: #FF6F3D; color: #FF6F3D;
font-size: 24px; font-size: 24px;

View File

@ -144,7 +144,7 @@
if (!empty($storedFiles)): ?> if (!empty($storedFiles)): ?>
<div id="portal-info" style="display: none"> <div id="portal-info" style="display: none">
<?php else: ?> <?php else: ?>
<div id="portal-info" style="display: block"> <div id="portal-info" style="display: table-cell">
<?php endif; ?> <?php endif; ?>
<span class="portal-name">ONLYOFFICE Document Editors Welcome!</span> <span class="portal-name">ONLYOFFICE Document Editors Welcome!</span>
<span class="portal-descr"> <span class="portal-descr">

View File

@ -87,10 +87,6 @@
} }
@media (max-width: 1008px) { @media (max-width: 1008px) {
#portal-info {
width: 65vw;
}
.left-panel { .left-panel {
margin-left: 0; margin-left: 0;
} }
@ -312,6 +308,10 @@
.tableRow td:first-child { .tableRow td:first-child {
max-width: 17%; max-width: 17%;
} }
#portal-info {
max-width: 60vw;
}
} }
.downloadContentCellShift:after { .downloadContentCellShift:after {

View File

@ -30,6 +30,7 @@ html {
} }
body { body {
display: inline-table;
background: #FFFFFF; background: #FFFFFF;
color: #333333; color: #333333;
font-family: Open Sans; font-family: Open Sans;
@ -106,6 +107,10 @@ header img {
width: 896px; width: 896px;
} }
#portal-info {
max-width: 65vw;
}
.portal-name { .portal-name {
color: #FF6F3D; color: #FF6F3D;
font-size: 24px; font-size: 24px;

View File

@ -113,7 +113,7 @@
{% if files %} {% if files %}
<div id="portal-info" style="display: none"> <div id="portal-info" style="display: none">
{% else %} {% else %}
<div id="portal-info" style="display: block"> <div id="portal-info" style="display: table-cell">
{% endif %} {% endif %}
<span class="portal-name">ONLYOFFICE Document Editors Welcome!</span> <span class="portal-name">ONLYOFFICE Document Editors Welcome!</span>
<span class="portal-descr"> <span class="portal-descr">

View File

@ -87,10 +87,6 @@
} }
@media (max-width: 1008px) { @media (max-width: 1008px) {
#portal-info {
width: 65vw;
}
.left-panel { .left-panel {
margin-left: 0; margin-left: 0;
} }
@ -312,6 +308,10 @@
.tableRow td:first-child { .tableRow td:first-child {
max-width: 17%; max-width: 17%;
} }
#portal-info {
max-width: 60vw;
}
} }
.downloadContentCellShift:after { .downloadContentCellShift:after {

View File

@ -22,6 +22,7 @@ html {
} }
body { body {
display: inline-table;
background: #FFFFFF; background: #FFFFFF;
color: #333333; color: #333333;
font-family: Open Sans; font-family: Open Sans;
@ -98,6 +99,10 @@ header img {
width: 896px; width: 896px;
} }
#portal-info {
max-width: 65vw;
}
.portal-name { .portal-name {
color: #FF6F3D; color: #FF6F3D;
font-size: 24px; font-size: 24px;

View File

@ -117,7 +117,7 @@
docs = DocumentHelper.get_stored_files(nil) docs = DocumentHelper.get_stored_files(nil)
%> %>
<div class="main-panel"> <div class="main-panel">
<div id="portal-info" style="display: <%= docs.length > 0 ? "none" : "block" %>"> <div id="portal-info" style="display: <%= docs.length > 0 ? "none" : "table-cell" %>">
<span class="portal-name">ONLYOFFICE Document Editors Welcome!</span> <span class="portal-name">ONLYOFFICE Document Editors Welcome!</span>
<span class="portal-descr"> <span class="portal-descr">
Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors. Get started with a demo-sample of ONLYOFFICE Document Editors, the first html5-based editors.