parent
5c304fa592
commit
7f879c272b
@ -1,24 +1,32 @@ |
||||
.header { |
||||
@extend %explorer-header-min-height; |
||||
background: explorer-color("gray", 900); |
||||
|
||||
&__container { |
||||
width: 100%; |
||||
} |
||||
background: explorer-color("gray", "900"); |
||||
box-shadow: 0 2px 2px 0 rgba(explorer-color("slate", "100"), 0.16), |
||||
0 0px 2px 0 rgba(explorer-color("slate", "100"), 0.12); |
||||
position: fixed; |
||||
top: 0; |
||||
left: 0; |
||||
right: 0; |
||||
|
||||
&__container { width: 100%; } |
||||
&__row { vertical-align: middle; } |
||||
&__cell { |
||||
@extend %explorer-header-height; |
||||
&--logo { @extend %explorer-header-square-width; } |
||||
} |
||||
|
||||
&__logo-link { |
||||
@extend %explorer-header-height; |
||||
@extend %explorer-header-square-width; |
||||
display: block; |
||||
display: flex; |
||||
background: explorer-color("blue", "500"); |
||||
align-items: center; |
||||
justify-content: center; |
||||
} |
||||
|
||||
&__logo { |
||||
@extend %explorer-header-height; |
||||
@extend %explorer-header-square-width; |
||||
width: 32px; |
||||
height: 36px; |
||||
display: block; |
||||
} |
||||
} |
||||
|
Before Width: | Height: | Size: 7.4 KiB |
After Width: | Height: | Size: 935 B |
@ -1,11 +1,9 @@ |
||||
defmodule ExplorerWeb.LayoutView do |
||||
use ExplorerWeb, :view |
||||
alias ExplorerWeb.Endpoint |
||||
|
||||
def logo_image(conn, alt: alt) do |
||||
def logo_image(conn, alt: alt, class: class) do |
||||
conn |
||||
|> static_path("/images/logo.png") |
||||
|> img_tag(class: "header__logo", alt: alt) |
||||
|> link(to: Endpoint.url(), class: "header__logo-link") |
||||
|> static_path("/images/logo.svg") |
||||
|> img_tag(class: class, alt: alt) |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue