Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Themes & Styling

Optimize website for desktop and mobile view

Started by Lukas Severinghaus 8 years ago · 3 replies · 1217 views
8 years ago

I have this website: northernazaerialphotography.com that I'm trying to optimize both for mobile and desktop. The desktop looks fine, but when the website is loaded in a mobile screen size, e.g. 322x824, the title is too large and outside of the title box, the footer box contents are spilling over and the site doesn't generally have the same look as the desktop view. I'm a complete beginner to Grav, so any suggestions on ways to optimize for mobile?
Thanks,

8 years ago

Regarding the footer: Antimatter uses a fixed size header and your content is too long which is caused by your upsized icons.

Add this to your custom.css to fix this

CSS
#footer {
    height: 8rem;
}

The Problem with your Headline is similar, but a bit less easy to fix.

  1. You overwrite base.html in a child template and put a logo graphic in https://github.com/getgrav/grav-theme-antimatter/blob/develop/templates/partials/base.html.twig#L46
  2. You add Media Queries to your custom.css which set header font size smaller on smaller screens or cut it off with text-overflow:ellipsis;
8 years ago

hi @kk6axq

In addition to @chris_jung comment, i use in some projects some jquery library Flowtype or fittext

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by Pedro M, 2 months ago
4 193 2 months ago
Themes & Styling · by Ian, 2 months ago
3 90 2 months ago
Themes & Styling · by Norbert, 2 years ago
11 449 3 months ago
Themes & Styling · by Lukáš Findeis, 3 months ago
0 43 3 months ago
Themes & Styling · by Sebadamus, 4 months ago
5 123 3 months ago