Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions app/assets/stylesheets/responsive/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -208,18 +208,21 @@ a.link_button_green_large {
// https://css-tricks.com/a-complete-guide-to-svg-fallbacks/
position: relative;
z-index: 2;
background: image-url("logo.svg") no-repeat 0 0 / 100% 100%;
// Scale from the left edge, with the box sized to the artwork (28px high, from
// the SVG's 284:92 viewBox). Scaling the host's 186px box about its centre
// pushed the artwork's left edge outside the viewport at phone width, and
// scaling it from the left would add horizontal scroll.
width: 87px;
background: image-url("logo.svg") no-repeat 0 0 / auto 100%;
transform: translate(0, 5px) scale(3);
transform-origin: 0 50%;
}

.banner--pro .site-title__logo {
width: 107px; // 28px high, from the Pro SVG's 350:92 viewBox
background-image: image-url("alaveteli-pro/logo.png");
background-image: image-url("alaveteli-pro/logo.svg"),
linear-gradient(transparent, transparent);
// The Pro logo is wider than the standard one, so it is centred 10px further
// left in the box. Shift it to keep its left edge in line with the standard
// logo, without moving the box (which would add horizontal scroll).
background-position: 10px 0;
}

.navigation {
Expand Down
Loading