From 8a3056d0e3cd4ae15bc24383b826adf77e049567 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 6 Mar 2018 22:03:45 -0600 Subject: [PATCH] Make link styling default for anchor tags --- assets/css/custom.css | 6 +++--- src/helpers.cr | 6 +++--- src/views/index.ecr | 4 ++-- src/views/search.ecr | 6 +++--- src/views/watch.ecr | 10 +++++----- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index 70f0c0a6..7ff9a196 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1,9 +1,9 @@ -a.link { +a { color: #333; text-decoration: none; } -a:hover.link, -a:active.link { +a:hover, +a:active { color: #167ac6; } \ No newline at end of file diff --git a/src/helpers.cr b/src/helpers.cr index fae9653e..6ecd1e04 100644 --- a/src/helpers.cr +++ b/src/helpers.cr @@ -216,7 +216,7 @@ def decrypt_signature(a) a = splice(a, 53) a = splice(a, 47) a.delete_at(0..2) - + return a.join("") end @@ -300,7 +300,7 @@ def template_comments(root) content = <<-END_HTML

- [ - ] #{score} #{author} + [ - ] #{score} #{author}

#{body_html} @@ -358,7 +358,7 @@ def add_alt_links(html) if ["www.youtube.com", "youtu.be", "m.youtube.com"].includes?(url.host) && url.path == "/watch" alt_link = <<-END_HTML - + END_HTML diff --git a/src/views/index.ecr b/src/views/index.ecr index 843ceefb..d902ae17 100644 --- a/src/views/index.ecr +++ b/src/views/index.ecr @@ -8,11 +8,11 @@ <% player_response = JSON.parse(video.info["player_response"]) %> <% end %> diff --git a/src/views/search.ecr b/src/views/search.ecr index 4ed6f408..ed41eac0 100644 --- a/src/views/search.ecr +++ b/src/views/search.ecr @@ -7,11 +7,11 @@ <% slice.each do |video| %> <% end %> @@ -19,5 +19,5 @@ <% end %>

- Next page + Next page

diff --git a/src/views/watch.ecr b/src/views/watch.ecr index a9600320..85553123 100644 --- a/src/views/watch.ecr +++ b/src/views/watch.ecr @@ -75,11 +75,11 @@ function toggle(target) {

<%= video.info["title"] %> <% if listen %> - + <% else %> - + <% end %> @@ -97,7 +97,7 @@ function toggle(target) {

- "> + ">

<%= video.info["author"] %>

@@ -109,7 +109,7 @@ function toggle(target) {

<%= reddit_thread.data.title %>

- View comments on Reddit + View comments on Reddit <%= reddit_html %>
@@ -119,7 +119,7 @@ function toggle(target) {
<% rvs.each do |rv| %> <% if rv.has_key?("id") %> - "> + "> thumbnail">

<%= rv["title"] %>

<%= rv["author"] %>