zurb-foundation

AngularJS: How to prevent “code flash” in page while loading

江枫思渺然 提交于 2019-11-30 03:17:43
问题 I have created a simple app using AngularJS. When I open the page for a second I see the screen below: However, after the load is complete I see the loaded and styled content which is fine: How do I prevent the flash of AngularJS code on my page ? Is this related to FOUC ? Here is the HTML code: <!doctype html> <html class="no-js" lang="en" ng-app="MainApp"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Foundation | Welcome<

Use Zurb Foundation 4 / Twitter Bootstrap 3 For Non Mobile First Projects

隐身守侯 提交于 2019-11-30 01:42:48
Has anyone used Foundation 4 or Bootstrap 3 beta? As you know, both are re-written to make it mobile first. I'm very excited with the mobile first approach, but in real life, sometimes circumstances don't let us do what we believe is the right way. So I just want to ask, has anyone used F4 or BS3 for non mobile first (or even non responsive) projects? I haven't really dived into the codes and the documentation is quite lacking. What I mean is, is there some hidden caveats in F4/BS3 that if I use one of them for non mobile first/responsive projects, somehow it's not gonna work as smoothly as

Wrong color for flash messages under Rails 4.1 with Bootstrap or Foundation

僤鯓⒐⒋嵵緔 提交于 2019-11-30 00:51:30
问题 The following code displays Rails flash messages using Bootstrap 3.0: <%# Rails flash messages styled for Twitter Bootstrap 3.0 %> <% flash.each do |name, msg| %> <% if msg.is_a?(String) %> <div class="alert alert-<%= name == :notice ? "success" : "danger" %>"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> <%= content_tag :div, msg, :id => "flash_#{name}" %> </div> <% end %> <% end %> The code is from the article Bootstrap and Rails. Similar code from

Fade in tabs in Zurb Foundation?

浪尽此生 提交于 2019-11-29 22:37:43
问题 I'm trying to figure out if there's setting to fade in tabs nicely in Zurb Foundation. If not, does anyone know the best way to achieve this manually? What to target in jQuery? Thanks. 回答1: Replace this line of code u.css("display","block").addClass("active") with u.fadeIn('slow').addClass("active") on line 49 of foundation.min.js if you are using the uncompressed js NB: i have not tested for uncompressed js Replace this line of code $content.css('display', 'block').addClass('active'); with

How can i specify framework version in compass create?

你离开我真会死。 提交于 2019-11-29 22:28:36
问题 i have two gem versions of foundation framework installed. i want to specify version of framework before create project. compass create <project-name> -r zurb-foundation --using foundation i can create only with current framework version now. 回答1: You can run multiple versions of foundation. There is some documentation on how to do that at: http://foundation.zurb.com/docs/sass.html under Running multiple versions I wanted to have the latest version of Foundation 3 as well as the most current

NPM + Zurb Foundation + WebPack: Cannot resolve module 'foundation'

送分小仙女□ 提交于 2019-11-29 21:48:13
I am working on using Zurb Foundation with WebPack and NPM, without Bower. The problem I am encountering is the same as this below: https://github.com/zurb/foundation-sites/issues/7386 Essentially, when installing foundation-sites via NPM, there are references to a module "foundation" that is not found. The error: Module not found: Error: Cannot resolve module 'foundation' in c:\Users\Matt\Documents\Projects\test\node_modules\foundation-sites\dist @ ./~/foundation-sites/dist/foundation.js Here's the package.json: { "name": "test", "version": "1.0.0", "description": "", "main": "index.js",

How to integrate Foundation 5 in django

放肆的年华 提交于 2019-11-29 20:02:03
问题 I'd like to starting use Foundation 5 in a django project. My doubts are about how to setup folders of Foundation project. Foundation now uses bower for js dipendencies. I think it's not correct make a foundation 5 set up into the static folder of django. Has anyone done a setup of foundation in a django project? To compile scss files I'll use django-compressor. 回答1: My solution is use django-bower... that's all! 回答2: Check here. It should have all the instructions. https://pypi.python.org

Change Wordpress default gallery output

流过昼夜 提交于 2019-11-29 19:27:45
I am looking to use the Wordpress gallery shortcut but I want to tie the output into the Foundation Orbit plugin (to make a slider). This is the HTML I am looking to output: <div class="slideshow-wrapper"> <div class="preloader"></div> <ul data-orbit> <li> <img src="img1.png" alt="bla bla bla" /> </li> <li> <img src="img2.png" alt="bla bla bla" /> </li> <li> <img src="img3.png" alt="bla bla bla" /> </li> <li> <img src="img4.png" alt="bla bla bla" /> </li> </ul> </div> Is it possible to put something in functions.php (or similar) to achieve this? Yes, indeed. Quite a while ago I've found this

How does SCSS locate partials?

旧城冷巷雨未停 提交于 2019-11-29 16:00:21
I'm looking through the bower foundation project and I'm getting stumped on how the project is able to locate the partials. In particular, I'm looking at the _settings.scss that has a relative reference in it I just don't quite understand. On line 58 there is a reference to foundation/functions but this partial ( _functions.scss ) is a sibling of the settings partial. I'm confused as why there is a reference to the parent directory foundation on that line. I'm also confused as to how this works. Why would the settings file not look for a directory named foundation at the same level? The answer

Google Chart too narrow in Foundation 6

穿精又带淫゛_ 提交于 2019-11-29 12:51:33
I am trying to convert my website to use Foundation 6. Most of it works OK, but I have a problem with Google charts. I have put my chart inside large-12 cell: <div class="large-12 cell"> <div id="chart_div"> </div> </div> but the chart is too narrow - it should be as wide as the top menu: by default, the chart does not fully fill the width of the container see cyan section in following snippet... google.charts.load('current', { packages: ['corechart'] }).then(function () { var statsData = new google.visualization.DataTable(); statsData.addColumn('number', 'x'); statsData.addColumn('number', 'y