about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2022-07-18 08:56:16 -0500
committerCase Duckworth2022-07-18 08:56:16 -0500
commita5172b7a176382d07ddbda0b399a1aa628b77087 (patch)
treed4becdc3ab0df3be73ab5f68bcaecb14063625bf
parentIgnore generated files (diff)
downloadsfeed-a5172b7a176382d07ddbda0b399a1aa628b77087.tar.gz
sfeed-a5172b7a176382d07ddbda0b399a1aa628b77087.zip
Add styling for youtube links
-rwxr-xr-xsfeed_html.sh3
-rw-r--r--style.css6
2 files changed, 8 insertions, 1 deletions
diff --git a/sfeed_html.sh b/sfeed_html.sh index d241228..86aad43 100755 --- a/sfeed_html.sh +++ b/sfeed_html.sh
@@ -126,7 +126,8 @@ html_feed() { # html_feed FEED(file) => HTML
126 printf "%s", "<a href=\"" id "\" target=\"_blank\">" stamp "</a>" 126 printf "%s", "<a href=\"" id "\" target=\"_blank\">" stamp "</a>"
127 } 127 }
128 print "</td>" 128 print "</td>"
129 print "<td class=\"entry-title\"><a href=\"" link "\" target=\"_blank\">" title "</a></td>" 129 printf "<td class=\"entry-title%s", (link ~ /youtube/ ? " youtube" : "")
130 print "\"><a href=\"" link "\" target=\"_blank\">" title "</a></td>"
130 print "</tr>" 131 print "</tr>"
131 } 132 }
132 END { 133 END {
diff --git a/style.css b/style.css index 4462446..5cdbcb6 100644 --- a/style.css +++ b/style.css
@@ -20,6 +20,12 @@ main {
20 font-weight: bold; 20 font-weight: bold;
21} 21}
22 22
23.youtube {
24 border-left: 1px solid red;
25}
26
27td { padding: 4px; }
28
23.entry-timestamp { 29.entry-timestamp {
24 font-family: monospace; 30 font-family: monospace;
25 padding-right: 8px; 31 padding-right: 8px;