瀏覽代碼

minor print style tweaks

Heydon Pickering 8 年之前
父節點
當前提交
d96be1e072
共有 3 個文件被更改,包括 48 次插入6 次删除
  1. 24 3
      docs/css/styles.css
  2. 0 0
      docs/service-worker.js
  3. 24 3
      themes/infusion/static/css/styles.css

+ 24 - 3
docs/css/styles.css

@@ -684,9 +684,13 @@ pre[class*=language-] code * {
   padding: 1.5rem 0 0.75rem;
 }
 
-.expandable-section + .expandable-section {
-  margin-top: 0;
-  border-top: 0;
+@media screen {
+
+  .expandable-section + .expandable-section {
+    margin-top: 0;
+    border-top: 0;
+  }
+
 }
 
 [data-expands] {
@@ -940,6 +944,23 @@ h1 svg {
     padding-left: 0;
   }
 
+  .expandable-section {
+    border: 0;
+    padding: 0;
+  }
+
+  .expandable-section + p {
+    margin-top: 0.75rem;
+  }
+
+  [id^="expandable-"] {
+    display: block;
+  }
+
+  [data-expands] svg {
+    display: none;
+  }
+
   main * {
     page-break-inside: avoid;
   }

文件差異過大導致無法顯示
+ 0 - 0
docs/service-worker.js


+ 24 - 3
themes/infusion/static/css/styles.css

@@ -684,9 +684,13 @@ pre[class*=language-] code * {
   padding: 1.5rem 0 0.75rem;
 }
 
-.expandable-section + .expandable-section {
-  margin-top: 0;
-  border-top: 0;
+@media screen {
+
+  .expandable-section + .expandable-section {
+    margin-top: 0;
+    border-top: 0;
+  }
+
 }
 
 [data-expands] {
@@ -940,6 +944,23 @@ h1 svg {
     padding-left: 0;
   }
 
+  .expandable-section {
+    border: 0;
+    padding: 0;
+  }
+
+  .expandable-section + p {
+    margin-top: 0.75rem;
+  }
+
+  [id^="expandable-"] {
+    display: block;
+  }
+
+  [data-expands] svg {
+    display: none;
+  }
+
   main * {
     page-break-inside: avoid;
   }

部分文件因文件數量過多而無法顯示