mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-26 06:04:46 +00:00
use more of the vue selector in gotmpl selectors
This commit is contained in:
parent
f015c00ecb
commit
727a386453
4 changed files with 32 additions and 56 deletions
|
@ -39,21 +39,13 @@
|
||||||
<i class="icon">{{svg "octicon-filter" 16}}</i>
|
<i class="icon">{{svg "octicon-filter" 16}}</i>
|
||||||
<input name="search" placeholder="{{ctx.Locale.Tr "repo.filter_branch_and_tag"}}...">
|
<input name="search" placeholder="{{ctx.Locale.Tr "repo.filter_branch_and_tag"}}...">
|
||||||
</div>
|
</div>
|
||||||
<div class="header">
|
<div class="branch-tag-tab">
|
||||||
<div class="ui grid">
|
<a class="reference column branch-tag-item text black" href="#" data-target=".base-branch-list">
|
||||||
<div class="two column row">
|
{{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}}
|
||||||
<a class="reference column" href="#" data-target=".base-branch-list">
|
</a>
|
||||||
<span class="text black">
|
<a class="reference column branch-tag-item text black" href="#" data-target=".base-tag-list">
|
||||||
{{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}}
|
{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}}
|
||||||
</span>
|
</a>
|
||||||
</a>
|
|
||||||
<a class="reference column" href="#" data-target=".base-tag-list">
|
|
||||||
<span class="text black">
|
|
||||||
{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}}
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="scrolling menu reference-list-menu base-branch-list">
|
<div class="scrolling menu reference-list-menu base-branch-list">
|
||||||
{{range .Branches}}
|
{{range .Branches}}
|
||||||
|
@ -108,21 +100,13 @@
|
||||||
<i class="icon">{{svg "octicon-filter" 16}}</i>
|
<i class="icon">{{svg "octicon-filter" 16}}</i>
|
||||||
<input name="search" placeholder="{{ctx.Locale.Tr "repo.filter_branch_and_tag"}}...">
|
<input name="search" placeholder="{{ctx.Locale.Tr "repo.filter_branch_and_tag"}}...">
|
||||||
</div>
|
</div>
|
||||||
<div class="header">
|
<div class="branch-tag-tab">
|
||||||
<div class="ui grid">
|
<a class="reference column branch-tag-item text black" href="#" data-target=".head-branch-list">
|
||||||
<div class="two column row">
|
{{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}}
|
||||||
<a class="reference column" href="#" data-target=".head-branch-list">
|
</a>
|
||||||
<span class="text black">
|
<a class="reference column branch-tag-item text black" href="#" data-target=".head-tag-list">
|
||||||
{{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}}
|
{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}}
|
||||||
</span>
|
</a>
|
||||||
</a>
|
|
||||||
<a class="reference column" href="#" data-target=".head-tag-list">
|
|
||||||
<span class="text black">
|
|
||||||
{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}}
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="scrolling menu reference-list-menu head-branch-list">
|
<div class="scrolling menu reference-list-menu head-branch-list">
|
||||||
{{range .HeadBranches}}
|
{{range .HeadBranches}}
|
||||||
|
|
|
@ -15,21 +15,13 @@
|
||||||
<i class="icon">{{svg "octicon-filter" 16}}</i>
|
<i class="icon">{{svg "octicon-filter" 16}}</i>
|
||||||
<input name="search" placeholder="{{ctx.Locale.Tr "repo.filter_branch_and_tag"}}...">
|
<input name="search" placeholder="{{ctx.Locale.Tr "repo.filter_branch_and_tag"}}...">
|
||||||
</div>
|
</div>
|
||||||
<div class="header">
|
<div class="branch-tag-tab">
|
||||||
<div class="ui grid">
|
<a class="reference column branch-tag-item text black" href="#" data-target="#branch-list">
|
||||||
<div class="two column row">
|
{{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}}
|
||||||
<a class="reference column muted" href="#" data-target="#branch-list">
|
</a>
|
||||||
<span class="text black">
|
<a class="reference column branch-tag-item text black" href="#" data-target="#tag-list">
|
||||||
{{svg "octicon-git-branch" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.branches"}}
|
{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}}
|
||||||
</span>
|
</a>
|
||||||
</a>
|
|
||||||
<a class="reference column muted" href="#" data-target="#tag-list">
|
|
||||||
<span class="text">
|
|
||||||
{{svg "octicon-tag" 16 "tw-mr-1"}}{{ctx.Locale.Tr "repo.tags"}}
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="branch-tag-divider"></div>
|
<div class="branch-tag-divider"></div>
|
||||||
<div id="branch-list" class="scrolling menu reference-list-menu {{if not .Issue}}new-issue{{end}}">
|
<div id="branch-list" class="scrolling menu reference-list-menu {{if not .Issue}}new-issue{{end}}">
|
||||||
|
|
|
@ -1153,6 +1153,17 @@ td .commit-summary {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.branch-tag-tab {
|
||||||
|
padding: 0 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.branch-tag-item {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
|
||||||
.repository.compare.pull .comment.form .content::before,
|
.repository.compare.pull .comment.form .content::before,
|
||||||
.repository.compare.pull .comment.form .content::after {
|
.repository.compare.pull .comment.form .content::after {
|
||||||
right: 100%;
|
right: 100%;
|
||||||
|
|
|
@ -316,17 +316,6 @@ export default sfc; // activate IDE's Vue plugin
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.branch-tag-tab {
|
|
||||||
padding: 0 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.branch-tag-item {
|
|
||||||
display: inline-block;
|
|
||||||
padding: 10px;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
border-bottom: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.branch-tag-item.active {
|
.branch-tag-item.active {
|
||||||
border-color: var(--color-secondary);
|
border-color: var(--color-secondary);
|
||||||
background: var(--color-menu);
|
background: var(--color-menu);
|
||||||
|
|
Loading…
Reference in a new issue