diff options
author | Marc Englund <marc@vaadin.com> | 2012-11-29 14:42:52 +0200 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2012-12-07 11:16:56 +0000 |
commit | 10cda2673592f63a1cc3adf5f30d31bf6be46056 (patch) | |
tree | d92b13dca0d55d9c683a7d3755cf0b40581eaadb /WebContent/VAADIN/themes/chameleon/components/panel/panel.scss | |
parent | e0b22e126efda7222a1c15d3a4502d3c1ddad86c (diff) | |
download | vaadin-framework-10cda2673592f63a1cc3adf5f30d31bf6be46056.tar.gz vaadin-framework-10cda2673592f63a1cc3adf5f30d31bf6be46056.zip |
$primaryStyleName functionality to Chameleon, fixes #9881
Change-Id: I3d75184acb7d2625a3edea35b1c8d2a86b7313eb
Diffstat (limited to 'WebContent/VAADIN/themes/chameleon/components/panel/panel.scss')
-rw-r--r-- | WebContent/VAADIN/themes/chameleon/components/panel/panel.scss | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/WebContent/VAADIN/themes/chameleon/components/panel/panel.scss b/WebContent/VAADIN/themes/chameleon/components/panel/panel.scss index 88b3d7b804..bc6a8f555c 100644 --- a/WebContent/VAADIN/themes/chameleon/components/panel/panel.scss +++ b/WebContent/VAADIN/themes/chameleon/components/panel/panel.scss @@ -1,6 +1,6 @@ -@mixin chameleon-panel { +@mixin chameleon-panel($primaryStyleName : v-panel) { -.v-panel-caption { +.#{$primaryStyleName}-caption { background: #b9dcff; font-size: 1.2em; border: 1px solid #b3b3b3; @@ -8,21 +8,21 @@ padding: .2em .6em; } -.v-panel-nocaption { +.#{$primaryStyleName}-nocaption { padding: 0; height: 0; overflow: hidden; border-top: 1px solid #b3b3b3; } -.v-panel-content { +.#{$primaryStyleName}-content { background: #fff; border: 1px solid #b3b3b3; border-top: none; border-bottom: none; } -.v-panel-deco { +.#{$primaryStyleName}-deco { height: 0; overflow: hidden; border-top: 1px solid #b3b3b3; @@ -32,13 +32,13 @@ /******************************************************************************* * Borderless ******************************************************************************/ -div.v-panel-caption-borderless { +div.#{$primaryStyleName}-caption-borderless { border: none; } -div.v-panel-nocaption-borderless, -div.v-panel-content-borderless, -div.v-panel-deco-borderless { +div.#{$primaryStyleName}-nocaption-borderless, +div.#{$primaryStyleName}-content-borderless, +div.#{$primaryStyleName}-deco-borderless { border: none; background: transparent; } @@ -47,13 +47,13 @@ div.v-panel-deco-borderless { /******************************************************************************* * Light ******************************************************************************/ -.v-panel-light .v-panel-caption-light { +.#{$primaryStyleName}-light .#{$primaryStyleName}-caption-light { background: transparent; font-weight: normal; border-bottom: 1px solid #b3b3b3; } -div.v-panel-content-light { +div.#{$primaryStyleName}-content-light { background: transparent; } @@ -61,7 +61,7 @@ div.v-panel-content-light { /******************************************************************************* * Bubble ******************************************************************************/ -.v-panel-bubble .v-panel-captionwrap { +.#{$primaryStyleName}-bubble .#{$primaryStyleName}-captionwrap { border: 1px solid #b3b3b3; border-bottom: none; background: #fff; @@ -73,7 +73,7 @@ div.v-panel-content-light { overflow: hidden; } -.v-panel-bubble .v-panel-caption-bubble { +.#{$primaryStyleName}-bubble .#{$primaryStyleName}-caption-bubble { border: none; background-image: url(../../img/grad-light-top.png); background-repeat: repeat-x; @@ -89,13 +89,13 @@ div.v-panel-content-light { padding: .3em .6em; } -.v-panel-nocaption-bubble { +.#{$primaryStyleName}-nocaption-bubble { padding: 0; margin: 0; border: none; } -.v-panel-deco-bubble { +.#{$primaryStyleName}-deco-bubble { height: 2px; border: 1px solid #b3b3b3; border-top: none; @@ -110,14 +110,14 @@ div.v-panel-content-light { /******************************************************************************* * Borderless Bubble ******************************************************************************/ -div.v-panel-borderless .v-panel-captionwrap, -div.v-panel-borderless .v-panel-deco-bubble { +div.#{$primaryStyleName}-borderless .#{$primaryStyleName}-captionwrap, +div.#{$primaryStyleName}-borderless .#{$primaryStyleName}-deco-bubble { border: none; padding: 0; background: transparent; } -div.v-panel-borderless .v-panel-content-bubble { +div.#{$primaryStyleName}-borderless .#{$primaryStyleName}-content-bubble { background: transparent; } |