From 3a2a32ad2e6e2acd21d4ab3481c5ad1c56945385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Zanghelini?= Date: Sun, 2 Apr 2017 22:17:03 -0300 Subject: [PATCH 01/12] noscript support Add support for environments without scripts --- less/noscript.less | 34 +++++++++++++++++++++++ templates/category.tpl | 3 +- templates/header.tpl | 1 + templates/login.tpl | 4 ++- templates/partials/menu.tpl | 25 ++++++++++++++--- templates/partials/noscript/warning.tpl | 2 +- templates/partials/topic/quickreply.tpl | 12 +++++--- templates/partials/topic/reply-button.tpl | 3 +- 8 files changed, 72 insertions(+), 12 deletions(-) diff --git a/less/noscript.less b/less/noscript.less index 706238c..d1f3d2b 100644 --- a/less/noscript.less +++ b/less/noscript.less @@ -80,4 +80,38 @@ noscript { } } } +} +.noscript { + display: none !important; +} +#user-control-list-check:checked + #user-control-list { + display: block; +} +label.dropdown-toggle { + cursor: pointer; +} +.dropdown-menu > li > form > button { + text-align: left; + width: 100%; + background: none; + border: none; + display: block; + padding: 3px 20px; + clear: both; + font-weight: normal; + line-height: @line-height-base; + color: @dropdown-link-color; + white-space: nowrap; // prevent links from randomly breaking onto new lines + + &:hover, + &:focus { + text-decoration: none; + color: @dropdown-link-hover-color; + background-color: @dropdown-link-hover-bg; + } +} +html[data-dir="rtl"] { + .dropdown-menu > li > form > button { + text-align: right; + } } \ No newline at end of file diff --git a/templates/category.tpl b/templates/category.tpl index 7056c7d..4b55e9c 100644 --- a/templates/category.tpl +++ b/templates/category.tpl @@ -8,7 +8,8 @@
- + [[category:new_topic_button]] + [[category:guest-login-post]] diff --git a/templates/header.tpl b/templates/header.tpl index 555159a..fd9f385 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -5,6 +5,7 @@ {function.buildMetaTag} + {function.buildLinkTag}