Reduce CSS footprint

This commit is contained in:
djmaze 2021-03-08 17:23:21 +01:00
parent 4570b87232
commit ab9e56f8b6
18 changed files with 222 additions and 249 deletions

View file

@ -1,6 +1,4 @@
#rl-popups { .b-account-add-content {
.b-account-add-content { .modal-header {
.modal-header {
}
} }
} }

View file

@ -2,10 +2,10 @@
&.modal { &.modal {
width: 660px; width: 660px;
}
.modal-body { .modal-body {
overflow: auto; overflow: auto;
}
} }
.information { .information {

View file

@ -1,13 +1,11 @@
#rl-popups { .b-advanced-search-content {
.b-advanced-search-content { &.modal {
&.modal { width: 780px;
width: 780px; }
.control-label { .control-label {
width: 110px; width: 110px;
} }
.span4 { .span4 {
width: 360px; width: 360px;
}
}
} }
} }

View file

@ -1,12 +1,10 @@
#rl-popups { .b-ask-content {
.b-ask-content {
.modal-body { .modal-body {
text-align: center; text-align: center;
} }
.desc-place { .desc-place {
font-size: 18px; font-size: 18px;
}
} }
} }

View file

@ -5,10 +5,10 @@
width: 98%; width: 98%;
max-width: 1000px; max-width: 1000px;
min-height: calc(100% - 52px); min-height: calc(100% - 52px);
}
.modal-body { .modal-body {
padding: 0; padding: 0;
}
} }
.textAreaParent, .attachmentAreaParent { .textAreaParent, .attachmentAreaParent {

View file

@ -25,13 +25,12 @@
max-width: 900px; max-width: 900px;
min-height: 300px; min-height: 300px;
max-height: 700px; max-height: 700px;
}
.modal-body { .modal-body {
overflow: auto; overflow: auto;
height: calc(100% - 49px); height: calc(100% - 49px);
padding: 0; padding: 0;
}
} }
.b-list-toolbar { .b-list-toolbar {

View file

@ -1,15 +1,13 @@
#rl-popups { .b-filter-content {
.b-filter-content {
width: 750px; width: 750px;
.button-delete { .button-delete {
cursor: pointer; cursor: pointer;
} }
.setRecipientsBtn { .setRecipientsBtn {
margin-top: -2px; margin-top: -2px;
margin-left: 5px; margin-left: 5px;
}
} }
} }

View file

@ -1,6 +1,4 @@
#rl-popups { .b-folder-clear-content {
.b-folder-clear-content { .modal-header {
.modal-header {
}
} }
} }

View file

@ -1,6 +1,4 @@
#rl-popups { .b-folder-create-content {
.b-folder-create-content { .modal-header {
.modal-header {
}
} }
} }

View file

@ -1,6 +1,4 @@
#rl-popups { .b-folder-system-content {
.b-folder-system-content { .modal-header {
.modal-header {
}
} }
} }

View file

@ -1,23 +1,21 @@
#rl-popups { .b-identity-content {
.b-identity-content {
&.modal { &.modal {
width: 770px; width: 770px;
} }
.modal-body { .modal-body {
overflow: hidden; overflow: hidden;
} }
.e-signature-place { .e-signature-place {
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 3px; border-radius: 3px;
height: 200px; height: 200px;
} }
.textEmail { .textEmail {
margin-top: 5px; margin-top: 5px;
font-weight: bold; font-weight: bold;
}
} }
} }

View file

@ -1,40 +1,38 @@
#rl-popups { .b-languages-content {
.b-languages-content {
&.modal { &.modal {
width: 700px; width: 700px;
}
.lang-item {
display: inline-block;
padding: 5px 15px;
margin: 2px 5px;
width: 180px;
background-color: #fff;
text-align: left;
border: 1px solid transparent;
border-radius: 3px;
position: relative;
&.user {
background-color: #ffd;
border-color: #ff5;
} }
&.selected {
.lang-item { background-color: #efe;
display: inline-block; border-color: #9c9;
padding: 5px 15px; }
margin: 2px 5px; &.selected::after {
width: 180px; content: "✔";
background-color: #fff; color: #080;
text-align: left; position: absolute;
border: 1px solid transparent; right: 4px;
border-radius: 3px; font-family: snappymail;
position: relative; }
&:hover {
&.user { background-color: #eee;
background-color: #ffd; border-color: #ccc;
border-color: #ff5;
}
&.selected {
background-color: #efe;
border-color: #9c9;
}
&.selected::after {
content: "✔";
color: #080;
position: absolute;
right: 4px;
font-family: snappymail;
}
&:hover {
background-color: #eee;
border-color: #ccc;
}
} }
} }
} }

View file

@ -1,152 +1,150 @@
#rl-popups { .b-open-pgp-key-view-content, .b-open-pgp-key-generate-content {
.b-open-pgp-key-view-content, .b-open-pgp-key-generate-content { &.modal {
&.modal { width: 570px;
width: 570px; }
} }
.b-open-pgp-key-view-content, .b-open-pgp-key-generate-content, .b-open-pgp-key-add-content, .b-compose-open-pgp-content, .b-message-open-pgp-content {
.inputKey {
font-family: var(--fontMono);
} }
.b-open-pgp-key-view-content, .b-open-pgp-key-generate-content, .b-open-pgp-key-add-content, .b-compose-open-pgp-content, .b-message-open-pgp-content { .key-viewer {
max-height: 500px;
overflow: auto;
}
}
.inputKey { .b-compose-open-pgp-content {
font-family: var(--fontMono); &.modal {
} width: 800px;
.key-viewer {
max-height: 500px;
overflow: auto;
}
} }
.b-compose-open-pgp-content { .key-list {
&.modal {
width: 800px; background-color: #f9f9f9;
border-radius: 5px;
padding: 10px 15px;
&-wrp {
&:hover {
overflow: auto;
}
&:hover .key-list__item-name {
overflow: visible;
}
&.empty {
text-align: center;
padding-top: 10px;
color: #aaa;
font-size: 16px;
}
} }
.key-list { &__item {
background-color: #f9f9f9; color: #333;
border-radius: 5px; white-space: nowrap;
padding: 10px 15px; padding-bottom: 4px;
display: flex;
&-wrp { &:last-child {
padding-bottom: 0;
}
&:hover { &-delete {
overflow: auto; cursor: pointer;
&.disabled {
cursor: not-allowed;
} }
}
&:hover .key-list__item-name { &-names {
overflow: visible; color: #333;
} width: 80%;
&.empty { &.empty {
text-align: center;
padding-top: 10px;
color: #aaa;
font-size: 16px;
}
}
&__item {
color: #333;
white-space: nowrap;
padding-bottom: 4px;
display: flex;
&:last-child {
padding-bottom: 0;
}
&-delete {
cursor: pointer;
&.disabled {
cursor: not-allowed;
}
}
&-names {
color: #333;
width: 80%;
&.empty {
color: red;
}
}
&-name {
overflow: hidden;
text-overflow: ellipsis;
}
&-error {
color: red; color: red;
width: 80%;
}
&-hash {
color: #aaa;
width: 20%;
} }
} }
}
.key-actions { &-name {
margin-top: 10px; overflow: hidden;
min-height: 40px;
select option.even {
background-color: #f5f5f5;
}
}
}
.b-message-open-pgp-content {
&.modal {
width: 700px;
}
.key-list {
margin-top: 5px;
overflow: hidden;
&__item {
color: #555;
cursor: pointer;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; }
&__radio { &-error {
padding: 3px 5px 0 0; color: red;
vertical-align: top; width: 80%;
} }
&__name { &-hash {
border-bottom: 1px solid transparent; color: #aaa;
} width: 20%;
&__names {
display: inline-block;
&:hover .key-list__item__name {
border-bottom: 1px dashed #555;
}
}
} }
} }
} }
.b-open-pgp-key-add-content { .key-actions {
&.modal { margin-top: 10px;
min-height: 40px;
width: 645px; select option.even {
background-color: #f5f5f5;
}
}
}
.inputKey { .b-message-open-pgp-content {
width: 600px; &.modal {
width: 700px;
}
.key-list {
margin-top: 5px;
overflow: hidden;
&__item {
color: #555;
cursor: pointer;
text-overflow: ellipsis;
white-space: nowrap;
&__radio {
padding: 3px 5px 0 0;
vertical-align: top;
}
&__name {
border-bottom: 1px solid transparent;
}
&__names {
display: inline-block;
&:hover .key-list__item__name {
border-bottom: 1px dashed #555;
}
} }
} }
} }
} }
.b-open-pgp-key-add-content {
&.modal {
width: 645px;
.inputKey {
width: 600px;
}
}
}

View file

@ -169,8 +169,8 @@ Secondly, we can't rely on MUA's what to do with :empty
right: 0; right: 0;
} }
.rl-mobile #rl-popups .b-compose.modal, .rl-mobile .b-compose.modal,
.rl-mobile #rl-popups .b-identity-content.modal { .rl-mobile .b-identity-content.modal {
margin-bottom: 50px; margin-bottom: 50px;
} }
.rl-mobile .b-compose.modal { .rl-mobile .b-compose.modal {

View file

@ -1,12 +1,10 @@
#rl-popups { .b-template-add-content {
.b-template-add-content {
&.modal { &.modal {
width: 750px; width: 750px;
} }
.e-template-place { .e-template-place {
height: 300px; height: 300px;
}
} }
} }

View file

@ -1,12 +1,8 @@
#rl-popups { .b-two-factor-content {
.b-two-factor-content { width: 750px;
width: 750px; .modal-body {
min-height: 100px;
.modal-body {
min-height: 100px;
}
} }
} }

View file

@ -97,7 +97,7 @@ label.inline, span.inline {
/* mobile and tablet */ /* mobile and tablet */
@media screen and (max-width: 999px) { @media screen and (max-width: 999px) {
#rl-popups .modal { .modal {
width: calc(~'100% - 20px') !important; width: calc(~'100% - 20px') !important;
} }

View file

@ -1,4 +1,4 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ /* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Text-level semantics /* Text-level semantics
========================================================================== */ ========================================================================== */