From 78176da861708413a9293b792affaf1fb9f45730 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Fri, 20 Sep 2013 18:01:22 -0700 Subject: [PATCH] Add a theme fixture --- .../index.less | 3 + .../package.json | 3 + .../stylesheets/first.less | 7 ++ .../stylesheets/last.less | 5 ++ .../stylesheets/second.less | 9 +++ .../stylesheets/ui-variables.less | 73 +++++++++++++++++++ 6 files changed, 100 insertions(+) create mode 100644 spec/fixtures/packages/theme-with-multiple-imported-files/index.less create mode 100644 spec/fixtures/packages/theme-with-multiple-imported-files/package.json create mode 100644 spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/first.less create mode 100644 spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/last.less create mode 100644 spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/second.less create mode 100644 spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/ui-variables.less diff --git a/spec/fixtures/packages/theme-with-multiple-imported-files/index.less b/spec/fixtures/packages/theme-with-multiple-imported-files/index.less new file mode 100644 index 000000000..3cc8a95ae --- /dev/null +++ b/spec/fixtures/packages/theme-with-multiple-imported-files/index.less @@ -0,0 +1,3 @@ +@import "stylesheets/first"; +@import "stylesheets/second"; +@import "stylesheets/last"; diff --git a/spec/fixtures/packages/theme-with-multiple-imported-files/package.json b/spec/fixtures/packages/theme-with-multiple-imported-files/package.json new file mode 100644 index 000000000..a4dc0188d --- /dev/null +++ b/spec/fixtures/packages/theme-with-multiple-imported-files/package.json @@ -0,0 +1,3 @@ +{ + "theme": true +} diff --git a/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/first.less b/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/first.less new file mode 100644 index 000000000..f9af1a345 --- /dev/null +++ b/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/first.less @@ -0,0 +1,7 @@ +.editor { + padding-top: 101px; + padding-right: 101px; + padding-bottom: 101px; + + color: red; +} \ No newline at end of file diff --git a/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/last.less b/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/last.less new file mode 100644 index 000000000..c0cface8c --- /dev/null +++ b/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/last.less @@ -0,0 +1,5 @@ +.editor { +/* padding-top: 103px; + padding-right: 103px;*/ + padding-bottom: 103px; +} \ No newline at end of file diff --git a/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/second.less b/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/second.less new file mode 100644 index 000000000..a14760b4f --- /dev/null +++ b/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/second.less @@ -0,0 +1,9 @@ +@import "ui-variables"; + +@number: 102px; + +.editor { +/* padding-top: 102px;*/ + padding-right: @number; + padding-bottom: @number; +} diff --git a/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/ui-variables.less b/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/ui-variables.less new file mode 100644 index 000000000..54a75946c --- /dev/null +++ b/spec/fixtures/packages/theme-with-multiple-imported-files/stylesheets/ui-variables.less @@ -0,0 +1,73 @@ +// Variables different from the original are marked 'Changed' + +@text-color: #333; +@text-color-subtle: #777; +@text-color-highlight: #111; +@text-color-selected: @text-color-highlight; + +@text-color-info: #5293d8; +@text-color-success: #1fe977; +@text-color-warning: #f78a46; +@text-color-error: #c00; + +@background-color-info: #0098ff; +@background-color-success: #17ca65; +@background-color-warning: #ff4800; +@background-color-error: #c00; +@background-color-highlight: rgba(255, 255, 255, 0.10); +@background-color-selected: @background-color-highlight; + +@app-background-color: #00f; // Changed + +@base-background-color: #fff; +@base-border-color: #eee; + +@pane-item-background-color: @base-background-color; +@pane-item-border-color: @base-border-color; + +@input-background-color: #f00; // Changed +@input-border-color: @base-border-color; + +@tool-panel-background-color: #f4f4f4; +@tool-panel-border-color: @base-border-color; + +@inset-panel-background-color: #eee; +@inset-panel-border-color: @base-border-color; + +@panel-heading-background-color: #ddd; +@panel-heading-border-color: transparent; + +@overlay-background-color: #f4f4f4; +@overlay-border-color: @base-border-color; + +@button-background-color: #ccc; +@button-background-color-hover: lighten(@button-background-color, 5%); +@button-background-color-selected: @button-background-color-hover; +@button-border-color: #aaa; + +@tab-bar-background-color: #fff; +@tab-bar-border-color: darken(@tab-background-color-active, 10%); +@tab-background-color: #f4f4f4; +@tab-background-color-active: #fff; +@tab-border-color: @base-border-color; + +@tree-view-background-color: @tool-panel-background-color; +@tree-view-border-color: @tool-panel-border-color; + +@ui-site-color-1: @background-color-success; // green +@ui-site-color-2: @background-color-info; // blue +@ui-site-color-3: @background-color-warning; // orange +@ui-site-color-4: #db2ff4; // purple +@ui-site-color-5: #f5e11d; // yellow + +@font-size: 12px; + +@disclosure-arrow-size: 12px; + +@component-padding: 150px; +@component-icon-padding: 5px; +@component-icon-size: 16px; +@component-line-height: 25px; +@component-border-radius: 2px; + +@tab-height: 30px;