snappymail/dev/Styles/Layout.less

352 lines
4.9 KiB
Plaintext
Raw Normal View History

.UserBackground body {
background-size: contain;
background-repeat: no-repeat;
background-position: center;
}
#rl-center, #rl-top, #rl-bottom, #rl-left, #rl-right {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
padding: 0;
margin: 0;
border: 0;
z-index: 0;
}
#rl-content {
height: 100%;
width: 100%;
}
#rl-center {
2014-04-27 08:54:22 +08:00
min-width: 600px;
min-height: 400px;
}
2016-05-01 09:07:10 +08:00
html.rl-mobile {
#rl-center {
min-width: 250px;
min-height: 250px;
}
&:not(.rl-left-panel-disabled) #rl-right {
2016-05-01 09:07:10 +08:00
right: -150px;
}
&.rl-left-panel-disabled #rl-right {
left: 5px !important;
}
}
#rl-top {
bottom: auto;
z-index: 2;
}
#rl-bottom {
top: auto;
z-index: 1;
}
#rl-left {
width: @rlLeftWidth;
2014-05-08 06:20:17 +08:00
min-width: 60px;
}
/*
.resizable::after {
2020-09-30 20:07:03 +08:00
background-color: #aaa;
bottom: 0;
content: '';
height: 22px;
pointer-events: none;
position: absolute;
right: 0;
text-align: center;
width: 20px;
}
.resizable::-webkit-resizer {
2020-09-30 20:07:03 +08:00
background: #aaa;
background: rgba(255,255,255,0.5);
}
*/
.resizable > .resizer {
background: #aaa;
background: rgba(255,255,255,0.5);
display: none;
opacity: 0;
position: absolute;
z-index: 102;
}
.resizable > .resizer:hover {
opacity: 1;
}
html:not(.rl-left-panel-disabled) #rl-left.resizable {
resize: horizontal;
overflow: hidden;
min-width: 155px;
max-width: 350px;
}
#rl-left > .resizer {
cursor: ew-resize;
height: 100%;
right: 0;
top: 0;
width: 5px;
}
.b-message-list-wrapper.resizable {
resize: vertical;
overflow: hidden;
min-height: 200px;
max-height: 500px;
}
.b-message-list-wrapper > .resizer {
cursor: ns-resize;
height: 5px;
left: 0;
bottom: 0;
width: 100%;
}
html:not(.rl-left-panel-disabled) #rl-left.resizable > .resizer,
.b-message-list-wrapper > .resizer {
display: block;
}
#rl-right {
z-index: 1;
left: @rlLeftWidth;
}
#rl-sub-left {
position: absolute;
top: 0;
bottom: 0;
left: 0;
2013-12-31 19:57:02 +08:00
width: 500px;
}
#rl-sub-right {
position: absolute;
top: 0;
bottom: 0;
right: 0;
2013-12-31 19:57:02 +08:00
left: 500px;
2017-03-02 02:38:18 +08:00
.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: 5px;
text-shadow: 0 1px 1px #000;
transform: translateY(-50%);
top: 50%;
2017-03-02 02:38:18 +08:00
}
}
}
/*
#rl-popups > dialog {
top: 0;
margin: 10px auto;
padding: 0;
border: 0;
}
*/
#rl-popups > .rl-view-model {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
z-index: 1100;
overflow: auto;
background-color: rgba(0,0,0,0.3);
// -webkit-overflow-scrolling: touch;
}
/* desktop-large */
@media screen and (min-width: 1401px) {
#rl-left {
width: @rlLeftWidth + 20;
}
#rl-right {
left: @rlLeftWidth + 20;
}
#rl-sub-left {
width: 500px;
}
#rl-sub-right {
left: 500px;
}
}
/* desktop */
@media screen and (min-width: 1000px) and (max-width: 1400px) {
#rl-left {
width: @rlLeftWidth;
}
#rl-right {
left: @rlLeftWidth;
}
#rl-sub-left {
width: 400px;
}
#rl-sub-right {
left: 400px;
}
}
/* mobile and tablet */
@media screen and (max-width: 999px) {
#rl-left {
width: 155px;
}
#rl-right {
left: 155px;
}
#rl-sub-left {
width: 310px;
}
#rl-sub-right {
left: 310px;
}
}
/* tablet */
@media screen and (min-width: 768px) and (max-width: 999px) {
}
2020-10-01 17:10:40 +08:00
.hidden-on-ctrl-btn,
.visible-on-ctrl-btn {
display: inline-block;
}
html:not(.rl-ctrl-key-pressed) .visible-on-ctrl-btn,
html.rl-ctrl-key-pressed .hidden-on-ctrl-btn,
2014-05-08 06:20:17 +08:00
.show-on-panel-disabled {
display: none;
}
2014-04-27 08:54:22 +08:00
html.rl-left-panel-disabled {
#rl-left {
width: 60px !important;
2014-05-08 06:20:17 +08:00
.show-on-panel-disabled {
display: block;
}
.opacity-on-panel-disabled {
2014-08-28 23:27:30 +08:00
opacity: 0.3;
2014-05-08 06:20:17 +08:00
}
.visibility-hidden-on-panel-disabled {
visibility: hidden;
}
.hide-on-panel-disabled {
display: none;
}
}
#rl-right {
left: 60px !important;
}
}
2020-10-01 17:10:40 +08:00
html.rl-left-panel-short #rl-left,
html.rl-left-panel-short #rl-right {
width: 60px !important;
}
2020-10-01 17:10:40 +08:00
html.rl-left-panel-none #rl-left,
html.rl-left-panel-none #rl-right {
width: 10px !important;
}
2021-02-15 23:05:38 +08:00
html.rl-mobile,
html.rl-no-preview-pane {
#rl-sub-left {
right: @rlBottomMargin !important;
width: inherit;
}
#rl-sub-right {
left: 0 !important;
}
}
2021-02-15 23:05:38 +08:00
html.rl-side-preview-pane:not(.rl-mobile) #rl-right .resizer {
2015-01-09 07:31:31 +08:00
display: none !important;
}
2021-02-15 23:05:38 +08:00
html.rl-bottom-preview-pane:not(.rl-mobile) {
#rl-sub-left {
right: @rlBottomMargin !important;
width: inherit;
.b-message-list-wrapper {
bottom: inherit;
height: 300px;
box-shadow: none;
}
}
#rl-sub-right {
left: 0 !important;
.b-message-view-wrapper {
top: 356px;
left: 0;
right: 5px;
box-shadow: none;
background-color: var(--message-bg-color, #fff);
}
}
}
html.rl-mobile .hide-mobile,
html:not(.rl-mobile) .show-mobile {
2016-05-01 19:51:49 +08:00
display: none !important;
2016-05-01 09:07:10 +08:00
}
html.rl-mobile .width100-on-mobile {
2016-05-01 19:51:49 +08:00
width: 100% !important;
2016-05-01 09:07:10 +08:00
}