Skip to content

Commit 0285683

Browse files
Added color styles to Process Components
1 parent 84143ed commit 0285683

File tree

7 files changed

+344
-58
lines changed

7 files changed

+344
-58
lines changed

dist/punica.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6007,6 +6007,66 @@ a.label.error, .label.error {
60076007
background: #c6c6c6;
60086008
}
60096009

6010+
.process.success .item:not(:first-child)::before {
6011+
background: #2ec4b6;
6012+
}
6013+
6014+
.process.success .item a::before {
6015+
background: #2ec4b6;
6016+
}
6017+
6018+
.process.success .item.active a {
6019+
color: #2ec4b6;
6020+
}
6021+
6022+
.process.success .item.active a::after {
6023+
color: #2ec4b6;
6024+
}
6025+
6026+
.process.success .item.active ~ .item::before {
6027+
background: #c6c6c6;
6028+
}
6029+
6030+
.process.warning .item:not(:first-child)::before {
6031+
background: #de9e36;
6032+
}
6033+
6034+
.process.warning .item a::before {
6035+
background: #de9e36;
6036+
}
6037+
6038+
.process.warning .item.active a {
6039+
color: #de9e36;
6040+
}
6041+
6042+
.process.warning .item.active a::after {
6043+
color: #de9e36;
6044+
}
6045+
6046+
.process.warning .item.active ~ .item::before {
6047+
background: #c6c6c6;
6048+
}
6049+
6050+
.process.error .item:not(:first-child)::before {
6051+
background: #d62828;
6052+
}
6053+
6054+
.process.error .item a::before {
6055+
background: #d62828;
6056+
}
6057+
6058+
.process.error .item.active a {
6059+
color: #d62828;
6060+
}
6061+
6062+
.process.error .item.active a::after {
6063+
color: #d62828;
6064+
}
6065+
6066+
.process.error .item.active ~ .item::before {
6067+
background: #c6c6c6;
6068+
}
6069+
60106070
.process.vertical {
60116071
display: -webkit-box;
60126072
display: -ms-flexbox;

dist/punica.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/components/process.html

Lines changed: 247 additions & 56 deletions
Large diffs are not rendered by default.

docs/css/punica.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Components/Process/Process.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ PUNICA CSS > COMPONENTS : CARD ***********************/
8181
}
8282
}
8383
}
84+
@each $type, $bg-color in $process-styles {
85+
&.#{$type} {
86+
@include process-styles($bg-color);
87+
}
88+
}
8489
&.#{$process-vertical} {
8590
@include process-vertical();
8691
}

src/Components/Process/mixins.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
/********************************************************
22
PUNICA CSS > COMPONENTS : PROCESS > MIXINS **************/
3+
@mixin process-styles($color: $primary-color) {
4+
.#{$process-item} {
5+
&:not(:first-child)::before {
6+
background: $color;
7+
}
8+
a {
9+
&::before {
10+
background: $color;
11+
}
12+
}
13+
&.#{$process-active} {
14+
a {
15+
color: $color;
16+
&::after {
17+
color: $color;
18+
}
19+
}
20+
&~.#{$process-item} {
21+
&::before {
22+
background: $main-border-color;
23+
}
24+
}
25+
}
26+
}
27+
}
328
@mixin process-vertical() {
429
display: flex;
530
padding: $timeline-padding;

src/Components/Process/variables.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ $process-name : 'process';
77
$process-item : 'item';
88
$process-active : 'active';
99
$process-vertical : 'vertical';
10+
$process-styles : (
11+
"success": $success-color,
12+
"warning": $warning-color,
13+
"error": $error-color,
14+
);
1015

1116
$process-item-min-width : 150px;
1217
$process-margin : 1em 0 5em;

0 commit comments

Comments
 (0)