Skip to content

Commit

Permalink
added islandora.libraries.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shriram10567 committed Nov 10, 2022
1 parent ef1f36f commit 9b58fc9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions css/islandora.theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.container .islandora-media-items {
margin: 0;
}
5 changes: 5 additions & 0 deletions islandora.libraries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
drupal.islandora.theme_css:
version: VERSION
css:
theme:
css/islandora.theme.css: {}
4 changes: 2 additions & 2 deletions islandora.module
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,8 @@ function islandora_form_alter(&$form, FormStateInterface $form_state, $form_id)
'#theme' => 'item_list',
'#type' => 'ul',
'#items' => $media_list,
'#attributes' => ['class' => 'mylist'],
'#wrapper_attributes' => ['class' => 'container'],
'#attributes' => ['class' => ['islandora-media-items']],
'#wrapper_attributes' => ['class' => ['container']],
'#attached' => [
'library' => [
'islandora/drupal.islandora.theme_css',
Expand Down

0 comments on commit 9b58fc9

Please sign in to comment.