Kaynağa Gözat

Update style for table/ul/ol/pre/code/footnote etc

Track3 6 yıl önce
ebeveyn
işleme
3f71a7fc10
3 değiştirilmiş dosya ile 35 ekleme ve 2 silme
  1. 0 0
      static/css/style.css
  2. 1 1
      static/scss/_predefined.scss
  3. 34 1
      static/scss/style.scss

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
static/css/style.css


+ 1 - 1
static/scss/_predefined.scss

@@ -22,7 +22,7 @@ $code-fonts: consolas, Menlo, "PingFang SC", "Microsoft YaHei", monospace;
   a {
     border-bottom: 2px solid $theme;
     padding: 1px 2px;
-    transition-property: background-color;
+    transition-property: background-color, color;
     word-break: break-all;
 
     &:hover {

+ 34 - 1
static/scss/style.scss

@@ -40,6 +40,8 @@ pre {
   border-radius: 5px;
   display: block;
   overflow: auto;
+  letter-spacing: normal;
+  line-height: 1.5em;
   // -webkit-overflow-scrolling: touch;
 
   code {
@@ -56,6 +58,7 @@ code {
   padding: 0 2px;
   margin: auto 4px;
   word-break: break-all;
+  letter-spacing: normal;
 }
 
 blockquote {
@@ -95,6 +98,24 @@ hr {
   margin: auto;
 }
 
+table {
+  border-collapse: collapse;
+  border-spacing: 0;
+  empty-cells: show;
+  width: 100%;
+  max-width: 100%;
+
+  th, td {
+    padding: 1.5%;
+    border: 1px solid;
+  }
+
+  th {
+    font-weight: 700;
+    vertical-align: bottom;
+  }
+}
+
 .section-inner {
   margin: 0 auto;
   max-width: 1200px;
@@ -333,7 +354,7 @@ hr {
   margin-bottom: 1.5em;
   
   .post-meta {
-  margin-top: -1em;
+  margin-top: -1.6em;
   margin-bottom: .6em;
   @include dimmed;
   }
@@ -370,6 +391,11 @@ hr.post-end {
     height: auto;
     border-radius: 4px;
   }
+
+  ul, ol {
+    padding: 0;
+    margin-left: 1.8em;
+  }
 }
 
 figure.left {
@@ -382,6 +408,13 @@ figure.right {
   margin-left: 1em;
 }
 
+.footnote-ref a, a.footnote-return {
+  border: none;
+  &:hover {
+    background: transparent;
+  }
+}
+
 .post-info {
   font-size: .8rem;
   @include dimmed;

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor