Skip to content

Commit

Permalink
Fix card header margins
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuang11 committed Apr 1, 2024
1 parent 6b40582 commit c9be2bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
9 changes: 3 additions & 6 deletions panel/styles/models/card.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
border-radius: 0.25rem;
display: inline-flex;
justify-content: start;
left: 0;
outline: unset;
position: sticky;
width: 100%;
padding-inline: 0.5em;
}

.accordion-header {
Expand All @@ -37,20 +37,17 @@
display: flex;
justify-content: start;
position: sticky;
left: 0;
width: 100%;
}

.card-button {
background-color: transparent;
margin-left: 0.5em;
margin-right: 0.5em;
margin-left: 0em;
margin-right: 0.25em;
}

.card-header-row {
margin-left: auto 1em;
position: relative !important;
max-width: calc(100% - 2em);
}

.card-title {
Expand Down
8 changes: 0 additions & 8 deletions panel/theme/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,6 @@ button.accordion-header {
border-radius: 0;
}

:host(.card-header-row) .card-title {
margin: 0;
}

.card-header > .card-header-row {
margin-left: 15px;
}

:host(.card-title) h1,
:host(.card-title) h2,
:host(.card-title) h3,
Expand Down
4 changes: 0 additions & 4 deletions panel/theme/css/material.css
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
padding: 0px 6px;
}

.card-header > .card-header-row {
margin-left: 15px;
}

button.mdc-button.mdc-card-button {
color: transparent;
height: 50px;
Expand Down

0 comments on commit c9be2bc

Please sign in to comment.