LESS Boilerplate file to start a project [closed] - html

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm wondering if anyone can recommend a good boilerplate file in .less to start a project with. Ideally this .less file would contain at minimum the following:
CSS Resets styles
CSS Normalizer styles
CSS3 Helpers (box radius, gradients, box shadow, transition)
Basic Colors Setup
Basic Styling for some common UI elements (buttons, tables, inputs,
typography etc.)
Responsive images
I don't have much control over the markup, so I'm looking to write alot of custom attributes for classes that are already defined. Bootstrap and other popular libraries that require class definitions will not work for me. I'm hoping a markup agnostic boilerplate .less file will give me a good start.

Look at using less extend, bootstrap is still a great boilerplate. You can still take only the less files you want from it. You'd want normalize.less and mixins.less from the bootstrap project.
You can use extend to get whatever else you want out of bootstrap.
p {
&:extend(.clearfix all);
}
img {
&:extend(.img-responsive);
}
or even
p {
.clearfix;
}
If your worried about namespacing collisions you can try your hand at some global search and replaces. If you need that, I can try to help you with it. I wrote something a while back.
Of course you need the bootstrap project source for this - go here and click Download Zip - https://github.com/twbs/bootstrap

Related

Tool to automate CSS image inlining [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I have a CSS file and an icon set which is referenced from that CSS file. The 500 icons are around 200k altogether, so I think inlining them into the CSS file at wherever they are referenced would not increase used bandwidth, and significantly decrease the amount of requests sent to the server.
Does anyone here know a tool or script to automate the replacement of
url('images/....png')
with
url(data:image/png;base64,....)
Perhaps there is already a tool that automates this?
Otherwise I'll have to write my own regexp. Is a bash script the way to go?
if you really want to decrease the amount of requests then look for a way to convert all the icons into a sprite! it is basically all your images pasted on to one single image file with a css file which has position of all the images have a look at glyphicons:
http://getbootstrap.com/components/
usage of sprite will not reduce the size but will surely reduce the number of requests being sent to server as the client will download one single big image, which will have all the icons and according to css properties will show the relevant icons
use this for generating sprites
http://css.spritegen.com/
and i would never recommend to use inline styling. If needed should be used minimally. Because it does slow down the rendering

Solving CSS compatibility [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
I decided to use nvd3 library and downloaded the both required js libraries files and the CSS needed.
I placed the <svg/> somewhere at my html document. But all I'm getting is an ugly representation of chart:
I'm using some CSS templates I found around. And these are the ones messing the correct rendering.
I generated a new simpler html document with any css but the one form library. And all goes on ok:
I tried placing the svg tag inside another div but got not results.
How could I fix this?
Clearly the CSS template(s) you are using are not appropriate for the type of chart you are trying to render. It is setting the fill property on what is a line-only chart.
I am not familiar with nvd3 so this is only a generic answer I am afraid. You probably need to select a fifferent template that is applicable to line graphs. The one you are using was probably intended for other types of graphs such as bar or pie charts.

Is there a tool to find html elements affected by certain css file [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I've been working with a jquery file uplouad plugin which has it's own CSS files, but when the plugin implemented in a web page that also has its own CSS file applied, the elements will have styles applied from multiple files, so what I need is a tool that enable me to select a CSS file and an HTML file than the tool should show all the elements affected by this file, I used Firebug but it only provide the opposite of what I need like selecting element and see all the CSS files affect the element, I think there must be a faster way to do it.
Fire bug https://addons.mozilla.org/en-us/firefox/addon/firebug/
or google developer tool
https://developers.google.com/chrome-developer-tools/
works pretty well.
I think use notepad++ and do some pity, tool will help you but also you will become slave. Apply some of your mind, its easy for Press CTRL + F and search the hierarchy..
Also the browser with Developer Tool will help, but not sure ,who will teach you there :)

Pure SVG Javascript library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a library that speeds up writing of HTML5 SVG, and manipulating the objects. I want something that can leverage the power of all SVG features.
I was using Raphael but annoyingly it (severely) limits functionality to that of VML. I don't care about cross-browser compatibility, I just want a full javascript abstraction of SVG. I don't care about conversion to flash, I don't care about conversion to 2d Canvas, ... you get the picture!
What options are there? Or should I just get used to raw SVG declarations and manipulation?
Thanks
There's a new compact library called svg.js that offers easier svg manipulation, and which doesn't have any VML legacy code/restrictions like Raphaƫl has.
If your graphics generate, in some way or another, from data, I would give D3.js a try.
Even if the data weight of your needs is low, I think that it can be very useful to give it a look.
On the plus side is that it generates absolutely standard svg, style with standard css, so you can check what is happening easily. You could even use it to generate svg, and then copy/paste your svg to another project without the D3.js.
Another plus is the support for transitions, that is very good imho.
link

reporting website templates [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am starting my work to develop an intranet reporting website in php and html. I wanted to know if there are any templates for page layout, so that i can quickly select the look of the page and then start all my coding for the reporting system. i would really appreciate if anyone could help me with few links.
ofcourse, i am looking for free templates only, because i am using it only for page layout. not willing to pay for this. Else if there is already a free reporting website which can be changed according to my needs then I would appreciate that. Thanks :)
I've used this with success: http://developer.yahoo.com/yui/layout/
It's not a full-blown layout like you might expect, but it overcomes a common design pattern flaw that causes HTML and CSS to overrun the screen when some sort of vertical menu is put on the left side. Resizing is a great plus, and the CSS reset makes IE flaws virtually a thing of the past.
Here's a semi-ugly example of what it can do: http://developer.yahoo.com/yui/examples/layout/adv_layout_source.html
Related to this, I can't say enough about Jquery Datatables (http://datatables.net/) for the functionality it brings to plain tabular data such as sorting, filtering, paging, show/hide detail, etc. My company's report site immediately moved to a new level thanks to datatables and themeroller.