-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathProcess.scss
More file actions
executable file
·128 lines (126 loc) · 3.7 KB
/
Process.scss
File metadata and controls
executable file
·128 lines (126 loc) · 3.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
///
/// Punica CSS Framework
/// Module : Process
///
@use "../../Core/Global/Getters" as *;
@use "../../Core/Global/Options" as *;
@use "../../Core/Global/Mixins" as *;
@use "../../Core/Theme/Getters" as *;
@use "../../Core/Theme/Setters" as *;
@use "mixins";
@if enabled('process') {
.#{class('process', 'name')} {
display : flex;
flex-wrap : nowrap;
width : 100%;
list-style: none;
margin : module('process', 'margin');
.#{class('process', 'item')} {
flex : 1 1 0;
position : relative;
align-items : center;
justify-content: center;
display : flex;
word-break : module('process', 'item', 'word-break');
line-height : module('process', 'item', 'line-height');
text-align : module('process', 'item', 'text-align');
min-height : module('process', 'min-height');
font-weight : module('process', 'item', 'font-weight');
font-family : module('process', 'item', 'font-family');
&:not(:first-child)::before {
content : "";
left : -50%;
position : absolute;
top : 0;
width : 100%;
background: theme('color', 'primary');
height : module('process', 'item', 'stepbar', 'height');
}
a {
color : theme('color', 'text');
display : inline-block;
padding : 10px 10px 0;
text-decoration: none;
&::before {
position : absolute;
content : "";
top : 0;
left : 50%;
background: theme('color', 'primary');
height : module('process', 'item', 'stickbar', 'height');
width : module('process', 'item', 'stickbar', 'width');
z-index : 1;
}
&:first-child::before {
left: calc(50% - (#{variables('process', 'item', 'stickbar', 'width')} - 1px));
}
}
&.#{class('process', 'failed')},
&.#{class('process', 'active')} {
a {
color : theme('color', 'primary');
font-weight: module('process', 'item', 'active', 'font-weight');
&::after {
position : absolute;
content : module('process', 'item', 'indicator', 'active');
top : calc(-15px - #{module('process', 'item', 'indicator', 'font-size')});
left : calc(50% - ((#{module('process', 'item', 'stickbar', 'width')} * 10) / 2));
color : theme('color', 'primary');
font-size: module('process', 'item', 'indicator', 'font-size');
}
}
&~.#{class('process', 'item')} {
&::before {
background: theme('border', 'color');
}
a {
color: theme('color', 'text');
&:hover {
color: theme('color', 'primary');
}
&::before {
background: theme('border', 'color');
}
}
}
}
&.#{class('process', 'failed')} {
&:not(:first-child)::before {
background: theme('color', 'error');
}
a {
color: theme('color', 'error');
&::before {
background: theme('color', 'error');
}
&::after {
content: module('process', 'item', 'indicator', 'failed');
color : theme('color', 'error');
}
}
}
}
///
/// STYLES
///
@if features('process', 'styles') {
@each $type, $bg-color in module('process', 'styles') {
&.#{$type} {
@include mixins.process-styles($bg-color);
}
}
}
///
/// VERTICAL PROCESS
///
@if features('process', 'vertical') {
&.#{class('process', 'vertical')} {
@include mixins.process-vertical();
}
}
// vertical style is also setted as "true" for mobile devices
@include breakpoints(module('grid', 'breakpoints', 'medium'), 'max-width') {
@include mixins.process-vertical();
}
}
}