zurb-foundation

Failed to Execute querySelectorAll on Document. How to fix?

梦想的初衷 提交于 2019-12-06 06:45:22
问题 What I'm doing: I have links generated from a PHP array which produce it's own unique ID which should point to it's own modal (popup window) div which has a matching ID to the link ID. The modals are also auto generated using a PHP array. I am receiving this error, which I am very unfamiliar with (noob). Not sure how to fix. The modal isn't working and I am using Foundation 5's reveal plugin. PHP LINK ARRAY: //more code above if ($track->lyrics != null) { // If lyrics field isn't empty $html

Zurb Foundation conflicts with jQuery UI autocomplete?

白昼怎懂夜的黑 提交于 2019-12-06 02:30:22
问题 I can't get jQuery-UI Autocomplete to work after loading Zurb Foundation 3.1. Anyone got them to work together or found another autocomplete plugin that works with Foundation?? Uncaught TypeError: Object [object Object] has no method 'autocomplete' (anonymous function) order.js:7 l foundation.min.js:18 c.fireWith foundation.min.js:18 v.extend.ready foundation.min.js:18 A foundation.min.js:18 回答1: It works great in that page, but if you use other components like Orbit or Reveal, and you have a

ngOnDestroy and $('#element').foundation('destroy');

北城余情 提交于 2019-12-06 02:16:42
I'm trying to implement a Sticky Magellan in my Angular2 application. Once I leave the view I want to remove the plugin, because otherwise I get problems when I'm revisiting the view. So I'm using: ngOnDestroy(): void { $('#element').foundation('destroy'); } Which results in: Error: Uncaught (in promise): ReferenceError: We're sorry, 'destroy' is not an available method for this element. ReferenceError: We're sorry, 'destroy' is not an available method for this element. at jQuery.fn.init.foundation (eval at webpackJsonp.67.module.exports ( http://localhost:4200/scripts.bundle.js:156:8 ), :294

Keep unknown number of divs centered, max 4 per row

佐手、 提交于 2019-12-06 02:12:56
I have a simple problem, yet I can't figure it out by myself. In short: there are an unknown number of elements which I have to position in the page, max. 4 elements per row, yet still centered. This image gives you a hint (I've set it up for the sake of example): Detailed: On the image above I covered the different scenarios. So for example if there would be 5 elements total, the first and the last row should be used (4 + 1 circles). If there would be 10 items, then two times the first row and once the third (4 + 4 + 2 circles)... You get the idea. The elements (images and names are different

Centering lists in Zurb Foundation

核能气质少年 提交于 2019-12-06 00:16:03
问题 I am having trouble centering inline lists when using Zurb's Foundation 4. The prebuilt css classes of 'text-center' and 'centered' work fine for other elements but not with lists. A review of an older question concerning images has similar results. This doesnt work: <div class="row"> <div class="large-12 columns text-center"> <ul class="inline-list"> <li><a href="#">One</a></li> <li><a href="#">Two</a></li> <li><a href="#">Three</a></li> <li><a href="#">Four</a></li> <li><a href="#">Five</a>

Gulp error: Path must be a string

蓝咒 提交于 2019-12-05 21:36:58
I've got a problem with gulp.js. Steps to reproduce: $ composer global require "laravel/installer=~1.1" $ laravel new myproject $ cd myproject $ php artisan serve $ npm install $ npm rm bootstrap-sass —save $ npm install foundation-sites —save $ npm install motion-ui —save then I copy _settings.scss from node_modules/foundation-sites/scss/settings to resources/assets/sass in app.scss then i put every Foundation import and finally I write Elixir task as reported here: http://zecipriano.com/en/2015/12/laravel-elixir-and-zurb-foundation-revisited/ But when I launch gulp from terminal: path.js:7

Foundation 5, Simple Form and Rails - how to get 'hints' CSS class working

坚强是说给别人听的谎言 提交于 2019-12-05 20:45:32
I have been searching for days and experimenting, but I am unable to get the Simple Form gem hints CSS class to show. This is simply a class to show a hint for a form input when you hover over it. I am using Rails 4.1 with the latest simple_form gem and foundation 5. I have uncommented the line b.use :hint, wrap_with: { tag: :span, class: :hint } The CSS shows the hint that I have included in the form wrapped in a Span class="hint", but the CSS I have provided for the class is not applied. The CSS for this (actually it's SCSS) is: .simple_form { .error { clear: left; color: black; display:

react split panel resize

試著忘記壹切 提交于 2019-12-05 20:27:23
I am trying to create dynamically resized panels with react and foundation. I have tried react-split-pane and other similar libraries, but they are messing with the responsiveness of the page. I also tried the resize css3 property but it is not flexible as it only allows the containers to be resized only to the right and bottom and I was unable to style the resize handle to be a horizontal or vertical bar. Any suggestion would help. This will be possible with react-resizeable once pull request 76 gets handled. For now, you can grab the code from the fork . 来源: https://stackoverflow.com

Ruby unable to find Foundation/foundation-global?

三世轮回 提交于 2019-12-05 19:24:11
Yesterday I decided to give Foundation a try on one of my web apps. Everything worked fine as I was in localhost, but when I pushed the new changes to my EC2 instance, continuing to follow the Zurb Foundation instructions, I ran into this error: Sass::SyntaxError in Home#index Showing /var/www/brain_db/app/views/layouts/application.html.erb where line #18 raised: File to import not found or unreadable: foundation/foundation-global. Load path: Sass::Rails::Importer(/var/www/brain_db/app/assets/stylesheets/foundation_and_overrides.scss) (in /var/www/brain_db/app/assets/stylesheets/foundation_and

Zurb Foundation 5 - Row padding/margin

北城以北 提交于 2019-12-05 18:29:15
I am trying to create a background color for my row, yet when I set a background color it extends over the regular width of my columns. Then I tried making the row smaller with padding, which works, but makes the columns smaller. I need to somehow remove the pink area, keep only the red background, AND keep the columns even. Any ideas? <!-- When applying the padding, the columns background turns OK. However, the columns themselves aren't as even as "normal" columns without padding --> <div class="row" style="background-color: pink; padding-right: 15px; padding-left: 15px; "> <div class="large