Skip to content

Commit

Permalink
AV-2017: Fix heading margins within expander titles
Browse files Browse the repository at this point in the history
  • Loading branch information
eetumans committed Oct 11, 2023
1 parent d644c0f commit cfb7294
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
11 changes: 11 additions & 0 deletions drupal/modules/avoindata-ckeditor5-plugins/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
display: inline-block;
width: calc(100% - 45px);
}
.avoindata-expander-title h2,
.avoindata-expander-title h3,
.avoindata-expander-title h4 {
margin: 0;
}
.avoindata-expander-content {
display: none;
padding: 0 20px 15px;
Expand Down Expand Up @@ -257,6 +262,12 @@ a.external svg {
color: #2a6ebb;
display: block;
}
.ck-content .avoindata-expander .avoindata-expander-title h2,
.ck-content .avoindata-expander .avoindata-expander-title h3,
.ck-content .avoindata-expander .avoindata-expander-title h4 {
margin: 0;
margin-top: 1em;
}
.ck-content .avoindata-expander .avoindata-expander-content {
padding: 0 20px 15px;
}
Expand Down
6 changes: 6 additions & 0 deletions opendata-assets/src/less/drupal/custom-elements.less
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
padding: 20px 0 20px 20px;
display: inline-block;
width: calc(100% - 45px);

h2,
h3,
h4 {
margin: 0;
}
}

.avoindata-expander-content {
Expand Down
10 changes: 9 additions & 1 deletion opendata-assets/src/less/drupal/editor.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,21 @@
border: 1px solid #ecedee;
margin: 0;

.avoindata-expander-title {

.avoindata-expander-title {
font-size: 18px;
font-weight: 600;
line-height: 27px;
padding: 0 20px 5px;
color: #2a6ebb;
display: block;

h2,
h3,
h4 {
margin: 0;
margin-top: 1em;
}
}

.avoindata-expander-content {
Expand Down

0 comments on commit cfb7294

Please sign in to comment.