Skip to content

Commit 4e466df

Browse files
author
Ilya Radchenko
committed
Move angular-wizard deps to vendor
1 parent b626103 commit 4e466df

File tree

3 files changed

+180
-2
lines changed

3 files changed

+180
-2
lines changed

client/styles/libs.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@import (less) "vendor/codemirror/twilight.css";
88

99
// Angular Wizard
10-
@import "bower_components/angular-wizard/dist/angular-wizard.less";
10+
@import "vendor/angular-wizard/angular-wizard.less";
1111

1212
// Fontawesome
1313
@import "vendor/fontawesome/font-awesome.less";

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"codemirror": "./vendor/codemirror/codemirror.js",
2929
"codemirror-shell": "./vendor/codemirror/shell.js",
3030
"timeago": "./vendor/jquery-timeago/jquery.timeago.js",
31-
"angular-wizard": "./bower_components/angular-wizard/dist/angular-wizard.js",
31+
"angular-wizard": "./vendor/angular-wizard/angular-wizard.js",
3232
"ui-codemirror": "./public/libs/ui-codemirror.js",
3333
"ui-bootstrap": "./public/libs/ui-bootstrap.js",
3434
"ui-sortable": "./public/libs/ui-sortable.js"
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
.steps-indicator {
2+
/* ---- steps quantity ---- */
3+
4+
@color-default: #E6E6E6;
5+
@color-current: #808080;
6+
@color-done: #339933;
7+
@color-editing: #FF0000;
8+
9+
right: 0;
10+
bottom: 0;
11+
left: 0;
12+
margin: 0;
13+
padding: 20px 0 0 0;
14+
height: 30px;
15+
list-style: none;
16+
17+
18+
19+
&:before {
20+
background-color: @color-default;
21+
content: '';
22+
position: absolute;
23+
height: 1px;
24+
}
25+
26+
&.steps-2:before {
27+
left: ~'calc(100% / 2 / 2)';
28+
right: ~'calc(100% / 2 / 2)';
29+
}
30+
31+
&.steps-3:before {
32+
left: ~'calc(100% / 3 / 2)';
33+
right: ~'calc(100% / 3 / 2)';
34+
}
35+
36+
&.steps-4:before {
37+
left: ~'calc(100% / 4 / 2)';
38+
right: ~'calc(100% / 4 / 2)';
39+
}
40+
41+
&.steps-5:before {
42+
left: ~'calc(100% / 5 / 2)';
43+
right: ~'calc(100% / 5 / 2)';
44+
}
45+
46+
&.steps-6:before {
47+
left: ~'calc(100% / 6 / 2)';
48+
right: ~'calc(100% / 6 / 2)';
49+
}
50+
51+
&.steps-7:before {
52+
left: ~'calc(100% / 7 / 2)';
53+
right: ~'calc(100% / 7 / 2)';
54+
}
55+
56+
&.steps-8:before {
57+
left: ~'calc(100% / 8 / 2)';
58+
right: ~'calc(100% / 8 / 2)';
59+
}
60+
61+
&.steps-9:before {
62+
left: ~'calc(100% / 9 / 2)';
63+
right: ~'calc(100% / 9 / 2)';
64+
}
65+
66+
&.steps-10:before {
67+
left: ~'calc(100% / 10 / 2)';
68+
right: ~'calc(100% / 10 / 2)';
69+
}
70+
71+
/* --- http://www.paulirish.com/2012/box-sizing-border-box-ftw/ ---- */
72+
* {
73+
-webkit-box-sizing: border-box;
74+
-moz-box-sizing: border-box;
75+
box-sizing: border-box;
76+
}
77+
78+
79+
li {
80+
position: relative;
81+
float: left;
82+
margin: 0;
83+
padding: 0;
84+
padding-top: 10px;
85+
text-align: center;
86+
line-height: 15px;
87+
88+
a {
89+
color: @color-current;
90+
text-decoration: none;
91+
text-transform: uppercase;
92+
font-weight: bold;
93+
transition: 0.25s;
94+
cursor: pointer;
95+
96+
&:before {
97+
position: absolute;
98+
top: -7px;
99+
left: calc(~"50% - 7px");
100+
width: 14px;
101+
height: 14px;
102+
border-radius: 100%;
103+
background-color: @color-default;
104+
content: '';
105+
transition: 0.25s;
106+
}
107+
108+
&:hover {
109+
color: darken(@color-current, 20%);
110+
}
111+
}
112+
}
113+
114+
&.steps-2 li {
115+
width: ~'calc(100% / 2)';
116+
}
117+
118+
&.steps-3 li {
119+
width: ~'calc(100% / 3)';
120+
}
121+
122+
&.steps-4 li {
123+
width: ~'calc(100% / 4)';
124+
}
125+
126+
&.steps-5 li {
127+
width: ~'calc(100% / 5)';
128+
}
129+
130+
&.steps-6 li {
131+
width: ~'calc(100% / 6)';
132+
}
133+
134+
&.steps-7 li {
135+
width: ~'calc(100% / 7)';
136+
}
137+
138+
&.steps-8 li {
139+
width: ~'calc(100% / 8)';
140+
}
141+
142+
&.steps-9 li {
143+
width: ~'calc(100% / 9)';
144+
}
145+
146+
&.steps-10 li {
147+
width: ~'calc(100% / 10)';
148+
}
149+
150+
&.steps-11 li {
151+
width: ~'calc(100% / 11)';
152+
}
153+
154+
li.default {
155+
pointer-events: none;
156+
157+
a:hover {
158+
color: @color-current;
159+
}
160+
}
161+
162+
li.current,
163+
li.editing {
164+
pointer-events: none;
165+
}
166+
167+
li.current a:before {
168+
background-color: @color-current;
169+
}
170+
171+
li.done a:before {
172+
background-color: @color-done;
173+
}
174+
175+
li.editing a:before {
176+
background-color: @color-editing;
177+
}
178+
}

0 commit comments

Comments
 (0)