Skip to content

Commit b222099

Browse files
authored
Merge branch 'master' into fix-13984-multiple-keys-per-input
2 parents 55935c8 + f547b27 commit b222099

File tree

5 files changed

+18
-5
lines changed

5 files changed

+18
-5
lines changed

templates/repo/issue/view_content/pull.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,8 @@
363363
{{end}}
364364
</div>
365365
</div>
366-
<div class="dib ml-3">{{$.i18n.Tr "repo.pulls.merge_instruction_hint" | Safe}}</div>
367-
<div class="instruct" style="display:none">
366+
<div class="instruct-toggle ml-3">{{$.i18n.Tr "repo.pulls.merge_instruction_hint" | Safe}}</div>
367+
<div class="instruct-content" style="display:none">
368368
<div class="ui divider"></div>
369369
<div><h3 class="di">{{$.i18n.Tr "step1"}} </h3>{{$.i18n.Tr "repo.pulls.merge_instruction_step1_desc"}}</div>
370370
<div class="ui secondary segment">

web_src/js/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,8 @@ async function initRepository() {
11201120
e.preventDefault();
11211121
$(`.${$(this).data('do')}-fields`).show();
11221122
$(this).parent().hide();
1123+
$('.instruct-toggle').hide();
1124+
$('.instruct-content').hide();
11231125
});
11241126
$('.merge-button > .dropdown').dropdown({
11251127
onChange(_text, _value, $choice) {
@@ -1133,6 +1135,7 @@ async function initRepository() {
11331135
e.preventDefault();
11341136
$(this).closest('.form').hide();
11351137
$mergeButton.parent().show();
1138+
$('.instruct-toggle').show();
11361139
});
11371140
initReactionSelector();
11381141
}
@@ -1199,7 +1202,7 @@ async function initRepository() {
11991202

12001203
function initPullRequestMergeInstruction() {
12011204
$('.show-instruction').on('click', () => {
1202-
$('.instruct').toggle();
1205+
$('.instruct-content').toggle();
12031206
});
12041207
}
12051208

web_src/less/_base.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@
101101
--color-code-bg: #ffffff;
102102
--color-markdown-code-block: #00000010;
103103
--color-secondary-bg: #f4f4f4;
104+
/* backgrounds */
105+
--checkbox-mask-checked: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 18 18" width="16" height="16"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>');
106+
--checkbox-mask-indeterminate: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"></path></svg>');
104107
}
105108

106109
:root:lang(ja) {

web_src/less/_markdown.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,16 +203,19 @@
203203
pointer-events: none;
204204
background: var(--color-text);
205205
mask-size: cover;
206+
-webkit-mask-size: cover;
206207
}
207208

208209
input[type="checkbox"]:checked::after {
209210
content: "";
210-
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 -1 18 18" width="16" height="16"><path fill-rule="evenodd" d="M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"></path></svg>');
211+
mask-image: var(--checkbox-mask-checked);
212+
-webkit-mask-image: var(--checkbox-mask-checked);
211213
}
212214

213215
input[type="checkbox"]:indeterminate::after {
214216
content: "";
215-
mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path fill-rule="evenodd" d="M2 7.75A.75.75 0 012.75 7h10a.75.75 0 010 1.5h-10A.75.75 0 012 7.75z"></path></svg>');
217+
mask-image: var(--checkbox-mask-indeterminate);
218+
-webkit-mask-image: var(--checkbox-mask-indeterminate);
216219
}
217220

218221
ul ul,

web_src/less/_repository.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,10 @@
593593
}
594594

595595
&.view.issue {
596+
.instruct-toggle {
597+
display: inline-block;
598+
}
599+
596600
.title {
597601
padding-bottom: 0 !important;
598602

0 commit comments

Comments
 (0)