From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: Re: Hyperlinks! Date: Mon, 13 Apr 2020 11:25:21 -0400 Message-ID: References: <87eesrlkil.fsf@gnu.org> <20200413132638.1ce12721@scratchpost.org> <87tv1nh15j.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54709) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO0y4-0008LT-1P for guix-devel@gnu.org; Mon, 13 Apr 2020 11:25:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jO0y3-0003mq-3S for guix-devel@gnu.org; Mon, 13 Apr 2020 11:25:47 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:48828) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jO0y2-0003m3-9r for guix-devel@gnu.org; Mon, 13 Apr 2020 11:25:47 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id b77e782d for ; Mon, 13 Apr 2020 15:25:41 +0000 (UTC) Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 3a78b78c (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 13 Apr 2020 15:25:40 +0000 (UTC) In-Reply-To: <87tv1nh15j.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane-mx.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Le 13 avril 2020 11:10:32 GMT-04:00, "Ludovic Court=C3=A8s" a =C3=A9crit : >Hi, > >Danny Milosavljevic skribis: > >> a:not(=2Esyntax-symbol) { >> background-color: blue; >> } > >Nice! It works, but I=E2=80=99d have to spread =E2=80=9Cnot(=2Esyntax-sy= mbol)=E2=80=9D in CSS >files that shouldn=E2=80=99t know about =E2=80=98syntax-symbol=E2=80=99 i= n the first place=2E > >Is there a way to somehow have an =E2=80=98a=2Esyntax-symbol=E2=80=99 rul= e take >precedence >over other =E2=80=98a=E2=80=99 rules? > >Thanks, >Ludo=E2=80=99=2E The a=2Esyntax-symbol is more specific that the a rule, so it already take= s precedence=2E You can use this to reset a value: a { backgraound-color: blue; } a=2Esyntak-symbol { background-color: inherit /*or none*/ ; } Of course some a tags might be styled with more specific rules, so you hav= e to make sure your rule is evn more specific=2E Alternatively use !importa= nt, which is considered bad practice=2E