limit smol-fp to only when the HOLES button is present

pull/40/head
Aevann1 2022-11-30 13:29:45 +02:00
parent 2561fc4c4e
commit 93dc0e2cc8
2 changed files with 9 additions and 8 deletions

View File

@ -6117,14 +6117,6 @@ g {
font-size: 20px;
}
@media (max-width: 427px) {
.smol-fp {
font-size: 2.7vw;
padding-left: 2.5vw;
padding-right: 2.1vw;
}
}
.emoji-option {
vertical-align: text-top;
}

View File

@ -65,6 +65,15 @@
<a class="btn btn-{{pcolor}} text-{{pcolor}} mx-2 smol-fp" href="/toggle_pins/{{sort}}"><i class="fas fas fa-thumbtack fa-rotate--45 mr-2 "></i>Pins</a>
{% if SITE_NAME != 'WPD' and not sub %}
<style>
@media (max-width: 427px) {
.smol-fp {
font-size: 2.7vw;
padding-left: 2.5vw;
padding-right: 2.1vw;
}
}
</style>
{% set hcolor = "primary" if holes else "secondary" %}
<a class="btn btn-{{hcolor}} text-{{hcolor}} mx-2 smol-fp" href="/toggle_holes"><i class="fas fas fa-manhole mr-2 "></i>Holes</a>
{% endif %}