Still confused with nested grids

后端 未结 1 1071
自闭症患者
自闭症患者 2021-01-22 08:56

I\'ve finally found some time to test Singularity, and im back to a problem I had before for that I cant find an obvious solution.

My issue is with nested grids. Let\'s

1条回答
  •  臣服心动
    2021-01-22 09:53

    So the issue you're having is you haven't changed the grid context and are still using your global 12 column grid context at that point. You need to change your grid context to 9 as you're now inside a 9 column grid. The following should fix your problem:

    .highlights{
      overflow: hidden;
      border: 1px solid black;
    
      article{
        @include layout(9) {
          @include float-span(3);
    
          &:nth-child(3n){
            @include float-span(1, 'last');
          }
        }
      }
    }
    

    0 讨论(0)
提交回复
热议问题