From c5fae8426358c511bb8b66f01c931094e7418812 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 2 Apr 2021 01:03:26 -0700 Subject: [PATCH] Add functionality to read more button --- assets/css/default.css | 25 +++++++++++++++++++++++++ src/invidious/views/watch.ecr | 26 +++++++++++++++++++------- 2 files changed, 44 insertions(+), 7 deletions(-) diff --git a/assets/css/default.css b/assets/css/default.css index a725b456..919f13ec 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -669,3 +669,28 @@ See https://stackoverflow.com/a/34372979 for more info */ hr { margin: auto 0 auto 0; } + +/* Description Expandsion Styling*/ +#description-box { + display: flex; + flex-direction: column; +} + +#readmorebutton { + display: none +} + +#readmorebutton ~ div { + overflow: hidden; + height: 8.3em; +} + +#readmorebutton:checked ~ div { + overflow: unset; + height: 100%; +} + +#readmorebutton + label { + order: 1; + margin-top: 20px; +} diff --git a/src/invidious/views/watch.ecr b/src/invidious/views/watch.ecr index 788b0dcb..90a20335 100644 --- a/src/invidious/views/watch.ecr +++ b/src/invidious/views/watch.ecr @@ -25,6 +25,19 @@ <%= rendered "components/player_sources" %> <%= HTML.escape(video.title) %> - Invidious + + + <% end %>