An open API service indexing awesome lists of open source software.

https://github.com/themanyone/kickass

A modular js library with optional windows-like desktop functionality.
https://github.com/themanyone/kickass

Last synced: 1 day ago
JSON representation

A modular js library with optional windows-like desktop functionality.

Awesome Lists containing this project

README

          

# [Kickass](https://github.com/themanyone/kickass)

A modular js library that loads only what is required, and when it is used.

One line does it all.

## Three Classes

* `widget` - turn a div into a fancy widget
* `drag` - make widget draggable
* `icons` - add titlebar icons

## Widgets

We define a widget as a web form, video, or other page element. Kickass can dress it up to look like a mini window by adding a border, rounded corners, and a drop shadow. To crate a widget with icons, add the `widget` and `icons` classes. To make it draggable, add the `drag` class.


This is a Widget


![widgets](https://thenerdshow.com/kickass/widget.png "Make Widgets")

Optionally create your own CSS stylesheets with the same id to override the default widget (or other) styles.


.widget {
position: relative;
display: inline-block;
background-color: #eee;
text-align: center;
border: 1px solid #888;
border-radius:5px;
padding:10px;
}
.widget:hover {
box-shadow: 5px 10px 8px #222;
}

## Conveniences

Kickass makes several conveniences available for web designers. Repeat contents of tags, include HTML from other pages, and display parts of the page as syntax-highlighted code. Uses [CSS Selectors](https://www.w3schools.com/cssref/css_selectors.asp).

* `data-echo` - echo code from another element
* `data-href` - fetch data from another page (Not CORS enabled)
* `data-code` - "view source" on an element

`Examples.`




This is just a start. Feel free to expand on this design pattern to do almost anything.