From fab0d412faffc60e8811828464146cb31e39af00 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Wed, 12 Sep 2018 19:00:54 +0200 Subject: [PATCH] Navbar: padding for items --- src/templates/layout.pug | 32 ++++++++++++++++---------------- src/templates/menus/user.pug | 8 ++++---- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/templates/layout.pug b/src/templates/layout.pug index 7a12a5c..a2ff8d1 100644 --- a/src/templates/layout.pug +++ b/src/templates/layout.pug @@ -135,7 +135,7 @@ html(lang="en") ul.dropdown-menu.p-0 li - a.navbar-item( + a.navbar-item.px-2( href="{{ url_for('projects.view', project_url='hdri') }}", title="HDRI Library", data-toggle="tooltip", @@ -143,7 +143,7 @@ html(lang="en") i.pi-globe | HDRI li - a.navbar-item( + a.navbar-item.px-2( href="{{ url_for('projects.view', project_url='textures') }}", title="Textures Library", data-toggle="tooltip", @@ -151,7 +151,7 @@ html(lang="en") i.pi-folder-texture | Textures li - a.navbar-item( + a.navbar-item.px-2( href="{{ url_for('projects.view', project_url='characters') }}", title="Character Library", data-toggle="tooltip", @@ -169,7 +169,7 @@ html(lang="en") ul.dropdown-menu li - a.navbar-item( + a.navbar-item.px-2( href="{{ url_for('cloud.courses') }}", title="Courses", data-toggle="tooltip", @@ -177,7 +177,7 @@ html(lang="en") i.pi-graduation-cap | Courses li - a.navbar-item( + a.navbar-item.px-2( href="{{ url_for('cloud.workshops') }}", title="Workshops", data-toggle="tooltip", @@ -185,7 +185,7 @@ html(lang="en") i.pi-lightbulb | Workshops li - a.navbar-item( + a.navbar-item.px-2( href="{{ url_for('projects.view', project_url='gallery') }}", title="Curated artwork collection", data-toggle="tooltip", @@ -204,25 +204,25 @@ html(lang="en") ul.dropdown-menu li - a.navbar-item(href="/p/spring") + a.navbar-item.px-2(href="/p/spring") span.px-2 Spring li - a.navbar-item(href="/p/hero") + a.navbar-item.px-2(href="/p/hero") span.px-2 Hero li - a.navbar-item(href="/p/dailydweebs") + a.navbar-item.px-2(href="/p/dailydweebs") span.px-2 The Daily Dweebs li - a.navbar-item(href="/p/agent-327") + a.navbar-item.px-2(href="/p/agent-327") span.px-2 Agent 327 li - a.navbar-item(href="/p/caminandes-3") + a.navbar-item.px-2(href="/p/caminandes-3") span.px-2 Caminandes: Llamigos li.dropdown-divider li - a.navbar-item(href="{{ url_for('cloud.open_projects') }}") + a.navbar-item.px-2(href="{{ url_for('cloud.open_projects') }}") span.pl-2 All Open Projects li.nav-item.dropdown @@ -236,7 +236,7 @@ html(lang="en") ul.dropdown-menu.dropdown-menu-right li - a.navbar-item( + a.navbar-item.px-2( href="/attract", title="Production Management", data-toggle="tooltip", @@ -244,7 +244,7 @@ html(lang="en") i.pi-attract | Attract li - a.navbar-item( + a.navbar-item.px-2( href="/flamenco", title="Render Management", data-toggle="tooltip", @@ -253,7 +253,7 @@ html(lang="en") | Flamenco li - a.navbar-item( + a.navbar-item.pl-2.pr-3( href="/services#blender-cloud-add-on", title="Blender Sync, Texture Browser and more", data-toggle="tooltip", @@ -264,7 +264,7 @@ html(lang="en") li.dropdown-divider li - a.navbar-item( + a.navbar-item.px-2( href="{{ url_for('cloud.services') }}", title="All Blender Cloud services", data-toggle="tooltip", diff --git a/src/templates/menus/user.pug b/src/templates/menus/user.pug index 90dfd65..d0596f7 100644 --- a/src/templates/menus/user.pug +++ b/src/templates/menus/user.pug @@ -28,19 +28,19 @@ a.navbar-item.dropdown-toggle(href="{{ url_for('settings.profile') }}", data-tog | {% block menu_list %} li.subscription-status(class="{{ subscription }}") | {% if subscription == 'subscriber' %} - a.navbar-item.pt-2.pr-3( + a.navbar-item.pt-2.pl-2.pr-3( href="{{ url_for('settings.billing') }}" title="View subscription info") i.pi-grin span.subitem Your subscription is active! | {% elif subscription == 'demo' %} - a.navbar-item.pt-2.pr-3( + a.navbar-item.pt-2.pl-2.pr-3( href="{{url_for('settings.billing')}}" title="View subscription info") i.pi-heart-filled span.subitem You have a free account. | {% elif current_user.has_cap('can-renew-subscription') %} - a.navbar-item(target='_blank', href="/renew", title="Renew subscription") + a.navbar-item.pt-2.pl-2.pr-3(target='_blank', href="/renew", title="Renew subscription") i.pi-heart span.info Your subscription is not active. span.renew Click here to renew. @@ -56,7 +56,7 @@ li.subscription-status(class="{{ subscription }}") | {{ super() }} li - a.navbar-item( + a.navbar-item.px-2( href="{{ url_for('settings.billing') }}" title="Billing") i.pi-credit-card