K Web Framework is a CSS framework. It aims to make the websites mostly similar with KDE (The K Desktop Environment) with the Oxygen theme.
Copyright ©2013 Nikita Bogdanov
bower install kwf
bower install kwf
To use KWF you should download it, unpack to your server and add link to the stylesheet in your document. For example, if you unpacked it into the root of the server, you should add
<link rel='stylesheet' href='KWF/KWF.css'>to the
<head>
of your document.
In the KWF directory you can find:
In all, 6 files.
Adds menu like in the top of a program.
Usage: add .kmain
class to an <ul>
element.
Preview:
Code:
<div style='background-color:#C9C9C9;height:25px;'>
<ul class='kmain'>
<li><u>F</u>ile</li>
<li><u>E</u>dit</li>
<li>V<u>i</u>ew</li>
</ul>
</div>
Makes a horizontal menu, like that in the top of the page.
Usage: add class menu
to your <ul>
. For the separator use <hr noshade>
(DO NOT WRAP IT INTO <LI> !). For a title, use <H1> (DO NOT WRAP IT INTO <LI> !).
Preview:
Code:
<ul class='menu' style='width:200px;'>
<h1>Example</h1>
<li><a>First</a></li>
<hr noshade>
<li><a>Second</a></li>
<li><a>Third</a></li>
</ul>
When you use input forms like <input type='text'>
or <textarea></textarea>
they automatically transform into KDE-like input forms.
Preview:
Code:
<input type='text'>
Turns your button to the KDE-style button.
Usage: add the .kbt
class to your button, link or <input type='button'>
Preview:
Code:
<input type='button' value='Simple input' class='kbt'>
<button class='kbt'> Button tag </button>
A container for your content.
Usage: wrap your content into a <div>
with .container
class.
Preview:
Code:
<div class='container'>
This is the example text.
</div>
Adds a gradient as a background.
Usage: Add .kbody
class to your <body>
.