OAuth form: make topbar clickable

This commit is contained in:
Alex Gleason 2020-07-27 17:32:50 -05:00
parent 0f94221594
commit 93bbbba883
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 5 additions and 3 deletions

View File

@ -8,10 +8,10 @@
</head> </head>
<body> <body>
<div class="instance-header"> <div class="instance-header">
<div class="instance-header__content"> <a class="instance-header__content" href="/">
<img class="instance-header__thumbnail" src="<%= Pleroma.Config.get([:instance, :instance_thumbnail]) %>"> <img class="instance-header__thumbnail" src="<%= Pleroma.Config.get([:instance, :instance_thumbnail]) %>">
<h1 class="instance-header__title"><%= Pleroma.Config.get([:instance, :name]) %></h1> <h1 class="instance-header__title"><%= Pleroma.Config.get([:instance, :name]) %></h1>
</div> </a>
</div> </div>
<div class="container"> <div class="container">
<%= render @view_module, @view_template, assigns %> <%= render @view_module, @view_template, assigns %>

View File

@ -19,6 +19,7 @@ body {
} }
.instance-header { .instance-header {
height: 60px;
padding: 10px; padding: 10px;
background: var(--foreground-color); background: var(--foreground-color);
box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.5); box-shadow: 0 1px 4px 0px rgba(0, 0, 0, 0.5);
@ -34,12 +35,13 @@ body {
.instance-header__thumbnail { .instance-header__thumbnail {
max-width: 40px; max-width: 40px;
border-radius: 4px; border-radius: 4px;
margin-right: 10px; margin-right: 12px;
} }
.instance-header__title { .instance-header__title {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
color: var(--primary-text-color);
} }
.container { .container {