Changed everything to be box-sizing: border-box;

This commit is contained in:
the-djmaze 2022-11-21 11:00:39 +01:00
parent 2d832ff5ea
commit cb167da854
25 changed files with 37 additions and 109 deletions

View file

@ -35,15 +35,29 @@
--fontSerif: "URW Palladio L", Georgia, Times, serif; --fontSerif: "URW Palladio L", Georgia, Times, serif;
} }
*, *::before, *::after {
box-sizing: border-box;
}
html, body { html, body {
margin: 0; margin: 0;
padding: 0; padding: 0;
-webkit-text-size-adjust: 100%; /* 2 */
} }
#rl-app { #rl-app {
background-color: var(--main-bg-color, #aaa); background-color: var(--main-bg-color, #aaa);
color: var(--main-color, #333); color: var(--main-color, #333);
font-family: var(--fontSans); font-family: var(--fontSans);
-webkit-touch-callout: none;
font-size: var(--main-font-size, 14px);
line-height: 1.25; /* 1 */
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
} }
#rl-loading, #rl-loading-error { #rl-loading, #rl-loading-error {

View file

@ -57,11 +57,7 @@
@import "_End.less"; @import "_End.less";
@media print { @media print {
body, html { #rl-app, #rl-right {
height: auto;
overflow: auto;
}
body, #rl-right {
position: initial; position: initial;
} }
#rl-left { #rl-left {

View file

@ -7,12 +7,10 @@
.domain-name { .domain-name {
display: inline-block; display: inline-block;
word-break: break-all; word-break: break-all;
box-sizing: border-box;
} }
.domain-alias { .domain-alias {
display: inline-block; display: inline-block;
box-sizing: border-box;
color: #bbb; color: #bbb;
padding-left: 5px; padding-left: 5px;
} }

View file

@ -45,17 +45,15 @@
height: 100%; height: 100%;
> .b-toolbar { > .b-toolbar {
color: #fff;
display: flex;
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
left: 0; left: 0;
height: 34px;
padding: 8px @rlLowMargin 8px 0; padding: 8px @rlLowMargin 8px 0;
color: #fff;
text-shadow: 0 1px 1px #000; text-shadow: 0 1px 1px #000;
display: flex;
h4 { h4 {
flex-grow: 1; flex-grow: 1;
margin: 8px; margin: 8px;
@ -73,7 +71,6 @@
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: @rlMainShadow;
box-sizing: border-box;
height: calc(100% - 50px - @rlLowMargin - @rlLowMargin); height: calc(100% - 50px - @rlLowMargin - @rlLowMargin);
margin: (50px + @rlLowMargin) @rlLowMargin @rlLowMargin 0; margin: (50px + @rlLowMargin) @rlLowMargin @rlLowMargin 0;
overflow-y: auto; overflow-y: auto;

View file

@ -2,17 +2,6 @@
max-width: 660px; max-width: 660px;
.information {
display: inline-block;
background-color: #ddd;
border-radius: 10px;
cursor: pointer;
height: 25px;
width: 30px;
text-align: center;
padding-top: 5px;
}
textarea { textarea {
width: 400px; width: 400px;
height: 70px; height: 70px;

View file

@ -80,7 +80,6 @@
> div > div { > div > div {
position: absolute; position: absolute;
box-sizing: border-box;
margin-top: 1px; margin-top: 1px;
animation: checkmark-to-box 200ms ease-out forwards; animation: checkmark-to-box 200ms ease-out forwards;

View file

@ -6,7 +6,7 @@
display: inline-block; display: inline-block;
padding: 5px 15px; padding: 5px 15px;
margin: 2px 5px; margin: 2px 5px;
width: 180px; width: 216px;
background-color: rgba(128, 128, 128, 0.1); background-color: rgba(128, 128, 128, 0.1);
border: 1px solid transparent; border: 1px solid transparent;
border-radius: var(--input-border-radius, 3px); border-radius: var(--input-border-radius, 3px);
@ -34,8 +34,8 @@
} }
} }
@media screen and (max-width: 999px) { @media screen and (max-width: 733px) {
#V-PopupsLanguages label { #V-PopupsLanguages label {
width: calc(100% - 40px); width: 100%;
} }
} }

View file

@ -3,23 +3,6 @@
* 2. Prevent adjustments of font size after orientation changes in iOS. * 2. Prevent adjustments of font size after orientation changes in iOS.
*/ */
html, body {
height: 100%;
overflow: hidden;
-webkit-text-size-adjust: 100%; /* 2 */
}
#rl-app {
-webkit-touch-callout: none;
font-size: var(--main-font-size, 14px);
line-height: 1.25; /* 1 */
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
html.list-loading body { html.list-loading body {
/* cursor: wait;*/ /* cursor: wait;*/
cursor: progress; cursor: progress;
@ -62,7 +45,6 @@ dialog {
border: 1px solid var(--dialog-border-clr, rgba(0,0,0,.3)); border: 1px solid var(--dialog-border-clr, rgba(0,0,0,.3));
border-radius: var(--dialog-border-radius, 6px); border-radius: var(--dialog-border-radius, 6px);
box-shadow: 0 5px 80px rgba(0,0,0,0.3); box-shadow: 0 5px 80px rgba(0,0,0,0.3);
box-sizing: border-box;
color: var(--dialog-clr, #333); color: var(--dialog-clr, #333);
display: flex; display: flex;
flex-direction: column; flex-direction: column;

View file

@ -20,7 +20,6 @@
.settings-save-trigger { .settings-save-trigger {
display: inline-block; display: inline-block;
height: 1em;
line-height: 1em; line-height: 1em;
margin-left: 0.5em !important; margin-left: 0.5em !important;

View file

@ -83,7 +83,6 @@
} }
.iconMain, .iconPreview { .iconMain, .iconPreview {
box-sizing: border-box;
padding: 6px 0 0; padding: 6px 0 0;
font-size: 36px; font-size: 36px;
color: #aaa; color: #aaa;

View file

@ -19,7 +19,6 @@
} }
.textAreaParent, .attachmentAreaParent { .textAreaParent, .attachmentAreaParent {
box-sizing: border-box;
height: 100%; height: 100%;
min-height: 200px; min-height: 200px;
position: relative; position: relative;

View file

@ -3,7 +3,6 @@
border: 1px solid var(--input-border-clr, #ccc); border: 1px solid var(--input-border-clr, #ccc);
border-radius: var(--input-border-radius, 3px); border-radius: var(--input-border-radius, 3px);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075); box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
box-sizing: border-box;
color: var(--input-clr, #555); color: var(--input-clr, #555);
cursor: text; cursor: text;
font-size: 90%; font-size: 90%;

View file

@ -31,7 +31,6 @@
.b-toolbar { .b-toolbar {
top: 0; top: 0;
height: 30px;
padding: 10px 0 0 @rlLowMargin; padding: 10px 0 0 @rlLowMargin;
color: #fff; color: #fff;
z-index: 101; z-index: 101;
@ -39,7 +38,6 @@
.b-footer { .b-footer {
bottom: 10px; bottom: 10px;
height: 30px;
padding: 0 10px 0 5px; padding: 0 10px 0 5px;
z-index: 101; z-index: 101;
@ -69,7 +67,6 @@
display: block; display: block;
position: relative; position: relative;
z-index: 1; z-index: 1;
height: 34px;
line-height: 34px; line-height: 34px;
background-color: transparent; background-color: transparent;
vertical-align: middle; vertical-align: middle;
@ -222,8 +219,7 @@
max-width: -webkit-fit-content; max-width: -webkit-fit-content;
max-width: fit-content; max-width: fit-content;
overflow: hidden; overflow: hidden;
height: 19px; max-height: 2em;
padding: 4px 8px;
} }
} }

View file

@ -17,7 +17,6 @@ html.rl-no-preview-pane {
} }
#V-MailMessageList .btn-toolbar { #V-MailMessageList .btn-toolbar {
height: 30px;
padding: 10px 1px; padding: 10px 1px;
white-space: nowrap; white-space: nowrap;
} }

View file

@ -44,9 +44,8 @@ html.rl-no-preview-pane {
.b-message-view-checked-helper { .b-message-view-checked-helper {
text-align: center; text-align: center;
font-size: 70px; font-size: 70px;
line-height: 70px; padding-top: 25vh;
padding-top: 100px; opacity: 0.6;
color: #999;
} }
.b-message-view-checked-helper::after { .b-message-view-checked-helper::after {
content: ' ✉'; content: ' ✉';
@ -58,7 +57,7 @@ html.rl-no-preview-pane {
font-size: 24px; font-size: 24px;
line-height: 30px; line-height: 30px;
color: #999; color: #999;
padding: 120px 10px 0 10px; padding: 25vh 10px 0;
} }
.b-message-view-desc.error { .b-message-view-desc.error {

View file

@ -27,11 +27,13 @@
cursor: pointer; cursor: pointer;
display: block; display: block;
font-size: 18px; font-size: 18px;
height: 30px; line-height: 2em;
line-height: 29px; max-height: 2em;
overflow: hidden; overflow: hidden;
padding: 4px 10px; padding: 0 10px;
text-decoration: none; text-decoration: none;
text-overflow: ellipsis;
white-space: nowrap;
} }
a:focus, a:hover { a:focus, a:hover {
@ -54,7 +56,6 @@
top: 0; top: 0;
right: 0; right: 0;
left: 0; left: 0;
height: 34px;
padding: 8px 0; padding: 8px 0;
color: #fff; color: #fff;
} }
@ -71,7 +72,6 @@
scroll-behavior: smooth; scroll-behavior: smooth;
padding:20px; padding:20px;
box-sizing: border-box;
height: calc(100% - 50px - @rlLowMargin - @rlLowMargin); height: calc(100% - 50px - @rlLowMargin - @rlLowMargin);
background-color: var(--settings-bg-clr, #fff); background-color: var(--settings-bg-clr, #fff);

View file

@ -37,7 +37,6 @@
*/ */
.squire-wysiwyg, .squire-plain { .squire-wysiwyg, .squire-plain {
box-sizing: border-box;
font-size: 13px; font-size: 13px;
height: 100%; height: 100%;
line-height: 16px; line-height: 16px;

View file

@ -15,7 +15,6 @@
position: absolute; position: absolute;
top: 0; top: 0;
right: 0; right: 0;
height: 30px;
padding: 10px @rlLowMargin; padding: 10px @rlLowMargin;
z-index: 103; z-index: 103;
@ -33,7 +32,7 @@
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-size: 30px; font-size: 30px;
height: 30px; height: 1em;
margin-right: 10px; margin-right: 10px;
width: 1em; width: 1em;
@ -61,8 +60,7 @@
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
font-size: 16px; font-size: 16px;
height: 29px; line-height: 29px;
line-height: 30px;
max-width: 25vw; max-width: 25vw;
overflow: hidden; overflow: hidden;
padding: 1px 8px; padding: 1px 8px;

View file

@ -8,7 +8,7 @@
[class^="icon-"], [class^="icon-"],
[class*=" icon-"] { [class*=" icon-"] {
display: inline-block; display: inline-block;
width: 1em; min-width: 1em;
.disabled &, .disabled &,
.btn[disabled] & { .btn[disabled] & {
@ -35,8 +35,8 @@
.icon-spinner { .icon-spinner {
height: 0.75em; height: 1.2em;
width: 0.75em; width: 1.2em;
margin: 0 -1px; margin: 0 -1px;

View file

@ -10,32 +10,6 @@ This stylesheet is used when SnappyMail runs in embed mode.
min-height: 100%; min-height: 100%;
} }
#content[class*="app-"] #rl-app * {
box-sizing: content-box;
}
#content[class*="app-"] #rl-app #V-Settings-Domains .domain-name,
#content[class*="app-"] #rl-app #V-Settings-Domains .domain-alias
#content[class*="app-"] #rl-app #rl-settings-subscreen,
#content[class*="app-"] #rl-app .e-checkbox.material-design > div > div,
#content[class*="app-"] #rl-app .attachmentItem .iconMain,
#content[class*="app-"] #rl-app .attachmentItem .iconPreview,
#content[class*="app-"] #rl-app #V-PopupsCompose .textAreaParent,
#content[class*="app-"] #rl-app #V-PopupsCompose .attachmentAreaParent,
#content[class*="app-"] #rl-app .emailaddresses,
#content[class*="app-"] #rl-app .squire-wysiwyg,
#content[class*="app-"] #rl-app .squire-plain,
/* bootstrap */
#content[class*="app-"] #rl-app .btn-block,
#content[class*="app-"] #rl-app select,
#content[class*="app-"] #rl-app .select,
#content[class*="app-"] #rl-app textarea,
#content[class*="app-"] #rl-app input,
#content[class*="app-"] #rl-app .input-block-level,
#content[class*="app-"] #rl-app .icon-spinner,
#content[class*="app-"] #rl-app #V-AdminPane #rl-settings-subscreen
{
box-sizing: border-box;
}
.squire-wysiwyg { .squire-wysiwyg {
min-width: 100%; min-width: 100%;
min-height: 100%; min-height: 100%;
@ -78,7 +52,6 @@ This stylesheet is used when SnappyMail runs in embed mode.
} }
#rl-app .squire-plain, #rl-app .squire-wysiwyg { #rl-app .squire-plain, #rl-app .squire-wysiwyg {
box-sizing: border-box;
font-size: 13px; font-size: 13px;
height: 100%; height: 100%;
line-height: 16px; line-height: 16px;

View file

@ -3,7 +3,5 @@
</nav> </nav>
<div class="b-content show-on-panel-disabled" data-bind="click: leftPanelDisabled.toggle()"></div> <div class="b-content show-on-panel-disabled" data-bind="click: leftPanelDisabled.toggle()"></div>
<div class="b-footer"> <div class="b-footer">
<a class="btn" data-bind="click: leftPanelDisabled.toggle()"> <a class="btn" data-bind="click: leftPanelDisabled.toggle, css: {'icon-resize-out': leftPanelDisabled(), 'icon-resize-in': !leftPanelDisabled()}"></a>
<i data-bind="css: {'icon-resize-out': leftPanelDisabled(), 'icon-resize-in': !leftPanelDisabled()}"></i>
</a>
</div> </div>

View file

@ -11,8 +11,8 @@
border-radius: 3px; border-radius: 3px;
display: inline-block; display: inline-block;
padding: 4px 12px; padding: 0 12px;
line-height: 1.43em; line-height: 2em;
text-align: center; text-align: center;
vertical-align: middle; vertical-align: middle;
cursor: pointer; cursor: pointer;
@ -74,10 +74,8 @@
// Block button // Block button
.btn-block { .btn-block {
display: block; display: block;
width: 100%;
padding-left: 0; padding-left: 0;
padding-right: 0; padding-right: 0;
box-sizing: border-box;
} }

View file

@ -41,7 +41,6 @@ select,
.select, .select,
textarea, textarea,
input { input {
box-sizing: border-box;
display: inline-block; display: inline-block;
padding: 4px 6px; padding: 4px 6px;
color: var(--input-clr, #555); color: var(--input-clr, #555);

View file

@ -24,7 +24,6 @@
display: block; display: block;
width: 100%; width: 100%;
min-height: 30px; // Make inputs at least the height of their button counterpart min-height: 30px; // Make inputs at least the height of their button counterpart
box-sizing: border-box; // Makes inputs behave like true block-level elements
} }

View file

@ -71,7 +71,6 @@ hr {
margin: 1.43em 0; margin: 1.43em 0;
border: 0; border: 0;
border-bottom: 1px solid var(--hr-color, #eee); border-bottom: 1px solid var(--hr-color, #eee);
box-sizing: content-box;
height: 0; height: 0;
} }