mirror of
https://github.com/kogakure/website-11ty-hamburg.stefanimhoff.de.git
synced 2026-02-03 12:15:28 +00:00
fix(shortcode): styles for email shortcode
This commit is contained in:
21
src/assets/styles/components/email.css
Normal file
21
src/assets/styles/components/email.css
Normal file
@@ -0,0 +1,21 @@
|
||||
@import '../base/variables';
|
||||
@import '../base/breakpoints';
|
||||
|
||||
/** Email */
|
||||
.lock-box {
|
||||
align-items: center;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
height: 20px;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
top: 0.2em;
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
.lock-icon {
|
||||
fill: var(--color-fg);
|
||||
font-size: 1.2em;
|
||||
}
|
||||
@@ -3,6 +3,9 @@
|
||||
@import 'base/breakpoints';
|
||||
@import 'base/videos';
|
||||
|
||||
/* Layout */
|
||||
@import 'components/email';
|
||||
|
||||
/* Layout */
|
||||
@import 'layout/page-footer';
|
||||
@import 'layout/footnotes';
|
||||
|
||||
@@ -10,13 +10,13 @@ module.exports = {
|
||||
${text}
|
||||
</a>`;
|
||||
const keyDownload = outdent`
|
||||
<span id="lock-box" class="about-lock-box hidden">
|
||||
<span id="lock-box" class="lock-box hidden">
|
||||
<a
|
||||
title="${downloadText}"
|
||||
aria-label="${downloadText}"
|
||||
href="/downloads/publickey.hey@imhoff.name-9cb867d4ccd2c1d7d9fde82f4b649797f3e007a9.asc"
|
||||
>
|
||||
<svg class="about-lock-icon" aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
|
||||
<svg class="lock-icon" aria-hidden="true" viewBox="0 0 24 24" width="1em" height="1em">
|
||||
<use xlink:href="#lock"></use>
|
||||
</svg>
|
||||
</a></span>`;
|
||||
|
||||
Reference in New Issue
Block a user