Container padding in Neat/Bourbon

两盒软妹~` 提交于 2019-12-14 04:22:17

问题


I am working with Neat the first time. I am wondering how I can accomplish a padding for the outer .container. When giving the container a padding, the width of the columns within aren't right anymore and shift to the right/left.

Like this one:

<header>
  <div class='container'>
    <div class='logo'>
      <img alt='Logo' src='assets/images/logo.png'>
    </div>
  </div>
</header> 



.container
{
  @include outer-container;
  padding-left: 15px;
  padding-right: 15px;
}

header
{
  .logo
  {
    @include span-columns( 3 );
  }
}

I know I could give the first element in the container a padding and the columns would adjust, but that isn't a consistent solution imho.

What is the best practice to use a consistent padding to the outer container without changing the columns within?

Thank you very much in advance!


回答1:


This is currently not possible in Neat 1.6, but it is a known issue that looks like it might be solved in Neat 2.0.



来源:https://stackoverflow.com/questions/22130887/container-padding-in-neat-bourbon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!