Skip to content

Commit c626854

Browse files
committed
Tagsinput, switch, checkbox/radio fix for IE8
1 parent 492e351 commit c626854

4 files changed

Lines changed: 39 additions & 18 deletions

File tree

‎css/flat-ui.css‎

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1503,7 +1503,7 @@ fieldset[disabled] .form-control + .input-icon,
15031503
top: 0;
15041504
width: 20px;
15051505
text-align: center;
1506-
line-height: 20px;
1506+
line-height: 21px;
15071507
font-size: 20px;
15081508
cursor: pointer;
15091509
-webkit-transition: color 0.25s linear;
@@ -1512,13 +1512,15 @@ fieldset[disabled] .form-control + .input-icon,
15121512
transition: color 0.25s linear;
15131513
-webkit-backface-visibility: hidden;
15141514
}
1515-
.checkbox .icons .first-icon-icon,
1516-
.radio .icons .first-icon-icon,
1515+
.checkbox .icons .first-icon,
1516+
.radio .icons .first-icon,
15171517
.checkbox .icons .second-icon,
15181518
.radio .icons .second-icon {
1519+
display: inline-table;
15191520
position: absolute;
15201521
left: 0;
15211522
top: 0;
1523+
background-color: #ffffff;
15221524
opacity: 1;
15231525
filter: alpha(opacity=100);
15241526
}
@@ -1527,6 +1529,15 @@ fieldset[disabled] .form-control + .input-icon,
15271529
opacity: 0;
15281530
filter: alpha(opacity=0);
15291531
}
1532+
.checkbox:hover,
1533+
.radio:hover {
1534+
color: #bdc3c7;
1535+
-webkit-transition: color 0.25s linear;
1536+
-moz-transition: color 0.25s linear;
1537+
-o-transition: color 0.25s linear;
1538+
transition: color 0.25s linear;
1539+
-webkit-backface-visibility: hidden;
1540+
}
15301541
.checkbox:hover .first-icon,
15311542
.radio:hover .first-icon {
15321543
opacity: 0;
@@ -1541,17 +1552,19 @@ fieldset[disabled] .form-control + .input-icon,
15411552
.radio.checked {
15421553
color: #16a085;
15431554
}
1544-
.checkbox.checked .icons,
1545-
.radio.checked .icons {
1546-
color: #1abc9c;
1547-
}
15481555
.checkbox.checked .first-icon,
15491556
.radio.checked .first-icon {
15501557
opacity: 0;
15511558
filter: alpha(opacity=0);
15521559
}
15531560
.checkbox.checked .second-icon,
15541561
.radio.checked .second-icon {
1562+
color: #16a085;
1563+
-webkit-transition: color 0.25s linear;
1564+
-moz-transition: color 0.25s linear;
1565+
-o-transition: color 0.25s linear;
1566+
transition: color 0.25s linear;
1567+
-webkit-backface-visibility: hidden;
15551568
opacity: 1;
15561569
filter: alpha(opacity=100);
15571570
}
@@ -1585,6 +1598,7 @@ fieldset[disabled] .form-control + .input-icon,
15851598
}
15861599
.checkbox.disabled.checked .second-icon,
15871600
.radio.disabled.checked .second-icon {
1601+
color: #e6e8ea;
15881602
opacity: 1;
15891603
filter: alpha(opacity=100);
15901604
}
@@ -1701,6 +1715,7 @@ fieldset[disabled] .form-control + .input-icon,
17011715
.not_valid {
17021716
background: #fbd8db !important;
17031717
color: #90111a !important;
1718+
margin-left: 5px !important;
17041719
}
17051720
.progress {
17061721
background: #ebedef;
@@ -2268,7 +2283,7 @@ fieldset[disabled] .form-control + .input-icon,
22682283
cursor: default !important;
22692284
}
22702285
.has-switch > div {
2271-
width: 162%;
2286+
width: 130px;
22722287
position: relative;
22732288
top: 0;
22742289
}
@@ -2280,7 +2295,7 @@ fieldset[disabled] .form-control + .input-icon,
22802295
-webkit-backface-visibility: hidden;
22812296
}
22822297
.has-switch > div.switch-off {
2283-
left: -63%;
2298+
left: -50px;
22842299
}
22852300
.has-switch > div.switch-off label {
22862301
background-color: #7f8c9a;
@@ -2290,7 +2305,7 @@ fieldset[disabled] .form-control + .input-icon,
22902305
box-shadow: -1px 0 0 rgba(255, 255, 255, 0.5);
22912306
}
22922307
.has-switch > div.switch-on {
2293-
left: 0%;
2308+
left: 0;
22942309
}
22952310
.has-switch > div.switch-on label {
22962311
background-color: #1abc9c;

‎less/modules/checkbox-and-radio.less‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,18 @@
2525
top: 0;
2626
width: 20px;
2727
text-align: center;
28-
line-height: 20px;
28+
line-height: 21px;
2929
font-size: 20px;
3030
cursor: pointer;
3131
.transition(color .25s linear);
3232

33-
.first-icon-icon,
33+
.first-icon,
3434
.second-icon {
35+
display: inline-table;
3536
position: absolute;
3637
left: 0;
3738
top: 0;
39+
background-color: @inverse;
3840
.opacity(100);
3941
}
4042
.second-icon {
@@ -47,6 +49,9 @@
4749

4850
// Hover State
4951
&:hover {
52+
color: @lightgray;
53+
.transition(color .25s linear);
54+
5055
.first-icon {
5156
.opacity(0);
5257
}
@@ -59,13 +64,12 @@
5964
&.checked {
6065
color: @link-color;
6166

62-
.icons {
63-
color: @firm;
64-
}
6567
.first-icon {
6668
.opacity(0);
6769
}
6870
.second-icon {
71+
color: @link-color;
72+
.transition(color .25s linear);
6973
.opacity(100);
7074
}
7175
}
@@ -92,6 +96,7 @@
9296
.opacity(0);
9397
}
9498
.second-icon {
99+
color: mix(@lightgray, white, 38%);
95100
.opacity(100);
96101
}
97102
}

‎less/modules/switch.less‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
}
3030

3131
> div {
32-
width: 162%;
32+
width: 130px;
3333
position: relative;
3434
top: 0;
3535

@@ -38,7 +38,7 @@
3838
}
3939

4040
&.switch-off {
41-
left: -63%;
41+
left: -50px;
4242

4343
label {
4444
background-color: mix(@base, white, 63%);
@@ -48,7 +48,7 @@
4848
}
4949

5050
&.switch-on {
51-
left: 0%;
51+
left: 0;
5252

5353
label {
5454
background-color: @firm;

‎less/modules/tagsinput.less‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,5 @@
113113
.not_valid {
114114
background: #fbd8db !important;
115115
color: #90111a !important;
116+
margin-left: 5px !important;
116117
}

0 commit comments

Comments
 (0)