Skip to content

Commit

Permalink
Move angular-wizard deps to vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilya Radchenko committed Apr 21, 2015
1 parent b626103 commit 4e466df
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/styles/libs.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@import (less) "vendor/codemirror/twilight.css";

// Angular Wizard
@import "bower_components/angular-wizard/dist/angular-wizard.less";
@import "vendor/angular-wizard/angular-wizard.less";

// Fontawesome
@import "vendor/fontawesome/font-awesome.less";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"codemirror": "./vendor/codemirror/codemirror.js",
"codemirror-shell": "./vendor/codemirror/shell.js",
"timeago": "./vendor/jquery-timeago/jquery.timeago.js",
"angular-wizard": "./bower_components/angular-wizard/dist/angular-wizard.js",
"angular-wizard": "./vendor/angular-wizard/angular-wizard.js",
"ui-codemirror": "./public/libs/ui-codemirror.js",
"ui-bootstrap": "./public/libs/ui-bootstrap.js",
"ui-sortable": "./public/libs/ui-sortable.js"
Expand Down
178 changes: 178 additions & 0 deletions vendor/angular-wizard/angular-wizard.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
.steps-indicator {
/* ---- steps quantity ---- */

@color-default: #E6E6E6;
@color-current: #808080;
@color-done: #339933;
@color-editing: #FF0000;

right: 0;
bottom: 0;
left: 0;
margin: 0;
padding: 20px 0 0 0;
height: 30px;
list-style: none;



&:before {
background-color: @color-default;
content: '';
position: absolute;
height: 1px;
}

&.steps-2:before {
left: ~'calc(100% / 2 / 2)';
right: ~'calc(100% / 2 / 2)';
}

&.steps-3:before {
left: ~'calc(100% / 3 / 2)';
right: ~'calc(100% / 3 / 2)';
}

&.steps-4:before {
left: ~'calc(100% / 4 / 2)';
right: ~'calc(100% / 4 / 2)';
}

&.steps-5:before {
left: ~'calc(100% / 5 / 2)';
right: ~'calc(100% / 5 / 2)';
}

&.steps-6:before {
left: ~'calc(100% / 6 / 2)';
right: ~'calc(100% / 6 / 2)';
}

&.steps-7:before {
left: ~'calc(100% / 7 / 2)';
right: ~'calc(100% / 7 / 2)';
}

&.steps-8:before {
left: ~'calc(100% / 8 / 2)';
right: ~'calc(100% / 8 / 2)';
}

&.steps-9:before {
left: ~'calc(100% / 9 / 2)';
right: ~'calc(100% / 9 / 2)';
}

&.steps-10:before {
left: ~'calc(100% / 10 / 2)';
right: ~'calc(100% / 10 / 2)';
}

/* --- http://www.paulirish.com/2012/box-sizing-border-box-ftw/ ---- */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}


li {
position: relative;
float: left;
margin: 0;
padding: 0;
padding-top: 10px;
text-align: center;
line-height: 15px;

a {
color: @color-current;
text-decoration: none;
text-transform: uppercase;
font-weight: bold;
transition: 0.25s;
cursor: pointer;

&:before {
position: absolute;
top: -7px;
left: calc(~"50% - 7px");
width: 14px;
height: 14px;
border-radius: 100%;
background-color: @color-default;
content: '';
transition: 0.25s;
}

&:hover {
color: darken(@color-current, 20%);
}
}
}

&.steps-2 li {
width: ~'calc(100% / 2)';
}

&.steps-3 li {
width: ~'calc(100% / 3)';
}

&.steps-4 li {
width: ~'calc(100% / 4)';
}

&.steps-5 li {
width: ~'calc(100% / 5)';
}

&.steps-6 li {
width: ~'calc(100% / 6)';
}

&.steps-7 li {
width: ~'calc(100% / 7)';
}

&.steps-8 li {
width: ~'calc(100% / 8)';
}

&.steps-9 li {
width: ~'calc(100% / 9)';
}

&.steps-10 li {
width: ~'calc(100% / 10)';
}

&.steps-11 li {
width: ~'calc(100% / 11)';
}

li.default {
pointer-events: none;

a:hover {
color: @color-current;
}
}

li.current,
li.editing {
pointer-events: none;
}

li.current a:before {
background-color: @color-current;
}

li.done a:before {
background-color: @color-done;
}

li.editing a:before {
background-color: @color-editing;
}
}

0 comments on commit 4e466df

Please sign in to comment.