Replace margin with grid-row-gap.
This commit is contained in:
parent
67619c506e
commit
742034d287
1 changed files with 10 additions and 2 deletions
|
@ -17,17 +17,25 @@
|
||||||
{
|
{
|
||||||
width: 200px;
|
width: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#channel_list
|
||||||
|
{
|
||||||
|
display: grid;
|
||||||
|
grid-row-gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
.channel_card
|
.channel_card
|
||||||
{
|
{
|
||||||
margin: 8px 0;
|
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
border: 1px solid black;
|
border: 1px solid black;
|
||||||
}
|
}
|
||||||
|
|
||||||
.channel_card_pending
|
.channel_card_pending
|
||||||
{
|
{
|
||||||
background-color: #ffffaa;
|
background-color: #ffffaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
.channel_card_no_pending
|
.channel_card_no_pending
|
||||||
{
|
{
|
||||||
background-color: #aaffaa;
|
background-color: #aaffaa;
|
||||||
|
@ -46,7 +54,7 @@
|
||||||
<button id="new_channel_button" class="button_with_spinner" onclick="return add_channel_form();">Add new channel</button>
|
<button id="new_channel_button" class="button_with_spinner" onclick="return add_channel_form();">Add new channel</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="channels">
|
<div id="channel_list">
|
||||||
{% for channel in channels|sort(attribute='name', case_sensitive=False) %}
|
{% for channel in channels|sort(attribute='name', case_sensitive=False) %}
|
||||||
{% if channel.has_pending() %}
|
{% if channel.has_pending() %}
|
||||||
<div class="channel_card channel_card_pending">
|
<div class="channel_card channel_card_pending">
|
||||||
|
|
Loading…
Reference in a new issue