File tree Expand file tree Collapse file tree 2 files changed +79
-32
lines changed Expand file tree Collapse file tree 2 files changed +79
-32
lines changed Original file line number Diff line number Diff line change 6262 td .diff {
6363 width : 4em ;
6464 }
65+ }
66+ }
6567
66- // general setup for custom radio buttons
67- label input {
68- visibility : hidden ;
69- width : 2em ;
70- height : 2em ;
68+ // custom radio icons
7169
72- & ::before {
73- cursor : pointer ;
74- visibility : visible ;
75- display : block ;
76- width : 2em ;
77- height : 2em ;
70+ .sync-dir {
71+
72+ position : relative ;
73+ cursor : pointer ;
74+ margin : 5px ;
75+ width : 15px ;
76+ height : 15px ;
77+
78+ &__input {
79+ position : absolute ;
80+ top : 0 ;
81+ right : 0 ;
82+ width : 100% ;
83+ height : 100% ;
84+ opacity : 0 ;
85+ cursor : pointer ;
86+ z-index : 1 ;
87+
88+ &-push {
89+ & :checked ~ .sync-dir__svg-push {
90+ & ::after {
91+ display : block ;
92+ content : url(pix/arrow-right-bold-circle.svg ) ;
93+ }
94+ }
95+ }
7896
79- color : @ini_text ;
80- fill : red ;
97+ &-skip {
98+ & :checked ~ .sync-dir__svg-skip {
99+ & ::after {
100+ display : block ;
101+ content : url(pix/pause-circle.svg ) ;
102+ }
81103 }
82104 }
83105
84- // custom radio icons
85- label .push input {
86- & ::before {
87- content : url(pix/arrow-right-bold-circle-outline.svg ) ;
106+ &-pull {
107+ & :checked ~ .sync-dir__svg-pull {
108+ & ::after {
109+ display : block ;
110+ content : url(pix/arrow-left-bold-circle.svg ) ;
111+ }
88112 }
89- & :checked ::before {
90- content : url(pix/arrow-right-bold-circle.svg ) ;
113+ }
114+ }
115+
116+ &__svg {
117+ position : absolute ;
118+ top : 0 ;
119+ left : 0 ;
120+ height : 100% ;
121+ width : 100% ;
122+ cursor : pointer ;
123+
124+ &-push {
125+ & ::after {
126+ display : block ;
127+ content : url(pix/arrow-right-bold-circle-outline.svg ) ;
128+ position : absolute ;
129+ top : 50% ;
130+ transform : translate (-50% , -50% );
131+ height : 70% ;
132+
91133 }
92134 }
93135
94- label .skip input {
95- & ::before {
136+ &-skip {
137+ & ::after {
138+ display : block ;
96139 content : url(pix/pause-circle-outline.svg ) ;
97- }
98- & :checked ::before {
99- content : url(pix/pause-circle.svg ) ;
140+ position : absolute ;
141+ top : 50% ;
142+ transform : translate (-50% , -50% );
143+ height : 70% ;
100144 }
101145 }
102146
103- label .pull input {
104- & ::before {
147+ &-pull {
148+ & ::after {
149+ display : block ;
105150 content : url(pix/arrow-left-bold-circle-outline.svg ) ;
106- }
107- & :checked ::before {
108- content : url(pix/arrow-left-bold-circle.svg ) ;
151+ position : absolute ;
152+ top : 50% ;
153+ transform : translate (-50% , -50% );
154+ height : 70% ;
155+
109156 }
110157 }
111158 }
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