mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Improve navbar brand visualisation
This commit is contained in:
@@ -16,10 +16,15 @@
|
|||||||
.navbar-brand {
|
.navbar-brand {
|
||||||
font-size: 18pt;
|
font-size: 18pt;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
|
||||||
|
|
||||||
.logo img {
|
.logo {
|
||||||
width: 48px;
|
@extend
|
||||||
|
.d-inline-block,
|
||||||
|
.align-top,
|
||||||
|
.mr-2;
|
||||||
|
|
||||||
|
width: 36px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.boardsNav {
|
.boardsNav {
|
||||||
@@ -5,9 +5,9 @@
|
|||||||
@import 'general/components';
|
@import 'general/components';
|
||||||
@import 'general/custom_texts';
|
@import 'general/custom_texts';
|
||||||
@import 'general/form';
|
@import 'general/form';
|
||||||
|
@import 'general/header';
|
||||||
@import 'general/icons';
|
@import 'general/icons';
|
||||||
@import 'general/index';
|
@import 'general/index';
|
||||||
@import 'general/navbar';
|
|
||||||
|
|
||||||
/* Components */
|
/* Components */
|
||||||
@import 'components/Board';
|
@import 'components/Board';
|
||||||
|
|||||||
@@ -1,11 +1,13 @@
|
|||||||
<nav class="navbar navbar-expand-md navbar-light">
|
<nav class="navbar navbar-expand-md navbar-light">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<%=
|
<%=
|
||||||
if Rails.application.show_logo?
|
link_to root_path, class: 'navbar-brand' do
|
||||||
link_to image_tag(asset_pack_path('media/images/logo.png')), root_path, class: 'logo navbar-brand'
|
app_name = content_tag :span, Rails.application.name
|
||||||
|
logo = image_tag(asset_pack_path('media/images/logo.png'), class: 'logo')
|
||||||
|
|
||||||
|
Rails.application.show_logo? ? logo + app_name : app_name
|
||||||
end
|
end
|
||||||
%>
|
%>
|
||||||
<%= link_to Rails.application.name, root_path, class: 'navbar-brand' %>
|
|
||||||
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
<span class="navbar-toggler-icon"></span>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user