Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
janfaracik committed Feb 21, 2024
1 parent 8d2045b commit b71dc2e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 51 deletions.
51 changes: 0 additions & 51 deletions war/src/main/scss/base/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1048,57 +1048,6 @@ select.select-ajax-pending {
display: none;
}

.alert {
font-size: var(--font-size-sm);
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: var(--form-input-border-radius);
}

.alert a {
color: inherit;
text-decoration: underline;

&:hover,
&:focus,
&:active {
text-decoration: underline;
}
}

.alert-success {
color: var(--alert-success-text-color);
background-color: var(--alert-success-bg-color);
border-color: var(--alert-success-border-color);
}

.alert-info {
color: var(--alert-info-text-color);
background-color: var(--alert-info-bg-color);
border-color: var(--alert-info-border-color);
}

.alert-warning {
color: var(--alert-warning-text-color);
background-color: var(--alert-warning-bg-color);
border-color: var(--alert-warning-border-color);
}

.alert-warning p {
color: var(--alert-warning-text-color);
}

.alert-danger {
color: var(--alert-danger-text-color);
background-color: var(--alert-danger-bg-color);
border-color: var(--alert-danger-border-color);
}

.alert-danger p {
color: var(--alert-danger-text-color);
}

body.no-decoration #main-panel {
margin: 0 auto !important;
}
Expand Down
44 changes: 44 additions & 0 deletions war/src/main/scss/components/_alert.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
.alert {
font-size: var(--font-size-sm);
padding: 1rem 1.2rem;
margin-bottom: 20px;
border-radius: 1rem;
background: color-mix(in srgb, var(--alert-background) 10%, transparent);
color: var(--alert-background);
line-height: 1.66;
text-shadow: 0 1px 1px var(--background);

&-success {
--alert-background: var(--success-color);
}

&-info {
--alert-background: var(--accent-color);
}

&-warning {
--alert-background: var(--warning-color);
}

&-danger {
--alert-background: var(--error-color);
}

strong {
font-weight: 600;
}

a {
color: inherit;
text-decoration: underline;

&:hover {
opacity: 0.75;
}

&:active,
&:focus {
opacity: 0.5;
}
}
}
1 change: 1 addition & 0 deletions war/src/main/scss/components/_index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
@use "alert";
@use "app-bar";
@use "badges";
@use "breadcrumbs";
Expand Down

0 comments on commit b71dc2e

Please sign in to comment.