Questions tagged [materialize]

An open-sourced, modern, responsive front-end framework based on Material Design

materializecss

Its official website materializecss.com describes it as:

A modern responsive front-end framework based on Material Design.

This is an open-source framework under the MIT license. Its official git repository is hosted on Github.

The framework is maintained by a team of four students from Carnegie Mellon University. For more about them, visit http://materializecss.com/about.html#team.

The site has a beautiful section named Showcase where various websites/apps, which use this as a frontend framework, are listed which caters for other developers with a real-world example and inspiration.

Getting started guide

Getting Started is basically a learning guide - how to easily start using Materialize in one's website.

Inbuilt JavaScript plugins

  1. Collapsible
  2. Dialogs
  3. Dropdown
  4. Media
  5. Modals
  6. Parallax
  7. Pushpin
  8. ScrollFire
  9. ScrollSPy
  10. SideNav
  11. Tabs
  12. Transitions
  13. Waves

How can I compile my Sass

This section is only relevant if you work with the Sass version of Materialize.

First, you need to install Sass in your working directory:

gem install sass

When you have Sass installed on your project and you want to update your output .css file, you need to use the following command:

sass sass/materialize.scss public/style.css

NOTE: the second parameter sass/materialize.scss is the path to your .scss file, and the last parameter sass/style.css is the path to your output folder when the file .css file is located.

If you want to avoid this command every time when you do a change, you can run a watch command:

sass --watch sass/sass:public/stylesheets

NOTE: this command watches all Sass files in the SCSS directory for changes and then update the style file into our public directory.

Social Links

What is Material Design

Created and designed by Google, Material Design is a design language that combines the classic principles of successful design along with innovation and technology. Google's goal is to develop a system of design that allows for a unified user experience across all their products on any platform.

Principles of Material Design

  1. Material is the metaphor - The metaphor of material defines the relationship between space and motion. The idea is that the technology is inspired by paper and ink and is utilized to facilitate creativity and innovation. Surfaces and edges provide familiar visual cues that allow users to quickly understand the technology beyond the physical world.

  2. Bold, graphic, intentional - Elements and components such as grids, typography, color, and imagery are not only visually pleasing, but also create a sense of hierarchy, meaning, and focus. Emphasis on different actions and components create a visual guide for users.

  3. Motion provides meaning - Motion allows the user to draw a parallel between what they see on the screen and in real life. By providing both feedback and familiarity, this allows the user to fully immerse him or herself into unfamiliar technology. Motion contains consistency and continuity in addition to giving users additional subconscious information about objects and transformations.


Related tags

3559 questions
1
vote
2 answers

Open more than one Modal on same page in Materialize

I have a page where I plan on having multiple modals that can be opened. The first one works fine, I link to it in several places on the page. When I added the second one though upon clicking it all I get it a darkened screen. The modal doesn't show…
Steve Medley
  • 213
  • 1
  • 3
  • 16
1
vote
1 answer

Materialize Slider Not Working shows grey screen even if it's initialized

As the title says, I access the materialize css and js locally, downloaded from there site and it occurs like this if i cleared my cache and cookies then im getting this error from the materialize.min.js as shown in the picture here (click) here is…
1
vote
1 answer

Aurelia initializing materialize components

I'm trying to use materialize-css with the Aurelia framework, and so far I have been able to install both jQuery and materialize-css (apparently) successfully. Their imports appear on the typings.json, package.json and config.js. However, when I…
fpluis
  • 189
  • 1
  • 13
1
vote
2 answers

jQuery sending query strings on every script embebbeding

i'm using MaterializeCSS, AngularJS and jQuery to build a simple webapp. Since i'm using Materialize, and due to the why i designed it, i need to initialize the sidebar button in every AngularJS view with jQuery. If i copy this on every view, it…
Allan Araújo
  • 173
  • 2
  • 13
1
vote
0 answers

Where to place modals in a simple React application?

I am building a simple React application that implements CRUD operations on the client-side and communicates with a backend via Ajax. I have a container component that has a list component that has many items. So I have a component with a form to…
nbkhope
  • 7,360
  • 4
  • 40
  • 58
1
vote
1 answer

How to make columns automatically flow to a row with Materialize?

I have the following columns inside this row; however, I don't think they are floating correctly. Does a row need wrap every time there is 12 columns? Is there a way to automatically flow in Materialize framework? Thank you in advance!
Ken Ryan
  • 539
  • 1
  • 10
  • 31
1
vote
1 answer

Using materialize in aurelia

I have been trying to get the materialize-css framework to work with Aurelia. I am using Typescript with the framework, and running the server on Windows 8 through the cmd with 'gulp watch'. So far I have attempted to use the aurelia-materialize…
fpluis
  • 189
  • 1
  • 13
1
vote
1 answer
1
vote
2 answers

Materialize css cards with same width but different heights

I'm trying to build a screen that show several cards with different heights, but once they have different heights, they send it to the down of the highest one like this: result but i want to fit at the next one it should right below it, like this:…
Rodrigo Butzke
  • 448
  • 4
  • 15
1
vote
2 answers

Secondary menu with MaterializeCSS

I am trying to create a secondary "mega Menu" that appears on hover below the primary menu. I just created a secondary menu for this directly below. I have set its display to none and I am trying to make it appear when hovering over menu links (in…
1
vote
2 answers

Card resize Materialize

I'm trying to use 3 card to display the latest news on the site. On wide screen it looks fine like this however when I resize the page to the content overflow from the card this the the code snipplet
Billy Batson
  • 104
  • 2
  • 11
1
vote
1 answer

Converting Checkbox Status Check from Materialize to Bootstrap 4

We just moved over from using Materialize to using Bootstrap 4, and, being a total novice with Bootstrap, I've run into some complications with getting my function that checks the status of some checkboxes on one of our pages to work. Here's my old…
user2498668
  • 125
  • 1
  • 12
1
vote
2 answers

Cannot add Dropdown in asp.net web forms with materialize.css

First of all I am a newbie to asp so may be the question is too silly but still I am not being able to add the dropdown list to my web pages after using materialize.css .Without it dropdown is working fine but on linking the files of materialize it…
Sourajit
  • 193
  • 1
  • 14
1
vote
1 answer

inner modal is not working properly in materialize css

i have created a modal which trigger another inner modal. but the element(input text) in inner modal is not working initially. after dismissing the modal few times it starts working. and when i set dismissible: false; then it starts freezing,…
Ranjank
  • 133
  • 1
  • 14
1
vote
1 answer

materialize: make table row accordion header

I am trying to use materialize to create a table that allows for each table row to be clickable. Clicking on a row should expand an accordion under the row that holds more data for the row. I can not seem to get the accordion to open or set the…
TDmoneybanks
  • 478
  • 1
  • 7
  • 20