Split admin css from app.css

Cleanup normalize and bootstrap css
Removed almost all css float
Removed CKEditor from app.css
This commit is contained in:
djmaze 2021-02-18 21:06:19 +01:00
parent 6dacfb3cf4
commit b6d8fa5b3f
74 changed files with 455 additions and 1014 deletions

44
dev/Styles/@Admin.less Normal file
View file

@ -0,0 +1,44 @@
@import "../../vendors/bootstrap/less/variables.less";
@import "../../vendors/bootstrap/less/mixins.less";
@import "_Values.less";
@import "../../vendors/bootstrap/less/grid.less";
@import "../../vendors/bootstrap/less/type.less";
@import "../../vendors/bootstrap/less/code.less";
@import "../../vendors/bootstrap/less/forms.less";
@import "../../vendors/bootstrap/less/tables.less";
@import "../../vendors/bootstrap/less/dropdowns.less";
@import "../../vendors/bootstrap/less/close.less";
@import "../../vendors/bootstrap/less/buttons.less";
@import "../../vendors/bootstrap/less/button-groups.less";
@import "../../vendors/bootstrap/less/alerts.less";
@import "../../vendors/bootstrap/less/modals.less";
@import "../../vendors/bootstrap/less/utilities.less";
@import "../../vendors/bootstrap/less/wells.less";
@import "_FontasticToBoot.less";
@import "_BootstrapFix.less";
@import "Ui.less";
@import "Main.less";
@import "Layout.less";
@import "Components.less";
@import "Login.less";
@import "Ask.less";
@import "Languages.less";
@import "Admin.less";
@import "AdminGeneral.less";
@import "AdminBranding.less";
@import "AdminDomains.less";
@import "AdminDomain.less";
@import "AdminPackages.less";
@import "AdminPlugins.less";
@import "AdminPlugin.less";
@import "AdminAbout.less";
@import "Animations.less";
@import "_End.less";

View file

@ -1,5 +1,11 @@
:root {
--fontSans: "DejaVu Sans", Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", Arial, sans-serif;
--fontSerif: "Nimbus Roman No9 L", "Times New Roman", Times, FreeSerif, serif;
--fontMono: "Liberation Mono", Monaco, Menlo, Consolas, "Courier New", FreeMono, Courier, monospace;
}
html, body {
font-family: "DejaVu Sans", Verdana, Geneva, "Bitstream Vera Sans", "DejaVu LGC Sans", sans-serif;
font-family: var(--fontSans);
margin: 0;
padding: 0;
}

View file

@ -10,27 +10,27 @@
@import "../../vendors/bootstrap/less/forms.less";
@import "../../vendors/bootstrap/less/tables.less";
@import "../../vendors/bootstrap/less/dropdowns.less";
@import "../../vendors/bootstrap/less/wells.less";
@import "../../vendors/bootstrap/less/close.less";
@import "../../vendors/bootstrap/less/buttons.less";
@import "../../vendors/bootstrap/less/button-groups.less";
@import "../../vendors/bootstrap/less/alerts.less";
@import "../../vendors/bootstrap/less/navs.less";
@import "../../vendors/bootstrap/less/modals.less";
@import "../../vendors/bootstrap/less/labels-badges.less";
@import "../../vendors/bootstrap/less/utilities.less";
@import "../../vendors/bootstrap/less/navs.less";
@import "../../vendors/bootstrap/less/labels-badges.less";
@import "_FontasticToBoot.less";
@import "_BootstrapFix.less";
@import "_CkeFix.less";
@import "Ui.less";
@import "Main.less";
@import "Layout.less";
@import "Components.less";
@import "SystemDropDown.less";
@import "Login.less";
@import "Ask.less";
@import "Languages.less";
@import "SystemDropDown.less";
@import "Shortcuts.less";
@import "FolderList.less";
/*
@ -40,7 +40,6 @@
@import "Account.less";
*/
@import "Filter.less";
@import "Languages.less";
@import "Template.less";
@import "OpenPgpKey.less";
@import "TwoFactor.less";
@ -53,16 +52,6 @@
@import "Compose.less";
@import "EmailAddresses.less";
@import "Admin.less";
@import "AdminGeneral.less";
@import "AdminBranding.less";
@import "AdminDomains.less";
@import "AdminDomain.less";
@import "AdminPackages.less";
@import "AdminPlugins.less";
@import "AdminPlugin.less";
@import "AdminAbout.less";
@import "Settings.less";
@import "SettingsGeneral.less";
@import "SettingsAccounts.less";
@ -72,8 +61,12 @@
@import "SettingsThemes.less";
@import "SettingsFilters.less";
@import "Animations.less";
@import "SquireUI.less";
@import "AnimationsUser.less";
@import "Animations.less";
@import "_End.less";
/*
@import "_CkeFix.less";
*/

View file

@ -3,14 +3,7 @@
.rl-logo {
display: inline-block;
width: 250px;
height: 250px;
margin-top: -10px;
margin-bottom: -10px;
background-image: url("images/snappymail-logo.png");
}
.rl-desc {
margin-top: 20px;
margin-left: -20px;
height: 200px;
background: url("images/snappymail-logo.png") -30px -30px;
}
}

View file

@ -20,6 +20,7 @@
width: 1600px;
height: 400px;
left: 0;
transition: left 500ms ease;
}
&.domain-edit .modal-body {

View file

@ -25,6 +25,8 @@
.b-admin-plugin-property {
.help-block {
color: lighten(@textColor, 15%); // lighten the text some for contrast
display: block; // account for any element using help-block
margin-bottom: 5px;
}
}

View file

@ -1,12 +1,12 @@
#rl-popups {
.b-advanced-search-content {
&.modal {
width: 750px;
width: 780px;
.control-label {
width: 100px;
width: 110px;
}
.controls {
margin-left: 110px;
.span4 {
width: 360px;
}
}
}

View file

@ -1,22 +1,4 @@
.rl-strip-animation(@rgba, @stripOpacity) {
background-image: linear-gradient(135deg, rgba(@rgba, @rgba, @rgba, @stripOpacity) 25%, transparent 25%,
transparent 50%, rgba(@rgba, @rgba, @rgba, @stripOpacity) 50%, rgba(@rgba, @rgba, @rgba, @stripOpacity) 75%,
transparent 75%, transparent);
}
@keyframes highlight-folder-row {
0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); }
}
@keyframes textLoadingAnimationKeyFrame {
0% { opacity: 1; } 33% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes animate-stripes {
0% {background-position: 0 0;} 100% {background-position: 60px 0;}
}
@keyframes login-form-shake {
0% {transform: translateX(0);}
12.5% {transform: translateX(-6px) rotateY(-5deg)}
@ -41,14 +23,6 @@ html.rl-started-delay {
}
}
html {
.e-strip-animation {
background-size: 60px 60px;
.rl-strip-animation(0, 0.1);
animation: animate-stripes 2s linear infinite;
}
}
@media screen and (min-width: 1000px) {
html.rl-started-trigger .b-login-content .loginFormWrapper {
@ -57,90 +31,38 @@ html {
opacity: 0.5;
}
html {
.b-login-content {
.alertError {
display: block;
opacity: 1;
transition: opacity 0.5s linear;
}
.alertError[hidden] {
opacity: 0;
}
}
.b-login-content .errorAnimated {
animation: login-form-shake 400ms ease-in-out;
}
.b-login-content .errorAnimated {
animation: login-form-shake 400ms ease-in-out;
}
.b-login-content .errorAnimated .buttonLogin {
color: #b94a48;
font-weight: bold;
}
.b-login-content .errorAnimated .buttonLogin {
color: #b94a48;
font-weight: bold;
}
.b-login-content .afterLoginHide {
opacity: 0;
}
.b-login-content .afterLoginHide {
opacity: 0;
}
.b-login-content .loginFormWrapper {
transition: all 0.3s ease-out;
}
.b-login-content .loginFormWrapper {
transition: all 0.3s ease-out;
}
.button-delete-transitions {
transition: all 0.2s linear;
}
& .button-delete-transitions {
transition: all 0.2s linear;
}
& .b-folders .e-item .anim-action-class {
animation: highlight-folder-row 0.5s linear;
}
& .b-folders .btn.buttonContacts {
transition: margin 0.3s linear;
}
& .b-folders .b-content.opacity-on-panel-disabled {
transition: opacity 0.3s linear;
}
& .messageList {
.messageListItem {
transition: max-height 400ms ease;
}
.listDragOver {
transition: all 400ms ease;
}
}
& .b-list-content {
.e-contact-item {
transition: max-height 400ms ease;
}
}
& .modal.b-domain-content {
.modal-body {
transition: left 500ms ease;
}
}
#rl-popups > .rl-view-model .modal {
transition: all .2s ease-out;
}
#rl-popups > .rl-view-model:not(.show) .modal {
top: -25%;
}
#rl-popups > .rl-view-model .modal.fade {
opacity: 1;
}
#rl-popups > .rl-view-model:not(.show) .modal.fade {
opacity: 0;
}
& .b-compose.loading .b-header-toolbar {
background-size: 60px 60px;
.rl-strip-animation(255, 0.2);
animation: animate-stripes 2s linear infinite;
}
#rl-popups > .rl-view-model .modal {
transition: all .2s ease-out;
}
#rl-popups > .rl-view-model:not(.show) .modal {
top: -25%;
}
#rl-popups > .rl-view-model .modal.fade {
opacity: 1;
}
#rl-popups > .rl-view-model:not(.show) .modal.fade {
opacity: 0;
}
}
@ -150,15 +72,3 @@ html {
#rl-popups > .rl-view-model:not(.show) {
background-color: rgba(0,0,0,0);
}
.textLoadingAnimationD1, .textLoadingAnimationD2, .textLoadingAnimationD3 {
animation: textLoadingAnimationKeyFrame 1s linear infinite 0s;
}
.textLoadingAnimationD2 {
animation-delay: 0.3s;
}
.textLoadingAnimationD3 {
animation-delay: 0.6s;
}

View file

@ -0,0 +1,83 @@
.rl-strip-animation(@rgba, @stripOpacity) {
background-image: linear-gradient(135deg, rgba(@rgba, @rgba, @rgba, @stripOpacity) 25%, transparent 25%,
transparent 50%, rgba(@rgba, @rgba, @rgba, @stripOpacity) 50%, rgba(@rgba, @rgba, @rgba, @stripOpacity) 75%,
transparent 75%, transparent);
}
@keyframes highlight-folder-row {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@keyframes textLoadingAnimationKeyFrame {
0% { opacity: 1; }
33% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes animate-stripes {
0% {background-position: 0 0;}
100% {background-position: 60px 0;}
}
html {
.e-strip-animation {
background-size: 60px 60px;
.rl-strip-animation(0, 0.1);
animation: animate-stripes 2s linear infinite;
}
}
@media screen and (min-width: 1000px) {
.button-delete-transitions {
transition: all 0.2s linear;
}
.b-folders .e-item .anim-action-class {
animation: highlight-folder-row 0.5s linear;
}
.b-folders .btn.buttonContacts {
transition: margin 0.3s linear;
}
.b-folders .b-content.opacity-on-panel-disabled {
transition: opacity 0.3s linear;
}
.messageList {
.messageListItem {
transition: max-height 400ms ease;
}
.listDragOver {
transition: all 400ms ease;
}
}
.b-list-content {
.e-contact-item {
transition: max-height 400ms ease;
}
}
.b-compose.loading .b-header-toolbar {
background-size: 60px 60px;
.rl-strip-animation(255, 0.2);
animation: animate-stripes 2s linear infinite;
}
}
.textLoadingAnimationD1, .textLoadingAnimationD2, .textLoadingAnimationD3 {
animation: textLoadingAnimationKeyFrame 1s linear infinite 0s;
}
.textLoadingAnimationD2 {
animation-delay: 0.3s;
}
.textLoadingAnimationD3 {
animation-delay: 0.6s;
}

View file

@ -45,7 +45,7 @@
height: 40px;
color: #fff;
background-color: rgba(0,0,0,0.8) !important;
background-color: rgba(0,0,0,0.8);
.close, .minimize-custom {
opacity: 1;
@ -123,7 +123,7 @@
padding: 2px 0;
textarea, input[type="text"] {
width: 98%;
width: 100%;
}
textarea {
height: 40px;

View file

@ -4,10 +4,11 @@
.b-contacts-content {
.control-group {
.control-label.fix-width {
.control-label {
padding-top: 0;
width: 50px;
}
.controls.fix-width {
.controls {
margin-left: 70px;
}
}
@ -32,11 +33,9 @@
.b-header-toolbar {
height: 40px;
background-color: rgba(0,0,0,0.8);
color: #fff;
background-color: rgba(0,0,0,0.8) !important;
height: 40px;
.close {
color: #fff;
@ -119,8 +118,7 @@
// }
.e-contact-item {
position: relative;
height: 45px;
display: flex;
max-height: 45px;
line-height: 45px;
overflow: hidden;
@ -129,7 +127,6 @@
margin: 0;
border: 0;
border-left: 6px solid #eee;
z-index: 100;
border-bottom: 1px solid #ddd;
&.focused {
@ -142,39 +139,21 @@
}
.checkboxItem {
display: inline-block;
float: left;
padding: 0 8px 0 6px;
line-height: 45px;
padding: 0 8px 0 6px;
}
.nameParent {
display: block;
overflow: hidden;
text-overflow: ellipsis;
color: #333;
font-size: 16px;
}
.nameParent, .emailParent {
white-space: nowrap;
}
.displayName, .displayEmail {
overflow: hidden;
text-overflow: ellipsis;
}
.displayImg {
display: inline-block;
float: right;
position: relative;
margin: 0 5px;
white-space: nowrap;
width: 100%;
}
&.checked {
border-left-color: #69A8F5;
z-index: 101;
&.focused {
border-left-color: darken(#69A8F5, 5%);
@ -185,7 +164,6 @@
background-color: #fff;
border-left-color: #398CF2;
z-index: 102;
&.focused {
border-left-color: darken(#398CF2, 5%);
@ -365,7 +343,6 @@
margin: 0;
border: 0;
z-index: 100;
border-bottom: 1px solid #ddd;
}
}

View file

@ -2,21 +2,13 @@
.b-identity-content {
&.modal {
width: 800px;
width: 770px;
}
.modal-body {
overflow: hidden;
}
.control-label {
width: 100px;
}
.controls {
margin-left: 120px;
}
.e-signature-place {
border: 1px solid #ccc;
border-radius: 3px;

View file

@ -61,7 +61,7 @@
padding-left: 12px;
padding-right: 12px;
}
.inputEmail, .inputPassword {
.inputEmail, .inputLogin, .inputPassword {
padding-right: 35px;
}
@ -145,6 +145,12 @@
left: 0;
right: 0;
z-index: 1;
display: block;
opacity: 1;
transition: opacity 0.5s linear;
}
.alert[hidden] {
opacity: 0;
}
.flag-selector {

View file

@ -46,10 +46,6 @@ option:disabled {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
input[type="search"]{
box-sizing: content-box;
}
.button-confirm-delete {
margin-right: 15px;
opacity: 0;

View file

@ -100,7 +100,7 @@ html.rl-no-preview-pane {
}
.inputSearch {
width: calc(100% - 14px);
width: 100%;
}
}
}

View file

@ -1,4 +1,8 @@
.g-ui-min-height-300 {
min-height: 300px;
}
.messageView {
z-index: 100;
@ -344,7 +348,6 @@
.bodyText {
color: #000;
font-family: Arial, Verdana, Geneva, sans-serif;
.b-text-part {
@ -404,7 +407,7 @@
}
img[data-x-src]:not([src]):hover::after {
content: attr(data-x-src);
font-family: sans-serif;
font-family: var(--fontSans);
height: auto;
transform: translate(-25%,0);
width: auto;
@ -420,7 +423,7 @@
background: #fff;
border: none;
border-radius: 0;
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
font-family: var(--fontMono);
display: block;
word-break: normal;
word-wrap: break-word;
@ -447,14 +450,14 @@
padding: 15px;
/*white-space: pre-wrap;*/
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
font-family: var(--fontMono);
pre {
margin: 0;
padding: 0;
background: #fff;
border: none;
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
font-family: var(--fontMono);
display: block;
word-break: normal;
}
@ -497,7 +500,6 @@
display: inline-block;
cursor: pointer;
color: #777;
/*float: left;*/
&:hover {
color: #111;

View file

@ -6,7 +6,7 @@
}
.inputKey {
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
font-family: var(--fontMono);
}
.key-viewer {
@ -25,8 +25,6 @@
background-color: #f9f9f9;
border-radius: 5px;
padding: 10px 15px;
margin-top: 10px;
min-height: 40px;
&-wrp {
@ -51,6 +49,7 @@
color: #333;
white-space: nowrap;
padding-bottom: 4px;
display: flex;
&:last-child {
padding-bottom: 0;
@ -66,6 +65,7 @@
&-names {
color: #333;
width: 80%;
&.empty {
color: red;
@ -79,10 +79,12 @@
&-error {
color: red;
width: 80%;
}
&-hash {
color: #aaa;
width: 20%;
}
}
}

View file

@ -33,5 +33,5 @@
.b-filter-script textarea {
height: 300px;
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
font-family: var(--fontMono);
}

View file

@ -1,5 +1,6 @@
#top-system-dropdown-id {
overflow: hidden;
padding-left: 10px;
padding-right: 10px;
}
@ -20,11 +21,6 @@
z-index: 103;
}
.dropdown-menu {
right: 0;
left: auto;
}
.email-title {
display: inline-block;
max-width: 200px;

View file

@ -19,10 +19,6 @@
}
}
.g-ui-min-height-300 {
min-height: 300px;
}
.g-ui-menu {
max-height: 400px;
max-width: 300px;

View file

@ -19,18 +19,14 @@ label.inline, span.inline {
border-bottom: 1px solid #e5e5e5;
small {
font-size: @baseLineHeight * .75;
color: @grayLight;
font-size: @baseLineHeight * .75;
color: @grayLight;
}
}
.legend + .control-group {
margin-top: @baseLineHeight;
-webkit-margin-top-collapse: separate;
}
.input-append input, .input-append select {
border-radius: 3px;
margin-top: @baseLineHeight;
-webkit-margin-top-collapse: separate;
}
.btn-small.btn-small-small {
@ -46,12 +42,6 @@ label.inline, span.inline {
padding: 4px 7px;
}
.btn.btn-ellipsis {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.btn.btn-transparent {
background: none !important;
border-color: transparent !important;
@ -102,20 +92,8 @@ label.inline, span.inline {
}
}
input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) {
height: @baseLineHeight - (@rlInputBorderSize - 1) * 2;
line-height: @baseLineHeight - (@rlInputBorderSize - 1) * 2;
}
.alert a {
text-decoration: underline;
}
.alert.alert-null-left-margin {
margin-left: 0;
}
.alert a {
color: #c09853;
}
@ -127,21 +105,10 @@ input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) {
color: #b94a48;
}
.nav-tabs > li > a {
color: #555;
}
.form-horizontal.long-label .control-group {
.control-label {
width: 160px;
}
.controls {
margin-left: 180px;
}
}
.control-label.remove-padding-top {
padding-top: 0;
}
/* mobile and tablet */
@ -160,10 +127,9 @@ input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) {
.control-group {
.control-label {
text-align: left;
float: none;
}
.controls {
margin-left: 0;
margin-left: 10px;
}
}
}

View file

@ -64,7 +64,7 @@
}
.cke_source {
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace !important;
font-family: var(--fontMono) !important;
padding: 10px !important;
padding-right: 0 !important;
box-shadow: none !important;
@ -82,7 +82,7 @@
padding: 10px;
padding-right: 0;
white-space: pre-wrap;
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
font-family: var(--fontMono), monospace;
font-size: 13px;
line-height: 16px;
color: #333;
@ -107,7 +107,7 @@
.cke_wysiwyg_div {
padding: 10px !important;
font-family: arial, sans-serif;
font-family: var(--fontSans);
font-size: 13px;
line-height: 16px;
color: #333;
@ -132,7 +132,7 @@
background: #fff;
border: none;
border-radius: 0;
font-family: Monaco, Menlo, Consolas, 'Courier New', monospace;
font-family: var(--fontMono);
display: block;
word-break: normal;
word-wrap: break-word;

View file

@ -97,6 +97,6 @@
}
.fontastic.icon-spinner {
text-indent: -1em;
text-indent: -5em;
overflow: hidden;
}