Hopefull improved styling for Firefox mobile fixes

This commit is contained in:
the-djmaze 2023-02-05 19:45:03 +01:00
parent 07409cde50
commit 93ff3001c6
17 changed files with 88 additions and 87 deletions

View file

@ -14,7 +14,6 @@
@import "../../vendors/bootstrap/less/alerts.less"; @import "../../vendors/bootstrap/less/alerts.less";
@import "_FontasticToBoot.less"; @import "_FontasticToBoot.less";
@import "_BootstrapFix.less";
@import "Ui.less"; @import "Ui.less";
@import "Main.less"; @import "Main.less";

View file

@ -57,6 +57,7 @@ html, body {
} }
body#rl-app { body#rl-app {
height: 100vh; height: 100vh;
height: 100dvh;
overflow: hidden; overflow: hidden;
width: 100vw; width: 100vw;
} }

View file

@ -17,7 +17,6 @@
@import "../../vendors/bootstrap/less/utilities.less"; @import "../../vendors/bootstrap/less/utilities.less";
@import "_FontasticToBoot.less"; @import "_FontasticToBoot.less";
@import "_BootstrapFix.less";
@import "Ui.less"; @import "Ui.less";
@import "Main.less"; @import "Main.less";

View file

@ -1,9 +1,4 @@
#rl-content {
display:flex;
height: 100%;
}
#rl-left { #rl-left {
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;
@ -70,7 +65,7 @@
background-color: var(--settings-bg-clr, #fff); background-color: var(--settings-bg-clr, #fff);
border: 1px solid var(--border-color, #aaa); border: 1px solid var(--border-color, #aaa);
border-radius: var(--border-radius, 5px); border-radius: var(--border-radius, 5px);
box-shadow: @rlMainShadow; box-shadow: var(--smMainShadow);
height: calc(100% - @rlLowMargin - @rlLowMargin); height: calc(100% - @rlLowMargin - @rlLowMargin);
margin: 0 @rlLowMargin @rlLowMargin 0; margin: 0 @rlLowMargin @rlLowMargin 0;
overflow-y: auto; overflow-y: auto;
@ -96,7 +91,6 @@
@media screen and (max-width: 999px) { @media screen and (max-width: 999px) {
#rl-settings-subscreen { #rl-settings-subscreen {
padding: 10px; padding: 10px;
margin-right: 0;
} }
#rl-right { #rl-right {

View file

@ -1,7 +1,3 @@
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html.list-loading body { html.list-loading body {
/* cursor: wait;*/ /* cursor: wait;*/
@ -26,6 +22,10 @@ option:disabled {
-webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-tap-highlight-color: rgba(0,0,0,0);
} }
#rl-content {
display:flex;
height: 100%;
}
dialog::backdrop { dialog::backdrop {
background: rgba(0,0,0,0.5); background: rgba(0,0,0,0.5);
@ -49,7 +49,8 @@ dialog {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
margin: 10px auto; margin: 10px auto;
max-height: calc(100vh - 20px); max-height: calc(100vh - var(--smDialogShrink));
max-height: calc(100dvh - var(--smDialogShrink));
max-width: 560px; max-width: 560px;
overflow: auto; overflow: auto;
padding: 0; padding: 0;
@ -77,6 +78,7 @@ dialog:not(.animate) {
.rl-mobile dialog { .rl-mobile dialog {
margin: 0 auto; margin: 0 auto;
/* max-height: calc(100vh - 86px);*/ /* max-height: calc(100vh - 86px);*/
/* max-height: 100dvh;*/
width: 100%; width: 100%;
} }

View file

@ -142,3 +142,47 @@ tr:hover .drag-handle {
.tabs > [id^="tab"]:checked + label + .tab-content { .tabs > [id^="tab"]:checked + label + .tab-content {
visibility: visible; visibility: visible;
} }
// OTHER
.legend {
border-bottom: 1px solid var(--border-color, #ddd);
font-size: 150%;
line-height: 2.1;
margin-bottom: 1.43em;
}
summary.legend {
cursor: pointer;
}
.btn.btn-thin {
padding: 0 9px;
}
.alert a:not(.close) {
text-decoration: underline;
}
.alert.alert-info a:not(.close) {
color: var(--info-clr, #3a87ad);
}
.alert.alert-error a:not(.close) {
color: var(--error-clr, #b94a48);
}
/* mobile and tablet */
@media screen and (max-width: 999px) {
.form-horizontal {
.control-group {
> label {
text-align: left;
}
// Move over all input controls and content
> *:not(label) {
margin-left: 20px;
}
}
}
}

View file

@ -7,7 +7,8 @@
} }
#V-PopupsCompose { #V-PopupsCompose {
height: calc(100vh - 52px); height: 100vh;
height: 100dvh;
max-width: 1000px; max-width: 1000px;
width: 99%; width: 99%;

View file

@ -1,6 +1,7 @@
#V-PopupsContacts { #V-PopupsContacts {
height: 100vh;
height: 100dvh;
max-width: 900px; max-width: 900px;
min-height: 300px; min-height: 300px;
@ -13,7 +14,7 @@
.modal-body { .modal-body {
display: flex; display: flex;
height: calc(100vh - 49px); height: 100%;
padding: 0; padding: 0;
} }

View file

@ -2,21 +2,24 @@
@folderItemPadding: 7px; @folderItemPadding: 7px;
@subPadding: 15px; @subPadding: 15px;
.b-folders { #V-MailFolderList,
#V-MailFolderList .b-content {
> * { height: 100%;
position: absolute;
right: 2px;
left: 0;
} }
.b-folders {
display: flex;
flex-direction: column;
height: 100%;
padding-right: 2px;
ul { ul {
margin: 0; margin: 0;
} }
input { input {
width: calc(100% - 8px);
margin-left: 4px; margin-left: 4px;
width: calc(100% - 8px);
} }
.move-action-content-wrapper { .move-action-content-wrapper {
@ -35,24 +38,17 @@
} }
.b-toolbar { .b-toolbar {
top: 0; padding: 10px 0 10px @rlLowMargin;
padding: 10px 0 0 @rlLowMargin;
color: #fff; color: #fff;
z-index: 101;
} }
.b-footer { .b-footer {
bottom: 10px; padding: 10px @rlLowMargin;
padding: 0 10px 0 5px;
z-index: 101;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
} }
.b-content { .b-content {
bottom: 32px + @rlLowMargin + @rlBottomMargin;
top: 50px + @rlLowMargin;
overflow: hidden; overflow: hidden;
overflow-y: auto; overflow-y: auto;
min-width: 100px; min-width: 100px;

View file

@ -5,11 +5,6 @@
background-position: center; background-position: center;
} }
#rl-content {
display:flex;
height: 100%;
}
#rl-left { #rl-left {
flex-grow: 0; flex-grow: 0;
flex-shrink: 0; flex-shrink: 0;

View file

@ -7,7 +7,7 @@ html.rl-mobile, html.rl-no-preview-pane {
#V-MailMessageList.focused .messageList { #V-MailMessageList.focused .messageList {
border-color: #9d9d9d; border-color: #9d9d9d;
box-shadow: @rlMainShadow; box-shadow: var(--smMainShadow);
} }
#sort-list-dropdown-id { #sort-list-dropdown-id {

View file

@ -454,7 +454,7 @@ html.rl-no-preview-pane .messageView {
bottom: @rlBottomMargin; bottom: @rlBottomMargin;
right: @rlBottomMargin; right: @rlBottomMargin;
border: 1px solid var(--border-color, #aaa); border: 1px solid var(--border-color, #aaa);
box-shadow: @rlMainShadow; box-shadow: var(--smMainShadow);
} }
} }

View file

@ -70,7 +70,7 @@
background-color: var(--settings-bg-clr, #fff); background-color: var(--settings-bg-clr, #fff);
border: 1px solid var(--border-color, #aaa); border: 1px solid var(--border-color, #aaa);
border-radius: var(--border-radius, 5px); border-radius: var(--border-radius, 5px);
box-shadow: @rlMainShadow; box-shadow: var(--smMainShadow);
height: calc(100% - 50px - @rlLowMargin - @rlLowMargin); height: calc(100% - 50px - @rlLowMargin - @rlLowMargin);
margin: 50px @rlLowMargin @rlLowMargin 0; margin: 50px @rlLowMargin @rlLowMargin 0;
overflow-y: auto; overflow-y: auto;

View file

@ -1,42 +0,0 @@
.legend {
border-bottom: 1px solid var(--border-color, #ddd);
font-size: 150%;
line-height: 2.1;
margin-bottom: 1.43em;
}
summary.legend {
cursor: pointer;
}
.btn.btn-thin {
padding: 0 9px;
}
.alert a:not(.close) {
text-decoration: underline;
}
.alert.alert-info a:not(.close) {
color: var(--info-clr, #3a87ad);
}
.alert.alert-error a:not(.close) {
color: var(--error-clr, #b94a48);
}
/* mobile and tablet */
@media screen and (max-width: 999px) {
.form-horizontal {
.control-group {
> label {
text-align: left;
}
// Move over all input controls and content
> *:not(label) {
margin-left: 20px;
}
}
}
}

View file

@ -1,7 +1,14 @@
@rlLeftWidth: 200px; @rlLeftWidth: 200px;
@rlMainShadow: 0 2px 8px rgba(0, 0, 0, 0.2);
@rlLowMargin: 8px; @rlLowMargin: 8px;
@rlBottomMargin: 5px; @rlBottomMargin: 5px;
:root {
--rlLeftWidth: 200px;
--smDialogShrink: 20px;
--smMainShadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.rl-mobile {
/* For Firefox */
--smDialogShrink: 50px;
}

View file

@ -27,7 +27,6 @@
<ul class="b-folders-user" data-bind="template: { name: 'MailFolderListItem', foreach: folderListVisible }"></ul> <ul class="b-folders-user" data-bind="template: { name: 'MailFolderListItem', foreach: folderListVisible }"></ul>
<div class="move-action-content-wrapper" data-bind="visible: moveAction"></div> <div class="move-action-content-wrapper" data-bind="visible: moveAction"></div>
</div> </div>
<div class="b-content show-on-panel-disabled" data-bind="click: toggleLeftPanel"></div>
<div class="b-footer btn-toolbar"> <div class="b-footer btn-toolbar">
<div class="btn-group"> <div class="btn-group">
<a class="btn fontastic" data-bind="click: toggleLeftPanel, text: leftPanelDisabled() ? '' : ''"></a> <a class="btn fontastic" data-bind="click: toggleLeftPanel, text: leftPanelDisabled() ? '' : ''"></a>

View file

@ -100,4 +100,9 @@
--tab-active-bg-clr: #fff; --tab-active-bg-clr: #fff;
--tab-hover-border-clr: #eee; --tab-hover-border-clr: #eee;
--smDialogShrink: 20px;
--smMainShadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.rl-mobile {
--smDialogShrink: 50px;
} }