Skip to content

Commit

Permalink
CiviCRM further styling for details elements.
Browse files Browse the repository at this point in the history
  • Loading branch information
laryn committed Sep 15, 2024
1 parent 123fd60 commit 5c9d242
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dist/css/components/gin_civicrm.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
mask-image: url("../../media/sprite.svg#civicrm-view");
}

.crm-container details.crm-accordion-bold > summary {
width: calc(100% - 18px);
}

.crm-container details.crm-accordion-bold > summary::before {
background-color: #fff;
content: "";
Expand All @@ -25,6 +29,11 @@
padding-inline-start: 1.5rem;
}

.crm-container details.crm-accordion-bold > div.crm-accordion-body {
border-color: var(--gin-border-color);
padding: .75rem 1.5rem;
}

@media (min-width: 61em) {
.admin-bar body.gin--horizontal-toolbar.crm-menubar-below-cms-menu > #civicrm-menu-nav #civicrm-menu.sm-civicrm {
height: 40px;
Expand Down
7 changes: 7 additions & 0 deletions styles/components/gin_civicrm.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
.crm-container {
details.crm-accordion-bold {
> summary {
width: calc(100% - 18px);


&::before {
// Hard-coding white for now since CiviCRM background is dark.
Expand All @@ -25,6 +27,11 @@
padding-inline-start: 1.5rem;
}
}

> div.crm-accordion-body {
border-color: var(--gin-border-color);
padding: .75rem 1.5rem;
}
}
}

Expand Down

0 comments on commit 5c9d242

Please sign in to comment.