浏览代码

Fix flex links not overflowing correctly and refactor

Alasdair Smith 8 年之前
父节点
当前提交
630f15e8ea
共有 1 个文件被更改,包括 11 次插入 和 15 次删除
  1. 11 15
      services/web/public/stylesheets/app/templates-v2.less

+ 11 - 15
services/web/public/stylesheets/app/templates-v2.less

@@ -58,24 +58,20 @@
 	}
 
 	.caption {
-        // Override ShareLatex template styles
-        background: none;
-        border: none;
-
+		// Override ShareLatex template styles
+		background: none;
+		border: none;
 		text-align: center;
-
-		.description {
-			font-style: italic;
-			padding: 5px 0;
-			text-overflow: ellipsis;
-			overflow: hidden;
-			white-space: nowrap;
-		}
-
 	}
 
-	.caption.caption--portals {
-		height: 50px;
+	.caption__description {
+		font-style: italic;
+		padding: 5px 0;
+		.text-overflow();
+
+		a {
+			display: inline;
+		}
 	}
 
 	/* Media Queries */