snappymail/dev/Styles/User/Layout.less
2023-01-26 15:37:27 +01:00

331 lines
4.9 KiB
Text

#rl-app.UserBackground {
background-size: cover;
background-repeat: no-repeat;
background-position: center;
}
#rl-content {
display:flex;
height: 100%;
}
#rl-left {
flex-grow: 0;
flex-shrink: 0;
position: relative;
/* transition: width 0.3s ease-out;*/
width: @rlLeftWidth;
z-index: 0;
}
#rl-right {
flex-grow: 1;
max-width: 100vw;
position: relative;
z-index: 1;
}
/*
.resizable::after {
background-color: #aaa;
bottom: 0;
content: '';
height: 22px;
pointer-events: none;
position: absolute;
right: 0;
text-align: center;
width: 20px;
}
.resizable::-webkit-resizer {
background: #aaa;
background: rgba(255,255,255,0.5);
}
*/
.resizer {
background: #aaa;
background: rgba(255,255,255,0.5);
display: none;
opacity: 0;
position: absolute;
z-index: 102;
}
.resizer:hover {
opacity: 1;
}
html:not(.rl-left-panel-disabled) #rl-left {
resize: horizontal; overflow: auto;
min-width: 155px;
max-width: 350px;
}
#rl-left > .resizer,
.rl-side-preview-pane #V-MailMessageList > .resizer {
cursor: ew-resize;
height: 100%;
right: 0;
top: 0;
width: 5px;
}
.rl-side-preview-pane #V-MailMessageList {
resize: horizontal; overflow: auto;
min-width: 320px;
max-width: 60%;
}
.rl-bottom-preview-pane #V-MailMessageList {
resize: vertical; overflow: auto;
min-height: 200px;
max-height: 60%;
}
.rl-bottom-preview-pane #V-MailMessageList > .resizer {
cursor: ns-resize;
height: 5px;
left: 0;
bottom: 0;
width: 100%;
}
html:not(.rl-left-panel-disabled) #rl-left > .resizer,
#V-MailMessageList > .resizer {
display: block;
}
#V-MailMessageList {
position: relative;
height: 100%;
width: 50%;
}
#V-MailMessageView {
position: absolute;
top: 50px;
bottom: 13px;
right: 0;
left: 0;
.b-message-view-backdrop {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, .4);
z-index: 10;
text-align: center;
.backdrop-message {
position: relative;
display: inline-block;
color: white;
font-size: 20px;
line-height: 30px;
background: rgba(0, 0, 0, .6);
padding: 15px;
border-radius: var(--border-radius, 5px);
text-shadow: 0 1px 1px #000;
transform: translateY(-50%);
top: 50%;
}
}
}
html.rl-side-preview-pane {
#V-MailMessageView {
left: 50%;
}
}
#top-system-dropdown-id::after,
#button-add-prop-dropdown-id::after {
content: '▼';
font-size: 80%;
}
.dropdown-menu * + .dividerbar {
margin-top: 9px;
padding-top: 9px;
border-top: 1px solid var(--border-color, #e5e5e5);
}
.dropdown.show {
box-shadow: 0 0 1px var(--main-color, #333);
}
.btn.btn-transparent {
background: none !important;
border-color: transparent !important;
box-shadow: none !important;
color: inherit;
text-shadow: none !important;
opacity: .6;
&:hover {
opacity: 1;
}
}
.btn-group.open .btn.btn-transparent.dropdown-toggle {
color: #BD362F;
}
.btn-group > .btn.single {
border-radius: var(--input-border-radius, 3px) !important;
}
.search-input-wrp {
position: relative;
text-align: right;
}
.search-input-wrp a {
position: absolute;
right: 0;
top: 5px;
margin: 0 7px;
z-index: 100;
opacity: .4;
cursor: pointer;
&:hover {
opacity: .6;
}
}
#rl-left .search-input-wrp {
margin-right: 8px;
}
/* desktop */
@media screen and (min-width: 1000px) {
}
/* desktop-large */
@media screen and (min-width: 1401px) {
#rl-left {
width: @rlLeftWidth + 20;
}
#V-MailMessageList {
width: 40%;
}
html.rl-side-preview-pane {
#V-MailMessageView {
left: 40%;
}
}
}
/* mobile and tablet */
@media screen and (max-width: 999px) {
#rl-left {
width: 155px;
}
#rl-settings-subscreen {
padding: 10px;
}
.dropdown-menu a {
line-height: 2.5;
}
}
html:not(.rl-ctrl-key-pressed) .visible-on-ctrl-btn,
html.rl-ctrl-key-pressed .hidden-on-ctrl-btn,
.show-on-panel-disabled {
display: none;
}
html.rl-left-panel-disabled {
#rl-left {
width: 60px !important;
.show-on-panel-disabled {
display: block;
}
.b-content {
opacity: 0.3;
}
.hide-on-panel-disabled {
display: none;
}
}
}
html.rl-no-preview-pane {
#V-MailMessageList {
position: absolute;
left: 0;
right: 0;
width: auto;
}
}
html.rl-mobile #rl-left > .resizer,
html.rl-no-preview-pane #rl-right .resizer {
display: none !important;
}
html.rl-mobile {
#rl-left {
background: var(--main-bg-color);
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: 50vw;
z-index: 2;
}
&.rl-left-panel-disabled #rl-left {
display: none;
}
}
html.rl-bottom-preview-pane {
#V-MailMessageList {
height: 300px;
position: absolute;
left: 0;
right: 0;
width: auto;
}
#V-MailMessageView {
top: 300px;
}
}
html.rl-mobile .hide-mobile,
html:not(.rl-mobile) .show-mobile {
display: none !important;
}
.e-paginator {
a {
opacity: 0.5;
text-decoration: none;
font-size: 22px;
padding: 3px;
cursor: pointer;
&:hover {
opacity: 0.8;
}
&.current {
opacity: 1;
font-size: 25px;
cursor: default;
}
}
}