NDOJ/resources/pagedown_widget.scss

232 lines
4.6 KiB
SCSS
Raw Permalink Normal View History

2024-02-01 02:46:25 +00:00
@import "vars";
2022-12-18 09:31:31 +00:00
.wmd-panel {
margin: 0;
width: 100%;
min-width: 0;
}
.wmd-button-bar {
width: 100%;
background-color: white;
}
.wmd-input {
height: 300px;
width: 100%;
background: #fff;
border: 1px solid DarkGray;
2024-02-01 02:46:25 +00:00
font-family: $monospace-fonts;
2024-02-19 23:00:44 +00:00
font-size: 15px;
2022-12-18 09:31:31 +00:00
}
.wmd-preview {
background: none;
word-wrap: break-word;
}
.wmd-button-row {
2024-02-01 02:46:25 +00:00
margin-top: 10px;
margin-bottom: 5px;
2022-12-18 09:31:31 +00:00
padding: 0;
2024-02-01 02:46:25 +00:00
display: flex; /* Display as a flex container */
flex-wrap: nowrap; /* Prevent items from wrapping */
overflow-x: auto;
white-space: nowrap;
gap: 3px;
2022-12-18 09:31:31 +00:00
}
.wmd-button {
display: inline-flex;
list-style: none;
width: 20px;
height: 20px;
background-repeat: no-repeat;
background-size: 14px 14px;
background-position: center;
border-radius: 3px;
cursor: pointer;
2024-02-01 02:46:25 +00:00
flex: 0 0 auto;
2022-12-18 09:31:31 +00:00
}
.wmd-bold-button {
background-image: url("/static/pagedown/resources/bold.svg");
}
.wmd-italic-button {
background-image: url("/static/pagedown/resources/italic.svg");
}
.wmd-latex-button {
background-image: url("/static/pagedown/resources/latex.svg");
}
.wmd-latex-button-display {
background-image: url("/static/pagedown/resources/latex-display.svg");
}
.wmd-link-button {
background-image: url("/static/pagedown/resources/link.svg");
}
.wmd-user-reference-button {
background-image: url("/static/pagedown/resources/user.svg");
}
.wmd-quote-button {
background-image: url("/static/pagedown/resources/blockquote.svg");
}
.wmd-code-button {
background-image: url("/static/pagedown/resources/code.svg");
}
.wmd-image-button {
background-image: url("/static/pagedown/resources/image.svg");
}
.wmd-olist-button {
background-image: url("/static/pagedown/resources/olist.svg");
background-size: 18px;
}
.wmd-ulist-button {
background-image: url("/static/pagedown/resources/ulist.svg");
background-size: 18px;
}
.wmd-heading-button {
background-image: url("/static/pagedown/resources/heading.svg");
}
.wmd-hr-button {
background-image: url("/static/pagedown/resources/hr.svg");
}
.wmd-undo-button {
background-image: url("/static/pagedown/resources/undo.svg");
background-size: 18px;
}
.wmd-redo-button {
background-image: url("/static/pagedown/resources/redo.svg");
background-size: 18px;
}
.wmd-admonition-button {
background-image: url("/static/pagedown/resources/admonition.svg");
}
.wmd-spoiler-button {
background-image: url("/static/pagedown/resources/spoiler.svg");
}
.wmd-button-active:hover {
background-color: lightgray;
}
.wmd-button-inactive {
filter: invert(88%) sepia(1%) saturate(0%) hue-rotate(278deg) brightness(98%) contrast(91%);
}
.wmd-spacer
{
display: inline-flex;
2024-02-01 02:46:25 +00:00
width: 10px;
2022-12-18 09:31:31 +00:00
}
.wmd-prompt-background {
background-color: Black;
}
.wmd-prompt-dialog {
border: 1px solid #999999;
background-color: #F5F5F5;
}
.wmd-prompt-dialog > div {
font-size: 0.8em;
font-family: arial, helvetica, sans-serif;
}
.wmd-prompt-dialog > form > input[type="text"] {
border: 1px solid #999999;
color: black;
}
.wmd-prompt-dialog > form > input[type="button"] {
border: 1px solid #888888;
font-family: trebuchet MS, helvetica, sans-serif;
font-size: 0.8em;
font-weight: bold;
}
.wmd-wrapper {
padding-right: 0 !important;
}
.wmd-preview {
margin-top: 15px;
padding: 7px;
background: white;
line-height: 1.5em;
font-size: 1em;
border: 1px solid #a9a9a9;
border-radius: 5px;
box-sizing: border-box;
}
.wmd-preview:empty {
display: none;
2023-01-12 04:07:35 +00:00
}
/* Extra styles to allow for image upload */
.pagedown-image-upload {
2023-10-05 19:00:20 +00:00
display: none;
z-index: 10001;
position: fixed;
background: white;
top: 50%;
left: 50%;
padding: 10px;
width: 400px;
max-width: 90%;
transform: translate3d(-50%, -50%, 0);
box-shadow: 2px 2px 10px 0px rgba(0, 0, 0, 0.5);
2023-01-12 04:07:35 +00:00
}
.pagedown-image-upload .submit-row {
2023-10-05 19:00:20 +00:00
margin: 10px 0 0 0;
2023-01-12 04:07:35 +00:00
}
.pagedown-image-upload.show {
2023-10-05 19:00:20 +00:00
display: block;
2023-01-12 04:07:35 +00:00
}
.pagedown-image-upload .submit-loading {
2023-10-05 19:00:20 +00:00
display: none;
vertical-align: middle;
border: 4px solid #f3f3f3; /* Light grey */
border-top: 4px solid #79aec8; /* Blue */
border-radius: 50%;
width: 24px;
height: 24px;
animation: spin 1s linear infinite;
2023-01-12 04:07:35 +00:00
}
.pagedown-image-upload .submit-loading.show {
2023-10-05 19:00:20 +00:00
display: inline-block;
2023-01-12 04:07:35 +00:00
}
.pagedown-image-upload .submit-input {
2023-10-05 19:00:20 +00:00
display: none;
2023-01-12 04:07:35 +00:00
}
.pagedown-image-upload .submit-input.show {
2023-10-05 19:00:20 +00:00
display: inline-block;
2023-01-12 04:07:35 +00:00
}
@keyframes spin {
2023-10-05 19:00:20 +00:00
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
2022-12-18 09:31:31 +00:00
}