Skip to content

Commit 0435ee7

Browse files
committed
css for details-element
1 parent b107870 commit 0435ee7

File tree

6 files changed

+53
-9
lines changed

6 files changed

+53
-9
lines changed

docs/assets/index-CcbfNexT.css docs/assets/index-BVMRb0fQ.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/index-DT41E5kk.js docs/assets/index-C58rxdEB.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>RoboCon - Robot Framework Conference</title>
88
<script defer src="/spa.js"></script>
9-
<script type="module" crossorigin src="/assets/index-DT41E5kk.js"></script>
10-
<link rel="stylesheet" crossorigin href="/assets/index-CcbfNexT.css">
9+
<script type="module" crossorigin src="/assets/index-C58rxdEB.js"></script>
10+
<link rel="stylesheet" crossorigin href="/assets/index-BVMRb0fQ.css">
1111
</head>
1212
<body>
1313
<div id="app"></div>

src/assets/css/elements.css

+48-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,54 @@
1818
.card {
1919
border: solid 2px #24282c;
2020
box-shadow: 0 2px 3px #020d6799;
21-
background-color: #fff;
22-
border-radius: 2px;
21+
border-radius: 4px;
22+
}
23+
24+
details {
25+
border-radius: 0.25rem;
26+
box-shadow: 0 2px 3px #020d6755;
27+
28+
summary {
29+
display: flex;
30+
list-style-position: outside;
31+
align-items: center;
32+
padding: 0.5rem 1rem;
33+
font-size: 1.15rem;
34+
font-weight: 600;
35+
color: var(--color-grey-darkest);
36+
border-radius: 4px;
37+
cursor: pointer;
38+
border: solid 2px #00000022;
39+
}
40+
41+
summary::-webkit-details-marker {
42+
display: none;
43+
}
44+
summary::before {
45+
content: "";
46+
margin-left: 0;
47+
margin-right: 0.5rem;
48+
width: 0.75rem;
49+
height: 0.75rem;
50+
background-color: #00c0b5;
51+
border-radius: 0.5rem;
52+
transition: background-color 0.1s;
53+
}
54+
55+
&[open] summary::before {
56+
background-color: #ffcb5b;
57+
}
58+
59+
&[open] summary {
60+
border-radius: 4px 4px 0 0;
61+
border-bottom-style: none;
62+
}
63+
64+
div {
65+
padding: 0.25rem 1rem;
66+
border: solid 2px #00000022;
67+
border-top: none;
68+
}
2369
}
2470

2571
.rounded {

src/assets/css/text.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ p {
155155
}
156156

157157
ul {
158-
padding-left: 1rem;
158+
padding-left: 0;
159159
list-style-position: outside;
160160
margin-block-end: 0;
161161
}

src/views/ContentPage.vue

-2
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ import { renderNodes, renderMarks } from 'Content/renderContent';
1919
2020
const store = useStore()
2121
const route = useRoute()
22-
console.log(route.path, route)
2322
2423
const page = store.pages.find((page) => page.fields.slug as unknown as string === route.path)
25-
console.log(page)
2624
2725
</script>
2826

0 commit comments

Comments
 (0)