materialize

Materialize CSS side-nav not working

喜你入骨 提交于 2019-12-04 10:29:53
问题 I have a basic setup of Materialize running and everything seems to be fine, except for the slide out side-nav. Here's my code. Menu: <ul class="right hide-on-med-and-down"> <li><a class="dropdown-button" data-constrainwidth="false" data-beloworigin="true" data-activates="about-drop" href="#!">About<i class="material-icons left">arrow_drop_down</i></a></li> <li><a class="modal-trigger" href="#signup">Signup</a></li> <li><a class="modal-trigger" href="#sign-in">Sign In</a></li> </ul> <ul id=

Materialize Css Tooltip

≡放荡痞女 提交于 2019-12-04 08:18:20
I was wondering is it possible to give each tooltip a different background color in materialize.css framework? When the tooltip is activated I don't see any additional markup generated in the inspector, therefore can not target with CSS. Tooltip color can be changed using css . You have to override default css as follow. Assign your color code to background-color in backdrop class. <style> .backdrop{ background-color: purple; } </style> Following is sample working code snippet for 4 buttons which show tooltip . <!DOCTYPE html> <html> <head> <title>Tooltip</title> <!-- Compiled and minified CSS

Materialize scroll tbody

心不动则不痛 提交于 2019-12-04 06:18:34
I am facing problem while setting tbody height width overflow-y: scroll . I tried this CSS .table-status-sheet tbody{ min-height: 300px; overflow-y: auto; } This is my table code <div class="responsive-table table-status-sheet"> <table class="bordered"> <thead> <tr> <th class="center">No.</th> <th class="center">Category</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>Category1</td> </tr> <tr> <td>2</td> <td>Category2</td> </tr> <tr> <td>3</td> <td>Category3</td> </tr> <tr> <td>4</td> <td>Category4</td> </tr> </tbody> </table> </div> This code is working in bootstrap but not worked in

How do I override Materialize CSS in Ruby on Rails?

删除回忆录丶 提交于 2019-12-04 06:10:14
问题 I've been looking through some posts on the internet about Materialize in Rails, however this area seems to be very fuzzy. I am currently using the materialize-sass gem. I didn't find very many helpful posts, I decided to resort here. Here's my code for a page I have pages/discover.html.erb <%= stylesheet_link_tag "https://fonts.googleapis.com/icon?family=Material+Icons" %> <div class="row"> <div class="col s12 m5"> <div class="card"> <div class="card-image b"> <img src="http://i.huffpost.com

why is the value of height() in chrome different with safari?

纵饮孤独 提交于 2019-12-04 05:35:58
问题 My script like this : $.ajax({ url: _url, type: 'GET', dataType: "json", contentType: "application/json; charset=utf-8", success: function (result) { ... } }).done(function () { for(var i=0;i<7;i++) { this["td"+i] = $('#bodychel-' + coachId + clubId + ' table tbody td:eq(' + (i) + ')').height(); $('#bodychel-' + coachId + clubId + ' table thead th:eq(' + (i) + ')').css({ height: this["td"+i] }); } }); If I console.log(this["td"+i]); , the result is different between chrome and safari. the

How to force npm to use the jquery 2.1.1

只谈情不闲聊 提交于 2019-12-04 04:58:35
I am asking this question as a beginner on node-npm. My current node_modules has a query version 2.2.0. But in the same project i am using materialize-css which has a datepicker component. This component runs on jquery 2.1.1. My question is simple. How can i remove the current jquery [v 2.2.0] from my node_modules and install jquery version [2.1.1] so that the datepicker component works. Add the specific version to your package.json file "dependencies": { "jquery": "2.1.1" } You can use the npm CLI to install the dependency directly without changing the dependencies yourself in package.json by

Disable Close Modal on Outside Click

元气小坏坏 提交于 2019-12-04 04:20:01
I am making some blog that use modal(s) with Materializecss , but i have problem with my modal onclick outside and on the false data, here is my code: main.js function changepassword(){ var user = $('#userlog').val(); var content = ""; content += '<div id="modganpas" class="modal modal-fixed-footer">'; content += '<div class="modal-content">'; content += '<form>'; content += '<style="text-align:center;font-size:12px;font-weight:bold;"><h3>change Password</h3>'; content += '<div><i class="material-icons">supervisor_account</i>'; content += '</div>'; content += '<div class="row">'; content += '

meteor error on adding materialize package

ぃ、小莉子 提交于 2019-12-04 03:26:34
I just created an empty meteor app and it looks like including materialize package into meteor application by running meteor add materialize:materialize produces the following error in browser console when I start the meteor application: Uncaught TypeError: Cannot set property 'guid' of undefined(anonymous function) @ materialize.js:2(anonymous function) @ materialize_materialize.js?dc17392a9a3ee90d7260ca5fb3f114186ddbe932:42(anonymous function) @ materialize_materialize.js?dc17392a9a3ee90d7260ca5fb3f114186ddbe932:51 global-imports.js?f3a8210e13a775671b88b311040d18b5595730c1:3 Uncaught

Chrome Update 73 - Materialize CSS JS trigger error

筅森魡賤 提交于 2019-12-04 01:51:59
After the latest Chrome Update 73, the date pickers, time pickers and dropdowns for Materialize CSS 0.100.2 isn't working anymore, it flickers when you click on it and then disappears. Any idea how to fix this? I had the same issue. For now I made some changes to make it work (this is just a temp hot fix for me). On materialize.js (materialize-v0.100.2 not the min one): 1) On line 1786 there is a setTimeout (with comment "Add click close handler to document") that has a wait value of 0, change it to 100. 2) On line 6558 there is a binding to the click outside the datepicker element. (with

Creating Small Navbar and a side panel in Materialize css

你说的曾经没有我的故事 提交于 2019-12-03 22:46:09
I am using materialize css for my new project. I have a simple mock up of the page I have in mind. This is what I would like to have. The navbar above and a side panel shouldn't hide. I have tried changing the css of materialize to get a side navbar, but to no avail. I changed the @media only screen and (max-width: 992px) { .side-nav.fixed { -webkit-transform: translateX(-105%); transform: translateX(-105%); } to @media only screen and (max-width: 2000px) { .side-nav.fixed { -webkit-transform: translateX(-105%); transform: translateX(-105%); } I also tried to change the .js file, but it also