2021-02-19 19:11:20 +08:00
|
|
|
|
2020-09-10 18:56:45 +08:00
|
|
|
.squire-toolbar {
|
2021-02-19 19:11:20 +08:00
|
|
|
padding: 2px;
|
|
|
|
border-bottom: 1px solid #b6b6b6;
|
|
|
|
background: #EEE;
|
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
|
|
|
}
|
|
|
|
|
2021-02-19 19:11:20 +08:00
|
|
|
.squire-toolbar select {
|
|
|
|
font-size: 12px;
|
2021-02-23 00:28:54 +08:00
|
|
|
padding: 4px 1.5em 4px 6px;
|
2021-02-19 21:40:13 +08:00
|
|
|
text-align: left;
|
2021-02-19 19:11:20 +08:00
|
|
|
vertical-align: middle;
|
|
|
|
width: 7em;
|
2020-09-10 18:56:45 +08:00
|
|
|
}
|
2021-02-19 19:11:20 +08:00
|
|
|
.squire-toolbar select[data-action="fontSize"] {
|
|
|
|
width: 5em;
|
2020-09-10 18:56:45 +08:00
|
|
|
}
|
2021-02-23 00:28:54 +08:00
|
|
|
.squire-toolbar button {
|
|
|
|
font-family: snappymail, var(--fontSans)
|
|
|
|
}
|
2021-02-19 19:11:20 +08:00
|
|
|
.squire-toolbar button[data-action="bold"] {
|
2020-09-13 20:13:16 +08:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
2021-02-19 19:11:20 +08:00
|
|
|
.squire-toolbar button[data-action="italic"] {
|
2020-09-13 20:13:16 +08:00
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
/*
|
2021-02-19 19:11:20 +08:00
|
|
|
.squire-toolbar button[data-action="underline"] {
|
2020-09-13 20:13:16 +08:00
|
|
|
text-decoration: underline;
|
|
|
|
}
|
2021-02-19 19:11:20 +08:00
|
|
|
.squire-toolbar button[data-action="strikethrough"] {
|
2020-09-13 20:13:16 +08:00
|
|
|
text-decoration: line-through;
|
|
|
|
}
|
|
|
|
*/
|
2020-09-10 18:56:45 +08:00
|
|
|
|
2021-02-19 19:11:20 +08:00
|
|
|
.squire-wysiwyg, .squire-plain {
|
2020-09-12 19:57:09 +08:00
|
|
|
box-sizing: border-box;
|
2021-02-19 19:11:20 +08:00
|
|
|
font-size: 13px;
|
|
|
|
line-height: 16px;
|
|
|
|
min-height: 200px;
|
2020-09-12 01:57:29 +08:00
|
|
|
overflow: auto;
|
2021-02-19 19:11:20 +08:00
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.squire-wysiwyg {
|
|
|
|
font-family: var(--fontSans);
|
|
|
|
|
|
|
|
ul {
|
|
|
|
padding-left: 40px;
|
|
|
|
li {
|
|
|
|
list-style-type: disc !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
ol {
|
|
|
|
padding-left: 40px;
|
|
|
|
li {
|
|
|
|
list-style-type: decimal !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pre, code {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: #fff;
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
font-family: var(--fontMono);
|
|
|
|
display: block;
|
|
|
|
word-break: normal;
|
|
|
|
word-wrap: break-word;
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
}
|
|
|
|
|
|
|
|
code {
|
|
|
|
display: inline;
|
|
|
|
padding: 2px 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre {
|
|
|
|
padding: 5px 10px;
|
|
|
|
border-radius: 5px;
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre > code {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote {
|
|
|
|
border: 0;
|
|
|
|
border-left: solid 2px #444;
|
|
|
|
margin: 5px 0 5px 5px;
|
|
|
|
padding-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
blockquote p {
|
|
|
|
margin: 0 0 10px;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
img {
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: blue;
|
|
|
|
text-decoration: underline;
|
|
|
|
|
|
|
|
&:visited {
|
|
|
|
color: #609;
|
|
|
|
}
|
|
|
|
&:active {
|
|
|
|
color: red;
|
|
|
|
}
|
|
|
|
}
|
2020-09-12 01:57:29 +08:00
|
|
|
}
|
|
|
|
|
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-plain {
|
2021-02-19 19:11:20 +08:00
|
|
|
background-color: #fff;
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
2020-09-11 00:47:28 +08:00
|
|
|
display: none;
|
2021-02-19 19:11:20 +08:00
|
|
|
font-family: var(--fontMono);
|
|
|
|
outline: none;
|
|
|
|
margin: 0;
|
|
|
|
resize: none;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
width: 100%;
|
2020-09-11 00:47:28 +08:00
|
|
|
}
|
2021-02-19 19:11:20 +08:00
|
|
|
.squire-mode-plain .squire-wysiwyg,
|
|
|
|
.squire-mode-plain .btn-group:not(#squire-toolgroup-mode) {
|
2020-09-11 00:47:28 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.squire-mode-plain .squire-plain {
|
|
|
|
display: block;
|
|
|
|
}
|
2020-09-16 05:36:42 +08:00
|
|
|
|
|
|
|
/* @media (hover: none) */
|
2020-11-03 22:54:35 +08:00
|
|
|
.rl-mobile .textAreaParent:not(:focus-within) .squire-toolbar {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-09-16 05:36:42 +08:00
|
|
|
.rl-mobile .squire-toolbar {
|
|
|
|
padding: 1px;
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
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);
|
|
|
|
}
|