Skip to content

Commit 4566162

Browse files
committed
Add collapsable markdown style
1 parent 9ffb5e8 commit 4566162

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

src/content/pages/sponsorship/sponsor.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ https://www.youtube.com/watch?v=oW8FHL4PiuI
2727

2828
Explore the benefits of sponsoring EuroPython:
2929

30+
<div class="md_table">
3031
| <IconLabel icon="users-viewfinder" title="Brand Exposure" /> | <IconLabel icon="bullseye" title="Product Promotion" /> | <IconLabel icon="award" title="Community Support" /> |
3132
|--------------------------------------------------------------------------------------- |----------------------------------------------------------------------------------------------- |--------------------------------------------------------------------------------- |
3233
| Boost your brand and connect with **1,500 Pythonistas** at this leading Python event. | Showcase your product to an engaged audience and **turn visibility into high-quality leads**. | Build **positive brand association** and gain community respect & appreciation. |
@@ -35,6 +36,8 @@ Explore the benefits of sponsoring EuroPython:
3536
|--------------------------------------------------------------------------------------- |----------------------------------------------------------------------------------------------- |--------------------------------------------------------------------------------- |
3637
| Tap into the expertise of the Python community to **upskill your team**. | Access **a pool of talented Python developers** looking for their next opportunity. | Discover new avenues and opportunities to **expand and grow your business**. |
3738

39+
</div>
40+
3841
#### Ready to Become a EuroPython 2025 Sponsor?
3942
<Button url="https://forms.gle/T8da5sQbKn6BFsxH7">Sign Up Now to Secure Your Spot!</Button>
4043

src/styles/markdown.css

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,58 @@ p.cross::after {
9898
font-size: 1.3em;
9999
margin-left: 0.4em;
100100
}
101+
102+
.md_table {
103+
border-collapse:collapse;
104+
width: 100%;
105+
table-layout: fixed;
106+
}
107+
@media screen and (max-width: 680px) {
108+
.md_table thead {
109+
border:none;
110+
}
111+
.md_table tr {
112+
display: block;
113+
margin-bottom: 0.8em;
114+
border:none;
115+
}
116+
.md_table th {
117+
margin-bottom: 0.8em;
118+
border:none;
119+
display: block;
120+
}
121+
122+
123+
.md_table thead th div {
124+
text-align: center;
125+
justify-content: center;
126+
}
127+
128+
.md_table tr td {
129+
border:none;
130+
display: block;
131+
text-align: left;
132+
position: relative;
133+
padding-inline-start:0.8em;
134+
}
135+
.md_table tr td:before {
136+
content: attr(data-label);
137+
font-weight: bold;
138+
text-transform: uppercase;
139+
position: absolute;
140+
left: 0;
141+
}
142+
.md_table tr td:last-child {
143+
border-bottom: 0;
144+
}
145+
.md_table__thead {
146+
border: none;
147+
clip: rect(0 0 0 0);
148+
height: 1px;
149+
margin: -1px;
150+
overflow: hidden;
151+
padding: 0;
152+
position: absolute;
153+
width: 1px;
154+
}
155+
}

0 commit comments

Comments
 (0)