From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:36903) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQFsW-000707-DA for guix-patches@gnu.org; Thu, 31 Oct 2019 15:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQFsU-000884-Qa for guix-patches@gnu.org; Thu, 31 Oct 2019 15:13:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:45495) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iQFsU-00087y-Nk for guix-patches@gnu.org; Thu, 31 Oct 2019 15:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iQFsU-00082U-Cr for guix-patches@gnu.org; Thu, 31 Oct 2019 15:13:02 -0400 Subject: [bug#38008] [PATCH] website: home: Fix contrast issue in video boxes. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:36815) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQFrh-0006vp-1w for guix-patches@gnu.org; Thu, 31 Oct 2019 15:12:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQFrf-0007pF-IW for guix-patches@gnu.org; Thu, 31 Oct 2019 15:12:12 -0400 Received: from sender4-pp-o94.zoho.com ([136.143.188.94]:25403) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQFrf-0007oZ-9j for guix-patches@gnu.org; Thu, 31 Oct 2019 15:12:11 -0400 Message-ID: <20191031191150.4587-1-sirgazil@zoho.com> Date: Thu, 31 Oct 2019 14:11:50 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf8 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" Reply-to: sirgazil , sirgazil via Guix-patches From: sirgazil via Guix-patches via To: 38008@debbugs.gnu.org Cc: sirgazil This commit changes the white text on yellow background when hovering over the featured video boxes to conform to WCAG 2.0 Level AA guidelines. Instead, only the title of the video is changed to yellow on hover. * website/static/media/css/video-preview.css: New style sheet. * website/static/base/css/elements.css (video): New rule set. * website/static/base/css/index.css: (.video-preview): Move to the new video preview style sheet. * website/apps/base/templates/home.scm: (home-t): Use the new video and video preview styles. * website/apps/media/templates/components.scm: (video-preview): Use new video preview style. (video->shtml): Use the new video style instead of the style defined for the .video-preview class. --- website/apps/base/templates/home.scm | 6 ++-- website/apps/media/templates/components.scm | 11 +++---- website/static/base/css/elements.css | 10 +++++- website/static/base/css/index.css | 8 ----- website/static/media/css/video-preview.css | 34 +++++++++++++++++++++ 5 files changed, 51 insertions(+), 18 deletions(-) create mode 100644 website/static/media/css/video-preview.css diff --git a/website/apps/base/templates/home.scm b/website/apps/base/templ= ates/home.scm index 2aaac7a..8b81b82 100644 --- a/website/apps/base/templates/home.scm +++ b/website/apps/base/templates/home.scm @@ -29,7 +29,8 @@ #:active-menu-item "Overview" #:css (list =09 (guix-url "static/base/css/item-preview.css") -=09 (guix-url "static/base/css/index.css")) +=09 (guix-url "static/base/css/index.css") + (guix-url "static/media/css/video-preview.css")) #:content `(main ;; Featured content. @@ -182,8 +183,7 @@ (div (@ (class "info-box")) (video -=09(@ (class "video-preview") -=09 (src "https://audio-video.gnu.org/video/misc/2016-07__GNU_Guix_Demo_= 2.webm") +=09(@ (src "https://audio-video.gnu.org/video/misc/2016-07__GNU_Guix_Demo_= 2.webm") =09 (poster ,(guix-url "static/media/img/guix-demo.png")) =09 (controls "controls")) =09(p diff --git a/website/apps/media/templates/components.scm b/website/apps/med= ia/templates/components.scm index 598ede8..945b9db 100644 --- a/website/apps/media/templates/components.scm +++ b/website/apps/media/templates/components.scm @@ -61,8 +61,7 @@ top." VIDEO (