Demande d'aide css.

Vos requêtes concernant Mozilla Firefox, le navigateur Gecko alternatif, ne trouvèrent point de réponses lorsque vous cherchâtes ? Toute l'équipe Geckozone est prête à vous aider.

Modérateurs : myahoo, nico@nc, Mori, jpj

|-|3||0
Salamandre
Messages : 24
Inscription : 15 nov. 2017, 19:19

Demande d'aide css.

Message par |-|3||0 »

Bonjour,

je modifie un fichier css qui change la couleur de la barre d'adresse en fonction de la sécurité du site. J'aurais souhaiter connaître le code pour cette adresse: http://http-credit-card.badssl.com/.
Par exemple pour http://http-login.badssl.com/, c'est #urlbar[pageproxystate='valid'] #identity-box.insecureLoginForms:after {
.

En vous remerciant.
Freddy
Iguane
Messages : 501
Inscription : 15 nov. 2009, 11:37

Re: Demande d'aide css.

Message par Freddy »

Bonjour,
Je mettrai #urlbar[pageproxystate="valid"] > #identity-box.unknownIdentity

Après je ne sais pas quel est exactement ton code, mais perso je viens d'essayer et je n'arrive pas à changer la couleur de la barre d'adresse suivant le niveau de sécurisation de connexion.
La zone d'identification de gauche -> oui
La zone de droite avec les différents icônes -> oui
Mais la zone de texte où est affiché l'adresse -> non
Avatar de l’utilisateur
chriss..
Varan
Messages : 1182
Inscription : 13 nov. 2011, 23:15

Re: Demande d'aide css.

Message par chriss.. »

Bonjour,
peut être cela que tu cherches

Code : Tout sélectionner

/* There is also grantedPermissions, but irrelevant. */

/* about:about */
#urlbar[pageproxystate='valid'] #identity-box.unknownIdentity:after {
  background: #ff0039; /* Firefox Red 50 */
}

/* about:config */
#urlbar[pageproxystate='valid'] #identity-box.chromeUI:after {
  background: #0a84ff; /* Firefox Blue 50 */
}

/* uBlock Origin Dashboard */
#urlbar[pageproxystate='valid'] #identity-box.extensionPage:after {
  background: #45a1ff; /* Firefox Blue 40 */
}

/* https://www.github.com/ */
#urlbar[pageproxystate='valid'] #identity-box.verifiedIdentity:after{
  background: #058b00; /* Firefox Green 70 */
}

/* https://www.google.com/ */
#urlbar[pageproxystate='valid'] #identity-box.verifiedDomain:after{
  background: #12bc00; /* Firefox Green 60 */
}

/* https://mixed-script.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.mixedActiveBlocked:after {
  background: #30e60b; /* Firefox Green 50 */
}

/* https://mixed.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContent:after {
  background: #d7b600; /* Firefox Yellow 60 */
}

/* https://very.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContentLoadedActiveBlocked:after {
  background: #d7b600; /* Firefox Yellow 60 */
}

/* https://self-signed.badssl.com/ but add certificate exception */
#urlbar[pageproxystate='valid'] #identity-box.certUserOverridden:after {
  background: #ffe900; /* Firefox Yellow 50 */
}

/* Don't know an example for this */
#urlbar[pageproxystate='valid'] #identity-box.weakCipher:after {
  background: #a47f00; /* Firefox Yellow 70 */
}

/* https://mixed-script.badssl.com/ but disable protection */
#urlbar[pageproxystate='valid'] #identity-box.mixedActiveContent:after {
  background: #d70022;  /* Firefox Red 60 */
}

/* http://http-login.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.insecureLoginForms:after {
  background: #a4000f;  /* Firefox Red 70 */
}
--
Christian....
|-|3||0
Salamandre
Messages : 24
Inscription : 15 nov. 2017, 19:19

Re: Demande d'aide css.

Message par |-|3||0 »

Bonjour,

@Freddy: le code correspond à about:about.
@chriss: c'est bien ce code, je le poste en complet.

Code : Tout sélectionner

/* ===================================================================
 * urlBar colored
 * =================================================================== */
	
#urlbar {
  position: relative;
  z-index: 1;
}

#identity-box:after {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
  background: white;
  opacity: 0.2;
}

/* There is also grantedPermissions, but irrelevant. */

/* about:about */
#urlbar[pageproxystate='valid'] #identity-box.unknownIdentity:after {
  background: #f393a8; /* Firefox Red 50 */
}

/* about:config */
#urlbar[pageproxystate='valid'] #identity-box.chromeUI:after {
  background: #0a84ff; /* Firefox Blue 50 */
}

/* uBlock Origin Dashboard */
#urlbar[pageproxystate='valid'] #identity-box.extensionPage:after {
  background: #45a1ff; /* Firefox Blue 40 */
}

/* https://extended-validation.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.verifiedIdentity:after{
  background: #058b00; /* Firefox Green 70 */
}

/* https://sha512.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.verifiedDomain:after{
  background: #3bdc2a; /* Firefox Green 60 */
}

/* https://mixed-script.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.mixedActiveBlocked:after {
  background:  #67c845; /* #30e60b* Firefox Green 50 */
}

/* https://self-signed.badssl.com/ but add certificate exception */
#urlbar[pageproxystate='valid'] #identity-box.certUserOverridden:after {
  background: #ded14a; /* Firefox Yellow 50 */
}

/* https://mixed.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContent:after {
  background: #ffe800; /* Firefox Yellow 60 */
}

/* https://very.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.mixedDisplayContentLoadedActiveBlocked:after {
  background: #ffe800; /* Firefox Yellow 60 */
}

/* Don't know an example for this */
#urlbar[pageproxystate='valid'] #identity-box.weakCipher:after {
  background: #a47f00; /* Firefox Yellow 70 */
}

/* https://mixed-script.badssl.com/ but disable protection */
#urlbar[pageproxystate='valid'] #identity-box.mixedActiveContent:after {
  background: #bc1222; /* Firefox Red 60 */
}

/* http://http-login.badssl.com/ */
#urlbar[pageproxystate='valid'] #identity-box.insecureLoginForms:after {
  background: #a4005f; /* Firefox Red 70 */
}
 
Bonne fête à toutes et tous :)
|-|3||0
Salamandre
Messages : 24
Inscription : 15 nov. 2017, 19:19

Re: Demande d'aide css.

Message par |-|3||0 »

Bonjour,

personne n'a la solution ?
Répondre

Qui est en ligne ?

Utilisateurs parcourant ce forum : Ahrefs [Bot], Bing [Bot] et 5 invités