Skip to content

Commit

Permalink
design improvements (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
herrmannplatz authored and rehez committed Jan 17, 2017
1 parent a5e73c3 commit ab07493
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 21 deletions.
4 changes: 2 additions & 2 deletions app/page/template/content/collection-details.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<div class="content-titlebar">
<div class="content-titlebar-items-left">
<span class="content-titlebar-icon icon-back" data-bind="click: click_on_back_button"></span>
<span class="content-titlebar-icon icon-back" data-uie-name="do-collection-details-close" data-bind="click: click_on_back_button"></span>
</div>
<span class="content-titlebar-items-center" data-bind="text: conversation_et().display_name()"></span>
<span class="content-titlebar-items-center" data-uie-name="collection-details-conversation-name" data-bind="text: conversation_et().display_name()"></span>
</div>

<div class="content-list-wrapper">
Expand Down
12 changes: 6 additions & 6 deletions app/page/template/content/collection.htm
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

<!-- ko ifnot: no_items_found() -->
<!-- ko if: images().length -->
<section class="collection-section" data-uie-name="collection-section-image">
<section class="collection-section" data-uie-name="collection-section-image" data-bind="attr: {'data-uie-collection-size': images().length}">
<header>
<span class="collection-header-icon icon-library"></span>
<span class="label-bold-xs" data-bind="l10n_text: z.string.collection_section_images"></span>
<!-- ko if: images().length > 12 -->
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('images', images()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': images().length}}" data-uie-name="collection-size"></span> <span class="icon-forward font-size-xxs"></span></span>
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('images', images()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': images().length}}" data-uie-name="collection-show-all"></span> <span class="icon-forward font-size-xxs"></span></span>
<!-- /ko -->
</header>
<div class="collection-images">
Expand All @@ -33,12 +33,12 @@
<!-- /ko -->

<!-- ko if: links().length -->
<section class="collection-section" data-uie-name="collection-section-link">
<section class="collection-section" data-uie-name="collection-section-link" data-bind="attr: {'data-uie-collection-size': links().length}">
<header>
<span class="collection-header-icon icon-link"></span>
<span class="label-bold-xs" data-bind="l10n_text: z.string.collection_section_links"></span>
<!-- ko if: links().length > 4 -->
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('links', links()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': links().length}}" data-uie-name="collection-size"></span> <span class="icon-forward font-size-xxs"></span></span>
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('links', links()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': links().length}}" data-uie-name="collection-show-all"></span> <span class="icon-forward font-size-xxs"></span></span>
<!-- /ko -->
</header>
<div class="collection-images">
Expand All @@ -50,12 +50,12 @@
<!-- /ko -->

<!-- ko if: files().length -->
<section class="collection-section" data-uie-name="collection-section-file">
<section class="collection-section" data-uie-name="collection-section-file" data-bind="attr: {'data-uie-collection-size': files().length}">
<header>
<span class="collection-header-icon icon-file"></span>
<span class="label-bold-xs" data-bind="l10n_text: z.string.collection_section_files"></span>
<!-- ko if: files().length > 4 -->
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('files', files()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': files().length}}" data-uie-name="collection-size"></span> <span class="icon-forward font-size-xxs"></span></span>
<span class="collection-header-all text-theme" data-bind="click: function() { click_on_section('files', files()) }"><span data-bind="l10n_html: {'id': z.string.collection_show_all, 'replace': {'placeholder': '%no', 'content': files().length}}" data-uie-name="collection-show-all"></span> <span class="icon-forward font-size-xxs"></span></span>
<!-- /ko -->
</header>
<div class="collection-images">
Expand Down
8 changes: 4 additions & 4 deletions app/page/template/partials/template-message.htm
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<div class="message-header-icon">
<user-avatar class="sender-avatar user-avatar-xs" data-bubble="#participants-bubble" data-placement="vertical" params="user: message.user(), click: $parent.on_message_user_click"></user-avatar>
</div>
<div class="message-header-label label-bold">
<span data-bind='text: message.sender_name()'></span>
<div class="message-header-label">
<span class="label-bold" data-bind='text: message.sender_name()'></span>
<span class="message-header-label-icon icon-trash" data-bind="attr: {title: message.display_deleted_timestamp()}"></span>
</div>
<div class="message-body-actions message-body-actions-large">
Expand All @@ -50,8 +50,8 @@
<div class="message-header-icon">
<user-avatar class="sender-avatar user-avatar-xs" data-bubble="#participants-bubble" data-placement="vertical" params="user: message.user(), click: $parent.on_message_user_click"></user-avatar>
</div>
<div class="message-header-label label-bold">
<span data-bind='text: message.user().first_name()'></span>
<div class="message-header-label">
<span class="label-bold" data-bind='text: message.user().first_name()'></span>
<!-- ko if: was_edited() -->
<span class="message-header-label-icon icon-edit" data-bind="attr: {title: message.display_edited_timestamp()}"></span>
<!-- /ko -->
Expand Down
4 changes: 2 additions & 2 deletions app/script/components/asset/linkPreviewAsset.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ko.components.register 'link-preview-asset',
<!-- ko if: header -->
<asset-header class="link-preview-info-header" params="message: message_et"></asset-header>
<!-- /ko -->
<div class="link-preview-info-title" data-uie-name="link-preview-title" data-bind="text: preview.title, css: header ? 'link-preview-info-title-sigleline' : 'link-preview-info-title-multiline'"></div>
<div class="link-preview-info-title" data-uie-name="link-preview-title" data-bind="text: preview.title, css: header ? 'link-preview-info-title-singleline' : 'link-preview-info-title-multiline'"></div>
<a class="link-preview-info-link text-graphite ellipsis" data-uie-name="link-preview-url" target="_blank" rel="nofollow noopener noreferrer"
data-bind="text: z.util.naked_url(url), attr: {href: z.util.add_http(url), title: url}"></a>
</div>
Expand All @@ -72,7 +72,7 @@ ko.components.register 'link-preview-asset',
<div class="link-preview-image-placeholder icon-link bg-color-ephemeral text-white"></div>
</div>
<div class="link-preview-info">
<div class="link-preview-info-title ephemeral-message-obfuscated" data-bind="text: z.util.StringUtil.obfuscate(preview.title), css: header ? 'link-preview-info-title-sigleline' : 'link-preview-info-title-multiline'"></div>
<div class="link-preview-info-title ephemeral-message-obfuscated" data-bind="text: z.util.StringUtil.obfuscate(preview.title), css: header ? 'link-preview-info-title-singleline' : 'link-preview-info-title-multiline'"></div>
<a class="link-preview-info-link ephemeral-message-obfuscated ellipsis" target="_blank" rel="nofollow noopener noreferrer"
data-bind="text: z.util.StringUtil.obfuscate(url)"></a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion app/style/common/common.less
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
12 changes: 8 additions & 4 deletions app/style/components/asset/link-preview-asset.less
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@
*
*/

// variables
@link-preview-height: 88px;

link-preview-asset {
.asset-container-style;
cursor: pointer;
width: 100%;
}

.link-preview-image-container {
.square(88px);
.square(@link-preview-height);
background-color: fade(@graphite, 24%);
flex: 0 0 auto;
}
Expand All @@ -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;
}

Expand All @@ -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;
}
Expand Down
3 changes: 1 addition & 2 deletions app/style/components/asset/location-asset.less
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@
}

.location-asset-title {
.label-bold;
font-size: @font-size-sm;
font-weight: @font-weight-bold;
}

0 comments on commit ab07493

Please sign in to comment.