@studiocms/md
Version:
Add Markdown Support to your StudioCMS project with ease!
225 lines (224 loc) • 5.74 kB
CSS
.TinyMDE {
background-color: var(--background-step-2) ;
color: var(--text-normal) ;
font-size: 16px ;
line-height: 24px ;
outline: none ;
padding: 5px ;
height: 100% ;
border-bottom-left-radius: 8px ;
border-bottom-right-radius: 8px ;
border-right: 2px solid var(--border) ;
border-bottom: 2px solid var(--border) ;
border-left: 2px solid var(--border) ;
overflow-y: auto;
overflow-x: hidden;
&::-webkit-scrollbar,
&::-webkit-scrollbar-track {
background-color: inherit;
border-radius: 99px;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
&::-webkit-scrollbar-thumb {
background-color: var(--default-active);
border: 4px solid transparent;
background-clip: content-box;
border-radius: 99px;
}
&::-webkit-scrollbar-thumb:hover {
background-color: var(--default-hover);
}
}
.TMBlankLine {
height: 24px ;
}
.TMH1,
.TMSetextH1 {
font-size: 22px ;
line-height: 32px ;
font-weight: bold ;
margin-bottom: 8px ;
}
.TMSetextH1 {
margin-bottom: 0px ;
}
.TMSetextH1Marker {
margin-bottom: 8px ;
}
.TMH2,
.TMSetextH2 {
font-size: 20px ;
line-height: 28px ;
font-weight: bold ;
margin-bottom: 4px ;
}
.TMMark_TMCode {
font-family: monospace ;
font-size: 0.9em ;
}
.TMFencedCodeBacktick,
.TMFencedCodeTilde,
.TMIndentedCode,
.TMCode {
font-family: monospace ;
font-size: 0.9em ;
background-color: var(--background-step-3) ;
}
.TMCodeFenceBacktickOpen,
.TMCodeFenceTildeOpen {
border-bottom: 1px solid var(--border) ;
font-family: monospace ;
font-size: 0.9em ;
}
.TMCodeFenceBacktickClose,
.TMCodeFenceTildeClose {
border-top: 1px solid var(--border) ;
font-family: monospace ;
font-size: 0.9em ;
}
.TMInfoString {
color: #0000ff ;
}
.TMCode {
border: 1px solid var(--border) ;
border-radius: 2px ;
}
.TMBlockquote {
font-style: italic ;
border-left: 2px solid var(--border) ;
padding-left: 10px ;
margin-left: 10px ;
}
.TMMark {
color: var(--text-muted) ;
}
.TMMark_TMH1,
.TMMark_TMH2 {
color: #ff8080 ;
}
.TMMark_TMUL,
.TMMark_TMOL {
color: #ff8080 ;
}
.TMImage {
text-decoration: underline ;
text-decoration-color: #00ff00 ;
}
.TMLink {
text-decoration: underline ;
text-decoration-color: #0000ff ;
}
.TMLinkLabel {
text-decoration: underline ;
font-family: monospace ;
}
.TMLinkLabel_Definition,
.TMLinkLabel_Valid {
color: #40c040 ;
}
.TMLinkLabel_Invalid {
color: #ff0000 ;
}
.TMLinkTitle {
font-style: italic ;
}
.TMLinkDestination,
.TMAutolink {
text-decoration: underline ;
color: #0000ff ;
}
.TMHR {
position: relative ;
}
.TMHR:before {
content: "";
position: absolute ;
bottom: 50% ;
left: 40% ;
border-bottom: 2px solid var(--border) ;
width: 20% ;
z-index: 0 ;
}
.TMHTML,
.TMHTMLBlock {
font-family: monospace ;
font-size: 0.9em ;
color: #8000ff ;
}
.TMHTMLBlock {
color: #6000c0 ;
}
.TMCommandBar {
background-color: var(--background-step-3) ;
height: 24px ;
border: 2px solid var(--border) ;
box-sizing: content-box ;
display: flex ;
-webkit-user-select: none ;
user-select: none ;
overflow-x: scroll ;
overflow-y: hidden ;
scrollbar-width: none ;
-ms-overflow-style: none ;
border-top-left-radius: 8px ;
border-top-right-radius: 8px ;
padding-left: 0.5rem;
}
.TMCommandBar::-webkit-scrollbar {
display: none ;
}
.TMCommandButton {
box-sizing: border-box ;
display: inline-block ;
height: 24px ;
padding: 3px ;
margin-right: 4px ;
color: var(--text-muted) ;
fill: var(--text-muted) ;
text-align: center ;
cursor: pointer ;
vertical-align: middle ;
font-size: 20px ;
line-height: 18px ;
font-family: sans-serif ;
}
.TMCommandButtonSpan {
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
}
.TMCommandDivider {
box-sizing: content-box ;
height: 24px ;
margin-left: 4px ;
margin-right: 8px ;
width: 0px ;
border-left: 1px solid var(--border) ;
border-right: 1px solid var(--border) ;
}
.TMCommandButton_Active {
font-weight: bold ;
color: var(--text-inverted) ;
background-color: var(--primary-active) ;
fill: var(--text-inverted) ;
}
.TMCommandButton_Inactive {
background-color: var(--background-step-3) ;
fill: var(--text-normal) ;
color: var(--text-normal) ;
}
.TMCommandButton_Disabled {
color: var(--text-muted) ;
fill: var(--text-muted) ;
}
@media (hover: hover) {
.TMCommandButton_Active:hover,
.TMCommandButton_Disabled:hover,
.TMCommandButton_Inactive:hover {
background-color: var(--primary-hover) ;
fill: var(--text-inverted) ;
color: var(--text-inverted) ;
}
}