Просмотр исходного кода

Improve campaign operations column spacing.

master
Ben Kurtovic 7 лет назад
Родитель
Сommit
5ec7980180
2 измененных файлов: 11 добавлений и 7 удалений
  1. +9
    -6
      static/main.css
  2. +2
    -1
      templates/campaigns/campaign.mako

+ 9
- 6
static/main.css Просмотреть файл

@@ -366,9 +366,16 @@ h2 .disabled::after {

#operations section {
display: flex;
}

#operations section.loose {
justify-content: space-around;
}

#operations section.tight {
justify-content: space-between;
}

.operation .stats .primary {
line-height: 60px;
height: 60px;
@@ -392,14 +399,10 @@ h2 .disabled::after {

@media (min-width: 800px) {
#operations {
margin-top: 1em;
margin: 1em;
}

#operations section:not(:last-child) {
margin-bottom: 3em;
}

#operations section:last-child {
#operations section {
margin-bottom: 2em;
}



+ 2
- 1
templates/campaigns/campaign.mako Просмотреть файл

@@ -8,7 +8,8 @@
</h2>
<div id="operations">
% for section in campaign["layout"]:
<section>
<% klass = "loose" if len(section) < 3 else "tight" %>
<section class="${klass}">
% for opname in section:
<% operation = campaign["operations"][opname] %>
<div class="operation">


Загрузка…
Отмена
Сохранить