Skip to content

Commit

Permalink
Closes #916 — Restore the Barrio node__content margin-top, override i…
Browse files Browse the repository at this point in the history
…t on az_flexible_page. (#921)
  • Loading branch information
mmunro-ltrr authored and joeparsons committed Jul 14, 2021
1 parent 1d7167f commit bc944f2
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
az_flexible_page_form:
css:
base:
css/az-flexible-page-edit-form.css: {}
css/az-flexible-page-edit-form.css: {}
az_flexible_page_theme:
css:
layout:
css/az_flexible_page.theme.css: {}
7 changes: 7 additions & 0 deletions modules/custom/az_flexible_page/az_flexible_page.module
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Entity\EntityFormInterface;

/**
* Implements hook_preprocess_node().
*/
function az_flexible_page_preprocess_node__az_flexible_page(&$variables) {
$variables['#attached']['library'][] = 'az_flexible_page/az_flexible_page_theme';
}

/**
* Implements hook_form_alter().
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Page-specific overrides to the theme defaults.
*/

.node__content {
/* Remove extra space at the top of content. */
margin-top: 0;
}

7 changes: 7 additions & 0 deletions themes/custom/az_barrio/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ span.field-label {
background-color: transparent;
}

/**
* General node styles (replacing Bootstrap Barrio node.css).
*/
.node__content {
margin-top: 10px;
}

/**
* Unpublished note.
*/
Expand Down

0 comments on commit bc944f2

Please sign in to comment.