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
19
votes
8 answers

Make materialize labels move out of input box when input box is filled via javascript

Normally, with Materialize, the labels for text input boxes show up inside the input boxes until a user enter selects the box and enters text in it. However, when a box's value is filled via javascript, the label does not move out of the way. It…
neurodynamic
  • 4,294
  • 3
  • 28
  • 39
18
votes
6 answers

Horizontal and vertical alignment in materialize framework

How can I center the login box both horizontal and vertical? Here is my structure:
Ordidaad
  • 438
  • 2
  • 5
  • 11
17
votes
8 answers

Checkbox not working with materializecss - HTML, CSS

I can't seem to get checkbox to work whilst using the materializecss, as anyone else came cross this issue and managed to fix it? The library I am using:
Jackie
  • 427
  • 1
  • 9
  • 19
17
votes
4 answers

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

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…
gremo
  • 47,186
  • 75
  • 257
  • 421
16
votes
3 answers

How does one center-align a button using Materialize CSS?

I can't seem to find any documentation on the Materialize website regarding positioning of elements. Can anyone help me center this button? Thanks in advance.
Lord Goderick
  • 965
  • 2
  • 14
  • 32
16
votes
6 answers

Materialize modal not working

I wrote a simple code for materialize modal. HTML code: View Scores
16
votes
2 answers

How can I use a Material Design Icon as a CSS background-image value?

I am using materializecss so I already have the material design icons available. How can I use them as background-image value in my CSS code (SASS actually)?
Billybobbonnet
  • 3,156
  • 4
  • 23
  • 49
16
votes
5 answers

Materializecss icons not working?

I am using materializecss. But I can't get the icons to work it says the word but doesn't show the icon? I included the materializecss and the js but still not working... Anyone know how to fix this?
Aapje
  • 195
  • 1
  • 1
  • 7
16
votes
1 answer

How to get the value form Materialize's Switches?

I'm using the Materialize library and I'm trying to retrieve the value from the switches component, but it always returns on regardless of it being turned on or off. Is there a way to determine if it's switched on or off, programatically?
Tomas Romero
  • 8,418
  • 11
  • 50
  • 72
15
votes
5 answers

cannot read property swing of undefined

I am using the CDN version of materializecss