Skip to content

Commit

Permalink
Added dropdown icon
Browse files Browse the repository at this point in the history
  • Loading branch information
lucascumsille committed Apr 8, 2024
1 parent 89a7a34 commit f2dc2f6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hub/static/css/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ $spacers: (
);

// Position
$position-values: (
0: 0,
50: 50%,
95: 95%,
100: 100%
);

// Body

Expand Down
1 change: 1 addition & 0 deletions hub/templates/hub/explore.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ <h2 class="h5 mt-2 mt-lg-3 mb-3 mb-lg-4 text-primary">Constituency generation</h
<button type="button" class="btn btn-outline-secondary p-3 w-100 position-relative" data-bs-toggle="modal" data-bs-target="#areaType">
<p class="mb-1">Current constituencies</p>
<small>These constituencies are the areas which MPs currently represent in UK Parliament.</small>
{% include "hub/includes/icons/select.html" with classes="position-absolute top-50 start-95 translate-middle" %}
<!--
<small>This is the constituency in which parliamentary candidates will soon be standing for election.</small>
-->
Expand Down
4 changes: 4 additions & 0 deletions hub/templates/hub/includes/icons/select.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<svg width="{{ width|default:'1em' }}" height="{{ height|default:'1.5em' }}" viewBox="0 0 24 36" class="{{ classes }}" role="{{ role|default:'presentation' }}" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.7232 0.536204C11.0619 0.192873 11.5211 0 12 0C12.4789 0 12.9381 0.192873 13.2768 0.536204L23.493 10.8963C23.822 11.2417 24.004 11.7043 23.9999 12.1845C23.9958 12.6647 23.8059 13.124 23.471 13.4636C23.1362 13.8032 22.6833 13.9958 22.2097 13.9999C21.7362 14.0041 21.28 13.8195 20.9394 13.4859L12 4.42057L3.06056 13.4859C2.71995 13.8195 2.26377 14.0041 1.79025 13.9999C1.31674 13.9958 0.863787 13.8032 0.528949 13.4636C0.194112 13.124 0.00418297 12.6647 6.82696e-05 12.1845C-0.00404644 11.7043 0.177983 11.2417 0.506951 10.8963L10.7232 0.536204Z" fill="currentColor"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.2768 35.4638C12.9381 35.8071 12.4789 36 12 36C11.5211 36 11.0619 35.8071 10.7232 35.4638L0.506952 25.1037C0.177984 24.7583 -0.00404515 24.2957 6.95537e-05 23.8155C0.00418426 23.3353 0.194115 22.876 0.528952 22.5364C0.86379 22.1968 1.31674 22.0042 1.79026 22.0001C2.26377 21.9959 2.71996 22.1805 3.06056 22.5141L12 31.5794L20.9394 22.5141C21.28 22.1805 21.7362 21.9959 22.2097 22.0001C22.6833 22.0042 23.1362 22.1968 23.4711 22.5364C23.8059 22.876 23.9958 23.3353 23.9999 23.8155C24.004 24.2957 23.822 24.7583 23.493 25.1037L13.2768 35.4638Z" fill="currentColor"/>
</svg>

0 comments on commit f2dc2f6

Please sign in to comment.