From ab0749392c9dbb89cc7ed6c59f2fb27bd90a59bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Herrmann?= Date: Tue, 17 Jan 2017 11:49:22 +0100 Subject: [PATCH] design improvements (#635) --- app/page/template/content/collection-details.htm | 4 ++-- app/page/template/content/collection.htm | 12 ++++++------ app/page/template/partials/template-message.htm | 8 ++++---- app/script/components/asset/linkPreviewAsset.coffee | 4 ++-- app/style/common/common.less | 2 +- app/style/components/asset/link-preview-asset.less | 12 ++++++++---- app/style/components/asset/location-asset.less | 3 +-- 7 files changed, 24 insertions(+), 21 deletions(-) diff --git a/app/page/template/content/collection-details.htm b/app/page/template/content/collection-details.htm index 2215d9c70af..2a720b30e66 100644 --- a/app/page/template/content/collection-details.htm +++ b/app/page/template/content/collection-details.htm @@ -6,9 +6,9 @@
- +
- +
diff --git a/app/page/template/content/collection.htm b/app/page/template/content/collection.htm index 853a07e478f..59b433cb08e 100644 --- a/app/page/template/content/collection.htm +++ b/app/page/template/content/collection.htm @@ -16,12 +16,12 @@ -
+
- +
@@ -33,12 +33,12 @@ -
+
- +
@@ -50,12 +50,12 @@ -
+
- +
diff --git a/app/page/template/partials/template-message.htm b/app/page/template/partials/template-message.htm index 29805d1b826..cd473a418e7 100644 --- a/app/page/template/partials/template-message.htm +++ b/app/page/template/partials/template-message.htm @@ -34,8 +34,8 @@
-
- +
+
@@ -50,8 +50,8 @@
-
- +
+ diff --git a/app/script/components/asset/linkPreviewAsset.coffee b/app/script/components/asset/linkPreviewAsset.coffee index 66b2cd28ff8..4add8fae7ee 100644 --- a/app/script/components/asset/linkPreviewAsset.coffee +++ b/app/script/components/asset/linkPreviewAsset.coffee @@ -62,7 +62,7 @@ ko.components.register 'link-preview-asset', - +
@@ -72,7 +72,7 @@ ko.components.register 'link-preview-asset',
diff --git a/app/style/common/common.less b/app/style/common/common.less index 7358b2ad05e..5127b5e1756 100644 --- a/app/style/common/common.less +++ b/app/style/common/common.less @@ -20,7 +20,7 @@ // Set of common styles .popover-title { - font-weight: 500; + font-weight: @font-weight-bold; line-height: @line-height-md; margin-bottom: 4px; } diff --git a/app/style/components/asset/link-preview-asset.less b/app/style/components/asset/link-preview-asset.less index 2573531e20c..a5b049c323c 100644 --- a/app/style/components/asset/link-preview-asset.less +++ b/app/style/components/asset/link-preview-asset.less @@ -17,6 +17,9 @@ * */ +// variables +@link-preview-height: 88px; + link-preview-asset { .asset-container-style; cursor: pointer; @@ -24,7 +27,7 @@ link-preview-asset { } .link-preview-image-container { - .square(88px); + .square(@link-preview-height); background-color: fade(@graphite, 24%); flex: 0 0 auto; } @@ -42,11 +45,12 @@ link-preview-asset { } .link-preview-info { - flex: 1 1 auto; display: flex; + flex: 1 1 auto; flex-direction: column; - padding: 12px; + height: @link-preview-height; justify-content: center; + padding: 12px; width: 0; } @@ -55,7 +59,7 @@ link-preview-asset { } .link-preview-info-title { - font-weight: 500; // semi-bold + font-weight: @font-weight-bold; line-height: @line-height-lg; margin-bottom: 4px; } diff --git a/app/style/components/asset/location-asset.less b/app/style/components/asset/location-asset.less index 639acb58e29..031c218ab5c 100644 --- a/app/style/components/asset/location-asset.less +++ b/app/style/components/asset/location-asset.less @@ -31,6 +31,5 @@ } .location-asset-title { - .label-bold; - font-size: @font-size-sm; + font-weight: @font-weight-bold; }