snappymail/dev/Styles/SquireUI.less

121 lines
2.4 KiB
Text
Raw Normal View History

.squire-toolbar {
2020-09-12 19:57:09 +08:00
overflow-x: auto;
overflow-y: hidden;
2020-09-12 19:57:09 +08:00
white-space: nowrap;
}
.squire-toolgroup {
display: inline-block;
margin: 0 .25em 0 0;
}
.squire-toolgroup > button,
.squire-toolgroup > select,
.squire-toolgroup > input[type="color"] {
background: transparent;
border: 0;
box-shadow: none;
color: #000;
cursor: pointer;
font-size: 14px;
height: 1.5em;
line-height: 1.7;
margin: 0;
padding: 0;
vertical-align: bottom;
width: 2em;
}
.squire-toolgroup button:hover, .squire-toolgroup button.active {
background: #f0f0f0;
}
.squire-toolgroup select {
width: 7em !important;
}
.squire-toolgroup select[data-action="fontSize"] {
width: 4em !important;
}
2020-09-22 17:19:52 +08:00
.squire-toolgroup button[data-action="bold"] {
2020-09-13 20:13:16 +08:00
font-weight: bold;
}
2020-09-22 17:19:52 +08:00
.squire-toolgroup button[data-action="italic"] {
2020-09-13 20:13:16 +08:00
font-style: italic;
}
/*
2020-09-22 17:19:52 +08:00
.squire-toolgroup button[data-action="underline"] {
2020-09-13 20:13:16 +08:00
text-decoration: underline;
}
2020-09-22 17:19:52 +08:00
.squire-toolgroup button[data-action="strikethrough"] {
2020-09-13 20:13:16 +08:00
text-decoration: line-through;
}
*/
.squire-wysiwyg {
2020-09-12 19:57:09 +08:00
box-sizing: border-box;
overflow: auto;
}
/* This does make the block element focusable with mouse in Gecko and Webkit so we don't need a <BR>.
However, arrow up/down still not working.
Secondly, we can't rely on MUA's what to do with :empty
.squire-wysiwyg div:empty,
.squire-wysiwyg div:-moz-only-whitespace {
min-height: 16px;
}
/* This "placeholder" doesn't work good in Gecko
.squire-wysiwyg div:empty::before,
.squire-wysiwyg div:-moz-only-whitespace::before {
content: "Start writing here…";
opacity: 0.5;
user-select: text;
-moz-user-select: text;
}
*/
.squire-wysiwyg, .squire-plain {
min-height: 200px;
padding: .5em;
}
.squire-plain {
width: 100%;
}
.squire-plain {
display: none;
}
.squire-mode-plain .squire-wysiwyg {
display: none;
}
.squire-mode-plain .squire-plain {
display: block;
}
.squire-mode-plain .squire-toolgroup:not(#squire-toolgroup-mode) {
display: none;
}
/* @media (hover: none) */
.rl-mobile .squire-toolbar {
padding: 1px;
position: fixed;
bottom: 0;
left: 0;
right: 0;
}
.rl-mobile .squire-toolgroup > button,
.rl-mobile .squire-toolgroup > select,
.rl-mobile .squire-toolgroup > input[type="color"] {
height: 2.5em;
line-height: 2.8;
width: 3em;
}
2020-09-20 17:47:18 +08:00
.rl-mobile #rl-popups .b-compose.modal,
.rl-mobile #rl-popups .b-identity-content.modal {
margin-bottom: 50px;
}
.rl-mobile .b-compose.modal {
min-height: calc(100% - 62px);
}