zurb-foundation

Height 100% on html/body is not working on iPhone

▼魔方 西西 提交于 2019-12-01 15:59:10
问题 I have created a responsive website using Foundation with a footer that is absolutely positioned on the bottom of the page. On my desktop browsers, it looks exactly like it should, but on my iPhone the footer is overlapping some of the content instead of being all the way at the bottom of the page. I have my html,body CSS set to this: html, body { height:100%; margin:0; padding:0; } But when I inspect the page on my phone using the Safari developer tools, when I hover over the html or body

Anyone familiar with mobile visibility and zurbs foundation

空扰寡人 提交于 2019-12-01 12:15:57
I am trying to hide a div on both a tablet device and a desktop. I am using zurbs foundation http://foundation.zurb.com/docs/layout.php to do so. However when I try to apply the classes hide-on-tablets & hide-on-desktops the second one overrides the first one somehow and the hide-on-tablets shows up on a tablet. I can create my own media queries and hide them on both but I figure I should take advantage of classes or what's the point of having all the code. You can view it on my site at http://goodmorningmoon.ca by resizing the browser. The password for the site is springy88 Thanks in advance.

Sass @import directive when used in Rails engine can't find assets in plugins

孤人 提交于 2019-12-01 10:38:38
I was building a Rails engine that uses zurb-foundation's stylesheets, and kep hitting the same Sass::Syntax error. This seemed strange because I had followed the same procedure in a Rails application and it was worked on the first try. So I decided to zero in on the isse by starting two new rails projects--one application and one engine--and configure them to use foundation with a minimal amount of setup. I started with 2 clean Rails 3.2.9 projects--one application and one engine --full and configured them both manually for foundations by adding foundation_and_overrides.scss and require -ing

Foundation 5: tabs callback

旧巷老猫 提交于 2019-12-01 10:05:17
问题 Upgrading to Foundation 5. How do I add a callback to my tabs? Looking at the code it doesn't seem to be possible. It used to be cossible with Sections in Foundation 4. 回答1: They say there are two ways for callbacks http://foundation.zurb.com/docs/components/tabs.html#callbacks $(document).foundation({ tab: { callback : function (tab) { console.log(tab); } } }); and $('#myTabs').on('toggled', function (event, tab) { console.log(tab); }); 来源: https://stackoverflow.com/questions/20144978

Sass error on compilation NoMethodError: undefined method `count' for nil:NilClass Use --trace for backtrace

◇◆丶佛笑我妖孽 提交于 2019-12-01 09:21:51
Suddenly while working on a project, the following error came up. How to resolve the below error that comes up while doing: sass --watch foundation.scss:../css/foundation.css --line-numbers Error: NoMethodError: undefined method `count' for nil:NilClass Use --trace for backtrace. Sass compile was working till about a minute back Seems like it was an issue with MY Sass code. I had some IE filters for gradient that was not coded properly. This is usually an issue with YOUR code and not with Sass or the compiler compiler or at some higher level with respect to ruby. Check your code for recent

Revealing a Modal in Foundation 4

限于喜欢 提交于 2019-12-01 08:52:12
问题 How do you Reveal a modal programmatically in Foundation 4? In Foundation 3 we had the easy to use reveal() method. What can you use in Foundation 4? Please help. 回答1: I am pretty sure you can simply use the .foundation method on your modal to call 'open' on it.. Something like: $('#myModal').foundation('reveal', 'open'); e: Just checked the docs and yep, It's right there: http://foundation.zurb.com/docs/components/reveal.html Look for "You can also open and close Reveal via JavaScript:" 回答2:

Stop AngularJS inserting <span class=“ng-scope”></span> using ng-include

≯℡__Kan透↙ 提交于 2019-12-01 08:39:28
I'm using the Foundation layout framework, which automatically floats the last sibling of .column to the right and I really appreciate this is a behaviour. However, AngularJS takes it upon itself to insert span.ng-scope after every div.column , which somehow causes browsers to consider the last span the last sibling of .column (even though it is not). Specifically the css in Foundation responsible for this is: [class*="column"] + [class*="column"]:last-child { float: right; } As I understand it, [attribute*="substring"] should select only siblings that match, so, for the above, only elements

Sass @import directive when used in Rails engine can't find assets in plugins

独自空忆成欢 提交于 2019-12-01 07:40:43
问题 I was building a Rails engine that uses zurb-foundation's stylesheets, and kep hitting the same Sass::Syntax error. This seemed strange because I had followed the same procedure in a Rails application and it was worked on the first try. So I decided to zero in on the isse by starting two new rails projects--one application and one engine--and configure them to use foundation with a minimal amount of setup. I started with 2 clean Rails 3.2.9 projects--one application and one engine --full and

Foundation5 with Compass and Assetic in Symfony2

两盒软妹~` 提交于 2019-12-01 07:39:04
I want to config Foundation5 with Compass and Assetic in Symfony2, I have installed foundation as they say at http://foundation.zurb.com/docs/sass.html : npm install -g bower grunt-cli gem install foundation In config.yml have configured in this way : # Assetic Configuration assetic: debug: %kernel.debug% use_controller: false filters: compass: require: ['zurb-foundation'] apply_to: ".(scss|sass)$" Then I have imported in a base SCSS file @import "foundation"; but when I run : php app/console assetic:dump I have the following error : [Assetic\Exception\FilterException] An error occurred while

Sass error on compilation NoMethodError: undefined method `count' for nil:NilClass Use --trace for backtrace

送分小仙女□ 提交于 2019-12-01 07:01:23
问题 Suddenly while working on a project, the following error came up. How to resolve the below error that comes up while doing: sass --watch foundation.scss:../css/foundation.css --line-numbers Error: NoMethodError: undefined method `count' for nil:NilClass Use --trace for backtrace. Sass compile was working till about a minute back 回答1: Seems like it was an issue with MY Sass code. I had some IE filters for gradient that was not coded properly. This is usually an issue with YOUR code and not