From b49456da97ba4542eb20b72382fae602095d587a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 30 Jul 2018 18:38:55 -0500 Subject: [PATCH] Switch from using fontawesome to ionicons --- assets/css/default.css | 20 ++++++++++---------- src/invidious/helpers.cr | 4 ++-- src/invidious/views/channel.ecr | 2 +- src/invidious/views/layout.ecr | 8 ++++---- src/invidious/views/subscriptions.ecr | 2 +- src/invidious/views/watch.ecr | 14 +++++++------- 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/assets/css/default.css b/assets/css/default.css index 39558b37..1be1e73b 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -28,11 +28,11 @@ div { justify-content: space-between; } -.navbar>div { +.navbar > div { flex: 1; } -.navbar>.searchbar { +.navbar > .searchbar { flex-grow: 2; /* take double the space of the other items */ } @@ -44,7 +44,7 @@ div { font-weight: bold; } -.navbar>.searchbar .pure-form input[type="search"] { +.navbar > .searchbar .pure-form input[type="search"] { border-top: 0; border-left: 0; border-right: 0; @@ -58,12 +58,12 @@ div { transition: 0.1s border-bottom; } -.navbar>.searchbar .pure-form fieldset { +.navbar > .searchbar .pure-form fieldset { padding: 0; } /* attract focus to the searchbar by adding a subtle transition */ -.navbar>.searchbar .pure-form input[type="search"]:focus { +.navbar > .searchbar .pure-form input[type="search"]:focus { border-bottom: 2px solid #aaa; } @@ -87,22 +87,22 @@ div { flex-direction: column; } - .navbar>div { + .navbar > div { display: flex; justify-content: center; - } + } - .navbar>div:not(:last-child) { + .navbar > div:not(:last-child) { margin-bottom: 1em; } - .navbar>.searchbar>form { + .navbar > .searchbar > form { width: 60%; } } @media screen and (max-width: 320px) { - .navbar>.searchbar>form { + .navbar > .searchbar > form { width: 100%; margin: 0 1em; } diff --git a/src/invidious/helpers.cr b/src/invidious/helpers.cr index 497edc8a..40eeb52f 100644 --- a/src/invidious/helpers.cr +++ b/src/invidious/helpers.cr @@ -648,13 +648,13 @@ def add_alt_links(html) if ["www.youtube.com", "m.youtube.com"].includes?(url.host) alt_link = <<-END_HTML - + END_HTML elsif url.host == "youtu.be" alt_link = <<-END_HTML - + END_HTML else diff --git a/src/invidious/views/channel.ecr b/src/invidious/views/channel.ecr index d5bd3121..1d138293 100644 --- a/src/invidious/views/channel.ecr +++ b/src/invidious/views/channel.ecr @@ -8,7 +8,7 @@

- +

diff --git a/src/invidious/views/layout.ecr b/src/invidious/views/layout.ecr index 67b9ba5d..bc5d1c78 100644 --- a/src/invidious/views/layout.ecr +++ b/src/invidious/views/layout.ecr @@ -6,7 +6,7 @@ - + <% if env.get?("user") && env.get("user").as(User).preferences.dark_mode %> @@ -37,15 +37,15 @@ <% notification_count = env.get("user").as(User).notifications.size %> <% if notification_count > 0 %> - <%= notification_count %> + <%= notification_count %> <% else %> - + <% end %>
- +
diff --git a/src/invidious/views/subscriptions.ecr b/src/invidious/views/subscriptions.ecr index 484603b9..972ba2b7 100644 --- a/src/invidious/views/subscriptions.ecr +++ b/src/invidious/views/subscriptions.ecr @@ -10,7 +10,7 @@

- +

diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 69afd242..a2ce9000 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -182,7 +182,7 @@ function load_comments(target) { var body = target.parentNode.parentNode; var fallback = body.innerHTML; body.innerHTML = - '

'; + '

'; var url = '/api/v1/comments/<%= video.id %>?format=html&continuation=' + continuation; @@ -277,11 +277,11 @@ get_youtube_comments(); <%= video.title %> <% if listen %> - + <% else %> - + <% end %> @@ -290,9 +290,9 @@ get_youtube_comments();
-

<%= number_with_separator(video.views) %>

-

<%= number_with_separator(video.likes) %>

-

<%= number_with_separator(video.dislikes) %>

+

<%= number_with_separator(video.views) %>

+

<%= number_with_separator(video.likes) %>

+

<%= number_with_separator(video.dislikes) %>

Genre : <%= video.genre %>

Family Friendly? <%= video.is_family_friendly %>

Wilson Score : <%= video.wilson_score.round(4) %>

@@ -347,7 +347,7 @@ get_youtube_comments();

-

+