Skip to content

Commit

Permalink
refactor: update details CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef committed Nov 18, 2021
1 parent 149f5d5 commit ae5ec3a
Show file tree
Hide file tree
Showing 9 changed files with 51 additions and 42 deletions.
Empty file added .hugo_build.lock
Empty file.
67 changes: 46 additions & 21 deletions assets/css/4-aoudiamoncef.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,6 @@ h1, h2, h3, h4, h5, h6 {
margin-bottom: 2rem;
}

details {
margin: 1rem;
}

details[open] > summary:first-of-type {
list-style-type: disclosure-open;
list-style-image: url(/images/icons/right-arrow.svg);
}

summary {
list-style-image: url(/images/icons/down-arrow.svg);
}

summary::-webkit-details-marker {
background: url(/images/icons/down-arrow.svg);
}

summary:focus::-webkit-details-marker {
background: url(/images/icons/right-arrow.svg);
}

.bilberry-hugo-theme {
font-size: 1.7em;
}
Expand Down Expand Up @@ -267,6 +246,52 @@ summary:focus::-webkit-details-marker {
display: inline-table;
}

details[open].badge summary {
animation: open 0.3s ease-in-out;
}

@keyframes open {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

details.badge summary::-webkit-details-marker {
display: none;
}

details.badge summary {
width: 100%;
padding: 0.5rem 0;
border-top: 1px solid black;
position: relative;
cursor: pointer;
font-size: 1.75rem;
font-weight: 300;
list-style: none;
}

details.badge summary:after {
content: "+";
color: black;
position: absolute;
font-size: 1.75rem;
line-height: 0;
margin-top: 1.5rem;
padding-right: 0.25rem;
right: 0;
font-weight: 200;
transform-origin: center;
transition: 200ms linear;
}

details[open].badge summary:after {
transform: rotate(45deg);
}

.bilberry-hugo-theme article .featured-image img {
width: 100%;
height: auto;
Expand Down
2 changes: 1 addition & 1 deletion content/page/about/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ Technologies I have used at work and/or side projects.

.Languages
[%collapsible]
====
[.badge]
====
{java}
{kotlin}
{sql}
Expand Down
2 changes: 1 addition & 1 deletion content/page/about/index.fr.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ Technologies que j'ai utilisées au travail et/ou dans le cadre de projets paral

.Languages
[%collapsible]
====
[.badge]
====
{java}
{kotlin}
{sql}
Expand Down
2 changes: 1 addition & 1 deletion content/status/website/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ exclude = true
====
* link:https://www.maoudia.com/about/[About]
* link:https://www.maoudia.com/uses/[Usages]
* link:https://www.maoudia.com/uses/[Uses]
====

[WARNING]
Expand Down
2 changes: 1 addition & 1 deletion pwa/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ registerRoute(
);

registerRoute(
"https://utteranc.es/client.js",
"https://giscus.app/client.js",
new StaleWhileRevalidate({
plugins: [
new CacheableResponsePlugin({
Expand Down
9 changes: 0 additions & 9 deletions static/images/icons/down-arrow.svg

This file was deleted.

7 changes: 0 additions & 7 deletions static/images/icons/right-arrow.svg

This file was deleted.

2 changes: 1 addition & 1 deletion static/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ae5ec3a

Please sign in to comment.