You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2020/07/09 08:59:29 UTC

[myfaces-tobago] 05/09: Tobago-1999: styling

This is an automated email from the ASF dual-hosted git repository.

weber pushed a commit to branch TOBAGO-1999_Select2
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit b8673efe6ad0e00daff7e3d01f3feed1e9a10936
Author: Volker Weber <v....@inexso.de>
AuthorDate: Thu Feb 27 13:50:27 2020 +0100

    Tobago-1999: styling
---
 .../html/scarborough/standard/style/tobago.css     | 23 +++++++++++++++++
 .../html/speyside/standard/style/tobago.less       | 30 ++++++++++++++++++++++
 .../src/main/resources/META-INF/tobago-config.xml  | 15 +++++++++++
 3 files changed, 68 insertions(+)

diff --git a/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css b/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css
index e8c6b6d..bdd7a09 100644
--- a/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css
+++ b/tobago-theme/tobago-theme-scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/tobago.css
@@ -805,6 +805,29 @@ li.tobago-menu-markup-selected {
   border: 1px solid #FF0000;
 }
 
+/* selectManyBox ------------------------------------------------------- */
+
+.tobago-selectManyBox-container .select2-selection--multiple {
+  font-family: arial, helvetica, sans-serif;
+  color: #000000 !important;
+  background: #ffffff !important;
+  height: 25px;
+}
+
+.tobago-selectManyBox-container-markup-readonly .select2-selection--multiple {
+  background-color: #bbccdd !important;
+}
+
+.tobago-selectManyBox-container-markup-disabled .select2-selection--multiple {
+  color: #778899 !important;
+  background: #bbccdd !important;
+}
+
+.tobago-selectManyBox-container-markup-error .select2-selection--multiple {
+  border-style: solid;
+  border-color: #ff0000 !important;
+}
+
 /* selectManyListbox ------------------------------------------------------- */
 
 .tobago-selectManyListbox {
diff --git a/tobago-theme/tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less b/tobago-theme/tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less
index 04ce858..025d4ce 100644
--- a/tobago-theme/tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less
+++ b/tobago-theme/tobago-theme-speyside/src/main/less/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/tobago.less
@@ -497,6 +497,36 @@ li.tobago-menu-markup-selected {
   color: @disabledTextColor;
 }
 
+/* selectManyBox ------------------------------------------------------- */
+
+.tobago-selectManyBox-container .select2-selection--multiple {
+  border: 1px solid darken(@borderColor, 10%) !important;
+  font: @font;
+  padding-top: -1px;
+  color: @textColor !important;
+  height: 21px;
+  .border-radius;
+  .transition
+  &:focus {
+    outline: none;
+    border-color: @focusColor !important;
+    .field-focus-shadow;
+  }
+}
+
+.tobago-selectManyBox-container-markup-disabled .select2-selection--multiple {
+  background-color: @disabledBackgroundColor !important;
+  color: @disabledTextColor;
+}
+
+.tobago-selectManyBox-container-markup-readonly .select2-selection--multiple {
+  background-color: @readonlyBackgroundColor !important;
+}
+
+.tobago-selectManyBox-container-markup-error .select2-selection--multiple {
+  border-color: @errorColor !important;
+}
+
 /* selectManyListbox ------------------------------------------------------- */
 
 .tobago-selectManyListbox {
diff --git a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/tobago-config.xml b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/tobago-config.xml
index 7d00ddb..4bece02 100644
--- a/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/tobago-config.xml
+++ b/tobago-theme/tobago-theme-standard/src/main/resources/META-INF/tobago-config.xml
@@ -192,6 +192,21 @@
           </supported-markup>
         </renderer>
         <renderer>
+          <name>SelectManyBox</name>
+          <supported-markup>
+            <markup>container</markup>
+            <markup>disabled</markup>
+            <markup>readonly</markup>
+            <markup>required</markup>
+            <markup>fatal</markup>
+            <markup>error</markup>
+            <markup>warn</markup>
+            <markup>info</markup>
+            <markup>selected</markup>
+            <markup>inline</markup>
+          </supported-markup>
+        </renderer>
+        <renderer>
           <name>SelectManyCheckbox</name>
           <supported-markup>
             <markup>disabled</markup>