Card caption cleanup (#33488)

This commit is contained in:
Paulus Schoutsen 2024-06-30 19:05:34 +02:00 committed by GitHub
parent 89dd0a7bdf
commit 8ac0e9ea21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 24 additions and 11 deletions

View File

@ -484,7 +484,7 @@ a.material-card:hover {
border: none;
.caption {
padding: 16px 12px 12px;
padding: 8px 12px 12px;
background-color: rgba(0, 0, 0, 0.54);
color: white;
border-bottom-left-radius: 8px;
@ -496,9 +496,12 @@ a.material-card:hover {
.title {
font-size: 20px;
font-weight: 400;
line-height: 1.2em;
}
.subtitle {
margin-top: 4px;
line-height: 1.4em;
font-size: 12px;
font-weight: initial;
}

View File

@ -75,8 +75,10 @@ feedback: false
style="background-image: url(/images/frontpage/cast-frontpage.png)"
>
<div class="caption">
<div>
<div class="title">
Take over all the screens
</div>
<div class="subtitle">
Home Assistant Cast makes every TV a display.
</div>
@ -111,8 +113,10 @@ feedback: false
"
>
<div class="caption">
<div>
<div class="title">
Control your home with Assist
</div>
<div class="subtitle">
Our private, insanely fast, voice assistant running on affordable
hardware. Now supporting wake words.
@ -139,8 +143,10 @@ feedback: false
"
>
<div class="caption">
<div>
<div class="title">
{{page.title}}
</div>
<div class="subtitle">{{page.description}}</div>
</div>
<svg viewBox="0 0 24 24">
@ -170,8 +176,10 @@ feedback: false
"
>
<div class="caption">
<div>
<div class="title">
Home Assistant Tags
</div>
<div class="subtitle">
Use NFC to bring music to your life or automate the mundane.
</div>
@ -190,8 +198,10 @@ feedback: false
style="background-image: url(/images/merchandise/shirt-frontpage.png)"
>
<div class="caption">
<div>
<div class="title">
Join the Home Assistant t-shirt revolution!
</div>
<div class="subtitle">
Look sharp in blue, black or gray. Wearing a HA t-shirt is okay.
</div>