Speaker profile tweaks

This commit is contained in:
Rob Davies 2017-05-26 10:05:19 +01:00
parent 564149e6d8
commit 7e86175a11
11 changed files with 64 additions and 15 deletions

View file

@ -28,23 +28,16 @@ content:
third_party_settings: { } third_party_settings: { }
region: content region: content
field_drupal_org_handle: field_drupal_org_handle:
weight: 5 weight: 4
label: inline label: inline
settings: settings:
link_to_entity: false link_to_entity: false
third_party_settings: { } third_party_settings: { }
type: string type: string
region: content region: content
field_email_address:
weight: 3
label: hidden
settings: { }
third_party_settings: { }
type: email_mailto
region: content
field_organisation: field_organisation:
weight: 2 weight: 2
label: hidden label: inline
settings: settings:
link_to_entity: false link_to_entity: false
third_party_settings: { } third_party_settings: { }
@ -60,7 +53,7 @@ content:
type: image type: image
region: content region: content
field_twitter_handle: field_twitter_handle:
weight: 4 weight: 3
label: inline label: inline
settings: settings:
link_to_entity: false link_to_entity: false
@ -68,4 +61,5 @@ content:
type: string type: string
region: content region: content
hidden: hidden:
field_email_address: true
links: true links: true

View file

@ -38,7 +38,7 @@ content:
region: content region: content
field_organisation: field_organisation:
weight: 2 weight: 2
label: hidden label: inline
settings: settings:
link_to_entity: false link_to_entity: false
third_party_settings: { } third_party_settings: { }

View file

@ -0,0 +1,24 @@
uuid: e87e5b5c-f50a-43b3-b448-18a6d12d45b4
langcode: en
status: true
dependencies:
module:
- node
id: general_content
label: 'General content'
type: 'canonical_entities:node'
pattern: '[node:content-type]/[node:title]'
selection_criteria:
ff6298b2-6b2c-4374-945f-45f55f7f3252:
id: node_type
bundles:
session: session
speaker: speaker
sponsor: sponsor
negate: false
context_mapping:
node: node
uuid: ff6298b2-6b2c-4374-945f-45f55f7f3252
selection_logic: and
weight: -5
relationships: { }

View file

@ -3,13 +3,13 @@ langcode: en
status: true status: true
dependencies: dependencies:
config: config:
- core.entity_view_mode.node.speaker_profile
- field.storage.node.body - field.storage.node.body
- field.storage.node.field_drupal_org_handle - field.storage.node.field_drupal_org_handle
- field.storage.node.field_organisation - field.storage.node.field_organisation
- field.storage.node.field_profile_picture - field.storage.node.field_profile_picture
- field.storage.node.field_twitter_handle - field.storage.node.field_twitter_handle
- image.style.speaker_profile_large - image.style.speaker_profile_large
- image.style.speaker_profile_small
- node.type.speaker - node.type.speaker
module: module:
- image - image
@ -63,7 +63,10 @@ display:
style: style:
type: default type: default
row: row:
type: fields type: 'entity:node'
options:
relationship: none
view_mode: speaker_profile
fields: fields:
title: title:
id: title id: title

View file

@ -20,7 +20,8 @@ h3 {
font-size: 1.6em; } font-size: 1.6em; }
h1, h2, h3, h4 { h1, h2, h3, h4 {
font-weight: 600; } font-weight: 600;
margin-bottom: 0.4em; }
h1, h2 { h1, h2 {
text-transform: uppercase; } text-transform: uppercase; }
@ -383,4 +384,15 @@ nav.menu--main {
.node--type-speaker .profile-info { .node--type-speaker .profile-info {
padding-left: 9em; } } padding-left: 9em; } }
.node--type-speaker.node--view-mode-speaker-profile {
margin-bottom: 2em; }
.speaker-twitter {
background: url("../images/twitter-1.png") no-repeat left center transparent;
padding: 0 10px 0 20px; }
.speaker-drupal {
background: url("../images/drop-1.png") no-repeat left center transparent;
padding: 0 10px 0 20px; }
/*# sourceMappingURL=style.css.map */ /*# sourceMappingURL=style.css.map */

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 922 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 858 B

View file

@ -27,6 +27,7 @@ h3 {
h1, h2, h3, h4 { h1, h2, h3, h4 {
font-weight: 600; font-weight: 600;
margin-bottom: 0.4em
} }
h1, h2 { h1, h2 {

View file

@ -14,4 +14,18 @@
padding-left: 9em; padding-left: 9em;
} }
} }
&.node--view-mode-speaker-profile {
margin-bottom: 2em;
}
}
.speaker-twitter {
background: url('../images/twitter-1.png') no-repeat left center transparent;
padding: 0 10px 0 20px;
}
.speaker-drupal {
background: url('../images/drop-1.png') no-repeat left center transparent;
padding: 0 10px 0 20px;
} }

View file

@ -104,6 +104,7 @@
<span class="speaker-drupal"><a href="https://www.drupal.org/u/{{ node.field_drupal_org_handle.value }}">{{ node.field_drupal_org_handle.value }}</a></span> <span class="speaker-drupal"><a href="https://www.drupal.org/u/{{ node.field_drupal_org_handle.value }}">{{ node.field_drupal_org_handle.value }}</a></span>
{% endif %} {% endif %}
</div> </div>
{{ content.field_organisation }}
{{ content.body }} {{ content.body }}
</div> </div>
</div> </div>