You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2015/06/04 10:30:14 UTC

svn commit: r1683484 - /myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/style/tobago.css

Author: lofwyr
Date: Thu Jun  4 08:30:14 2015
New Revision: 1683484

URL: http://svn.apache.org/r1683484
Log:
TOBAGO-1368: Create a new theme which uses Bootstrap
 - CSS optimization

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/style/tobago.css

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/style/tobago.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/style/tobago.css?rev=1683484&r1=1683483&r2=1683484&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/style/tobago.css (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/style/tobago.css Thu Jun  4 08:30:14 2015
@@ -202,30 +202,18 @@ table.tobago-sheet-bodyTable>tbody>tr>td
 /*
 fixes missing space, I thinks normal Websites have a " " Space char in the source code, Tobago not.
 */
-.navbar button,
-.navbar input {
+.navbar button:nth-child(n+2),
+.navbar input:nth-child(n+2) {
   margin-left: 5px;
 }
 
-.navbar button:first-child,
-.navbar input:first-child {
-  margin-left: 0;
-}
-
-.btn {
+.btn:nth-child(n+2) {
   margin-left: 5px;
 }
 
-.btn:first-child {
-  margin-left: 0;
-}
-
-.tobago-button > *, .tobago-link > * {
-  margin-left: 5px;
-}
-
-.tobago-button > *:first-child, .tobago-link > *:first-child {
-  margin-left: 0;
+.tobago-button > *:nth-child(n+2),
+.tobago-link > *:nth-child(n+2) {
+  margin-left: .4em;
 }
 
 .tobago-label {
@@ -250,12 +238,13 @@ fixes missing space, I thinks normal Web
   display: none;
 }
 
-h1 > *, h2 > *, h3 > *, h4 > *, h5 > *, h6 > * {
-  margin-left: 1em;
-}
-
-h1 > *:first-child, h2 > *:first-child, h3 > *:first-child, h4 > *:first-child, h5 > *:first-child, h6 > *:first-child {
-  margin-left: 0;
+h1 > .glyphicon:first-child,
+h2 > .glyphicon:first-child,
+h3 > .glyphicon:first-child,
+h4 > .glyphicon:first-child,
+h5 > .glyphicon:first-child,
+h6 > .glyphicon:first-child {
+  margin-right: 1em;
 }
 
 /* XXX hack */