Ver código fonte

added page.body_class support for custom css classes from any page, table layout

use like so:
body_class: 'page-locale-packs'
Artur Paikin 6 anos atrás
pai
commit
ae89419fef

+ 1 - 1
website/themes/uppy/layout/layout.ejs

@@ -37,7 +37,7 @@ if (page.series) {
     <%- css('css/main').replace('.css', '.css?version=2') %>
     <!-- ^-- poor man's solution to css cache busting. bump the version when there's something new we really want users to see -->
   </head>
-  <body class="<%= isIndex ? 'page-index' : 'page-inner' %>">
+  <body class="<%= isIndex ? 'page-index' : 'page-inner' %> <%= page.body_class %>">
     <div class="page">
       <div class="TransloaditBar">
         <a class="TransloaditBar-logo" href="https://transloadit.com/" target="_blank" rel="noopener noreferrer">

+ 14 - 14
website/themes/uppy/source/css/_page.scss

@@ -176,17 +176,19 @@
   }
 
   table {
+    width: 100%;
+    text-align: left;
     display: block;
     font-size: 85%;
     border-spacing: 10px;
     overflow-x: auto;
-    // white-space: nowrap;
   }
 
-  // table td,
-  // table th {
-  //   padding-right: 30px;
-  // }
+  table td { 
+    vertical-align: top;
+    padding: 8px;
+    border-bottom: 1px solid #eee;
+  }
 
   .light {
     color: $color-light;
@@ -347,16 +349,14 @@
       font-size: 14px;
     }
   }
+}
 
-  table {
-    width: 100%;
-    text-align: left;
-    td {
-      vertical-align: top;
-      padding: 8px;
-      border-bottom: 1px solid #eee;
-    }
-  }
+.page-docs-locales table td {
+  white-space: nowrap;
+}
+
+.page-docs-locales table code {
+  font-size: 75%;
 }
 
 .PostAuthor:first-of-type {