Skip to content

Commit 7df6658

Browse files
b245
1 parent d1ed185 commit 7df6658

File tree

6 files changed

+44
-13
lines changed

6 files changed

+44
-13
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,12 @@ Punica's API-based structure allows you to create or customize a CSS framework t
1515
* Customizable settings for every component, element, and utility
1616
* Dynamic color scale generation based on specified color variables
1717
* Simple and functional debugging
18-
* Clean and readable code structure
18+
* Clean and readable code structure
19+
20+
### TODO List
21+
- [x] Default Theme
22+
- [ ] Default Dark Theme (95%)
23+
- [ ] Documentation (80%)
24+
- [ ] API Documentation (0%)
25+
- [ ] Starter Templates (65%)
26+
- [ ] Themes (0%)

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.

src/Modules/Components/Process/Process.scss

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@
5656
left: calc(50% - (#{variables('process', 'item', 'stickbar', 'width')} - 1px));
5757
}
5858
}
59+
&.#{class('process', 'failed')},
5960
&.#{class('process', 'active')} {
6061
a {
6162
color : theme('color', 'primary');
6263
font-weight: components('process', 'item', 'active', 'font-weight');
6364
&::after {
6465
position : absolute;
65-
content : components('process', 'item', 'indicator', 'content');
66+
content : components('process', 'item', 'indicator', 'active');
6667
top : calc(-15px - #{components('process', 'item', 'indicator', 'font-size')});
6768
left : calc(50% - ((#{components('process', 'item', 'stickbar', 'width')} * 10) / 2));
6869
color : theme('color', 'primary');
@@ -84,6 +85,21 @@
8485
}
8586
}
8687
}
88+
&.#{class('process', 'failed')} {
89+
&:not(:first-child)::before {
90+
background: theme('color', 'error');
91+
}
92+
a {
93+
color: theme('color', 'error');
94+
&::before {
95+
background: theme('color', 'error');
96+
}
97+
&::after {
98+
content: components('process', 'item', 'indicator', 'failed');
99+
color : theme('color', 'error');
100+
}
101+
}
102+
}
87103
}
88104
///
89105
/// STYLES

src/Modules/Components/Process/mixins.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,13 @@
7373
height: 100%;
7474
}
7575
}
76+
&.#{class('process', 'failed')},
7677
&.#{class('process', 'active')} {
7778
a {
7879
font-weight: bold;
7980
&::after {
80-
top : 15px;
81-
left: calc(-15px - #{components('process', 'item', 'indicator', 'font-size')});
81+
top : 8px;
82+
left: calc(-3px - #{components('process', 'item', 'indicator', 'font-size')});
8283
}
8384
}
8485
}

src/Modules/Utilities/mixins.scss

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,15 @@
126126
// division of $i by $shade-step is zero
127127
@if $i % $shade-step == 0 {
128128
$percentage: $i*1%; // convert remainder to percentage
129-
.#{$prefix}#{$suffix}-darken-#{$i} {
130-
#{$property}: mix(black, $color, $percentage) $specificity;
129+
@if($color != black) {
130+
.#{$prefix}#{$suffix}-darken-#{$i} {
131+
#{$property}: mix(black, $color, $percentage) $specificity;
132+
}
131133
}
132-
.#{$prefix}#{$suffix}-lighten-#{$i} {
133-
#{$property}: mix(white, $color, $percentage) $specificity;
134+
@if($color != white) {
135+
.#{$prefix}#{$suffix}-lighten-#{$i} {
136+
#{$property}: mix(white, $color, $percentage) $specificity;
137+
}
134138
}
135139
}
136140
}

src/options.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,12 @@ $options: (
672672
'name' : 'process',
673673
'item' : 'item',
674674
'active' : 'active',
675+
'failed' : 'failed',
675676
'vertical': 'vertical',
676677
'reversed': 'reversed'
677678
),
678679
'settings': (
679-
'margin' : 3em 0,
680+
'margin' : 3em 0 1em,
680681
'min-height': 4rem, // for each item
681682
'item': (
682683
'font-weight': normal,
@@ -691,8 +692,9 @@ $options: (
691692
'height': .8rem
692693
),
693694
'indicator': (
694-
'content' : "\2756", // HTML Symbols,
695-
'font-size': 1.8rem,
695+
'active' : "\2611", // HTML Symbols
696+
'failed' : "\2612", // HTML Symbols
697+
'font-size': 2.16rem,
696698
),
697699
'active': (
698700
'font-weight': bold
@@ -815,7 +817,7 @@ $options: (
815817
),
816818
'classnames': (
817819
'name' : 'timeline',
818-
'item' : 'activity',
820+
'item' : 'item',
819821
'author' : 'author',
820822
'body' : 'body',
821823
'type' : 'type',

0 commit comments

Comments
 (0)