materialize

How to override materializecss sass variables in vue?

a 夏天 提交于 2019-12-06 03:59:19
I'd like to change variables in materialize _variables.scss e.g. $primary-color: color("materialize-red", "lighten-2") !default; $primary-color-light: lighten($primary-color, 15%) !default; $primary-color-dark: darken($primary-color, 15%) !default; /*...*/ In my Vue 2 main.js I include materialize style like this require('materialize-css/sass/materialize.scss'); Because of !default I guess I need to include my _variables.scss before including materialize, but I don't know how. So what's the proper way to set my own variables e.g. $primary-color: color("blue", "lighten-2") (I want to use

How to override materializecss sass variables in vue?

眉间皱痕 提交于 2019-12-06 03:57:27
I'd like to change variables in materialize _variables.scss e.g. $primary-color: color("materialize-red", "lighten-2") !default; $primary-color-light: lighten($primary-color, 15%) !default; $primary-color-dark: darken($primary-color, 15%) !default; /*...*/ In my Vue 2 main.js I include materialize style like this require('materialize-css/sass/materialize.scss'); Because of !default I guess I need to include my _variables.scss before including materialize, but I don't know how. So what's the proper way to set my own variables e.g. $primary-color: color("blue", "lighten-2") (I want to use

Materialize Css Tooltip

我的梦境 提交于 2019-12-06 03:53:54
问题 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. 回答1: 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

Materialize scroll tbody

青春壹個敷衍的年華 提交于 2019-12-06 01:45:01
问题 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

Disable Close Modal on Outside Click

假装没事ソ 提交于 2019-12-06 01:28:38
问题 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=

meteor error on adding materialize package

ε祈祈猫儿з 提交于 2019-12-05 23:15:16
问题 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

How to force npm to use the jquery 2.1.1

不想你离开。 提交于 2019-12-05 22:47:20
问题 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. 回答1: Add the specific version to your package.json file "dependencies": { "jquery": "2.1.1" } 回答2: You can

MaterializeCss modal Error openModal is not a function

老子叫甜甜 提交于 2019-12-05 22:24:42
I have all requirements Jquery, Materialize.js sitting above my Js file however I get the warning openModal is not a function..I checked the modal name is right and I can run Materialize.toast so I know Materialize.js is working. Triggering with the button does not call the modal either. Here is the code.. Scripts: <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script type="text/javascript" src="/js/materialize.js"></script> <script type="text/javascript" src="/js/video.js"></script> <script src="/js/admin.js"></script> Trigger: <button data-target=

Materialize - Collapsible with a huge content does not scroll to top of the tab

久未见 提交于 2019-12-05 08:45:50
I use the collapsible component provide by materialize framework . I get one bug and have no idea how to solve it or find a workaround. If the content of one tab is too huge, when I open the tab it does not scroll to the top of the tab itself (it goes to the middle). You can try it here : https://jsfiddle.net/r8314ouq/ . Open the first tab then open the third tab you'll see that it doesn't scroll to the beggining of the tab. I see But I would like to see It's very annoying because the user has to scroll to see all the content. I followed the documentation to create my collapsible : <ul class=

Override Materialize CSS properties

爷,独闯天下 提交于 2019-12-05 08:31:39
I have included first Materialize's CSS and then I have linked my css file. In which I have an example class that sets background-color property to red , but that doesn't override the default color (that's set by materialize-css). Here's an example: https://jsfiddle.net/79ss2eyr/1/ I'd like not to change anything in materialize's source files, instead I want to add additional classes and set my additional colors. Here's what the inspector says: How should I do that and why my css properties do not override materialize's since it's linked after the framework? krishna Inn Materialize's the rule