From 0035a4129a786ff5aefc782d70705bfb1e6ba63a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 21 Jan 2021 17:37:17 -0600 Subject: [PATCH] Add custom `base.css` for falafel theme this copies from bobcat/base.css and just adds margin-bottom for p tag. this was done b/c in certain Buefy dialogs etc. the p tags are too close together. not sure if this change breaks anything else yet... --- tailbone/static/themes/falafel/css/base.css | 23 +++++++++++++++++++++ tailbone/templates/themes/falafel/base.mako | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 tailbone/static/themes/falafel/css/base.css diff --git a/tailbone/static/themes/falafel/css/base.css b/tailbone/static/themes/falafel/css/base.css new file mode 100644 index 00000000..10370009 --- /dev/null +++ b/tailbone/static/themes/falafel/css/base.css @@ -0,0 +1,23 @@ + +/****************************** + * general + ******************************/ + +p { + margin-bottom: 1rem; +} + + +/****************************** + * tweaks for root user + ******************************/ + +.navbar .navbar-end .navbar-link.root-user, +.navbar .navbar-end .navbar-link.root-user:hover, +.navbar .navbar-end .navbar-link.root-user.is_active, +.navbar .navbar-end .navbar-item.root-user, +.navbar .navbar-end .navbar-item.root-user:hover, +.navbar .navbar-end .navbar-item.root-user.is_active { + background-color: red; + font-weight: bold; +} diff --git a/tailbone/templates/themes/falafel/base.mako b/tailbone/templates/themes/falafel/base.mako index 4a7e1083..8bee2119 100644 --- a/tailbone/templates/themes/falafel/base.mako +++ b/tailbone/templates/themes/falafel/base.mako @@ -129,7 +129,7 @@ ${self.buefy_styles()} - ${h.stylesheet_link(request.static_url('tailbone:static/themes/bobcat/css/base.css') + '?ver={}'.format(tailbone.__version__))} + ${h.stylesheet_link(request.static_url('tailbone:static/themes/falafel/css/base.css') + '?ver={}'.format(tailbone.__version__))} ${h.stylesheet_link(request.static_url('tailbone:static/themes/falafel/css/layout.css') + '?ver={}'.format(tailbone.__version__))} ${h.stylesheet_link(request.static_url('tailbone:static/css/grids.css') + '?ver={}'.format(tailbone.__version__))} ${h.stylesheet_link(request.static_url('tailbone:static/themes/falafel/css/grids.css') + '?ver={}'.format(tailbone.__version__))}