【发布时间】:2013-01-09 02:14:22
【问题描述】:
我有一个带有 susy 的主网格设置,然后在 footer 元素中我使用 Susy 的 with-grid-settings() mixin 生成一个稍微不同的网格,如下所示:
footer
+span-columns(5 omega, 5)
+with-grid-settings(5, 174px ,20px ,0)
+container
@if $dev-mode-footer == true
+susy-grid-background
height: 240px
所以footer 应该跨越所有 5 个主要列,并包含一个宽度略有不同的新网格,并使用 container mixin 来应用它。
所以,然后在 footer 内部,我有一些 ul 设置为每个跨越 1 列,但左边的边距实际上翻了一番。
这是 CSS:
footer
.banner
+span-columns(5 omega, 5)
height: 187
border-top: 3px solid $highlight-1
border-bottom: 3px solid $highlight-1
padding: 10px 0
ul
+pie-clearfix
li
+span-columns(1, 5)
border-right: 1px dotted $highlight-2
padding-left: 35px
以及结果图片:
似乎它与错误的网格上下文对齐。是否与两个网格具有相同的列数有关?
【问题讨论】:
-
有人能帮忙吗?
标签: css width sass compass-sass susy-compass