Skip to content

Commit

Permalink
css for details-element
Browse files Browse the repository at this point in the history
  • Loading branch information
samipe committed Sep 27, 2024
1 parent b107870 commit 0435ee7
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 9 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RoboCon - Robot Framework Conference</title>
<script defer src="/spa.js"></script>
<script type="module" crossorigin src="/assets/index-DT41E5kk.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CcbfNexT.css">
<script type="module" crossorigin src="/assets/index-C58rxdEB.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BVMRb0fQ.css">
</head>
<body>
<div id="app"></div>
Expand Down
50 changes: 48 additions & 2 deletions src/assets/css/elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,54 @@
.card {
border: solid 2px #24282c;
box-shadow: 0 2px 3px #020d6799;
background-color: #fff;
border-radius: 2px;
border-radius: 4px;
}

details {
border-radius: 0.25rem;
box-shadow: 0 2px 3px #020d6755;

summary {
display: flex;
list-style-position: outside;
align-items: center;
padding: 0.5rem 1rem;
font-size: 1.15rem;
font-weight: 600;
color: var(--color-grey-darkest);
border-radius: 4px;
cursor: pointer;
border: solid 2px #00000022;
}

summary::-webkit-details-marker {
display: none;
}
summary::before {
content: "";
margin-left: 0;
margin-right: 0.5rem;
width: 0.75rem;
height: 0.75rem;
background-color: #00c0b5;
border-radius: 0.5rem;
transition: background-color 0.1s;
}

&[open] summary::before {
background-color: #ffcb5b;
}

&[open] summary {
border-radius: 4px 4px 0 0;
border-bottom-style: none;
}

div {
padding: 0.25rem 1rem;
border: solid 2px #00000022;
border-top: none;
}
}

.rounded {
Expand Down
2 changes: 1 addition & 1 deletion src/assets/css/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ p {
}

ul {
padding-left: 1rem;
padding-left: 0;
list-style-position: outside;
margin-block-end: 0;
}
Expand Down
2 changes: 0 additions & 2 deletions src/views/ContentPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@ import { renderNodes, renderMarks } from 'Content/renderContent';
const store = useStore()
const route = useRoute()
console.log(route.path, route)
const page = store.pages.find((page) => page.fields.slug as unknown as string === route.path)
console.log(page)
</script>

Expand Down

0 comments on commit 0435ee7

Please sign in to comment.