Updated .gitignore; Collapse/Expand section with text (#1507)

This commit is contained in:
yeheshuah 2025-04-30 11:06:28 +09:00 committed by GitHub
parent 04e4f90921
commit 4016b9b9e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 51 additions and 18 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
/site/
.DS_Store
.venv/

View File

@ -1,18 +1,21 @@
:root > * {
--md-primary-fg-color: #435071;
--md-primary-fg-color--light: #575b64;
--md-primary-fg-color--dark: #1c1d20;
:root>* {
--md-primary-fg-color: #435071;
--md-primary-fg-color--light: #575b64;
--md-primary-fg-color--dark: #1c1d20;
}
a {
color: var(--md-typeset-a-color);
}
a:hover {
text-decoration: underline;
}
a.md-source {
color: white;
}
a.md-source:hover {
text-decoration: none;
}
@ -21,7 +24,7 @@ a.md-source:hover {
width: unset;
}*/
li.md-nav__item--section > label.md-nav__link {
li.md-nav__item--section>label.md-nav__link {
font-size: large;
}
@ -39,21 +42,26 @@ li.md-nav__item--section > label.md-nav__link {
font-weight: bold;
color: #e82062 !important;
}
.md-sidebar--primary .md-nav__link--active:before {
content: "\21D2";
margin-right: 6px;
content: "\21D2";
margin-right: 6px;
}
@media screen and (min-width: 76.3em) {
.md-post__back > .md-nav__title { /* Blog: Enable "Back to index" */
.md-post__back>.md-nav__title {
/* Blog: Enable "Back to index" */
display: block;
}
}
.md-post__back { /* Blog */
.md-post__back {
/* Blog */
padding-top: 1.2rem;
}
/*.md-header,*/ .md-footer {
/*.md-header,*/
.md-footer {
background-color: #333333;
}
@ -90,6 +98,7 @@ li.md-nav__item--section > label.md-nav__link {
/*border-right: 1px solid #adadad;*/
padding-bottom: 30px;
}
.md-sidebar.md-sidebar--secondary .md-sidebar__inner {
border-left: 1px solid #adadad;
}
@ -103,7 +112,9 @@ li.md-nav__item--section > label.md-nav__link {
/*border-left: 1px solid #adadad;
border-right: 1px solid #adadad;*/
}
.md-content.md-content--post { /* Blog */
.md-content.md-content--post {
/* Blog */
margin-top: 0px;
}
@ -134,17 +145,37 @@ ol li::marker {
font-weight: bold;
}
.md-typeset summary:after {
background-color: unset;
content: " Expand ▼";
height: unset;
-webkit-mask-image: unset;
mask-image: unset;
-webkit-mask-position: unset;
mask-position: unset;
-webkit-mask-repeat: unset;
mask-repeat: unset;
-webkit-mask-size: unset;
mask-size: unset;
position: absolute;
top: unset;
transform: unset;
transition: unset;
width: unset;
}
.md-typeset details[open]>summary:after {
transform: unset;
content: " Collapse ▲";
}
.md-typeset details:not([open]) {
border-left-width: 16px;
}
.md-typeset li p + details,
.md-typeset li p + .admonition,
.md-typeset li p+details,
.md-typeset li p+.admonition,
.md-typeset li details:only-child,
.md-typeset li .admonition:only-child {
margin: 0;
}
.md-button--stretch {
width: 100%;
}
}