mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-03 12:39:19 -05:00
WIP
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
d7a3d0ff54
commit
b75a8db251
7 changed files with 61 additions and 1 deletions
|
@ -49,6 +49,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
hr {
|
||||
color: #bbbcbf;
|
||||
@media print {
|
||||
color: transparent !important;
|
||||
border-bottom: 2px solid #bbbcbf;
|
||||
}
|
||||
}
|
||||
|
||||
blockquote .blockquote-extra {
|
||||
font-size: 0.85em;
|
||||
margin-inline-start: 0.5em;
|
||||
|
|
|
@ -7,4 +7,32 @@
|
|||
.heading-anchor {
|
||||
display: none;
|
||||
}
|
||||
|
||||
mark {
|
||||
print-color-adjust: exact;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5 {
|
||||
break-after: avoid;
|
||||
}
|
||||
|
||||
table, figure {
|
||||
break-inside: avoid;
|
||||
}
|
||||
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 0 15pt;
|
||||
}
|
||||
|
||||
.print-link {
|
||||
display: block;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@media screen {
|
||||
.print-link {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,6 +12,7 @@ import React, { Fragment, useRef } from 'react'
|
|||
import { Button } from 'react-bootstrap'
|
||||
import { Files as IconFiles } from 'react-bootstrap-icons'
|
||||
import type { Variant } from 'react-bootstrap/types'
|
||||
import styles from './style.module.scss'
|
||||
|
||||
export interface CopyToClipboardButtonProps extends PropsWithDataCypressId {
|
||||
content: string
|
||||
|
@ -40,6 +41,7 @@ export const CopyToClipboardButton: React.FC<CopyToClipboardButtonProps> = ({
|
|||
return (
|
||||
<Fragment>
|
||||
<Button
|
||||
className={styles['copy-button']}
|
||||
ref={button}
|
||||
size={size}
|
||||
variant={variant}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
/*!
|
||||
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
@media print {
|
||||
.copy-button {
|
||||
display: none;
|
||||
}
|
||||
}
|
|
@ -55,3 +55,10 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
.code-highlighter {
|
||||
border: black solid 1px;
|
||||
border-radius: var(--bs-border-radius);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,6 +6,10 @@
|
|||
|
||||
.click-shield {
|
||||
|
||||
@media print {
|
||||
display: none;
|
||||
}
|
||||
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
width: 100%;
|
||||
|
|
|
@ -16,7 +16,7 @@ const replaceAsciinemaLink: RegexOptions = {
|
|||
replace: (match) => {
|
||||
// ESLint wants to collapse this tag, but then the tag won't be valid html anymore.
|
||||
// noinspection CheckTagEmptyBody
|
||||
return `<${AsciinemaMarkdownExtension.tagName} id='${match}'></${AsciinemaMarkdownExtension.tagName}>`
|
||||
return `<${AsciinemaMarkdownExtension.tagName} id='${match}'></${AsciinemaMarkdownExtension.tagName}><br /><a class='print-link' href='https://asciinema.org/a/${match}'>https://asciinema.org/a/${match}</a>`
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue