Massively improved styling of product pages
This commit is contained in:
parent
b1ee09e35a
commit
c55fdde3fc
@ -20,24 +20,24 @@ html {
|
||||
background-color: var(--bg);
|
||||
color: var(--fg);
|
||||
font-size: 160%;
|
||||
font-family: 'Courier New', Courier, 'Inter';
|
||||
font-weight: lighter;
|
||||
font-family: 'InterVariable', 'Courier New', Courier, 'Inter';
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
margin: 0;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
flex: 0 1 auto;
|
||||
padding: 30px;
|
||||
padding: 5px 30px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1rem;
|
||||
gap: .3rem;
|
||||
}
|
||||
|
||||
/* Navbar styling*/
|
||||
@ -163,7 +163,7 @@ a:active {
|
||||
}
|
||||
|
||||
.category {
|
||||
margin: .5rem 0rem;
|
||||
margin: 0;
|
||||
padding: 0rem 1rem;
|
||||
border-left: .125rem solid var(--fg);
|
||||
}
|
||||
@ -178,7 +178,6 @@ a:active {
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
gap: 1rem;
|
||||
flex-direction: column;
|
||||
flex-grow: 1;
|
||||
height: 1%;
|
||||
|
@ -1,7 +1,8 @@
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/products.css') }}">
|
||||
|
||||
<div class="product-container">
|
||||
{% if products != None %}
|
||||
{% if products != None %}
|
||||
<p>Showing results for {{products|count}} products</p>
|
||||
<div class="product-container">
|
||||
{% for product in products %}
|
||||
<a href="/products/{{product.id}}" class="product product-link">
|
||||
<div class="product-title">{{product.name}}</div>
|
||||
@ -16,5 +17,7 @@
|
||||
<input type="submit" class="product-add-to-cart" value="Add to Cart" />
|
||||
</a>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% else %}
|
||||
<p>Sorry... We have nothing to show here!</p>
|
||||
{% endif %}
|
||||
|
@ -15,7 +15,6 @@
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<centre>
|
||||
{% if user != None and user.role == "Seller" %}
|
||||
<div class="categories">
|
||||
{# List all available seller tools #}
|
||||
@ -35,7 +34,6 @@
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</centre>
|
||||
</div>
|
||||
|
||||
{% with messages = get_flashed_messages(with_categories=true)%}
|
||||
|
Loading…
Reference in New Issue
Block a user