cssOMS/article.scss
Dennis Eichhorn d8d1080d3d update
2023-10-09 22:06:39 +00:00

159 lines
2.6 KiB
SCSS
Executable File

.portlet-body > article {
padding: 0;
}
article {
background: #fff;
padding: 10px;
margin: 0;
font-size: .9rem;
color: #000;
line-height: 2rem;
white-space: normal;
del, ins, mark {
padding: 3px;
text-decoration: none;
}
.tag {
margin: 0.1rem;
}
del {
background: #ff9e9e;
}
ins {
background: #b0f3b0;
}
mark {
background: #f9ffa1;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 300;
//padding-bottom: 1rem;
}
h1 {
font-size: 1.4rem;
}
h2 {
font-size: 1.3rem;
}
h3 {
font-size: 1.1rem;
}
h4, h5, h6 {
font-size: 1rem;
}
strong {
font-weight: 500;
}
pre {
margin: 1rem 0 1rem 0;
border: 1px solid #ddd;
border-left: 3px solid #25acff;
background: #f4f4f4;
line-height: 1.2rem;
font-size: .8rem;
code {
background: none;
color: #000;
}
}
blockquote {
color: #fff;
background: #25acff;
border: 1px solid #0480ce;
padding: 1rem;
border-radius: 5px;
margin: 1.5rem;
p:last-child {
margin-bottom: 0;
}
code {
color: inherit;
background: inherit;
}
a {
color: inherit;
}
}
code {
font-family: var(--font-family);
font-size: 0.8rem;
color: #23222d;
background: #f4f4f4;
border-radius: 3px;
}
a {
color: var(--link-color);
border-bottom: 1px dotted var(--link-color);
&:hover {
border-bottom: none;
}
}
p {
line-height: 1.5em;
}
ol, ul {
list-style-position: outside;
margin: 0.5rem 0 0.5rem 3rem;
line-height: 1rem;
}
ul {
list-style: disc;
}
li {
margin: 0.3rem 0 0.3rem 0;
line-height: 1.5em;
}
img {
display: block;
margin: 0 auto;
max-width: 100%;
max-height: 100%;
}
table {
border-collapse: collapse;
border: 1px solid var(--box-border);
margin: 0 auto;
margin-bottom: 1rem;
min-width: 90%;
th, td {
padding: 5px;
border: 1px solid var(--box-border);
}
th {
background: var(--table-head-background);
}
tr:nth-child(2n) td {
background: var(--table-row-background);
}
}
}