Skip to content

Commit

Permalink
feat: incorrect margin on alerts (#431)
Browse files Browse the repository at this point in the history
* feat: added margin bottom to alert

* fix: removed duplicate margin-bottom for alert

* feat: added flex and spacing
  • Loading branch information
Arne Vandoorslaer authored Aug 18, 2021
1 parent be9d425 commit 241e08e
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
3 changes: 3 additions & 0 deletions packages/solid-crs-components/lib/alerts/alert.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export class AlertComponent extends LitElement {
return [
unsafeCSS(Theme),
css`
:host {
margin-bottom: var(--gap-large);
}
.alert {
padding: var(--gap-normal) var(--gap-small);
display: flex;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,8 @@ export class CollectionRootComponent extends RxLitElement {
padding: var(--gap-large);
height: 100%;
overflow-y: auto;
display:flex;
flex-direction: column;
}
nde-progress-bar {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export class ObjectRootComponent extends RxLitElement {
margin-top: 1px;
display: flex;
flex-direction: row;
height: 1px;
height: 1px;
flex: 1 1;
}
.content {
Expand All @@ -499,7 +499,11 @@ export class ObjectRootComponent extends RxLitElement {
overflow-x: clip;
display: flex;
flex-direction: column;
gap: var(--gap-large);
display:flex;
flex-direction: column;
}
.content > *:not(:last-child) {
margin-bottom: var(--gap-large);
}
nde-progress-bar {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,6 @@ export class AboutRootComponent extends RxLitElement {
flex-direction: column;
height: 100%;
}
nde-alert {
margin-bottom: var(--gap-large);
}
.content {
margin: 0 var(--gap-large);
margin-top: 41px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,6 @@ export class CollectionRootComponent extends RxLitElement {
flex-direction: column;
height: 100%;
}
nde-alert {
margin-bottom: var(--gap-large);
}
.content {
margin-top: 1px;
padding: var(--gap-large);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,6 @@ export class ObjectRootComponent extends RxLitElement {
height: 100%;
width: 100%;
}
nde-alert {
margin-bottom: var(--gap-large);
}
#info-popup {
height: auto;
width: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,6 @@ export class SearchRootComponent extends RxLitElement {
flex-direction: column;
height: 100%;
}
nde-alert {
margin-bottom: var(--gap-large);
}
.content {
margin-top: 1px;
padding: var(--gap-large);
Expand Down

0 comments on commit 241e08e

Please sign in to comment.