From patchwork Thu Oct 31 19:11:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 15908 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C662A176A3; Thu, 31 Oct 2019 19:13:11 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_MSPIKE_H2,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7539D176A1 for ; Thu, 31 Oct 2019 19:13:11 +0000 (GMT) Received: from localhost ([::1]:53506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQFsc-00070Z-Ro for patchwork@mira.cbaines.net; Thu, 31 Oct 2019 15:13:10 -0400 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 X-Loop: help-debbugs@gnu.org Subject: [bug#38008] [PATCH] website: home: Fix contrast issue in video boxes. Resent-From: sirgazil Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 31 Oct 2019 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 38008 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 38008@debbugs.gnu.org Cc: sirgazil X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157254914030838 (code B ref -1); Thu, 31 Oct 2019 19:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 31 Oct 2019 19:12:20 +0000 Received: from localhost ([127.0.0.1]:54314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQFrn-00081J-JZ for submit@debbugs.gnu.org; Thu, 31 Oct 2019 15:12:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:58353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iQFri-000819-Lp for submit@debbugs.gnu.org; Thu, 31 Oct 2019 15:12:15 -0400 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 ARC-Seal: i=1; a=rsa-sha256; t=1572549127; cv=none; d=zohomail.com; s=zohoarc; b=F89Xqt0qCU94Sl1jA/ZJyoPU3Nzxtq40oe5LZ5LtdWLJfQxFmx6HMBZW5KKdJ/gp/g5v73WJSKXXzx193qYvwVEeMl+79Dhh+DxN9TnO+t/ledHz9XcWIGLpa0ryr8QcVqGHD51xC40WFOEwn3lJkMBQxMEG7p9G+CC0TOsjee4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1572549127; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:MIME-Version:Message-ID:Subject:To; bh=0r8jdPPfZ+T60m3aA4WbKrESQZGnu0js6i+x3QgKwX4=; b=bFH1mGwg4Yz0DQCsjk9vCLm4FKJ/LQh3DUDZ1GzEjSijjV/u2KmTWI4sIBl7pwhfHdW3c5OVhfQAxXDIPItPrV4fl0AMCSwCSFqpH36AyMw9ofvBFwS8R4JKOohUNJS8iiIYV0xqQbWeGid8t0c6icipDz3M27ShsuOqKD+2dXQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=zoho.com; spf=pass smtp.mailfrom=sirgazil@zoho.com; dmarc=pass header.from= header.from= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:message-id:subject:date:mime-version:content-type; b=C+RDEtYCn3JyYkK+kKNJhBOdb0dsuI9PvTkpFM7ybbwf5awua7GZt06ngC7XSylS/2n5G5WjppLD 9ctxi2qOnUuwlToQ2Rom3UZB4bXsz0RK77KPssyJBsfMntsvzSIw DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1572549127; s=zm2019; d=zoho.com; i=sirgazil@zoho.com; h=From:To:Cc:Message-ID:Subject:Date:MIME-Version:Content-Transfer-Encoding:Content-Type; l=4760; bh=0r8jdPPfZ+T60m3aA4WbKrESQZGnu0js6i+x3QgKwX4=; b=guLFykdGQ8H+G60zBAQ8FgEiEfGf7CcDFHKKXcF5QvepDdHKk+eqYcj0Ym1fbC6u ZKswPVHWdjI3TZH8wLhOgaUs01gaRkQuxJcmGqEksOJWfNmD8Q5PeBtZKSJPzVRZm++ p6gRF5k435kkl+EFDRb6ASAYYuaF99wEEPKPDOjI= Received: from localhost.localdomain (179.15.13.185 [179.15.13.185]) by mx.zohomail.com with SMTPS id 1572549125735366.22826944405506; Thu, 31 Oct 2019 12:12:05 -0700 (PDT) Message-ID: <20191031191150.4587-1-sirgazil@zoho.com> Date: Thu, 31 Oct 2019 14:11:50 -0500 X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-ZohoMailClient: External X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: sirgazil , sirgazil via Guix-patches X-Patchwork-Original-From: sirgazil via Guix-patches via From: "ashish.is--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches 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/templates/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 (guix-url "static/base/css/item-preview.css") - (guix-url "static/base/css/index.css")) + (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 - (@ (class "video-preview") - (src "https://audio-video.gnu.org/video/misc/2016-07__GNU_Guix_Demo_2.webm") + (@ (src "https://audio-video.gnu.org/video/misc/2016-07__GNU_Guix_Demo_2.webm") (poster ,(guix-url "static/media/img/guix-demo.png")) (controls "controls")) (p diff --git a/website/apps/media/templates/components.scm b/website/apps/media/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 (