[FFmpeg-cvslog] [ffmpeg-web] branch master updated. 021c134 web/style: Remove ugly white border around tables on mobile devices

gitolite ffmpeg-cvslog at ffmpeg.org
Tue Nov 25 04:37:23 CET 2014


The branch, master has been updated
       via  021c1349fbea1f2aa3a4a7c53aa24587a02effed (commit)
       via  132110bd20544b9e0f61a51a1d88c473929caca2 (commit)
      from  383c63c29082e7fdc777f02d6a9f96b4d1fc4f7d (commit)


- Log -----------------------------------------------------------------
commit 021c1349fbea1f2aa3a4a7c53aa24587a02effed
Author:     Timothy Gu <timothygu99 at gmail.com>
AuthorDate: Sat Nov 22 22:36:19 2014 -0800
Commit:     Michael Niedermayer <michaelni at gmx.at>
CommitDate: Tue Nov 25 04:34:12 2014 +0100

    web/style: Remove ugly white border around tables on mobile devices
    
    Signed-off-by: Timothy Gu <timothygu99 at gmail.com>

diff --git a/src/less/style.less b/src/less/style.less
index 83212a4..378a972 100644
--- a/src/less/style.less
+++ b/src/less/style.less
@@ -327,6 +327,10 @@ code {
 }
 */
 
+.table-responsive {
+    border: none;
+}
+
 // ************************************************************************* //
 // Menu side bar nav
 

commit 132110bd20544b9e0f61a51a1d88c473929caca2
Author:     Timothy Gu <timothygu99 at gmail.com>
AuthorDate: Sat Nov 22 22:36:18 2014 -0800
Commit:     Michael Niedermayer <michaelni at gmx.at>
CommitDate: Tue Nov 25 04:33:57 2014 +0100

    web/style: Only add bottom border when requested to <th>'s in <tbody>
    
    When the <th> is a row heading, the border looks as ugly as heck.
    
    Add a special case for <th> in <tbody> as a long heading.
    
    Signed-off-by: Timothy Gu <timothygu99 at gmail.com>

diff --git a/src/download b/src/download
index 86560fb..d4b433b 100644
--- a/src/download
+++ b/src/download
@@ -213,7 +213,7 @@
     <td>-</td>
     <td><a href="http://fate.ffmpeg.org">fate.ffmpeg.org</a> server software repository</td>
   </tr>
-        <tr>
+        <tr class="table-heading">
           <th colspan="4">Mirrors</th>
         </tr>
   <tr>
diff --git a/src/less/style.less b/src/less/style.less
index 433a78f..83212a4 100644
--- a/src/less/style.less
+++ b/src/less/style.less
@@ -270,11 +270,28 @@ code {
             }
             > th {
                 background-color: @Cmainlightlight;
+            }
+        }
+    }
+    // Table headings
+    > thead {
+        > tr {
+            > th {
                 // Bottom align for column headings
                 border-bottom: 2px solid @Cmainlightlightl;
             }
         }
     }
+    > tbody {
+        > tr.table-heading {
+            // These special rules are useful for long headings in <tbody>
+            // Headings in <thead> or row headings are handled already.
+            > th {
+                border-bottom: 2px solid @Cmainlightlightl;
+                background-color: @Cmainlightlight;
+            }
+        }
+    }
     // Account for multiple tbody instances
     > tbody + tbody {
         border-top: 2px solid @Cmaindarkdark;

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

Summary of changes:
 src/download        |    2 +-
 src/less/style.less |   21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 1 deletions(-)


hooks/post-receive
-- 



More information about the ffmpeg-cvslog mailing list