Skip to content

Commit 3fa0ea5

Browse files
committed
Updated Core version; Added toast styles
1 parent 3dce425 commit 3fa0ea5

File tree

4 files changed

+122
-4
lines changed

4 files changed

+122
-4
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@types/react": "16.9.11",
2727
"@types/react-dom": "16.9.3",
2828
"@types/react-router-dom": "5.1.5",
29-
"andculturecode-javascript-core": "0.1.4",
29+
"andculturecode-javascript-core": "0.1.5",
3030
"andculturecode-javascript-react": "0.1.0",
3131
"andculturecode-scss-grid": "2.0.4",
3232
"axios": "0.19.2",

src/assets/scss/6-components/atoms/__atoms.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
@import "radios";
99
@import "selects";
1010
@import "text-input-icon";
11+
@import "toast";
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
.c-toast {
2+
padding-top: 0;
3+
padding-bottom: 0;
4+
5+
.Toastify__toast-body {
6+
margin-top: 8px;
7+
margin-bottom: 8px;
8+
}
9+
10+
&.Toastify__toast {
11+
@include font-style();
12+
border-radius: $border-radius-small;
13+
border-width: 1px;
14+
border-style: solid;
15+
box-shadow: none;
16+
min-height: 1px;
17+
18+
.c-toast-content {
19+
display: flex;
20+
21+
&__icon-container {
22+
&__icon {
23+
vertical-align: middle;
24+
margin-right: 8px;
25+
}
26+
}
27+
28+
&__body {
29+
padding-top: 3px;
30+
}
31+
}
32+
33+
.Toastify__progress-bar {
34+
filter: alpha(0.5);
35+
}
36+
37+
&--success {
38+
background-color: get-color-status("success-light");
39+
color: get-color-status("success-dark");
40+
border-color: get-color-status("success");
41+
42+
.Toastify__progress-bar {
43+
background-color: get-color-status("success");
44+
}
45+
46+
.c-toast-content {
47+
&__icon-container {
48+
&__icon {
49+
path {
50+
fill: get-color-status("success");
51+
}
52+
}
53+
}
54+
}
55+
}
56+
57+
&--error {
58+
background-color: get-color-status("error-light");
59+
color: get-color-status("error-dark");
60+
border-color: get-color-status("error");
61+
62+
.Toastify__progress-bar {
63+
background-color: get-color-status("error");
64+
}
65+
66+
.c-toast-content {
67+
&__icon-container {
68+
&__icon {
69+
path {
70+
fill: get-color-status("error");
71+
}
72+
}
73+
}
74+
}
75+
}
76+
77+
&--warning {
78+
background-color: get-color-status("warning-light");
79+
color: get-color-status("warning-dark");
80+
border-color: get-color-status("warning");
81+
82+
.Toastify__progress-bar {
83+
background-color: get-color-status("warning");
84+
}
85+
86+
.c-toast-content {
87+
&__icon-container {
88+
&__icon {
89+
path {
90+
fill: get-color-status("warning");
91+
}
92+
}
93+
}
94+
}
95+
}
96+
97+
&--info {
98+
background-color: get-color-status("info-light");
99+
color: get-color-status("info-dark");
100+
border-color: get-color-status("info");
101+
102+
.Toastify__progress-bar {
103+
background-color: get-color-status("info");
104+
}
105+
106+
.c-toast-content {
107+
&__icon-container {
108+
&__icon {
109+
path {
110+
fill: get-color-status("info");
111+
}
112+
}
113+
}
114+
}
115+
}
116+
}
117+
}

0 commit comments

Comments
 (0)