File tree 2 files changed +88
-32
lines changed
2 files changed +88
-32
lines changed Original file line number Diff line number Diff line change 50
50
width : 6em ;
51
51
}
52
52
53
+ td .dir {
54
+ display : flex ;
55
+ border : none ;
56
+ padding-top : .5em ;
57
+ }
58
+
53
59
th .local ,
54
60
td .local ,
55
61
th .remote ,
62
68
td .diff {
63
69
width : 4em ;
64
70
}
71
+ }
72
+ }
65
73
66
- // general setup for custom radio buttons
67
- label input {
68
- visibility : hidden ;
69
- width : 2em ;
70
- height : 2em ;
74
+ // custom radio icons
71
75
72
- & ::before {
73
- cursor : pointer ;
74
- visibility : visible ;
75
- display : block ;
76
- width : 2em ;
77
- height : 2em ;
76
+ .sync-dir {
78
77
79
- color : @ini_text ;
80
- fill : red ;
78
+ position : relative ;
79
+ cursor : pointer ;
80
+ margin : 5px ;
81
+ width : 15px ;
82
+ height : 15px ;
83
+
84
+ &__input {
85
+ position : absolute ;
86
+ top : 0 ;
87
+ right : 0 ;
88
+ opacity : 0 ;
89
+ cursor : pointer ;
90
+ z-index : 1 ;
91
+
92
+ &-push {
93
+ & :checked ~ .sync-dir__svg-push {
94
+ & ::after {
95
+ display : block ;
96
+ content : url(pix/arrow-right-bold-circle.svg ) ;
97
+ }
81
98
}
82
99
}
83
100
84
- // custom radio icons
85
- label .push input {
86
- & ::before {
87
- content : url(pix/arrow-right-bold-circle-outline.svg ) ;
101
+ &-skip {
102
+ & :checked ~ .sync-dir__svg-skip {
103
+ & ::after {
104
+ display : block ;
105
+ content : url(pix/pause-circle.svg ) ;
106
+ }
88
107
}
89
- & :checked ::before {
90
- content : url(pix/arrow-right-bold-circle.svg ) ;
108
+ }
109
+
110
+ &-pull {
111
+ & :checked ~ .sync-dir__svg-pull {
112
+ & ::after {
113
+ display : block ;
114
+ content : url(pix/arrow-left-bold-circle.svg ) ;
115
+ }
91
116
}
92
117
}
118
+ }
93
119
94
- label .skip input {
95
- & ::before {
96
- content : url(pix/pause-circle-outline.svg ) ;
120
+ &__svg {
121
+ position : absolute ;
122
+ top : 0 ;
123
+ left : 0 ;
124
+ height : 100% ;
125
+ width : 100% ;
126
+ cursor : pointer ;
127
+
128
+ &-push {
129
+ & ::after {
130
+ display : block ;
131
+ content : url(pix/arrow-right-bold-circle-outline.svg ) ;
132
+ position : absolute ;
133
+ top : 50% ;
134
+ transform : translate (-20% ,-105% );
135
+ height : 70% ;
136
+ color : @ini_text ;
137
+ fill : red ;
97
138
}
98
- & :checked ::before {
99
- content : url(pix/pause-circle.svg ) ;
139
+ }
140
+
141
+ &-skip {
142
+ & ::after {
143
+ display : block ;
144
+ content : url(pix/pause-circle-outline.svg ) ;
145
+ position : absolute ;
146
+ top : 50% ;
147
+ transform : translate (-20% ,-105% );
148
+ height : 70% ;
149
+ color : @ini_text ;
150
+ fill : red ;
100
151
}
101
152
}
102
153
103
- label .pull input {
104
- & ::before {
154
+ &-pull {
155
+ & ::after {
156
+ display : block ;
105
157
content : url(pix/arrow-left-bold-circle-outline.svg ) ;
106
- }
107
- & :checked ::before {
108
- content : url(pix/arrow-left-bold-circle.svg ) ;
158
+ position : absolute ;
159
+ top : 50% ;
160
+ transform : translate (-20% ,-105% );
161
+ height : 70% ;
162
+ color : @ini_text ;
163
+ fill : red ;
164
+
109
165
}
110
166
}
111
167
}
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ jQuery(function () {
133
133
row ++ ;
134
134
135
135
var $html = jQuery (
136
- '<label class="push"><input / ></label>' +
137
- '<label class="skip"><input / ></label>' +
138
- '<label class="pull"><input / ></label>'
136
+ '<label class="sync-dir push"><input class="sync-dir__input sync-dir__input-push" /><span class="sync-dir__svg sync-dir__svg-push "></span ></label>' +
137
+ '<label class="sync-dir skip"><input class="sync-dir__input sync-dir__input-skip" /><span class="sync-dir__svg sync-dir__svg-skip"></span ></label>' +
138
+ '<label class="sync-dir pull"><input class="sync-dir__input sync-dir__input-pull" /><span class="sync-dir__svg sync-dir__svg-pull"></span ></label>'
139
139
) ;
140
140
var $radios = $html . find ( 'input' ) ;
141
141
$radios . attr ( {
You can’t perform that action at this time.
0 commit comments