zurb-foundation

Google Chart too narrow in Foundation 6

只谈情不闲聊 提交于 2019-11-28 06:14:36
问题 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: 回答1: 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

Foundation 5 build isn't complete

懵懂的女人 提交于 2019-11-28 02:15:32
I'm throwing my head against a wall here and would appreciate some help. So.. Lately, when I create a foundation project (or any existing project), I'm importing all of foundation with: @import "settings"; @import "foundation"; However, when I compile the scss with compass, it will not import all of foundation. I end up with: ../bower_components/foundation/scss/foundation/components/_visibility.scss */ ../bower_components/foundation/scss/foundation/components/_offcanvas.scss */ ../bower_components/foundation/scss/foundation/components/_icon-bar.scss */ and the associated CSS in my final app

Foundation 6 does not generate any styles

試著忘記壹切 提交于 2019-11-27 18:35:36
I have setup a new project to test Foundation 6 using Gulp and Sass but it doesn't seem to compile at all. There is another post close to this topic, but I personally believe the accepted answer is not the correct solution - as it includes all of the components and is actually the opposite of what Zurb suggests (see this issue: https://github.com/zurb/foundation-sites/issues/7537 ). Anyway ... I installed Foundation 6.1.1 from bower, and added the path to my gulp-sass function in gulpfile.js like so: // Compile Our Sass gulp.task('sass', function() { return gulp.src('scss/theme.scss') .pipe

How do the Sass variables get assigned to CSS selectors with Foundation 4?

倖福魔咒の 提交于 2019-11-27 15:23:34
I've googled and searched all over this, and of course gone through the relevant documentation, but there is a couple of things about Foundation 4 I just can't seem to get my head around, relating to how Sass converts. I have set up Foundation with Compass, using the create project command, so Sass is running. The app.scss file is importing "settings" and "foundation", and being compiled with 'watch'. First half of my question: I understand that app.css is compiled from the component files in the gem (does that sentence make sense?), but where can I find these components? Where is "foundation

AngularJS: initialize ZURB Foundation JS

风流意气都作罢 提交于 2019-11-27 11:48:29
I am using both AngularJS and Foundation. To initialize Foundation JS, you have to make the following call: $(document).foundation(); What would be the best way to make this call in an AngularJS application? Code examples would be appreciated. Also, if I were to write a directive around a Foundation JS component, how could I ensure that Foundation is initialized? You could $apply the code in order to bring it into the Angular framework. Here is an example using $rootScope with run and this could also be done inside a controller/directive with any $scope : app.run(function($rootScope){

Search HTML table with JS and jQuery

你离开我真会死。 提交于 2019-11-27 11:00:43
问题 I made a table and wanted to make it searchable, so I googled and looked here at starckoverflow. But somehow, the things I've found, that should work, dont work for me? Here is the code, both HTML and JS. <!DOCTYPE html> <html class="no-js" lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="author" content="C.Palma" /> <meta name="content" content="World of Warcraft. Characters. Project. Learn 2 Code." /> <title

bower command not found windows

▼魔方 西西 提交于 2019-11-27 10:17:18
I am having huge problems trying to use bower (to install foundation 5) or get anything bower related to work on the command line. I've installed ruby 1.9.3 git (with run from command prompt option) Nodejs I've successfully ran npm install -g bower grunt-cli gem install foundation and these have ran fine. I've looked in the npm/node_modules directory and I can see bower folder in there. Every time I type bower either into the cmd , ruby cmd or git bash I get command not recognized I've set the git path in the environment variables. What's annoying is the instruction on the bower site. It

Zurb Foundation 4 closed modal gets stuck

旧巷老猫 提交于 2019-11-27 08:46:48
问题 I have a modal popup which contains a View Details button that opens a different modal popup. I'm using $('#modalName').foundation('reveal', 'close') everywhere and it works very well. But in this case, I believe there is an event issue going on, because the modal closes but control never returns to the window. This is the modal I want to close: Notice the red box around the Done button and the X (close). I want the same code to execute no matter which way the user closes the popup. CSHTML @

JQuery in Rails is failing after linking from another page, works on page load

心不动则不痛 提交于 2019-11-27 07:23:42
问题 I have a quote rotator I use on my homepage. When I load the page from the browser directly (type the address in the browser and hit enter) it works fine.. However, if I click on a link to another page in my site and then link back to home it stops working. More specifically, it the quotes start to overlap almost as if two instances of the method are running. I think it may be a problem with how the javascript is loading. Since I have a tab script on another page in the site and it will load

Prevent href=“#” link from changing the URL hash

只谈情不闲聊 提交于 2019-11-27 01:15:46
I have a site that already takes advantage of the hash in the URL and I don't want it changed. When I use Zurb Foundation and use href="#" for the menu item, clicking on it removes the previous hash value. How can I override this behavior? Update: I think that it's better to stay with element because when I change it, it changes the styling that is bound to that HTML element. I always prefer when using with a design framework to stay with the default conventions and not mass with overriding css attributes. thanks. Please read up on Progressive Enhancement and Unobtrusive JavaScript . You