浏览代码

[GINR] center figure images

cgars 8 年之前
父节点
当前提交
84bf993d5d
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      public/css/gogs.css

+ 18 - 0
public/css/gogs.css

@@ -3211,3 +3211,21 @@ footer .ui.language .menu {
   height: 40px;
   align-content: center;
 }
+
+figure {
+  float: right;
+  max-width: 600px;
+}
+figure img {
+  display: block;
+  margin-left: auto;
+  margin-right: auto;
+}
+
+figure figcaption {
+  display: block;
+  margin-left: auto;
+  margin-right: auto;
+  font-style: italic;
+  text-align: justify;
+}