From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 31 15:12:20 2019 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, SPOOFED_FREEMAIL,URIBL_BLOCKED autolearn=disabled version=3.3.2 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) From: sirgazil To: guix-patches@gnu.org Message-ID: <20191031191150.4587-1-sirgazil@zoho.com> Subject: [PATCH] website: home: Fix contrast issue in video boxes. Date: Thu, 31 Oct 2019 14:11:50 -0500 X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Content-Type: text/plain; charset=utf8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 136.143.188.94 X-Spam-Score: 0.6 (/) X-Debbugs-Envelope-To: submit Cc: sirgazil X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 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 (