materialize

materializeCSS collapsible active change icon.

房东的猫 提交于 2019-12-05 06:21:42
I am looking for some help with collapsible I am trying to change the icon on the headers when they are active but cant seem to solve the problem of if I click on another header without closing the first one having the proper icon being displayed. Here is a codepen with an example of my issue. http://codepen.io/FPC/pen/xZEWVY here is my code: <div class="container"> <div class="row"> <div class="col s6"> <ul class="collapsible popout" data-collapsible="accordion"> <li> <div class="collapsible-header"> <i class="material-icons right more">expand_more</i> <i class="material-icons right less"

Creating Small Navbar and a side panel in Materialize css

别来无恙 提交于 2019-12-05 06:15:02
问题 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

Materialize css icons doesn't show up in Safari browser

主宰稳场 提交于 2019-12-05 05:58:27
I noticed that materialized CSS icons does not show up in Safari (v5.1.7 (7534.57.2) . Well searched a lot on this topic but there haven't been any documentation on browser compatibility where safari has been listed. Could anyone let me know if this is a bug which needs to be fixed or are there any alternatives to get this work in Safari. Other browsers Safari Browser PS:Other functionalities of materializecss works well except icons I faced the exact same issue. The following approach helped me: I was facing problems with the font-icons provided by materialize css. There seems to be some

How can i create a navbar with center aligned links using Materialize?

倾然丶 夕夏残阳落幕 提交于 2019-12-05 05:39:28
I am trying to build a 1 page vertical scrolling website with a navbar at the top using materialize, now, materialize only has classes to align the links either left or right, a logo can be center aligned but not the links themselves, I've been adding center-align, and center classes to the UL and a wrapper div, and also, tried using the grid without success, here is my code: HTML <div class="navbar-fixed" > <nav id="nav_f" class="transparent z-depth-0" role="navigation" > <div class="container"> <div class="nav-wrapper" > <div class="row s12"> <div> <ul class="hide-on-med-and-down navbar " >

How to use sideNav of materialize css with react?

陌路散爱 提交于 2019-12-05 00:50:40
问题 I'm developing an app with React, I want to use the sidenav component http://materializecss.com/side-nav.html The problem is that I'm getting this error: Sidebar.js:8 Uncaught TypeError: __WEBPACK_IMPORTED_MODULE_2_jquery___default(...)(...).sideNav is not a function at HTMLDocument.<anonymous> (Sidebar.js:8) at mightThrow (jquery.js:3534) at process (jquery.js:3602) I'm so confused with the way of import components, libraries. There are a lot of them and a lot of ways to configure it. What I

Masonry in materializecss

懵懂的女人 提交于 2019-12-04 17:11:00
I would like to know if there is any way to have materializecss cards in a masonry-like display. I would like to avoid plugins like masonry, or having to compile sass, because this will be used on an aurelia application, and the configuration of external libraries and such pains me dearly. The closest thing I have come across is this: http://codepen.io/mike-north/pen/MwVoYp?editors=1100 , which does so through: .cards-container { column-break-inside: avoid; .card { display: inline-block; overflow: visible; } } Alas, I have been unable to get it to work using a sass to css compiler. The problem

Materialize modal not working

北城余情 提交于 2019-12-04 17:00:26
问题 I wrote a simple code for materialize modal. HTML code: <a class="waves-effect waves-light btn view" data-target="modal1">View Scores</a> <!-- Modal Structure --> <div id="modal1" class="modal"> <div class="modal-content"> <h4>Modal Header</h4> <p>A bunch of text</p> </div> <div class="modal-footer"> <a href="#!" class=" modal-action modal-close waves-effect waves-green btn-flat">Agree</a> </div> </div> JS code: $(document).ready(function() { // the "href" attribute of .modal-trigger must

Roboto from materializecss weird font rendering in Chrome, Firefox, OK with IE?

不问归期 提交于 2019-12-04 16:10:48
问题 I'm using Materialize CSS coming with the Roboto 2.0 font. Font looks horrible in Chrome 43 and Firefox 37. Surprisingly with IE it looks very good (full resulution): Same happens with other fonts like Lato and Open Sans and also on my work computer (same videocard and OS, if matters). Is there something wrong in my setup (Windows 7 x64 + NVIDIA GTX 780 1920x1080 display)? 回答1: Nope, nothing wrong. There are a few things at play here that could impact how things are rendered. The state of Web

Materialize CSS, show images for autocompleted chips

冷暖自知 提交于 2019-12-04 15:11:39
Documentation for Materialize chips shows you can make chips with images: <div class="chip"> <img src="images/yuna.jpg" alt="Contact Person"> Jane Doe </div> This works fine - and when we come to the autocomplete option, this also works: $('.chips-autocomplete').material_chip({ autocompleteOptions: { data: { 'Apple': null, 'Microsoft': null, 'Google': 'images/juna.jpg' }, limit: Infinity, minLength: 1 } }); As we have specified "images/juna.jpg" as the value for the "Google" property in the object, this image shows up alongside the autocomplete dropdown when we begin typing "Goo". However,

Materializecss - Always show tooltips with action button

烂漫一生 提交于 2019-12-04 13:20:30
问题 I am using Materializecss for my website and I'd like to display tooltips on the smaller action buttons whenever the user presses the big action button. Materializecss shows tooltips only on hover by default. Is there a way to change this? Thank you <li> <!-- Small button --> <a class="btn-floating green tooltipped" data-position="left" data-delay="50" data-tooltip="Add friends"> <i class="material-icons">add</i> </a> </li> 回答1: Check out this github issue Github user philipraets created a