Skip to content

Commit

Permalink
Moved all CSS under .wizard to avoid name conflicts. Applied suggesti…
Browse files Browse the repository at this point in the history
…on to center active marker with translate-x from #6. Removed black circle hover on disabled buttons and added black circle on finished steps. Set minimal version numbers for required packages.
  • Loading branch information
drsdre committed Nov 29, 2016
1 parent 7e8f680 commit 402818d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"authors": [
{
"name": "A.F.Schuurman",
"email": "[email protected]"
"email": "andre.schuurman+yii2-wizardwidget@gmail.com"
}
],
"require": {
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*"
"yiisoft/yii2": ">=2.0.6",
"yiisoft/yii2-bootstrap": "~2.0.0"
},
"autoload": {
"psr-4": {
Expand Down
30 changes: 15 additions & 15 deletions css/wizardwidget.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@

.wizard .nav-tabs {
position: relative;
margin: 40px auto;
margin-bottom: 0;
margin: 40px auto 0 auto;
border-bottom-color: #e0e0e0;
}

.wizard > div.wizard-inner {
position: relative;
}

.connecting-line {
.wizard .connecting-line {
height: 2px;
background: #e0e0e0;
position: absolute;
Expand All @@ -33,21 +32,27 @@
border-bottom-color: transparent;
}

span.round-tab {
.wizard li span.round-tab {
width: 70px;
height: 70px;
line-height: 70px;
display: inline-block;
border-radius: 100px;
background: #fff;
border: 2px solid #e0e0e0;
border: 2px solid #000;
z-index: 2;
position: absolute;
left: 0;
text-align: center;
font-size: 25px;
}
span.round-tab i{
.wizard li.disabled span.round-tab {
border: 2px solid #e0e0e0;
}
.wizard li.disabled span.round-tab:hover {
border: 2px solid #e0e0e0;
}
.wizard li span.round-tab i{
color:#555555;
}
.wizard li.disabled span.round-tab i{
Expand All @@ -61,7 +66,7 @@ span.round-tab i{
color: #5bc0de;
}

span.round-tab:hover {
.wizard li span.round-tab:hover {
color: #333;
border: 2px solid #333;
}
Expand All @@ -74,21 +79,16 @@ span.round-tab:hover {
content: " ";
position: absolute;
left: 50%;
transform: translateX(-50%);
opacity: 0;
margin-left: -10px;
bottom: 0px;
bottom: 0;
border: 5px solid transparent;
border-bottom-color: #5bc0de;
transition: 0.1s ease-in-out;
}

.wizard li.active:after {
content: " ";
position: absolute;
left: 50%;
opacity: 1;
margin-left: -10px;
bottom: 0px;
border: 10px solid transparent;
border-bottom-color: #5bc0de;
}
Expand Down Expand Up @@ -121,7 +121,7 @@ span.round-tab:hover {
height: auto !important;
}

span.round-tab {
.wizard li span.round-tab {
font-size: 16px;
width: 50px;
height: 50px;
Expand Down

0 comments on commit 402818d

Please sign in to comment.