| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512 |
- #single-menu {
- @include themify($themes) {
- border-right: 1px solid themed('border-line-color');
- }
- }
- .single {
- position: relative;
- width: 100%;
- overflow-wrap: break-word;
- &[data-display="block"] {
- display: block;
- }
- &[data-display="none"] {
- display: none;
- }
- &__title {
- font-size: 3rem;
- font-weight: 900;
- font-family: $title-font;
- line-height: 3rem;
- overflow-wrap: break-word;
- padding: 1rem;
- margin: 1rem 0;
- @include themify($themes) {
- color: themed("single-header-title-color");
- }
- }
- &__meta {
- font-size: 0.8rem;
- margin-bottom: 1.5rem;
- @include flexbox();
- @include align-items(center);
- @include themify($themes) {
- color: themed('meta-color');
- }
- }
- &__infos {
- margin-right: 0.5rem;
- @include flexbox();
- @include flex-wrap(wrap);
- }
- &__info {
- word-break: keep-all;
- padding: 0 0.125rem;
- }
- &__contents {
- &--gallery {
- overflow: hidden;
- }
- & > p > a {
- text-decoration: underline;
- }
- margin: 1rem 0;
- line-height: 1.7;
- width: inheirt;
- max-width: inherit;
- h1,
- h2,
- h3,
- h4,
- h5,
- h6 {
- position: relative;
- line-height: 1.25;
- padding: 0 1rem;
- font-family: $title-font;
- }
- h1,
- h2 {
- color: inherit;
- font-weight: 900;
- text-rendering: optimizeLegibility;
- @include themify($themes) {
- color: themed("single-contents-title-color");
- }
- }
- h3,
- h4,
- h5,
- h6 {
- @include themify($themes) {
- color: themed("single-contents-subtitle-color");
- }
- }
- h1 {
- font-size: 2.6rem;
- margin: 3.5rem 0 1.75rem 0;
- }
- h2 {
- font-size: 2.2rem;
- margin: 3.2rem 0 1.5rem 0;
- }
- h3 {
- font-size: 1.8rem;
- margin: 2.8rem 0 1.25rem 0;
- }
- h4 {
- font-size: 1.5rem;
- margin: 2.4rem 0 1rem 0;
- }
- h5 {
- font-size: 1.2rem;
- margin: 2rem 0 0.8rem 0;
- }
- h6 {
- font-size: 1rem;
- margin: 1.5rem 0 0.5rem 0;
- }
- pre {
- margin-top: 1.6rem;
- overflow: auto;
- line-height: 1.5;
- @include themify($themes) {
- border-top: 1px solid themed('border-line-color');
- border-bottom: 1px solid themed('border-line-color');
- @include webkit-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
- @include moz-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
- }
- }
- pre:not(.chroma) {
- position: relative;
- margin: 1rem 0;
- @include themify($codeblock) {
- border-left: 4px solid themed('content-pre-border-background-color');
- }
- }
- div.chroma {
- position: relative;
- @include on-event {
- .copy-to-clipboard {
- opacity: 1;
- }
- }
- }
-
- p > code:not([class^=language]) {
- padding: 0.25rem 0.5rem;
- @include themify($codeblock) {
- color: themed('content-code-color');
- }
- }
- blockquote {
- margin: 0 1.75rem 1.75rem 1.5rem;
- padding: 0 0 0 1.42188rem;
- font-size: 1.05rem;
- font-style: italic;
- line-height: 1.75;
- color: inherit;
- opacity: 0.8;
- position: relative;
-
- @include themify($themes) {
- border-left: 5px solid themed("single-blockquote-border-color");
- }
- code:not([class^=language]) {
- padding: 3px 7px;
- margin: 0 0.25rem;
- @include themify($codeblock) {
- color: themed('content-code-color');
- }
- }
- }
- img {
- display: block;
- border-radius: 0.25rem;
- margin: 0 auto;
- }
- p {
- margin: 0 0 10px 0;
- padding: 0 1rem;
- code:not([class^=language]) {
- padding: 3px 7px;
- margin: 0 0.25rem;
- @include themify($codeblock) {
- color: themed('content-code-color');
- }
- }
- }
- ul {
- margin-right: 0;
- margin-top: 0;
- margin-bottom: 1rem;
- padding: 0;
- list-style: disc outside none;
- }
- ol {
- margin-bottom: 1rem;
- }
- li {
- margin-left: 2rem;
- & > code {
- padding: 2px 7px;
- }
- code:not([class^=language]) {
- @include themify($codeblock) {
- color: themed('content-code-color');
- }
- }
- }
- hr {
- margin: 10px 1rem;
- border: none;
- height: 1px;
- @include themify($themes) {
- background: themed("single-hr-background-color");
- }
- }
- dl dt::after {
- content: ':';
- }
- dd {
- display: block;
- margin-inline-start: 40px;
- }
- .anchor {
- cursor: pointer;
- }
- a.footnote-ref {
- font-size: 0.75rem;
- font-weight: bold;
- margin-left: 3px;
- &::before {
- content: "[";
- }
- &::after {
- content: "]";
- }
- }
- .table-wrapper {
- overflow-x: auto;
- > table {
- max-width: 100%;
- margin: 10px 0;
- border-spacing: 0;
-
- @include themify($codeblock) {
- thead {
- background: themed('content-pre-header-background-color');
- }
- th {
- color: themed('content-pre-header-color');
- }
- th, td {
- padding: 5px 15px;
- font-size: 13.8px;
- border: 1px double themed('content-pre-border-background-color');
- }
- }
- }
- code:not([class^=language]) {
- padding: 3px 7px;
- margin: 0 0.25rem;
- @include themify($codeblock) {
- color: themed('content-code-color');
- }
- }
- }
- }
- &__tags {
- list-style-type: none;
- @include flexbox();
- @include align-items(center);
- @include flex-wrap(wrap);
- @include flex-grow(1);
- }
- &__tag {
- padding: 0 0.25rem;
- }
- }
- code, pre {
- padding: 0.25rem 0.5rem;
- line-height: 1.5;
- font-family: $code-font-stack;
- overflow: auto;
- a {
- text-decoration: none !important;
- }
- }
- pre.chroma {
- padding: 0.65rem 0;
- }
- *:not(.chroma) {
- code, pre {
- @include themify($codeblock) {
- color: themed('content-pre-color');
- background: themed('content-pre-background-color');
- }
- }
- code {
- padding: 0;
- }
- }
- code:not([class^=language]) {
- padding: 3px 0;
- border-radius: 4px;
- @include themify($codeblock) {
- color: themed('content-code-color');
- }
- }
- pre:not(.chroma) {
- overflow: auto;
- }
- .single__contents > .language-code, li > .language-code {
- overflow-x: auto;
- position: relative;
- margin: 1rem 0;
- @include on-event {
- .copy-to-clipboard {
- opacity: 1;
- }
- }
- &::after {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- padding: 2px 7px;
- width: 100%;
- height: 20px;
- z-index: z('toc');
- border-top-left-radius: 0.25rem;
- border-top-right-radius: 0.25rem;
- content: '';
- @include themify($codeblock) {
- color: themed('content-pre-header-color');
- background: themed('content-pre-header-background-color');
- }
- }
- }
- .highlight > .chroma {
- margin: 1em 0;
- z-index: z('content');
- overflow-x: auto;
- @include themify($codeblock) {
- color: themed('content-pre-color');
- background: themed('content-pre-background-color');
- }
- code {
- padding: 0;
- }
- code[data-lang] {
- &::before {
- position: absolute;
- top: 0;
- right: 0;
- z-index: z('grid');
- height: 25px;
- width: 100%;
- display: inline-block;
- text-align: right;
- content: attr(data-lang);
- @include themify($themes) {
- color: themed('body-background-color');
- background: themed('body-background-color');
- }
- }
- &::after {
- position: absolute;
- top: 2px;
- right: 0;
- z-index: z('clipboard');
- padding: 0.125rem 0.25rem;
- height: 25px;
- font-family: $title-font;
- font-weight: bold;
- font-size: 0.85rem;
- line-height: 1.5;
- display: inline-block;
- text-transform: capitalize;
- border-top-left-radius: 0.2rem;
- content: attr(data-lang);
- @include themify($themes) {
- border-top: 1px solid themed('hr-color');
- border-left: 1px solid themed('hr-color');
- }
- @include themify($codeblock) {
- background: themed('content-pre-header-background-color');
- }
- }
- }
-
- table, tr, td {
- margin: 0;
- padding: 0;
- width: 100%;
- border-collapse: collapse;
- }
- .lntd {
- &:first-child {
- width: 10px;
- @include no-select;
- }
- &:last-child {
- vertical-align: top;
- }
- }
- /* LineNumbersTable */
- .lnt {
- margin-left: 0.2rem;
- margin-right: 0.5rem;
- @include themify($codeblock) {
- color: themed('content-pre-number-color');
- }
- }
- table.lntable {
- overflow-x: auto;
- @include themify($themes) {
- @include webkit-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
- @include moz-scrollbars(themed('custom-scrollbar-foreground-color'), themed('custom-scrollbar-background-color'));
- }
- @include themify($codeblock) {
- td:first-child {
- border-left: 4px solid themed('content-pre-border-background-color');
- }
- }
- }
- }
- li .highlight > .chroma {
- .lnt:first-child {
- padding: 0 0.3rem;
- }
- .lnt:not(:first-child) {
- padding: 0 0.3rem;
- }
- }
- table:not(.lntable) {
- td {
- code {
- padding: 2px 7px !important;
- }
- }
- }
|