Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to load color-stylesheet.twig to add a logo to skosmos #629

Closed
LYNCETECH opened this issue Sep 29, 2017 · 1 comment
Closed

How to load color-stylesheet.twig to add a logo to skosmos #629

LYNCETECH opened this issue Sep 29, 2017 · 1 comment
Labels
Milestone

Comments

@LYNCETECH
Copy link

I tried to add a logo to skosmos but it was not inserted. I searched where is the color-stylesheet.twig file inserted into the application but I have not found it. Will I know what to do to insert a logo correctly? I tried to modify the config.inc file but nothing.

@osma
Copy link
Member

osma commented Sep 29, 2017

The color-stylesheet.twig template is actually not used anymore and should be removed from the code base.

If you want to insert a logo, you should write a custom stylesheet that specifies where and how the logo should be places, and point to its (relative) URL in the CUSTOM_CSS setting in config.inc.

For an example, see the Finto custom stylesheet, in particular these rules:

.service-fi h1, .service-sv h1, .service-en h1, #service-name {
  text-indent: -100%;
  white-space: nowrap;
  overflow: hidden;
}

.service-fi, .service-sv, .service-en {
  display: inline-block;
  background-repeat: no-repeat;
  height: 50px;
}

.service-fi {
  background-image: url('../finto-pics/tunnus-fi.gif');
  width: 505px;
}

.service-sv {
  background-image: url('../finto-pics/tunnus-sv.gif');
  width: 455px;
}

.service-en {
  background-image: url('../finto-pics/tunnus-en.gif');
  width: 465px;
}

@osma osma added the bug label Sep 29, 2017
@osma osma added this to the 1.10 milestone Sep 29, 2017
@osma osma closed this as completed in 5970077 Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants