瀏覽代碼

Improve campaign operations column spacing.

master
Ben Kurtovic 8 年之前
父節點
當前提交
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">


Loading…
取消
儲存