diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-01-25 17:45:33 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-01-25 18:00:33 +0100 |
commit | 7adcb81e4f83f98c468889aaa5a85558ba88c770 (patch) | |
tree | 0d6ede733777b29060b48df4afaa2c64bfbae276 /sources/samples/toolbarconfigurator/less/base.less | |
download | connexionswing-ckeditor-component-4.5.6.tar.gz connexionswing-ckeditor-component-4.5.6.tar.zst connexionswing-ckeditor-component-4.5.6.zip |
Initial commit4.5.6
Diffstat (limited to 'sources/samples/toolbarconfigurator/less/base.less')
-rw-r--r-- | sources/samples/toolbarconfigurator/less/base.less | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sources/samples/toolbarconfigurator/less/base.less b/sources/samples/toolbarconfigurator/less/base.less new file mode 100644 index 00000000..be59d207 --- /dev/null +++ b/sources/samples/toolbarconfigurator/less/base.less | |||
@@ -0,0 +1,38 @@ | |||
1 | // Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. | ||
2 | // For licensing, see LICENSE.html or http://cksource.com/ckeditor/license | ||
3 | |||
4 | @base-font-size: 16px; | ||
5 | @base-line-height: 24px; | ||
6 | @base-line-ratio: 1.8; | ||
7 | |||
8 | @sample-font-stack: Arial, Helvetica, sans-serif; | ||
9 | @sample-font-stack-monospace: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif; | ||
10 | @sample-font-maven: "Maven Pro"; | ||
11 | @sample-font-indie: "Indie Flower"; | ||
12 | @sample-text-color: #575757; | ||
13 | |||
14 | @sample-link-color: #cf5d4e; | ||
15 | @sample-link-color-hover: lighten( @sample-link-color, -10% ); | ||
16 | |||
17 | @sample-box-background-color: #f5f5f5; | ||
18 | @sample-box-border-color: #ddd; | ||
19 | |||
20 | @sample-top-navigation-background: #454545; | ||
21 | |||
22 | // Standard gaps | ||
23 | @sample-standard-vgap: 1.2em; | ||
24 | @sample-standard-hgap: 1.5em; | ||
25 | |||
26 | // Generic font-size/line-height mixin. | ||
27 | .font-size( @remSize ) { | ||
28 | @pxSize: round( @remSize * @base-font-size, 2 ); | ||
29 | |||
30 | @remHeight: round( @remSize * @base-line-ratio, 2 ); | ||
31 | @pxHeight: round( @pxSize * @base-line-ratio, 2 ); | ||
32 | |||
33 | font-size: ~"@{pxSize}"; | ||
34 | font-size: ~"@{remSize}rem"; | ||
35 | |||
36 | line-height: ~"@{pxHeight}"; | ||
37 | line-height: ~"@{remHeight}rem"; | ||
38 | } | ||