From be74a51d9f33895b9532d1a26b42a17eddec551e Mon Sep 17 00:00:00 2001 From: Alex Liebowitz Date: Fri, 20 May 2016 06:01:17 -0400 Subject: [PATCH] Streamline featured content styles; spacing tweaks --- js/page/home.js | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/js/page/home.js b/js/page/home.js index 0b9a37586..17c9d085a 100644 --- a/js/page/home.js +++ b/js/page/home.js @@ -118,25 +118,20 @@ var SearchResultRow = React.createClass({ var featuredContentItemStyle = { fontSize: '0.95em', marginBottom: '10px', -}, featuredContentItemInfoColumnStyle = { - position: 'relative', - left: '26px', }, featuredContentItemImgStyle = { maxHeight: '90px', display: 'block', marginLeft: 'auto', marginRight: 'auto', + marginTop: '5px', float: 'left', }, featuredContentItemDescriptionStyle = { color: '#444', marginBottom: '5px', fontSize: '0.9em', - width: '250px', }, featuredContentItemCostStyle = { display: 'block', float: 'right', - position: 'relative', - left: '-35px', fontSize: '0.95em', }; @@ -166,29 +161,27 @@ var FeaturedContentItem = React.createClass({ var metadata = this.state.metadata; - return (
-
- {'Photo -
-
-

{this.state.title}

-

{metadata.description}

-
- - { ' ' } - -
+ return ( +
+
+ {'Photo
-
-
); +
+

{this.state.title}

+

{metadata.description}

+
+ + { ' ' } + +
+
+
+
); } }); var featuredContentStyle = { width: '100%', -}, -featuredContentColsStyle = { - marginLeft: '0px', }; var FeaturedContent = React.createClass({ @@ -196,12 +189,12 @@ var FeaturedContent = React.createClass({ return (

Featured content

-
+
{/* When ready, change to one/two/three/four/five/six */}
-
+