Verwendung: Vergrößerung des Logos

Jörn Gehrke's Avatar

Jörn Gehrke

03 Jun, 2015 09:35 AM

Produkt: Oneo Contao
Contao-Version: 3.4.0
Browser und Browserversionen: Firefox 38.0.1 (Mac)

Wir verwenden das Theme ONEO-Theme in der Home-Boxed Version. Im Moment wird das Kundenlogo durch die Höhe der Kopfzeile auf 48px begrenzt.
Wie kann ich ein Logo in der Kopfzeile z.B. auf 60 oder 70 px vergrößern (bei gleichbleibenden jetzigen Abständen zum oberen und unteren Rand - siehe Screenshot)?

  1. Support Staff 1 Posted by RockSolid Theme... on 03 Jun, 2015 12:04 PM

    RockSolid Themes's Avatar

    Vielen Dank für Ihre Frage.

    Sie können die Höhe der Navigations-Zeile und somit auch die Größe des Logos mittels CSS erhöhen. Fügen Sie dafür bitte folgenden CSS-Code in die Datei files/oneo/css/custom.css ein:

    .main-navigation, .main-navigation-search {
        margin-top: 2em;
    }
    
  2. 2 Posted by Jörn Gehrke on 03 Jun, 2015 12:12 PM

    Jörn Gehrke's Avatar

    so einfach ist es manchmal - vielen Dank für die prompte Antwort!

  3. 3 Posted by Joachim on 16 Jul, 2015 04:33 PM

    Joachim's Avatar

    Danke für den tollen Tipp!

    Gibt es noch einen Trick dazu, mit dem man verhindern kann, dass dann die Such-Lupe nach unten verrutscht in der Smartphone-Ansicht?

    Danke!

  4. Support Staff 4 Posted by RockSolid Theme... on 17 Jul, 2015 07:56 AM

    RockSolid Themes's Avatar

    Ja, fügen Sie zusätzlich bitte folgendes CSS ein:

    @media screen and (max-width: 599px) {
      .main-navigation-search {
        margin-top: -1.93333em;
      }
    }
    
  5. 5 Posted by Joachim on 17 Jul, 2015 09:00 AM

    Joachim's Avatar

    Danke!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • Bildschirmfoto_2015-06-03_um_11.31.52.png 492 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac