Bienvenue, Invité
Nom d'utilisateur : Mot de passe :
Whilst small files can be uploaded to forum posts, if you have a custom theme or module to contribute please add it on the "Add-ons" page.
  • Page :
  • 1

SUJET :

webtrees theme il y a 10 ans 10 mois #1

  • potain
  • Portrait de potain Auteur du sujet
  • Visiteur
  • Visiteur
I wan to experiment with the theme and rather than altering the original I've made a copy of the directory in the themes directory which I've named webtrees1.

The theme doesn't show up in the Access Tab where you choose the default theme, is there something else I need to do to enable it?

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par potain.

Re: webtrees theme il y a 10 ans 10 mois #2

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrateur
  • Administrateur
  • Messages : 14715
I guess you didn't give it a name. Themes need unique names. Look for a line like this in theme.php

$theme_name = "webtrees";
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net

Connexion ou Créer un compte pour participer à la conversation.

Re: webtrees theme il y a 10 ans 10 mois #3

  • potain
  • Portrait de potain Auteur du sujet
  • Visiteur
  • Visiteur
thank you

Connexion ou Créer un compte pour participer à la conversation.

Re: webtrees theme il y a 10 ans 9 mois #4

  • vhhawk
  • Portrait de vhhawk
  • Visiteur
  • Visiteur
I made some minor changes to the webtrees theme to suit myself, and saved the changes in a new theme as per Greg's instructions above. In case these changes are of interest to others, I'm copying them below along with my rationale.


Some very minor changes to the webtrees theme in style.css.

1. Line 350 .date color changed from #333377 to #00000F.

Better contrast against the background. Dates are important and I found the default setting not contrasty enough.

2. Line 357 .label font-weight changed from bold to italic

Italic doesn't seem to work, but at least this removes the bold. These labels (Source, Citation details, Text, Note) should be in the background rather than the foreground, again for readability. It's the data that's important, not the label.

3. Line 358 .label (added this line). color: #377777;

Softens the color to deemphasize the label further. It's not genealogical information.

4. Line 110 .person_boxF background-color changed to #FFF0F0

I found the original shade of pink too dark, and changed it to the pink used in Xenea.

5. Line 295 .name1 color changed to #000000

Improve the contrast of the name. The original was too gray and uncontrasty for my eyes.

Connexion ou Créer un compte pour participer à la conversation.

Re: webtrees theme il y a 10 ans 9 mois #5

  • mlocati
  • Portrait de mlocati
  • Visiteur
  • Visiteur

2. Line 357 .label font-weight changed from bold to italic

Italic doesn't seem to work, but at least this removes the bold.

The font-weight is used to specify the thickness of the characters (eg "normal" or "bold"). To specify italic you have to add the following new line:
text-decoration: italic;

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par mlocati. Raison: Typos

Re: webtrees theme il y a 10 ans 9 mois #6

  • ToyGuy
  • Portrait de ToyGuy
  • Hors Ligne
  • Modérateur
  • Modérateur
  • Live like it's Christmas every day - Santa Stephen
  • Messages : 4926
Victor
You have failed to provide these forum users with a URL so that we may see the effect. Was that your intention? I don't think many admins are going to be experimenting with the code in general, at least without seeing the results prior to tinkering.

We changed the color of the pink a long time ago - to the same as the Xenea theme.
Santa Stephen the Fabled Santa
Latest webtrees at MyArnolds.com
Hosted by webtreesonline.com , a division of GeneHosts LLC
MacOS 10.6.8, Apache 2.2+, PHP 5.4.16, MySQL 5.5.28

Connexion ou Créer un compte pour participer à la conversation.

Re: webtrees theme il y a 10 ans 9 mois #7

  • mlocati
  • Portrait de mlocati
  • Visiteur
  • Visiteur

To specify italic you have to add the following new line:
text-decoration: italic;

Yesterday night was surely too late for me. text-decoration is used to set underline, line-through, ... To specify italic you have to use
font-style: italic;
Sorry for the mistake.

Connexion ou Créer un compte pour participer à la conversation.

  • Page :
  • 1
Propulsé par Kunena