瀏覽代碼

Align differently-sized operation columns nicely.

master
Ben Kurtovic 7 年之前
父節點
當前提交
8b0d9570b1
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. +7
    -6
      static/main.css
  2. +1
    -2
      templates/campaigns/campaign.mako

+ 7
- 6
static/main.css 查看文件

@@ -417,12 +417,8 @@ h2 .disabled-info {
display: flex;
}

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

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

.operation .primary .num {
@@ -542,6 +538,11 @@ h2 .disabled-info {
.operation .secondary .unit {
margin-left: 0.15em;
}

.operation .summary .contents {
display: inline-block;
margin-bottom: -4px;
}
}

@media (max-width: 799px) {


+ 1
- 2
templates/campaigns/campaign.mako 查看文件

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


Loading…
取消
儲存