]> source.dussan.org Git - vaadin-framework.git/commitdiff
Moved DebugConsole (and related) styles to separate mixin which is applied globally... 65/365/1
authorMarc Englund <marc@vaadin.com>
Fri, 23 Nov 2012 14:34:31 +0000 (16:34 +0200)
committerMarc Englund <marc@vaadin.com>
Fri, 23 Nov 2012 14:34:31 +0000 (16:34 +0200)
Change-Id: I39940fa92f748a6ef7a143797f06ef9d7d68ce36

WebContent/VAADIN/themes/base/base.scss
WebContent/VAADIN/themes/base/common/common.scss
WebContent/VAADIN/themes/base/debug/debug.scss [new file with mode: 0644]

index 7e2e20a9694461d8bfb639309249e530b9e2bb04..c26c259e1d6b2b0d25dbeaf045087227228dff76 100644 (file)
@@ -36,7 +36,7 @@
 @import "upload/upload.scss";
 @import "widget/widget.scss";
 @import "window/window.scss";
-
+@import "debug/debug.scss";
 
 @mixin base {
        // @include base-app;
@@ -89,3 +89,5 @@
        @include base-window;
 }
 
+// always include, don't wrap in .themename{}
+@include debug-globals;
index 7ff519a0d595cbbd1e8c9104373697350fcb77a4..f636359a385ce399decc6965693fe4428b77952e 100644 (file)
@@ -198,32 +198,6 @@ body &.v-app-loading {
 .v-loading-indicator-wait {
        background-image: url(img/loading-indicator-wait.gif);
 }
-/* Debug dialog */
-.v-debug-console {
-       background: #fff;
-       opacity: .9;
-       border: 1px solid #000;
-       font-family: sans-serif;
-}
-.v-debug-console-caption {
-       background: #000;
-       border-bottom: 1px solid grey;
-       color: white;
-       font-weight: bold;
-}
-.v-debug-console-content {
-       font-size: x-small;
-       overflow: auto;
-       white-space: pre;
-}
-.v-debug-console-content input {
-       font-size: xx-small;
-}
-/* Debug style */
-&.v-app .invalidlayout,
-&.v-app .invalidlayout * {
-       background: #f99 !important;
-}
 /* Fix for Liferay, issue #2384 */
 &.v-app input[type="text"],
 &.v-app input[type="password"],
diff --git a/WebContent/VAADIN/themes/base/debug/debug.scss b/WebContent/VAADIN/themes/base/debug/debug.scss
new file mode 100644 (file)
index 0000000..b6d22e8
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+* Debug console related styles. NOTE that these are global, and not really part
+* of a theme (the console is a sigleton). You can customize, but it will apply
+* globally, e.g in a portal environment.
+*/
+@mixin debug-globals {
+       .v-debug-console {
+               background: #fff;
+               opacity: .9;
+               border: 1px solid #000;
+               font-family: sans-serif;
+       }
+       .v-debug-console-caption {
+               background: #000;
+               border-bottom: 1px solid grey;
+               color: white;
+               font-weight: bold;
+       }
+       .v-debug-console-content {
+               font-size: x-small;
+               overflow: auto;
+               white-space: pre;
+       }
+       .v-debug-console-content input {
+               font-size: xx-small;
+       }
+       /* Debug style */
+       .v-app .invalidlayout,
+       .v-app .invalidlayout * {
+               background: #f99 !important;
+       }
+}
\ No newline at end of file