浏览代码

gui: Vertically center identicons in accordion titles

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3252
Daniel Harte 9 年之前
父节点
当前提交
16063933d1
共有 2 个文件被更改,包括 8 次插入4 次删除
  1. 2 2
      gui/dark/assets/css/theme.css
  2. 6 2
      gui/default/assets/css/overrides.css

+ 2 - 2
gui/dark/assets/css/theme.css

@@ -94,8 +94,8 @@ li.hidden-xs:hover, .navbar-link:hover, .navbar-link:focus {
     border-top: 1px solid #222 !important;
     border-top: 1px solid #222 !important;
 }
 }
 
 
-.identicon>rect {
-    fill: #aaa !important;
+.identicon rect {
+    fill: #aaa;
 }
 }
 
 
 .panel-heading:hover, .panel-heading:focus {
 .panel-heading:hover, .panel-heading:focus {

+ 6 - 2
gui/default/assets/css/overrides.css

@@ -196,18 +196,22 @@ table.table-condensed td.no-overflow-ellipse {
 }
 }
 
 
 identicon {
 identicon {
-    display: inline-block;
-    position: relative;
     width: 1em;
     width: 1em;
     height: 1em;
     height: 1em;
     line-height: 1;
     line-height: 1;
 }
 }
 
 
+h4 identicon{
+    margin-top: 0.125em;
+    margin-bottom: 0.125em;
+}
+
 .identicon {
 .identicon {
     width: 1em;
     width: 1em;
     height: 1em;
     height: 1em;
 }
 }
 
 
+
 /**
 /**
  * Progress bars with centered text
  * Progress bars with centered text
  */
  */