Skip to content

Commit

Permalink
more css fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsekaean committed Dec 12, 2017
1 parent ba7da42 commit 209409d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/dist/styles/bundle.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions client/src/components/SEOEditorHolder/SEOEditorHolder.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class SEOEditorHolder extends React.Component {
FacebookImageURL: props.seodata.FacebookImageURL,
FacebookImageID: props.seodata.FacebookImageID,
TwitterImageURL: props.seodata.TwitterImageURL,
TwitterImageID: props.seodata.TwitterImageID
TwitterImageID: props.seodata.TwitterImageID,
HostName: props.seodata.HostName
};
}

Expand Down Expand Up @@ -166,16 +167,15 @@ class SEOEditorHolder extends React.Component {
</div>
<h3>{this.state.FacebookTitle}</h3>
<p className="preview-description">{this.state.FacebookDescription}</p>
<p className="preview-link">{this.state.Link}</p>
<p className="preview-link">{this.state.HostName}</p>
</div>
</div>
</div>
</div>

<div className={`seo-tab ${this.state.CurrentTab === 'twitter' ? 'active' : ''}`} data-tab="twitter">

<h3 className="seo-tab__title">Twitter</h3>
<div className="seo-section">
<h3 className="seo-tab__title">Twitter</h3>
<div className="fields">
<SEOInput
label="Twitter Title"
Expand Down Expand Up @@ -208,7 +208,7 @@ class SEOEditorHolder extends React.Component {
</div>
<h3>{this.state.TwitterTitle}</h3>
<p className="preview-description">{this.state.TwitterDescription}</p>
<p className="preview-link">{this.state.Link}</p>
<p className="preview-link">{this.state.HostName}</p>
</div>
</div>
</div>
Expand Down
15 changes: 11 additions & 4 deletions client/src/styles/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,35 +135,42 @@
}

.preview-card.twitter {
max-width: 506px;
width: 100%;
width: 456px;
border-radius: .42857em;
border-width: 1px;
border-style: solid;
border-color: #E1E8ED;
box-sizing: border-box;
color: inherit!important;
overflow: hidden;
padding: 0;

.preview-card--image {
padding-top: (230/458)*100%;
margin-bottom: 10px;
}

.preview-contents {
padding: 10px;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
line-height: 1.3em;
padding: 0;
}

h3 {
font-size: 14px;
color: black;
font-weight: bold;
padding: 0 14px;
}

.preview-description {
margin: 0;
padding: 0 14px;
}

.preview-link {
margin: 0;
padding: 0;
padding: 0 14px;
color: #8899A6;
border: 0;
}
Expand Down
2 changes: 2 additions & 0 deletions src/Extensions/SEODataExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use SilverStripe\Assets\Image;
use SilverStripe\CMS\Model\SiteTree;
use SilverStripe\Control\ContentNegotiator;
use SilverStripe\Control\Director;
use SilverStripe\Core\Config\Config;
use SilverStripe\Forms\FieldList;
use SilverStripe\i18n\i18n;
Expand Down Expand Up @@ -51,6 +52,7 @@ public function updateCMSFields(FieldList $fields)
public function SEOData()
{
return [
'HostName' => Director::host(),
'MetaTitle' => $this->owner->MetaTitle,
'MetaDescription' => $this->owner->MetaDescription,
'FacebookTitle' => $this->owner->FacebookTitle,
Expand Down

0 comments on commit 209409d

Please sign in to comment.