NDOJ/resources/content-description.scss

256 lines
4.4 KiB
SCSS
Raw Permalink 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;
2022-11-04 03:16:25 +00:00
font-size: 15px;
font-family: "Noto Sans", 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;
border: 1px solid $border_gray;
background-color: #f8f8f8;
border-radius: $widget_border_radius;
font-size: 0.95em;
color: #444;
}
pre {
code, div.code {
border: 0;
line-height: 1em;
margin: 0;
padding: 0;
background: transparent;
font-size: 1em;
color: black;
2022-11-01 03:26:26 +00:00
2020-01-21 06:35:58 +00:00
}
white-space: pre-wrap;
word-wrap: break-word;
margin: 1.5em 0 1.5em 0;
2021-12-18 04:45:35 +00:00
padding: 1em;
border: 1px solid $border_gray;
background-color: #f8f8f8;
2020-01-21 06:35:58 +00:00
color: black;
border-radius: $widget_border_radius;
}
2022-11-01 03:26:26 +00:00
pre.no-border {
margin-top: -0.7em;
padding: 0.5em;
border: none;
background-color: inherit;
border-radius: none;
}
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%;
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;
-o-tab-size : 4;
tab-size : 4;
}
2020-01-21 06:35:58 +00:00
@media (min-width: 700px) {
#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%;
}
}
}
@media not all and (min-width: 700px) {
#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;
.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;
}