diff --git a/resources/base.scss b/resources/base.scss index 3ec3602..501d5a1 100644 --- a/resources/base.scss +++ b/resources/base.scss @@ -667,25 +667,54 @@ math { } .dropdown { - border-radius: 4px; - border: 0.5px solid lightgray; - margin-top: 1px; - background: white; display: none; + background-color: white; + min-width: 160px; + box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); + padding: 4px 0; + z-index: 1; + border-radius: 5px; a { + display: block; + text-decoration: none; + transition: background-color 0.3s; color: black; } } .dropdown-item { - font-size: 15px; - padding: 6px 8px; + font-size: 16px; + padding: 6px 40px 6px 15px; cursor: pointer; + color: black; + font-weight: 600; } .dropdown-item:hover { - background: lightgray; + color: $theme_color; +} + +.popper-arrow, +.popper-arrow::before { + position: absolute; + width: 8px; + height: 8px; + background: inherit; +} + +.popper-arrow { + visibility: hidden; +} + +.popper-arrow::before { + visibility: visible; + content: ''; + transform: rotate(45deg); +} + +.popper-arrow { + top: -4px; } .unread_boxes { diff --git a/resources/common.js b/resources/common.js index 185eb7c..cae4e96 100644 --- a/resources/common.js +++ b/resources/common.js @@ -252,7 +252,17 @@ $.fn.textWidth = function () { }; function registerPopper($trigger, $dropdown) { - const popper = Popper.createPopper($trigger[0], $dropdown[0]); + const popper = Popper.createPopper($trigger[0], $dropdown[0], { + placement: 'bottom-end', + modifiers: [ + { + name: 'offset', + options: { + offset: [0, 8], + }, + }, + ], + }); $trigger.click(function(e) { $dropdown.toggle(); popper.update(); diff --git a/templates/base.html b/templates/base.html index c82368d..e823acb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -168,6 +168,7 @@ {{ language.name_local }} {% endfor %} +
@@ -179,6 +180,7 @@