|
@@ -1,10 +1,9 @@
|
|
|
@use '@growi/core-styles/scss/bootstrap/utilities' as bs;
|
|
@use '@growi/core-styles/scss/bootstrap/utilities' as bs;
|
|
|
-
|
|
|
|
|
@use '../variables' as var;
|
|
@use '../variables' as var;
|
|
|
|
|
|
|
|
.wiki {
|
|
.wiki {
|
|
|
@mixin add-left-border($width) {
|
|
@mixin add-left-border($width) {
|
|
|
- &:before {
|
|
|
|
|
|
|
+ &::before {
|
|
|
margin-right: 0.4em;
|
|
margin-right: 0.4em;
|
|
|
content: '';
|
|
content: '';
|
|
|
border-left: $width solid;
|
|
border-left: $width solid;
|
|
@@ -16,6 +15,7 @@
|
|
|
|
|
|
|
|
a {
|
|
a {
|
|
|
@extend .link-offset-2;
|
|
@extend .link-offset-2;
|
|
|
|
|
+
|
|
|
text-decoration-line: underline;
|
|
text-decoration-line: underline;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -40,14 +40,13 @@
|
|
|
scroll-margin-top: var.$grw-scroll-margin-top-in-view;
|
|
scroll-margin-top: var.$grw-scroll-margin-top-in-view;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /* stylelint-disable no-descending-specificity */
|
|
|
h1 {
|
|
h1 {
|
|
|
padding: 0.3em 0;
|
|
padding: 0.3em 0;
|
|
|
margin-top: 2em;
|
|
margin-top: 2em;
|
|
|
font-size: 1.9em;
|
|
font-size: 1.9em;
|
|
|
line-height: 1.1em;
|
|
line-height: 1.1em;
|
|
|
- border-bottom-color: var(--bs-border-color);
|
|
|
|
|
- border-bottom-style: solid;
|
|
|
|
|
- border-bottom-width: 2px;
|
|
|
|
|
|
|
+ border-bottom: 2px solid var(--bs-border-color);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
|
h2 {
|
|
@@ -55,9 +54,7 @@
|
|
|
font-size: 1.6em;
|
|
font-size: 1.6em;
|
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
|
line-height: 1.225;
|
|
line-height: 1.225;
|
|
|
- border-bottom-color: var(--bs-border-color);
|
|
|
|
|
- border-bottom-style: solid;
|
|
|
|
|
- border-bottom-width: 1px;
|
|
|
|
|
|
|
+ border-bottom: 1px solid var(--bs-border-color);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
|
h3 {
|
|
@@ -68,6 +65,7 @@
|
|
|
h4 {
|
|
h4 {
|
|
|
font-size: 1.35em;
|
|
font-size: 1.35em;
|
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
|
|
|
+
|
|
|
// style
|
|
// style
|
|
|
@include add-left-border(6px);
|
|
@include add-left-border(6px);
|
|
|
}
|
|
}
|
|
@@ -75,6 +73,7 @@
|
|
|
h5 {
|
|
h5 {
|
|
|
font-size: 1.25em;
|
|
font-size: 1.25em;
|
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
|
|
|
+
|
|
|
// style
|
|
// style
|
|
|
@include add-left-border(4px);
|
|
@include add-left-border(4px);
|
|
|
}
|
|
}
|
|
@@ -82,9 +81,11 @@
|
|
|
h6 {
|
|
h6 {
|
|
|
font-size: 1.2em;
|
|
font-size: 1.2em;
|
|
|
font-weight: normal;
|
|
font-weight: normal;
|
|
|
|
|
+
|
|
|
// style
|
|
// style
|
|
|
@include add-left-border(2px);
|
|
@include add-left-border(2px);
|
|
|
}
|
|
}
|
|
|
|
|
+ /* stylelint-enable no-descending-specificity */
|
|
|
|
|
|
|
|
p {
|
|
p {
|
|
|
margin: 15px 0;
|
|
margin: 15px 0;
|
|
@@ -97,8 +98,9 @@
|
|
|
|
|
|
|
|
blockquote {
|
|
blockquote {
|
|
|
padding: 0 20px;
|
|
padding: 0 20px;
|
|
|
- margin: 0 0 30px 0;
|
|
|
|
|
|
|
+ margin: 0 0 30px;
|
|
|
font-size: 0.9em;
|
|
font-size: 0.9em;
|
|
|
|
|
+ /* stylelint-disable-next-line scss/no-global-function-names */
|
|
|
color: lighten(bs.$gray-800, 35%);
|
|
color: lighten(bs.$gray-800, 35%);
|
|
|
border-left: 0.3rem solid #ddd;
|
|
border-left: 0.3rem solid #ddd;
|
|
|
}
|
|
}
|
|
@@ -108,6 +110,10 @@
|
|
|
margin: 5px 0;
|
|
margin: 5px 0;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ pre {
|
|
|
|
|
+ position: relative; // for absolute positioned .code-highlighted-title
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
ul,
|
|
ul,
|
|
|
ol {
|
|
ol {
|
|
|
padding-left: 30px;
|
|
padding-left: 30px;
|
|
@@ -128,10 +134,6 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- pre {
|
|
|
|
|
- position: relative; // for absolute positioned .code-highlighted-title
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
.contains-task-list {
|
|
.contains-task-list {
|
|
|
.task-list-item {
|
|
.task-list-item {
|
|
|
margin: 0 0.2em 0.25em -1.6em;
|
|
margin: 0 0.2em 0.25em -1.6em;
|
|
@@ -144,12 +146,11 @@
|
|
|
|
|
|
|
|
// use awesome-bootstrap-checkbox
|
|
// use awesome-bootstrap-checkbox
|
|
|
.task-list-item .checkbox input[type='checkbox'] {
|
|
.task-list-item .checkbox input[type='checkbox'] {
|
|
|
-
|
|
|
|
|
// layout
|
|
// layout
|
|
|
+label {
|
|
+label {
|
|
|
padding-left: 0.3em;
|
|
padding-left: 0.3em;
|
|
|
|
|
|
|
|
- &:before {
|
|
|
|
|
|
|
+ &::before {
|
|
|
margin-top: 0.4em;
|
|
margin-top: 0.4em;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -161,8 +162,8 @@
|
|
|
cursor: default;
|
|
cursor: default;
|
|
|
opacity: 1;
|
|
opacity: 1;
|
|
|
|
|
|
|
|
- &:before,
|
|
|
|
|
- &:after {
|
|
|
|
|
|
|
+ &::before,
|
|
|
|
|
+ &::after {
|
|
|
cursor: default;
|
|
cursor: default;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -170,16 +171,19 @@
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// see: https://github.com/micromark/micromark-extension-gfm-footnote#css
|
|
// see: https://github.com/micromark/micromark-extension-gfm-footnote#css
|
|
|
|
|
+
|
|
|
/* Style the footnotes section. */
|
|
/* Style the footnotes section. */
|
|
|
.footnotes {
|
|
.footnotes {
|
|
|
font-size: smaller;
|
|
font-size: smaller;
|
|
|
color: bs.$text-muted;
|
|
color: bs.$text-muted;
|
|
|
border-top: 1px solid bs.$border-color;
|
|
border-top: 1px solid bs.$border-color;
|
|
|
|
|
+
|
|
|
/* Hide the section label for visual users. */
|
|
/* Hide the section label for visual users. */
|
|
|
#footnote-label {
|
|
#footnote-label {
|
|
|
display: none;
|
|
display: none;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
/* Place `[` and `]` around footnote references. */
|
|
/* Place `[` and `]` around footnote references. */
|
|
|
[data-footnote-ref]::before {
|
|
[data-footnote-ref]::before {
|
|
|
content: '[';
|
|
content: '[';
|
|
@@ -209,6 +213,7 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /* stylelint-disable no-descending-specificity */
|
|
|
h1 {
|
|
h1 {
|
|
|
padding-bottom: 0.3em * $ratio;
|
|
padding-bottom: 0.3em * $ratio;
|
|
|
margin-top: 2em * $ratio;
|
|
margin-top: 2em * $ratio;
|
|
@@ -225,6 +230,7 @@
|
|
|
h3 {
|
|
h3 {
|
|
|
font-size: 1.2em * $ratio;
|
|
font-size: 1.2em * $ratio;
|
|
|
}
|
|
}
|
|
|
|
|
+ /* stylelint-enable no-descending-specificity */
|
|
|
|
|
|
|
|
blockquote {
|
|
blockquote {
|
|
|
font-size: 0.9em * $ratio;
|
|
font-size: 0.9em * $ratio;
|
|
@@ -258,7 +264,7 @@
|
|
|
padding: 7%;
|
|
padding: 7%;
|
|
|
padding-bottom: 3%;
|
|
padding-bottom: 3%;
|
|
|
margin: 0 7%;
|
|
margin: 0 7%;
|
|
|
- background-color: rgba(200, 200, 200, 0.2);
|
|
|
|
|
|
|
+ background-color: rgba(200, 200, 200, 20%);
|
|
|
border-radius: 10px;
|
|
border-radius: 10px;
|
|
|
|
|
|
|
|
.grw-keep-time {
|
|
.grw-keep-time {
|
|
@@ -312,6 +318,7 @@
|
|
|
--bs-border-color: var(--bs-gray-300);
|
|
--bs-border-color: var(--bs-gray-300);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
@include bs.color-mode(dark) {
|
|
@include bs.color-mode(dark) {
|
|
|
.wiki {
|
|
.wiki {
|
|
|
--bs-border-color: var(--bs-gray-700);
|
|
--bs-border-color: var(--bs-gray-700);
|