From 06c278328afdb9b8c7bcc5590ebdeb330b93f431 Mon Sep 17 00:00:00 2001 From: Asaad Mahmood Date: Wed, 22 Jul 2015 22:25:27 +0500 Subject: Improving formatting for Channel Intro --- web/react/components/post_list.jsx | 18 +++++++++--------- web/sass-files/sass/partials/_headers.scss | 13 +++++++++++-- web/sass-files/sass/partials/_responsive.scss | 3 +++ 3 files changed, 23 insertions(+), 11 deletions(-) (limited to 'web') diff --git a/web/react/components/post_list.jsx b/web/react/components/post_list.jsx index a2b2ae03f..7c5d36593 100644 --- a/web/react/components/post_list.jsx +++ b/web/react/components/post_list.jsx @@ -348,8 +348,8 @@ module.exports = React.createClass({ if (ChannelStore.isDefault(channel)) { more_messages = (
-

Welcome

-

+

Beginning of {ui_name}

+

Welcome to {ui_name}!

{"This is the first channel " + strings.Team + "mates see when they"} @@ -366,27 +366,27 @@ module.exports = React.createClass({ } else if (channel.name === Constants.OFFTOPIC_CHANNEL) { more_messages = (

-

Welcome

-

+

Beginning of {ui_name}

+

{"This is the start of " + ui_name + ", a channel for conversations you’d prefer out of more focused channels."}
- Set a description

+ Set a description
); } else { var ui_type = channel.type === 'P' ? "private group" : "channel"; more_messages = (
-

Welcome

-

+

Beginning of {ui_name}

+

{ creator_name != "" ? "This is the start of the " + ui_name + " " + ui_type + ", created by " + creator_name + " on " + utils.displayDate(channel.create_at) + "." : "This is the start of the " + ui_name + " " + ui_type + ", created on "+ utils.displayDate(channel.create_at) + "." } { channel.type === 'P' ? " Only invited members can see this private group." : " Any member can join and read this channel." }
- Set a description - Invite others to this {ui_type}

+ Set a description + Invite others to this {ui_type}
); } diff --git a/web/sass-files/sass/partials/_headers.scss b/web/sass-files/sass/partials/_headers.scss index c45ffb6bf..eab4becac 100644 --- a/web/sass-files/sass/partials/_headers.scss +++ b/web/sass-files/sass/partials/_headers.scss @@ -44,14 +44,16 @@ white-space: normal; } } + } .channel-intro { padding-bottom:5px; margin: 0 1em 35px; + max-width: 850px; border-bottom: 1px solid lightgrey; .intro-links { - margin: 0.5em 1.5em 0 0; + margin: 0 1.5em 10px 0; display: inline-block; .fa { margin-right: 5px; @@ -64,8 +66,15 @@ .channel-intro-img { float:left; } - .channel-intro-title { + .channel-intro__title { font-weight:600; + font-size: 20px; + margin-bottom: 15px; + } + .channel-intro__content { + background: #f7f7f7; + padding: 10px 15px; + @include border-radius(3px); } .channel-intro-text { margin-top:35px; diff --git a/web/sass-files/sass/partials/_responsive.scss b/web/sass-files/sass/partials/_responsive.scss index b3d3cd7ea..d978886f9 100644 --- a/web/sass-files/sass/partials/_responsive.scss +++ b/web/sass-files/sass/partials/_responsive.scss @@ -89,6 +89,9 @@ max-width: 810px; } } + .channel-intro { + max-width: 810px; + } .date-separator, .new-separator { &.hovered--comment { &:before, &:after { -- cgit v1.2.3-1-g7c22