Skip to content

eduardo-costa/shortcutcss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ShortcutCSS

Minimalist CSS classes for styling speedup.

Install

Replace styling for dummy Elements used for layout purposes and reduce your CSS complexity and size. Use its features when it is certain the Element styling will be always the same.

Local

<!-- complete -->
<link rel="stylesheet" href="css/shortcutcss.css">
<!-- no color rules (smaller) -->
<link rel="stylesheet" href="css/shortcutcss-no-color.css">

<!-- minified -->
<link rel="stylesheet" href="css/shortcutcss.min.css">
<link rel="stylesheet" href="css/shortcutcss-no-color.min.css">

CDN

A CDN link is also available.

<link rel="stylesheet" href="http://cdn.thelaborat.org/shortcutcss/shortcutcss.css">
<link rel="stylesheet" href="http://cdn.thelaborat.org/shortcutcss/shortcutcss-no-color.css">
<link rel="stylesheet" href="http://cdn.thelaborat.org/shortcutcss/shortcutcss.min.css">
<link rel="stylesheet" href="http://cdn.thelaborat.org/shortcutcss/shortcutcss-no-color.min.css">

Custom Version

The CDN also offers a specific version if needed.

<link rel="stylesheet" href="http://cdn.thelaborat.org/shortcutcss/0.3.2/shortcutcss.css">

Usage

Check the minimalistic rules and change your HTML from this:

<style>
	.container
	{
		position: relative;
		text-align: center;
		width: 100%;			
		background-color: rgba(255,229,229,1.0);
	}
	
	.centered
	{
		position: relative;
		display: inline-block;
	}
	
	.title
	{	
		font-size: 20px;
		color: rgba(255,76,76,1.0);
	}			
</style>

<div class="container">
	<div class="centered">
		<span class="title">Centered Text</span>
	</div>
</div>

to this:

<style>	
	.title
	{		
		font-family: sans-serif;		
	}		
</style>

<div class="rel tc bk-red90 fw">
	<div class="ib rel">
		<span class="title fs20 t-red30">Centered Text</span>
	</div>
</div>

About

Minimalist CSS classes for rule-writing speedup.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages