zurb-foundation

Zurb Foundation 5, modernizr not found

徘徊边缘 提交于 2019-12-05 03:28:35
I get this when using Foundation 5.0.2.0 in production mode. On Rails, Unicorn, NginX & Ubuntu. "NetworkError: 404 Not Found - http://mydomain.com/javascripts/vendor/modernizr.js" Update 3/13/14 I don't have this problem on heroku with foundation-rails-5.1.1.0 . Adding javascript_include_tag "vendor/modernizr" in the head works. I could remove the modernizr I copied to the vendor directory and remove the extra line in app.js I had the same problem on heroku, the app would crash because it couldn't find modernizr.js. Here's how I fixed it: Copy modernizr.js from foundation (wherever you

Change order for Foundation small-12 column

人走茶凉 提交于 2019-12-05 02:39:14
I have a layout with an image to the left and a text on the right for medium and large views. I want to the text to be BEFORE the image on "small-12" though. The pull/push mechanism does not seem to work with "xxx-12" columns. These are my divs: <div class="large-4 medium-6 small-12">Image</div> <div class="large-8 medium-6 small-12">Text</div> Here you go. You are missing columns. You want to order the small content first. Then push pull http://cdpn.io/xfJph 来源: https://stackoverflow.com/questions/22042690/change-order-for-foundation-small-12-column

foundation 5 reveal modal not working

时光总嘲笑我的痴心妄想 提交于 2019-12-05 02:04:00
问题 Good day to all, I'm using foundation 5 for my mini project. I want to use the reveal/modal feature of the framework. But it seems it does not work. index.html <!DOCTYPE html> <html> <head> <title>Job Posting</title> <link rel="stylesheet" type="text/css" href="../css/normalize.css"> <link rel="stylesheet" type="text/css" href="../css/foundation.min.css"> <script type="text/javascript" src="../js/vendor/custom.modernizr.js"></script> </head> <body> <a href="#" class="button" data-reveal-id=

RefineryCMS 2.1.0 and Zurb 4 Top menu with dropdown navigation

心已入冬 提交于 2019-12-05 01:59:07
问题 I'm trying to use Zurb foundation to style an app built with the latest version of refinery. I began by following this guide http://blog.flatironschool.com/post/54511602806/build-a-blog-based-site-with-refinerycms but the latest version of refinery uses "menu-presenter" to layout the menu. I have got this far: module ApplicationHelper def zurb_menu menu_items = Refinery::Menu.new(Refinery::Page.in_menu) presenter = Refinery::Pages::MenuPresenter.new(menu_items, self) presenter.css = "top-bar

ZURB Foundation, switching tab programmatically

谁说胖子不能爱 提交于 2019-12-05 01:23:52
Im using asp with foundation, is there anyway to switch between a tab to another using JS or ASP? Link (Simple tab). A possible solution is to assign an id to the tab link and click it using jQuery. Given the following code excerpt, notice the id assigned to the anchor link... <dd><a href="#simple2" id="tabId">Simple Tab 2</a></dd> You could activate this link using this line of jQuery. $("#tabId").click(); Mal If you give the first tab and the first LI .active by default in the HTML, <div id="#TheTabs" class="twelve columns"> <dl class="nice contained tabs"> <dd><a href="#FirstTab" class=

Zurb Foundation: Semi transparent top bar possible?

好久不见. 提交于 2019-12-05 00:13:09
问题 Is there any way to have a semi-transparent top bar with Zurb Foundation? I have defined all the relevant variables, from what I can tell, in my _settings.scss file: $topbar-bg-color $topbar-bg $topbar-dropdown-bg $topbar-dropdown-link-bg $topbar-dropdown-label-bg And have tried all number of variations (of rgba's with alpha values from 0-0.5) and have always ended up with either a fully transparent bar or a semi-transparent bar with the dropdowns/buttons stacking their background on top and

Use Foundation instead of Bootstrap with SASS in a yeoman created application

久未见 提交于 2019-12-04 19:45:27
I've created an AngularJS application with yeoman. Now I want to switch the front-end framework from bootstrap to foundation. After I installed foundation with bower install foundation --save Grunt will add the following line to my index.html file. <link rel="stylesheet" href="bower_components/foundation/css/foundation.css" /> How can I force grunt to use the sass way. For the sass way the index.html is untouched (except js files) but the main.scss file nedds the following line or simliar @import "../bower_components/foundation/scss/foundation" to work with the sass. Here is the Grundfile.js

Zurb Foundation 5: Grid Column Stacking

孤街醉人 提交于 2019-12-04 17:54:00
I'm new to foundation and I only have the basic idea on how to use grids. I have these 3 columns that need to be stacked (see "mobile" image) when viewed on mobile/small screens. It should look something like this when in larger screens: Here's my current code. It's not quite what I wanted, and I'm starting to get confused. <div class="row"> <div class="large-12" style="background-color:#bdc3c7;"> <div class="medium-4 medium-push-8 columns" style="background-color: #1abc9c; border: 1px solid #2c3e50;"> <p>TOP ROW</p> </div> <div class="medium-8 medium-pull-4 columns" style="background-color:

How to add submenu to zurb foundation Side Nav

僤鯓⒐⒋嵵緔 提交于 2019-12-04 15:09:46
I am looking for a Side Nav with multilevel items. By default zurb foundation 5 does not support sub menus for some reason. http://jsfiddle.net/pvG7V/1/ <ul class="side-nav"> <li><a href="#">Link 1</a> </li> <li><a href="#">Link 2</a> </li> <li class="divider"></li> <li><a href="#">Link 3</a> </li> <ul> <li><a href="#">Link 1</a> </li> <li><a href="#">Link 2</a> </li> </ul> <li><a href="#">Link 4</a> </li> </ul> Can this be changed to support submenus with an indicator for sub menu like an down arrow or + sign. To do that, you have to change the side-nav markup and add some css and js. New

How do I use Zurb Foundation 4 Sections (tabs) with my javascript Ajax?

风格不统一 提交于 2019-12-04 14:57:00
I am using the Zurb Foundation 4.1.5 for my application and I am trying to use Zurb Section Javascript to manage "tabs" on the page. However, the data in the tabs on my page is dynamic and loaded by Ajax calls. I need to know how to render or draw this data on the sections content. My javascript methods a) need to be notified whenever a Tab is selected. b) need to be able to programmatically display or select the active tab c) dynamically set the HTML content for each Tab: I have a moustache js template that will be combined with the result of jquery Ajax Call back to set the html for the tab.