Ver Fonte

Adjust style

<figure>, footnotes, <hr> etc.
Track3 há 6 anos atrás
pai
commit
157f060bcb
1 ficheiros alterados com 84 adições e 21 exclusões
  1. 84 21
      assets/scss/style.scss

+ 84 - 21
assets/scss/style.scss

@@ -104,8 +104,8 @@ hr {
   border-width: 0 0 5px 0;
   border-style: dashed;
   background: transparent;
-  width: 80%;
-  margin: auto;
+  width: 50%;
+  margin: 1.8em auto;
 }
 
 table {
@@ -474,16 +474,34 @@ hr.post-end {
   @include aTag;
 
   figure {
-    max-width: 100;
+    max-width: 100%;
     height: auto;
     margin: 0;
     text-align: center;
 
     p {
-      margin-top: 0;
+      font-size: .8em;
+      font-style: italic;
+      @include dimmed;
     }
   }
 
+  figure.left {
+    float: left;
+    margin-right: 1.5em;
+    max-width: 50%;
+  }
+  
+  figure.right {
+    float: right;
+    margin-left: 1.5em;
+    max-width: 50%;
+  }
+  
+  figure.big {
+    max-width: 100vw;
+  }
+
   img {
     display: block;
     max-width: 100%;
@@ -499,26 +517,36 @@ hr.post-end {
   }
 }
 
-figure.left {
-  float: left;
-  margin-right: 1em;
-}
+.footnotes {
+  font-size: .85em;
 
-figure.right {
-  float: right;
-  margin-left: 1em;
-}
+  a {
+    box-shadow: none;
+    text-decoration: underline;
+    transition-property: color;
+  
+    &:hover {
+      background: transparent;
+    }
 
-.footnote-ref a,
-a.footnote-return {
-  box-shadow: none;
-  text-decoration: underline;
+    &.footnote-return {
+      text-decoration: none;
+    }
+  }
 
-  &:hover {
-    background: transparent;
+  ol {
+    line-height: 1.8;
   }
 }
 
+.footnote-ref a {
+  box-shadow: none;
+  text-decoration: none;
+  padding: 2px;
+  border-radius: 2px;
+  background-color: $midnightblue;
+}
+
 .post-info {
   font-size: .8rem;
   line-height: normal;
@@ -529,7 +557,7 @@ a.footnote-return {
   }
 
   a {
-    text-decoration: underline;
+    border-bottom: 1px solid;
   }
 
   svg {
@@ -664,6 +692,25 @@ a.footnote-return {
     margin-top: 8em;
   }
 
+  figure.left {
+    margin-left: -240px;
+    p {
+      text-align: left;
+    }
+  }
+  
+  figure.right {
+    margin-right: -240px;
+    p {
+      text-align: right;
+    }
+  }
+
+  figure.big {
+    width: 1200px;
+    margin-left: -240px;
+  }
+
   hr.post-end {
     width: 30%;
   }
@@ -682,6 +729,21 @@ a.footnote-return {
     max-width: 960px;
   }
 
+  figure.left {
+    max-width: 75%;
+    margin-left: -320px;
+  }
+  
+  figure.right {
+    max-width: 75%;
+    margin-right: -320px;
+  }
+
+  figure.big {
+    width: 1600px;
+    margin-left: -320px;
+  }
+
   hr.post-end {
     width: 30%;
   }
@@ -719,9 +781,10 @@ a.footnote-return {
 
 @media (max-width: 520px) {
 
-  figure.left,
-  figure.right {
+  .content figure.left,
+  .content figure.right {
     float: unset;
+    max-width: 100%;
     margin: 0;
   }