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