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

https://github.com/nomadicgopher/less_to_css_ui

A web page that interprets LESS to minified CSS. Includes Save-As & Copy-to-Clipboard features. Easily run in VS Code (via Microsoft's Live Preview extension) or with any web browser.
https://github.com/nomadicgopher/less_to_css_ui

css interpreter less single-page-app vscode

Last synced: 12 months ago
JSON representation

A web page that interprets LESS to minified CSS. Includes Save-As & Copy-to-Clipboard features. Easily run in VS Code (via Microsoft's Live Preview extension) or with any web browser.

Awesome Lists containing this project

README

          


less2cssUI

## Instrucions with VS Code
* Clone this repo or download the index.html file
* Install and activate the live preview extension by Microsoft
* Add .less code in styles.less (in the same directory as index.html) & save
* Right click on the index.html file and select live preview

## Instructions without VS Code
* Clone this repo or download the index.html file
* Add .less code in styles.less (in the same directory as index.html) & save
* Start an HTTP server from the current directory. You can simply use `python -m http.server`
* Open `localhost:8080` in a web browser

## Sample LESS content
```less
// Variables
@primary-color: #4CAF50;
@font-size: 16px;

// Mixins
.border-radius(@radius) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
-ms-border-radius: @radius;
border-radius: @radius;
}

// Styles
body {
font-size: @font-size;
color: @primary-color;
}

.button {
.border-radius(5px);
background-color: @primary-color;
color: white;
padding: 10px 20px;
border: none;
cursor: pointer;

&:hover {
background-color: darken(@primary-color, 10%);
}
}
```