2020-09-10 18:56:45 +08:00
|
|
|
.squire-toolbar {
|
2020-09-12 19:57:09 +08:00
|
|
|
overflow-x: auto;
|
2020-09-16 05:36:42 +08:00
|
|
|
overflow-y: hidden;
|
2020-09-12 19:57:09 +08:00
|
|
|
white-space: nowrap;
|
2020-09-10 18:56:45 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
2020-09-15 01:40:56 +08:00
|
|
|
color: #000;
|
2020-09-10 18:56:45 +08:00
|
|
|
cursor: pointer;
|
|
|
|
font-size: 14px;
|
|
|
|
height: 1.5em;
|
2020-09-16 05:36:42 +08:00
|
|
|
line-height: 1.7;
|
2020-09-10 18:56:45 +08:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
vertical-align: bottom;
|
|
|
|
width: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.squire-toolgroup button:hover, .squire-toolgroup button.active {
|
|
|
|
background: #f0f0f0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.squire-toolgroup select {
|
2020-09-16 05:36:42 +08:00
|
|
|
width: 7em !important;
|
2020-09-10 18:56:45 +08:00
|
|
|
}
|
|
|
|
.squire-toolgroup select[data-action="fontSize"] {
|
2020-09-16 05:36:42 +08:00
|
|
|
width: 4em !important;
|
2020-09-10 18:56:45 +08:00
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
*/
|
2020-09-10 18:56:45 +08:00
|
|
|
|
2020-09-12 01:57:29 +08:00
|
|
|
.squire-wysiwyg {
|
2020-09-12 19:57:09 +08:00
|
|
|
box-sizing: border-box;
|
2020-09-12 01:57:29 +08:00
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
2020-09-24 22:24:35 +08:00
|
|
|
/* 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
|
2020-09-24 21:13:33 +08:00
|
|
|
.squire-wysiwyg div:empty,
|
|
|
|
.squire-wysiwyg div:-moz-only-whitespace {
|
2020-09-24 22:24:35 +08:00
|
|
|
min-height: 16px;
|
2020-09-24 21:13:33 +08:00
|
|
|
}
|
2020-09-24 22:24:35 +08:00
|
|
|
/* This "placeholder" doesn't work good in Gecko
|
2020-09-24 22:11:46 +08:00
|
|
|
.squire-wysiwyg div:empty::before,
|
|
|
|
.squire-wysiwyg div:-moz-only-whitespace::before {
|
2020-09-24 21:13:33 +08:00
|
|
|
content: "Start writing here…";
|
|
|
|
opacity: 0.5;
|
2020-09-24 22:24:35 +08:00
|
|
|
user-select: text;
|
2020-09-24 22:11:46 +08:00
|
|
|
-moz-user-select: text;
|
2020-09-24 21:13:33 +08:00
|
|
|
}
|
2020-09-24 22:11:46 +08:00
|
|
|
*/
|
2020-09-24 21:13:33 +08:00
|
|
|
|
2020-09-11 00:47:28 +08:00
|
|
|
.squire-wysiwyg, .squire-plain {
|
2020-09-10 18:56:45 +08:00
|
|
|
min-height: 200px;
|
|
|
|
padding: .5em;
|
|
|
|
}
|
2020-09-11 00:47:28 +08:00
|
|
|
|
|
|
|
.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) {
|
2020-09-11 03:44:01 +08:00
|
|
|
display: none;
|
2020-09-11 00:47:28 +08:00
|
|
|
}
|
2020-09-16 05:36:42 +08:00
|
|
|
|
|
|
|
/* @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);
|
|
|
|
}
|