Bootstrap List group in Foundation 5

老子叫甜甜 提交于 2019-12-13 00:29:12

问题


I am trying to figure out how to get the equivalent of Bootstrap's list groups, with the list group item borders and all, using Foundation 5.

However, there doesn't seem to be anything that similar.

The only thing that I have found is ul/li's suggested on Foundations' site. http://foundation.zurb.com/docs/components/typography.html

Any ideas?

Update: I want to list comments/comment-comments with this list group in Foundation. Here it is using Bootstrap.

<div class='list-group-item'>
  <div class='list-group-item-text'>
    <h4 class='list-group-item-heading'>
      <%= comment.user.email %>
      <%= time_ago_in_words comment.created_at %> ago
    </h4>
    <%= simple_format comment.body %>
    <div class='list-group'>
      <%= render comment.comments %>
    </div>
  </div>
</div>

回答1:


Basically i do not found any reason why you can not compile Bootstrap's list groups CSS in your Foundation CSS.

So for instance run bower install bootstrap-sass in your project's directory and then use the following code in your app.scss:

@import "settings";
@import "foundation";
// Bootstrap
@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/variables";
@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/mixins";
@import "../bower_components/bootstrap-sass/assets/stylesheets/bootstrap/list-group";
.list-group {
max-width: 400px;
}


来源:https://stackoverflow.com/questions/29506372/bootstrap-list-group-in-foundation-5

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