snappymail/dev/Styles/User/SquireUI.less

170 lines
2.9 KiB
Plaintext
Raw Normal View History

2021-02-19 19:11:20 +08:00
.squire-toolbar {
2021-02-19 19:11:20 +08:00
border-bottom: 1px solid #b6b6b6;
min-height: 28px;
2020-09-12 19:57:09 +08:00
overflow-x: auto;
overflow-y: hidden;
padding: 2px;
2020-09-12 19:57:09 +08:00
white-space: nowrap;
}
2021-02-19 19:11:20 +08:00
.squire-toolbar select {
font-size: 12px;
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;
}
2021-02-19 19:11:20 +08:00
.squire-toolbar select[data-action="fontSize"] {
width: 5em;
}
.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;
}
*/
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;
height: 100%;
2021-02-19 19:11:20 +08:00
line-height: 16px;
min-height: 200px;
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 {
border: none;
border-radius: 0;
display: block;
2022-03-14 02:51:14 +08:00
font-family: var(--fontMono);
margin: 0;
padding: 0;
2021-02-19 19:11:20 +08:00
word-break: normal;
word-wrap: break-word;
}
code {
display: inline;
padding: 2px 5px;
}
pre {
border-radius: 5px;
2022-03-14 02:51:14 +08:00
padding: 5px 10px;
2021-02-19 19:11:20 +08:00
}
pre > code {
padding: 0;
}
blockquote {
border: 0;
border-left: 2px solid #444;
2021-02-19 19:11:20 +08:00
margin: 5px 0 5px 5px;
padding-left: 5px;
}
blockquote p {
margin: 0 0 10px;
line-height: 20px;
}
img {
vertical-align: bottom;
}
}
/* 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-plain {
2021-02-19 19:11:20 +08:00
border: 0;
border-radius: 0;
display: none;
2021-02-19 19:11:20 +08:00
font-family: var(--fontMono);
margin: 0;
resize: none;
white-space: pre-wrap;
width: 100%;
}
2021-11-16 16:33:31 +08:00
2022-09-23 19:42:28 +08:00
.squire-mode-source .squire-wysiwyg,
2021-11-16 16:33:31 +08:00
.squire-mode-wysiwyg .squire-plain,
2021-02-19 19:11:20 +08:00
.squire-mode-plain .squire-wysiwyg,
.squire-mode-plain .btn-group:not(#squire-toolgroup-mode) {
display: none;
}
2021-11-16 16:33:31 +08:00
2022-09-23 19:42:28 +08:00
.squire-mode-source .squire-plain,
.squire-mode-plain .squire-plain {
display: block;
}
/* @media (hover: none) */
@media screen and (max-height: 600px) {
.rl-mobile .textAreaParent:not(:focus-within) .squire-toolbar {
display: none;
}
.rl-mobile .squire-toolbar {
background: #EEE;
padding: 1px;
position: fixed;
top: 18px;
left: 0;
right: 0;
/*
transform: translateY(-42px);
z-index: 9;
*/
}
}
2020-09-20 17:47:18 +08:00
.rl-mobile #V-PopupsCompose {
2021-11-16 20:15:02 +08:00
min-height: calc(100% - 12px);
2020-09-20 17:47:18 +08:00
}