[FFmpeg-cvslog] [ffmpeg-web] branch master updated. e502cd0 web/style.less: Separate out .table-bordered from .table

gitolite ffmpeg-cvslog at ffmpeg.org
Tue Nov 18 23:24:01 CET 2014


The branch, master has been updated
       via  e502cd0bf52ed803ebf2c4aa6a321d711e52c2e3 (commit)
      from  741b6bed174261b3cc8604c285184b56a463cb5e (commit)


- Log -----------------------------------------------------------------
commit e502cd0bf52ed803ebf2c4aa6a321d711e52c2e3
Author:     Timothy Gu <timothygu99 at gmail.com>
AuthorDate: Sat Nov 15 21:23:39 2014 -0800
Commit:     Michael Niedermayer <michaelni at gmx.at>
CommitDate: Tue Nov 18 23:23:06 2014 +0100

    web/style.less: Separate out .table-bordered from .table
    
    The only instance of .table in the web source is the download page for the
    Git repos. I did not change that page because an unbordered table there is
    prettier IMO.
    
    I retained the .table-bordered style in case anyone want to use it in the
    future.
    
    Signed-off-by: Timothy Gu <timothygu99 at gmail.com>
    Reviewed-by: Clément Bœsch <u at pkh.me>

diff --git a/src/less/style.less b/src/less/style.less
index c9ebdc8..433a78f 100644
--- a/src/less/style.less
+++ b/src/less/style.less
@@ -30,7 +30,8 @@ SOFTWARE.
 @Cmaindarkdark:      darken(@Cmain,   10%);
 @Cborder:            darken(@Cmain,   13%);
 @Cmainlight:        lighten(@Cmain,    5%);
- at Cmainlightlight:   lighten(@Cmain,   55%);
+ at Cmainlightlight:   lighten(@Cmain,   10%);
+ at Cmainlightlightl:  lighten(@Cmain,   55%);
 
 // Complete invert of the main black theme.
 @Cinvert:               hsl(0, 0%,    90%);
@@ -89,7 +90,7 @@ h1, h2, h3, h4 {
 }
 
 h1, h2, h3 {
-    color: @Cmainlightlight;
+    color: @Cmainlightlightl;
     strong {
         color: @Cinvert;
     }
@@ -100,12 +101,12 @@ h4, h5, h6 {
 }
 
 h1 {
-  border-bottom: 4px @Cmainlightlight solid;
+  border-bottom: 4px @Cmainlightlightl solid;
   padding: 20px 2%;
 }
 
 h3 {
-  border-bottom: 2px @Cmainlightlight solid;
+  border-bottom: 2px @Cmainlightlightl solid;
   padding: 15px 1%;
 }
 
@@ -137,7 +138,7 @@ h4 {
 .well {
     background-color: @Cmaindark;
     border-color: black;
-    color: @Cmainlightlight;
+    color: @Cmainlightlightl;
     strong {
         color: @Cinvert;
     }
@@ -244,19 +245,70 @@ code {
 .table {
     margin: 20px 0;
     border-radius: 4px;
-    th, td, tr {
-        border: 1px solid @Cmaindarkdark;
+    // Stripes
+    > tbody > tr:nth-child(odd) {
+        > td {
+            background-color: @Cmaindark;
+        }
+        > th {
+            background-color: @Cmain;
+        }
     }
-    tr {
-        th {
+    > tbody > tr:nth-child(even) {
+        > td {
             background-color: @Cmainlight;
-            border-bottom: 2px solid @Cinvert;
         }
     }
-    tr:nth-child(odd) {
-        background-color: @Cmaindark;
+    // Cells
+    > thead,
+    > tbody,
+    > tfoot {
+        > tr {
+            > th,
+            > td {
+                border-top: none;
+            }
+            > th {
+                background-color: @Cmainlightlight;
+                // Bottom align for column headings
+                border-bottom: 2px solid @Cmainlightlightl;
+            }
+        }
+    }
+    // Account for multiple tbody instances
+    > tbody + tbody {
+        border-top: 2px solid @Cmaindarkdark;
+    }
+}
+
+// This adds borders to the table elements. Nothing is using it right now so
+// it is commented out.
+/*
+.table-bordered {
+    border: 1px solid @Cmaindarkdark;
+    > thead,
+    > tbody,
+    > tfoot {
+        > tr {
+            > th,
+            > td {
+                border: 1px solid @Cmaindarkdark;
+            }
+            > th {
+                background-color: @Cmainlightlight;
+                // Bottom align for column headings
+                border-bottom: 2px solid @Cmainlightlightl;
+            }
+        }
+    }
+    > thead > tr {
+        > th,
+        > td {
+            border-bottom-width: 2px;
+        }
     }
 }
+*/
 
 // ************************************************************************* //
 // Menu side bar nav

-----------------------------------------------------------------------

Summary of changes:
 src/less/style.less |   76 +++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 64 insertions(+), 12 deletions(-)


hooks/post-receive
-- 



More information about the ffmpeg-cvslog mailing list