continue to build frontpage
This commit is contained in:
@@ -101,6 +101,20 @@ function materio_home_entity_bundle_field_info(EntityTypeInterface $entity_type,
|
||||
return $fields;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Implement hook_entity_base_field_info_alter().
|
||||
*
|
||||
* @param $fields
|
||||
* @param EntityTypeInterface $entity_type
|
||||
*/
|
||||
|
||||
function materio_home_entity_base_field_info_alter(&$fields, EntityTypeInterface $entity_type) {
|
||||
if ($entity_type->id() == 'node') {
|
||||
if (isset($fields['title'])) {
|
||||
$fields['title']->setDisplayConfigurable('view', TRUE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implement hook_cron().
|
||||
|
File diff suppressed because one or more lines are too long
@@ -126,3 +126,36 @@ header[role="banner"]{
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
aside.messages{
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
// front
|
||||
article.node--type-frontpage{
|
||||
.node__content{
|
||||
.field--name-field-what-is-materio,
|
||||
.field--name-field-a-database,
|
||||
.field--name-field-showrooms,
|
||||
.field--name-field-blabla,
|
||||
.field--name-field-pricing{
|
||||
&:not(:nth-child(1)){
|
||||
margin-top: 1em;
|
||||
}
|
||||
.field__label{
|
||||
font-size: 2.2em;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.field--name-computed-materials-reference,
|
||||
.field--name-computed-showrooms-reference,
|
||||
.field--name-computed-articles-reference{
|
||||
.field__item{
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
max-width:250px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user