Probably a successful attempt to fix an SVG logo sizing.
This commit is contained in:
parent
e5d1c6be8d
commit
7e9e641330
@ -87,26 +87,18 @@ header {
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between; }
|
||||
|
||||
header svg { width: 360px; }
|
||||
|
||||
header svg text { fill: var(--text-color); }
|
||||
|
||||
header svg text:first-child {
|
||||
font-size: 2rem;
|
||||
font-size: 3.5rem;
|
||||
font-variant-caps: small-caps;
|
||||
font-weight: bold; }
|
||||
|
||||
header svg text:last-child { font-size: .88rem; }
|
||||
header svg text:last-child { font-size: 1.5rem; }
|
||||
|
||||
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||
header svg text:first-child { font-size: 2.082rem; } }
|
||||
|
||||
@-moz-document url-prefix() {
|
||||
header svg text:first-child { font-size: 2rem; } }
|
||||
|
||||
header nav { margin-top: .5rem; }
|
||||
|
||||
header nav a { font-variant: small-caps; }
|
||||
header nav {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-variant: small-caps;
|
||||
justify-content: space-evenly; }
|
||||
|
||||
header nav h1 {
|
||||
color: var(--secondary-color);
|
||||
@ -161,9 +153,7 @@ input#radio-volume {
|
||||
gap: .5rem;
|
||||
grid-template-columns: 3rem 3rem 1fr; }
|
||||
|
||||
#last-songs thead tr {
|
||||
font-weight: bold;
|
||||
}
|
||||
#last-songs thead tr { font-weight: bold; }
|
||||
|
||||
footer {
|
||||
font-size: .8rem;
|
||||
|
@ -30,9 +30,9 @@ templ Index(curSong *radio.Song, sl []radio.Song, slLen int64, lstnrs *radio.Lis
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<svg viewBox="0 -25 216 40">
|
||||
<text>Arav's dwelling</text>
|
||||
<text y="11">Welcome to my sacred place, wanderer</text>
|
||||
<svg width="360" viewBox="0 -36 360 66">
|
||||
<text y="7" textLength="360" lengthAdjust="spacingAndGlyphs">Arav's dwelling</text>
|
||||
<text y="25" textLength="360" lengthAdjust="spacingAndGlyphs">Welcome to my sacred place, wanderer</text>
|
||||
</svg>
|
||||
<nav>
|
||||
<a href={ templ.SafeURL(utils.MainSite(r.Host)) }>Back to home</a>
|
||||
@ -68,19 +68,19 @@ templ Index(curSong *radio.Song, sl []radio.Song, slLen int64, lstnrs *radio.Lis
|
||||
<div>
|
||||
if curSong != nil && curSong.Artist != "" {
|
||||
<p>
|
||||
<img src="/assets/img/listener.svg" /> <span id="radio-listeners">{ strconv.FormatInt(lstnrs.Current(), 10) }</span>
|
||||
<img src="/assets/img/duration.svg" /> <span id="radio-duration-estimate"></span><span id="radio-duration">{ curSong.DurationString() }</span>
|
||||
<img src="/assets/img/listener.svg" alt="Listeners" title="Listeners" /> <span id="radio-listeners">{ strconv.FormatInt(lstnrs.Current(), 10) }</span>
|
||||
<img src="/assets/img/duration.svg" alt="Duration" title="Duration" /> <span id="radio-duration-estimate"></span><span id="radio-duration">{ curSong.DurationString() }</span>
|
||||
</p>
|
||||
<p>
|
||||
<img src="/assets/img/note.svg" /> <span id="radio-song">{ curSong.Artist } - { curSong.Title }</span>
|
||||
</p>
|
||||
} else {
|
||||
<p>
|
||||
<img src="/assets/img/listener.svg" /> <span id="radio-listeners">{ strconv.FormatInt(lstnrs.Current(), 10) }</span>
|
||||
<img src="/assets/img/duration.svg" /> <span id="radio-duration-estimate"></span><span id="radio-duration">0:00</span>
|
||||
<img src="/assets/img/listener.svg" alt="Listeners" title="Listeners" /> <span id="radio-listeners">{ strconv.FormatInt(lstnrs.Current(), 10) }</span>
|
||||
<img src="/assets/img/duration.svg" alt="Duration" title="Duration" /> <span id="radio-duration-estimate"></span><span id="radio-duration">0:00</span>
|
||||
</p>
|
||||
<p>
|
||||
<img src="/assets/img/note.svg" /> <span id="radio-song"></span>
|
||||
<img src="/assets/img/note.svg" alt="Song" title="Song" /> <span id="radio-song"></span>
|
||||
</p>
|
||||
}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user