File tree Expand file tree Collapse file tree 2 files changed +88
-32
lines changed Expand file tree Collapse file tree 2 files changed +88
-32
lines changed Original file line number Diff line number Diff line change 5050 width : 6em ;
5151 }
5252
53+ td .dir {
54+ display : flex ;
55+ border : none ;
56+ padding-top : .5em ;
57+ }
58+
5359 th .local ,
5460 td .local ,
5561 th .remote ,
6268 td .diff {
6369 width : 4em ;
6470 }
71+ }
72+ }
6573
66- // general setup for custom radio buttons
67- label input {
68- visibility : hidden ;
69- width : 2em ;
70- height : 2em ;
74+ // custom radio icons
7175
72- & ::before {
73- cursor : pointer ;
74- visibility : visible ;
75- display : block ;
76- width : 2em ;
77- height : 2em ;
76+ .sync-dir {
7877
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+ }
8198 }
8299 }
83100
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+ }
88107 }
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+ }
91116 }
92117 }
118+ }
93119
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 ;
97138 }
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 ;
100151 }
101152 }
102153
103- label .pull input {
104- & ::before {
154+ &-pull {
155+ & ::after {
156+ display : block ;
105157 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+
109165 }
110166 }
111167 }
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ jQuery(function () {
133133 row ++ ;
134134
135135 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>'
139139 ) ;
140140 var $radios = $html . find ( 'input' ) ;
141141 $radios . attr ( {
You can’t perform that action at this time.
0 commit comments