summaryrefslogtreecommitdiff
path: root/src/assets/styles/bmc/_ibs/_alert.scss
diff options
context:
space:
mode:
authorAndrey V.Kosteltsev <AKosteltsev@IBS.RU>2022-07-04 23:11:28 +0300
committerAndrey V.Kosteltsev <AKosteltsev@IBS.RU>2022-07-04 23:11:28 +0300
commit3f4094d08b873e17464a51c817ea7d41177f848d (patch)
tree8880a0e7c8c0ac07ed298ce719cfab3278f2aa12 /src/assets/styles/bmc/_ibs/_alert.scss
parentf5c8dbfa6fb3812a3b3a2aafd3538fbdf8b8c668 (diff)
downloadwebui-vue-3f4094d08b873e17464a51c817ea7d41177f848d.tar.xz
IBS: _ibs UI Theme
Diffstat (limited to 'src/assets/styles/bmc/_ibs/_alert.scss')
-rw-r--r--src/assets/styles/bmc/_ibs/_alert.scss70
1 files changed, 70 insertions, 0 deletions
diff --git a/src/assets/styles/bmc/_ibs/_alert.scss b/src/assets/styles/bmc/_ibs/_alert.scss
new file mode 100644
index 00000000..d85e9127
--- /dev/null
+++ b/src/assets/styles/bmc/_ibs/_alert.scss
@@ -0,0 +1,70 @@
+.alert {
+ display: flex;
+ padding: $spacer;
+ border-width: 0 0 0 3px;
+ color: gray("800");
+ margin-bottom: $spacer;
+
+ &.small {
+ padding: $spacer / 2;
+ font-size: 1rem;
+ }
+
+ .close {
+ font-weight: 300;
+ opacity: 1;
+ }
+
+ .alert-icon {
+ display: inline-flex;
+ align-items: flex-start;
+ margin-right: $spacer;
+ margin-bottom: $spacer;
+
+ @include media-breakpoint-up(sm) {
+ margin-bottom: 0;
+ }
+ }
+
+ .alert-content {
+ flex: 1 1 auto;
+ }
+
+ .alert-title {
+ margin-bottom: $spacer / 2;
+ }
+
+ .alert-msg {
+ p + p {
+ margin-bottom: $spacer;
+ }
+
+ p:last-of-type {
+ margin-bottom: 0;
+ }
+ }
+
+ &.alert-info {
+ border-left-color: theme-color("info");
+ background-color: theme-color-light("info");
+ fill: theme-color("info");
+ }
+
+ &.alert-success {
+ border-left-color: theme-color("success");
+ background-color: theme-color-light("success");
+ fill: theme-color("success");
+ }
+
+ &.alert-danger {
+ border-left-color: theme-color("danger");
+ background-color: theme-color-light("danger");
+ fill: theme-color("danger");
+ }
+
+ &.alert-warning {
+ border-left-color: theme-color("warning");
+ background-color: theme-color-light("warning");
+ fill: theme-color("warning");
+ }
+}