Remove Style in Materializecss inputs - materialize

How can completely remove the styling of inputs in materializecss? Changing the CSS alone doesn't seem to work as expected.

Use the Materialize class "browser-default".
For example:
<input type="text" class="browser-default"/>
Documentation here: http://materializecss.com/helpers.html#browser-default.

The easiest way to remove the styling of inputs in materializecss is to download the sass file and remove the elements you dont wish to be imported. After that you just have to compile sass to css.
View the source of this if you want to download the compiled css file from which the input styling was removed.
How to install/use sass

Related

Does Vue support svg elements?

I want to generate svg compoenents which uses svg tags. Does Vue supports that?
Note, that svg elements needs to be created in the corretc namespace and vue might not be able to handle that out of the box
Yes, you can use Vue to create dynamic SVGs. There even is an example in the docs. In this podcast, Sarah Drasner talks about the combination of Vue, SVG and https://greensock.com/.
I have used this approach to build https://fn.hofmann-vratny.de/configurator, which simply binds SVG elements/properties to reactive Vue data. This worked really well for me.
You can create a component and add the SVG tags inside like:
<template> SVG Content Here </template>
Note: You might find some issues with certain SVG tags.
There's also some libraries you can use like svg-to-vue-component
Hope this helps.

How to access antd less variables when defining a css module for a component?

I'm using customize-cra as suggested by antd documentation to be able to customize the theme and it works fine.
I can access less variables from antd theme by importing the index in my less files and it works fine.
I can use the old fashioned css modules to style my components by defining files with .module.css and it works fine.
However, I would like to import and use the antd theme less variables in my css modules and I can't figure out how to make it work. Does anybody know how it can be achieved?
I am able to use the variables if I import antd.less at the top of the whatevercomponent.less file:
#import 'antd/dist/antd.less';

How to add extract text plugin for vue component css?

I added extract text plugin for extracting sass and scss for vue component, but now I want to know how I also add extract text plugin for normal css?
I got My answer , as like scss , sass and others , I just have to put css test there simply.

Media queries interaction

I have question about some CSS stuff. I'm currently using Boostrap to develop a web application. I have come in the situation where I have to set some media queries in my custom css which i use for styling and graphic. My question is will there be any conflict with those one in Boostrap CSS.
With Bootstrap, the best practice is to add your custom CSS code (including media queries) after Bootstrap's styles have been declared. In general, you'll first call the standard Bootstrap CSS file. Next you can call a customized CSS file that you generate, which contains any overrides to the base CSS along with any media queries needed.
You can also minify your CSS files, but make sure to have the base CSS styles appear first in the minified version.

Typeahead / Select2 support for Bootstrap 3

I'm building a google-style text box that auto-completes typed text.
Using typeahead with typeahead.js-bootstrap.css:
$(document).ready(function() {
$('#op1').typeahead({
remote: '/search/%QUERY',
});
});
<input type="text" id="op1">
it worked but there are two problems:
I could not customize it. Whenever I make any significant style changes, or use bootstrap's form-control class for input element: the text box gets completely messed up.
The auto-completed ("hint") text was written above the typed text so I whatever color I set for the hint was the color of the entire text! I tried giving the hint a negative z-order but then it was not displayed at all.
I've tried Typeahead AND Select2 auto-completion libraries with my Bootstrap 3 template, and so far the only thing I was able to work out-of-the-box without completely ruining the layout was the above code
If anyone can solve these problems, or otherwise recommend a full CSS + JS typeahead solution for Bootstrap3, I'd be grateful :)
It gives you completely easy way to customise the look with formatresults. You can even write full html view for your results. and to customise the look of input box apply a class to the wrapper for your search box and override select2 rendered css(load the page and check from browser that from where that style is coming).
http://ivaynberg.github.io/select2/
I made a full featured customised search with this.
There is now a fork available for select2 that supports Bootstrap 3.
http://fk.github.io/select2-bootstrap-css/
https://github.com/fk/select2-bootstrap-css#readme