The resources folder contains images and styles that are used in Teamscale. 
As some of the used projects require both images and CSS, we document these projects (and their license) here.

Note on CSS:
============

We do not directly write CSS, but rather generate it using LESS. The LESS code is in the subfolder with the same name.

The following configures WebStorm to automatically run the CSS generation script if any LESS file is changed. This possibly requires the installation of the File Watchers plugin.

    1. Go to File -> Settings -> Tools -> File Watchers
    2. Add a new File Watcher with the + Symbol on the right -> Select Less
    3. For Program set the script for compiling CSS: <path-to-repo>/gradlew
    4. For Arguments set :engine:com.teamscale.ui:generateCss
    5. Expand Other Options
    6. For Working directory to <path-to-repo>
    7. For Output paths to refresh set: <path-to-repo>/engine/com.teamscale.ui/resources/css
    8. Deselect Create output file from stdout
    9. Press OK

To avoid redundancies between CSS and JavaScript, all CSS classes starting with ".export-" are automatically made 
available in JavaScript (via generation). For example a CSS class

.export-BASE {
	color: #abc;
	font-size: 12px;
}

Will result in two string constants in JavaScript (note the camel-case instead of '-') :

ts.Style.BASE.color = '#abc';
ts.Style.BASE.fontSize = '12px';

To use this, ensure to require('ts.Style') in your code.


Used projects:
==============

Bootstrap 
	CSS library written in LESS
	http://twitter.github.com/bootstrap/ 
	version 2.2.1
	Apache License 2.0
	
Font Awesome 
	Scalable icon set created as a font and integrated into Bootstrap
	http://fortawesome.github.com/Font-Awesome/
	version 3.0.2
	SIL Open Font License and MIT License

Ubuntu Mono Font
	Mono-Space Font
	http://www.google.com/webfonts/specimen/Ubuntu+Mono
	Ubuntu Font License, 1.0
	
Open Sans
	Sans Serif Font
	http://www.google.com/webfonts/specimen/Open+Sans
	Apache License 2.0
	
Toastr
	Library for non-blocking notifications
	http://codeseven.github.io/toastr
	toastr is under MIT license
	
Remarkable
	Javascript library for rendering markup
	https://github.com/jonschlinkert/remarkable
	remarkable is under MIT license