NDOJ/resources/content-description.scss

264 lines
4.6 KiB
SCSS
Raw Normal View History

2020-01-21 06:35:58 +00:00
@import "vars";
.content-description {
2022-10-25 04:59:04 +00:00
line-height: 1.6em;
2024-02-03 00:35:50 +00:00
font-size: 16px;
font-family: "Segoe UI", "Noto Sans", Arial, "Lucida Grande", sans-serif;
overflow-wrap: anywhere;
2020-01-21 06:35:58 +00:00
2024-02-03 00:54:33 +00:00
h1, h2, h3, h4, h5, .admonition-title, summary {
font-family: "Noto Sans", "Segoe UI", Arial, "Lucida Grande", sans-serif;
}
2020-01-21 06:35:58 +00:00
img {
max-width: 100%;
height: auto;
}
pre, code, kbd, samp, span.code {
color: #000;
page-break-inside: avoid;
font-family: $monospace-fonts;
font-size: 0.98em;
}
code, span.code {
font-family: $monospace-fonts !important;
margin: 0 2px;
padding: 0 5px;
2024-01-19 01:46:41 +00:00
background-color: var(--md-code-bg-color);
2020-01-21 06:35:58 +00:00
border-radius: $widget_border_radius;
2024-01-19 01:46:41 +00:00
color: var(--md-code-fg-color);
2020-01-21 06:35:58 +00:00
}
pre {
code, div.code {
border: 0;
line-height: 1em;
margin: 0;
padding: 0;
background: transparent;
font-size: 1em;
2024-01-19 01:46:41 +00:00
color: var(--md-code-fg-color);
2022-11-01 03:26:26 +00:00
2020-01-21 06:35:58 +00:00
}
white-space: pre-wrap;
word-wrap: break-word;
2024-01-19 01:46:41 +00:00
padding: 0.5em 1em;
background-color: var(--md-code-bg-color);
color: var(--md-code-fg-color);
border-radius: 3px;
2020-01-21 06:35:58 +00:00
}
2022-11-01 03:26:26 +00:00
pre.no-border {
2023-09-06 00:39:30 +00:00
margin-top: 0.4em;
2022-11-01 03:26:26 +00:00
padding: 0.5em;
border: none;
background-color: inherit;
border-radius: none;
}
2024-01-19 01:46:41 +00:00
.linenos pre {
padding-right: 0;
}
2020-01-21 06:35:58 +00:00
b, strong {
font-weight: bold;
}
dfn {
font-style: italic;
}
ins {
background: #ff9;
color: #000;
text-decoration: none;
}
mark {
background: #ff0;
color: #000;
font-style: italic;
font-weight: bold;
}
sub {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
top: -0.5em;
}
sub {
bottom: -0.25em;
}
ul, ol {
padding: 0 0 0 2em !important;
}
li p:last-child {
margin: 0;
}
dd {
margin: 0 0 0 2em;
}
img {
border: 0;
-ms-interpolation-mode: bicubic;
vertical-align: middle;
}
td {
vertical-align: top;
}
}
.display-math {
display: block;
text-align: center;
margin-left: auto;
margin-right: auto;
}
2021-12-18 03:51:15 +00:00
.codehilitetable {
2021-12-18 04:45:35 +00:00
pre {
padding: 0.5em;
padding-right: 0;
background-color: hsla(0,0%,92.5%,.5);
}
2021-12-18 03:51:15 +00:00
.linenos {
width: 4%;
2023-09-06 00:39:30 +00:00
2021-12-18 03:51:15 +00:00
pre {
color: rgba(0,0,0,.26);
background-color: rgba(0,0,0,.07);
width: 100%;
2021-12-18 04:45:35 +00:00
border-right: 0;
2021-12-18 03:51:15 +00:00
span {
margin-left: 0.4em;
}
}
}
.code {
padding-left: 0.2em;
pre {
padding-left: 1em;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
width: 100%;
}
2022-10-28 01:32:31 +00:00
textarea,
pre {
-moz-tab-size : 4;
2023-09-06 00:39:30 +00:00
-o-tab-size : 4;
tab-size : 4;
2022-10-28 01:32:31 +00:00
}
2024-01-19 01:46:41 +00:00
@media (min-width: 800px) {
.content-description pre:has(code) {
2024-01-30 02:43:28 +00:00
min-width: 3em;
2024-01-19 01:46:41 +00:00
}
2020-01-21 06:35:58 +00:00
#common-content {
display: flex;
flex-direction: row-reverse;
}
#content-left {
flex: 86%;
width: 100%;
&.split-common-content {
2020-06-12 15:48:44 +00:00
width: 70%;
2020-01-21 06:35:58 +00:00
}
.content-description {
width: 100%;
}
}
#content-right {
flex: 14%;
max-width: 12.5em;
min-width: 8em;
padding-left: 1.5em;
padding-top: 1em;
.info-float {
float: none;
padding: 0;
position: sticky;
top: 70px;
width: 100%;
}
}
}
2024-01-19 01:46:41 +00:00
@media not all and (min-width: 800px) {
2020-01-21 06:35:58 +00:00
#content-right .info-float {
float: none;
width: 100% !important;
position: static !important;
box-sizing: border-box;
}
}
2022-12-25 04:22:05 +00:00
@media (max-width: 799px) {
.content-description {
font-size: 16px;
line-height: 1.7em;
}
}
2020-01-21 06:35:58 +00:00
a.view-pdf {
padding-top: 0.6em;
display: inline-block;
}
.problem-title {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
2024-04-23 20:36:51 +00:00
align-items: center;
2020-01-21 06:35:58 +00:00
.spacer {
display: inline-block;
flex: 1 1 1px;
}
}
.info-float .fa {
color: #000;
padding-right: 0.2em;
}
#problem-types, #allowed-langs {
.toggled {
margin-left: 1.3em;
}
}
2020-06-20 01:44:03 +00:00
details summary {
cursor: pointer;
}