zurb-foundation

How do determine gutter-width in the sass version of zurbs foundation

烈酒焚心 提交于 2019-12-11 01:43:46
问题 Should be relatively simple, by I can't quiet figure it out. I have this: .parent @include grid-row() .main @include grid-column(8) .sidebar @include grid-column(4) The elements 'main' and 'sidebar' end up sitting right next to each other with no gutter. I can see in the grid docs that there is a variable called $column-gutter, and that it has a default setting. But I can't see it's effect. In the file _grid.scss I can see $column-gutter. It has a default value, and I have touched it. But it

Google Maps resize issue with foundation css sections

自古美人都是妖i 提交于 2019-12-11 01:11:48
问题 I have some content in three tabs (foundation css sections actually). Each tab has a different map for a different city. I have three different initialize functions, one for each city which are called onclick. <p class="title dublin-tab" data-section-title><a href="#panel2" onclick="initializeDublin();"> When I click on a tab only part of the map shows. I know that I need to call google.maps.event.trigger(map, 'resize'); but my problem is where to call it. If I click a second time on the tab

Zurb Foundation 5 offcanvas not working

╄→尐↘猪︶ㄣ 提交于 2019-12-11 00:42:42
问题 I'm trying to implement an offcanvas to a site using zurb's foundation framework, for mobile viewing, and just copied the code for it from the documentation, but it just doesn't work. the code is the following: <script src="/js/vendor/custom.modernizr.js"></script> <script src="/js/vendor/jquery.js"></script> <script src="/js/foundation.min.js"></script> <script> $(document).foundation(); </script> </head> <body> <!--offcanvas begin--> <div class="off-canvas-wrap"> <div class="inner-wrap">

Correct HTML form markup

允我心安 提交于 2019-12-10 23:44:22
问题 We are having a discussion as I'm currently fixing an IE7 bug, as <label> and <input> tags were wrapped in a <p> . I cannot seem to find any documentation for the correct semantics for tags contained in a <form> tag. I tend to use the following for example, <form action="" method="post"> <fieldset> <div class="formrow"> <label for="firstname">Firstname:</label> <input type="text" id="firstname" name="firstname" /> </div> </fieldset> </form> However, looking at the Zurb Foundation they don't

formatting the tooltip in noUISlider

北城以北 提交于 2019-12-10 23:22:21
问题 I am using the noUISlider in my rails project. noUiSlider.create( slider, { start: [3], connect: 'lower', step: 1, range: { 'min': 1, 'max': 9 }, pips: { mode: 'steps', density: 20 }, tooltips: true, format: { from: function(value) { return (parseInt(value)+" days"); }, to: function(value) { return (parseInt(value)+" days"); } } }); I want it to be a measure of days in the tooltip. So I added the format part as above. But start: 3 wont work anymore. It starts from 1 instead. If I remove the

adding jquery plugin to Zurb's Foundation Framework

六眼飞鱼酱① 提交于 2019-12-10 22:34:31
问题 I am working with Zurbs's Foundation rapid prototyping framework and very good it is to. I am wondering the proper way to integrate another jquery plugin into it. foundations is very picky about how you include other plugins. Part of the frameworks is an app.js file full of functions. Should I be adding my new functions direct to there? Whilst I do understand js (reading ok) I am no js expert so a clearly explained answer please. Thanks (site working on is vincentstephens.co.uk/vs5.1

Foundation 4.3.2 Abide Doesn't Validate Checkboxes

故事扮演 提交于 2019-12-10 20:38:47
问题 Zurb Foundation 4.3.2 Abide validation doesn't validate checkboxes. Though it would be relatively easy to write my own custom validation, it would be even better if I could update the library to validate, so that other users/developers at this massive institution I work at could also use the tools, without having to go digging for custom scripts. How to update Abide to make checkbox validation work, without having to update to Foundation 5?—This website belongs to a massive organization, and

Foundation 6 data-responsive-menu parameters

眉间皱痕 提交于 2019-12-10 17:52:44
问题 I'm building a responsive navigation with foundation 6, integrated in wordpress. I'd like to use data-responsive-menu attribute in order to trigger the drilldown plugin on small screens. Easy. The problem is that I don't want any of the other plugins on the other screen sizes. The documentation gives this example: <ul class="vertical menu" data-responsive-menu="drilldown medium-dropdown"> But this trigger drilldown plugin on small screens and dropdown on bigger ones. If I use only "drilldown"

Stuck on installing dependencies with bower (foundation new)

倾然丶 夕夏残阳落幕 提交于 2019-12-10 17:24:48
问题 I followed this guide to install foundation on my Windows 8.1 PC. http://foundation.zurb.com/forum/posts/11597-how-to-install-grunt-and-libsass-on-windows When I get to Step 16 my cmd prompt gets stuck on "Installing dependencies with bower...". I have had foundation work on my computer before but I recently had to reformat it. Thanks for any help. 回答1: I spent a lot of time trying to fix this problem... and I have solution! :) I think it's a problem between node.js and npm versions. I

Zurb Foundation Sticky Nav Bar

假如想象 提交于 2019-12-10 17:18:33
问题 So I'm using the default .top-bar class from the zurb foundation framework, but I'm failing a find a simple way to make the nav bar 'sticky' (follows the user as he scrolls), such as you can do with Twitter bootstrap. Here's my code, I'm using jade: nav.top-bar ul li.name h1 a(href='#') Site Title li.toggle-topbar a(href='#') section ul.left li.divider li a.active(href='#') Link li.divider li a.active(href='#') Link li.divider li a.active(href='#') Link li.divider li a.active(href='#') Link