mirror of https://github.com/sveltejs/svelte
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
927 B
55 lines
927 B
4 years ago
|
<article class="contact-card">
|
||
|
<h2>
|
||
|
<slot name="name">
|
||
|
<span class="missing">Unknown name</span>
|
||
|
</slot>
|
||
|
</h2>
|
||
|
|
||
|
<div class="address">
|
||
|
<slot name="address">
|
||
|
<span class="missing">Unknown address</span>
|
||
|
</slot>
|
||
|
</div>
|
||
|
|
||
|
<div class="email">
|
||
|
<slot name="email">
|
||
|
<span class="missing">Unknown email</span>
|
||
|
</slot>
|
||
|
</div>
|
||
|
</article>
|
||
|
|
||
6 years ago
|
<style>
|
||
|
.contact-card {
|
||
|
width: 300px;
|
||
|
border: 1px solid #aaa;
|
||
|
border-radius: 2px;
|
||
1 year ago
|
box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
|
||
6 years ago
|
padding: 1em;
|
||
|
}
|
||
|
|
||
|
h2 {
|
||
|
padding: 0 0 0.2em 0;
|
||
|
margin: 0 0 1em 0;
|
||
1 year ago
|
border-bottom: 1px solid #ff3e00;
|
||
6 years ago
|
}
|
||
|
|
||
1 year ago
|
.address,
|
||
|
.email {
|
||
6 years ago
|
padding: 0 0 0 1.5em;
|
||
1 year ago
|
background: 0 0 no-repeat;
|
||
6 years ago
|
background-size: 20px 20px;
|
||
|
margin: 0 0 0.5em 0;
|
||
|
line-height: 1.2;
|
||
|
}
|
||
|
|
||
1 year ago
|
.address {
|
||
|
background-image: url(/tutorial/icons/map-marker.svg);
|
||
|
}
|
||
|
.email {
|
||
|
background-image: url(/tutorial/icons/email.svg);
|
||
|
}
|
||
|
.missing {
|
||
|
color: #999;
|
||
|
}
|
||
3 years ago
|
</style>
|