gpt-4-0314· openai
Suzhen/CodeChat
I’m frontend developper, please provide a css for a Marp theme with a centered logo in…
- User
I’m frontend developper, please provide a css for a Marp theme with a centered logo in the footer
- Assistant
Here's an example of a custom Marp theme in CSS with a centered logo in the footer:
css/* For Marp CLI users: Put this code in a separate .css file and use the --theme option to apply it */ /* For Marp for VS Code users: Put this code in your Markdown file enclosed in <style> tags */ /* Import Marp's default theme */ @import 'default'; /* Centered logo in the footer */ section { position: relative; } section::after { content: url('your_logo_url_here'); /* Replace with your logo URL */ position: absolute; bottom: 16px; /* Adjust for distance from bottom */ left: 50%; transform: translateX(-50%); width: 80px; /* Adjust the width of the logo */ height: auto; opacity: 0.6; /* Adjust the opacity of the logo */ } /* Optionally, hide the logo on the first (title) slide */ section[data-marpit-pagination="1"]::after { content: none; } /* Adjust any other theme properties as needed */