materialize

How to put text inside radio button?

时光总嘲笑我的痴心妄想 提交于 2019-11-29 13:19:52
I am trying to put a letter inside a radio button (with Materialize framework) like the A and B in this image . How do I do this? You cannot do that. But instead, you can make something similar using CSS: label {display: block; padding: 5px; position: relative; padding-left: 20px;} label input {display: none;} label span {border: 1px solid #ccc; width: 15px; height: 15px; position: absolute; overflow: hidden; line-height: 1; text-align: center; border-radius: 100%; font-size: 10pt; left: 0; top: 50%; margin-top: -7.5px;} input:checked + span {background: #ccf; border-color: #ccf;} <h3>Select

Using materialize in aurelia

馋奶兔 提交于 2019-11-29 12:55:21
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 bridge, following the instructions provided. However, after I have followed the steps, I get the following console output using chrome: console error The cmd is clean of errors. These are the contents of the main.ts and index files which are the skeleton-typescript with the materialize bridge on top, without further modification: The image on the left

Materialize: dropdown in “if” statement doesn't work

▼魔方 西西 提交于 2019-11-29 08:01:52
I tried to implement a dropdown list that is only visible when the user is signed in. The dropdown list works when outside the "if" statement but not inside. The buttons "Foo" and dropdown button are shown, however it doesn't "dropdown". header.html <!-- Header --> <template name="header"> <nav> <div class="nav-wrapper"> <a class="brand-logo" href="{{pathFor 'home'}}">Logo</a> <ul id="nav-mobile" class="right hide-on-med-and-down"> {{#if currentUser}} <!-- dropdown1 trigger --> <li> <a class="dropdown-button" href="#!" data-activates="dropdown1"> <i class="mdi-navigation-more-vert"></i> </a> <

How to use materialize-css with React?

回眸只為那壹抹淺笑 提交于 2019-11-28 17:14:07
I have a Meteor/React project, using ES6 modules. I've installed materialize-css using npm, but I'm not sure how to actually use the Materialize classes in my JSX code. What am I supposed to import from materialize-css? Or do I just have to include the CSS in my main index.html file? I mostly want it for the grid system, as I'll be using material-ui for the actual UI components. Since I use CSS Modules, importing materialize css would scope it to that particular component. So I did the following Step 1) install materialise npm install materialize-css@next Step 2) in index.html <!--Import

How to get materializecss checkbox to work with @Html.CheckBoxFor?

你。 提交于 2019-11-28 12:38:35
So I'm having an issue trying to implement materializecss' checkbox with @Html.CheckBoxFor. If I input exactly: <input type="checkbox" id="test5" /> <label for="test5">Red</label> it works. But if I try this: @Html.LabelFor(m => m.RememberMe, new { @class = "login-label" }) @Html.CheckBoxFor(m => m.RememberMe, new { @type = "checkbox" }) the checkbox disappears way off the page to the left (the style of the checkbox gets its left set to -99999). Is there any other way I can implement CheckBoxFor that would make materialize cooperate? Rafael Contreras I Was having same problem and the order of

How can I custom table responsive materialize?

倖福魔咒の 提交于 2019-11-28 12:06:23
问题 My script like this : <table class="responsive-table"> <thead> <tr> <th>Mon</th> <th>Tue</th> <th>Wed</th> <th>Thr</th> <th>Fri</th> <th>Sat</th> <th>Sun</th> </tr> </thead> <tbody> <tr> <td> <ul> <li>09:00-09:30</li> <li>10:00-10:30</li> </ul> </td> <td> <ul> <li>14:00-14:30</li> </ul> </td> <td> <ul> <li>12:30-13:00</li> <li>14:00-14:30</li> </ul> </td> <td> <ul> <li>15:00-16:00</li> </ul> </td> <td> <ul> <li>16:00-16:30</li> </ul> </td> <td> <ul> <li>09:00-09:30</li> </ul> </td> <td> <ul>

Using materialize in aurelia

家住魔仙堡 提交于 2019-11-28 06:43:33
问题 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 bridge, following the instructions provided. However, after I have followed the steps, I get the following console output using chrome: console error The cmd is clean of errors. These are the contents of the main.ts and index files which are the

How to host material icons offline?

跟風遠走 提交于 2019-11-28 03:22:18
My apologies if this is a very simple question, but how do you use google material icons without a <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> ? I would like my app to be able to display the icons even when the user does not have an internet connection Method 2. Self hosting Developer Guide Download the latest release from github (assets: zip file), unzip, and copy the iconfont folder, containing the material design icons files, into your local project -- https://github.com/google/material-design-icons/releases You only need to use the iconfont folder

Materialize: dropdown in “if” statement doesn't work

一曲冷凌霜 提交于 2019-11-28 01:29:28
问题 I tried to implement a dropdown list that is only visible when the user is signed in. The dropdown list works when outside the "if" statement but not inside. The buttons "Foo" and dropdown button are shown, however it doesn't "dropdown". header.html <!-- Header --> <template name="header"> <nav> <div class="nav-wrapper"> <a class="brand-logo" href="{{pathFor 'home'}}">Logo</a> <ul id="nav-mobile" class="right hide-on-med-and-down"> {{#if currentUser}} <!-- dropdown1 trigger --> <li> <a class=

How to use materialize-css with React?

自闭症网瘾萝莉.ら 提交于 2019-11-27 10:20:28
问题 I have a Meteor/React project, using ES6 modules. I've installed materialize-css using npm, but I'm not sure how to actually use the Materialize classes in my JSX code. What am I supposed to import from materialize-css? Or do I just have to include the CSS in my main index.html file? I mostly want it for the grid system, as I'll be using material-ui for the actual UI components. 回答1: Since I use CSS Modules, importing materialize css would scope it to that particular component. So I did the