mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-14 00:02:41 -04:00
Compare commits
3 Commits
b45ea0280b
...
783f7ccb2c
Author | SHA1 | Date | |
---|---|---|---|
|
783f7ccb2c | ||
|
3f75fbf8fe | ||
|
4124f8ef70 |
@ -3,7 +3,7 @@
|
|||||||
{{template "repo/header" .}}
|
{{template "repo/header" .}}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
{{template "repo/sub_menu" .}}
|
{{template "repo/sub_menu" .}}
|
||||||
<div class="repo-button-row gt-df gt-ac gt-sb gt-fw gt-mb-4 gt-mt-3">
|
<div class="repo-button-row">
|
||||||
<div class="gt-df gt-ac">
|
<div class="gt-df gt-ac">
|
||||||
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
||||||
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
|
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{template "repo/sub_menu" .}}
|
{{template "repo/sub_menu" .}}
|
||||||
<div class="repo-button-row gt-df gt-ac gt-sb gt-fw">
|
<div class="repo-button-row">
|
||||||
<div class="gt-df gt-ac gt-fw gt-gap-y-3">
|
<div class="gt-df gt-ac gt-fw gt-gap-y-3">
|
||||||
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
|
||||||
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
|
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
|
||||||
@ -84,8 +84,9 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
{{if and .CanWriteCode .IsViewBranch (not .Repository.IsArchived)}}
|
{{if and .CanWriteCode .IsViewBranch (not .Repository.IsArchived)}}
|
||||||
<button class="ui basic compact dropdown jump icon button gt-mr-2"{{if not .Repository.CanEnableEditor}} disabled{{end}}>
|
<button class="ui dropdown basic compact jump button gt-mr-2"{{if not .Repository.CanEnableEditor}} disabled{{end}}>
|
||||||
<span class="text">{{.locale.Tr "repo.editor.add_file"}}</span>
|
{{.locale.Tr "repo.editor.add_file"}}
|
||||||
|
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
||||||
<div class="menu">
|
<div class="menu">
|
||||||
<a class="item" href="{{.RepoLink}}/_new/{{.BranchName | PathEscapeSegments}}/{{.TreePath | PathEscapeSegments}}">
|
<a class="item" href="{{.RepoLink}}/_new/{{.BranchName | PathEscapeSegments}}/{{.TreePath | PathEscapeSegments}}">
|
||||||
{{.locale.Tr "repo.editor.new_file"}}
|
{{.locale.Tr "repo.editor.new_file"}}
|
||||||
@ -99,7 +100,6 @@
|
|||||||
{{.locale.Tr "repo.editor.patch"}}
|
{{.locale.Tr "repo.editor.patch"}}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
|
|
||||||
</button>
|
</button>
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
{{template "repo/header" .}}
|
{{template "repo/header" .}}
|
||||||
{{$title := .title}}
|
{{$title := .title}}
|
||||||
<div class="ui container">
|
<div class="ui container">
|
||||||
<div class="repo-button-row gt-df gt-ac gt-sb gt-fw">
|
<div class="repo-button-row">
|
||||||
<div class="gt-df gt-ac">
|
<div class="gt-df gt-ac">
|
||||||
<div class="ui floating filter dropdown" data-no-results="{{.locale.Tr "repo.pulls.no_results"}}">
|
<div class="ui floating filter dropdown" data-no-results="{{.locale.Tr "repo.pulls.no_results"}}">
|
||||||
<div class="ui basic small button">
|
<div class="ui basic small button">
|
||||||
|
@ -2099,8 +2099,8 @@ a.ui.basic.label:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* if a .top.attached.header is followed by a .segment, add some margin */
|
/* if a .top.attached.header is followed by a .segment, add some margin */
|
||||||
.ui.segments ~ .ui.top.attached.header,
|
.ui.segments + .ui.top.attached.header,
|
||||||
.ui.attached.segment ~ .ui.top.attached.header {
|
.ui.attached.segment + .ui.top.attached.header {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2693,19 +2693,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.repo-button-row {
|
.repo-button-row {
|
||||||
margin-bottom: 10px;
|
margin: 10px 0;
|
||||||
}
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
.repo-button-row > * {
|
gap: 0.5em;
|
||||||
margin-top: 8px;
|
flex-wrap: wrap;
|
||||||
}
|
justify-content: space-between;
|
||||||
|
|
||||||
.wiki .repo-button-row {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.wiki .repo-button-row > * {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.repo-button-row .button {
|
.repo-button-row .button {
|
||||||
@ -2713,6 +2706,10 @@
|
|||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.repo-button-row .button.dropdown {
|
||||||
|
padding-right: 22px !important; /* normal buttons have !important paddings, so we need to override it for dropdown (Add File) icons */
|
||||||
|
}
|
||||||
|
|
||||||
.repo-button-row input {
|
.repo-button-row input {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
@ -9,3 +9,41 @@
|
|||||||
@linkHoverUnderline: underline;
|
@linkHoverUnderline: underline;
|
||||||
@variationButtonSocial: false;
|
@variationButtonSocial: false;
|
||||||
@pageOverflowX: visible;
|
@pageOverflowX: visible;
|
||||||
|
|
||||||
|
/* disable all inverted variations */
|
||||||
|
@variationAccordionInverted: false;
|
||||||
|
@variationBreadcrumbInverted: false;
|
||||||
|
@variationButtonAttached: false;
|
||||||
|
@variationButtonInverted: false;
|
||||||
|
@variationCalendarInverted: false;
|
||||||
|
@variationCardInverted: false;
|
||||||
|
@variationCheckboxInverted: false;
|
||||||
|
@variationCommentInverted: false;
|
||||||
|
@variationDimmerInverted: false;
|
||||||
|
@variationDividerInverted: false;
|
||||||
|
@variationDropdownInverted: false;
|
||||||
|
@variationFeedInverted: false;
|
||||||
|
@variationFlyoutInverted: false;
|
||||||
|
@variationFormInverted: false;
|
||||||
|
@variationGridInverted: false;
|
||||||
|
@variationHeaderInverted: false;
|
||||||
|
@variationIconInverted: false;
|
||||||
|
@variationInputInverted: false;
|
||||||
|
@variationItemInverted: false;
|
||||||
|
@variationLabelInverted: false;
|
||||||
|
@variationListInverted: false;
|
||||||
|
@variationMenuInverted: false;
|
||||||
|
@variationMessageInverted: false;
|
||||||
|
@variationModalInverted: false;
|
||||||
|
@variationNagInverted: false;
|
||||||
|
@variationPlaceholderInverted: false;
|
||||||
|
@variationPopupInverted: false;
|
||||||
|
@variationProgressInverted: false;
|
||||||
|
@variationSegmentInverted: false;
|
||||||
|
@variationSliderInverted: false;
|
||||||
|
@variationStatisticInverted: false;
|
||||||
|
@variationStepInverted: false;
|
||||||
|
@variationTableInverted: false;
|
||||||
|
@variationTextInverted: false;
|
||||||
|
@variationToastInverted: false;
|
||||||
|
@variationTransitionInverted: false;
|
||||||
|
4333
web_src/fomantic/build/semantic.css
generated
4333
web_src/fomantic/build/semantic.css
generated
File diff suppressed because it is too large
Load Diff
@ -34,6 +34,7 @@ export function attachRefIssueContextPopup(refIssues) {
|
|||||||
content: el,
|
content: el,
|
||||||
placement: 'top-start',
|
placement: 'top-start',
|
||||||
interactive: true,
|
interactive: true,
|
||||||
|
role: 'dialog',
|
||||||
interactiveBorder: 5,
|
interactiveBorder: 5,
|
||||||
onShow: () => {
|
onShow: () => {
|
||||||
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}}));
|
el.firstChild.dispatchEvent(new CustomEvent('ce-load-context-popup', {detail: {owner, repo, index}}));
|
||||||
|
@ -65,6 +65,7 @@ export function initCommitStatuses() {
|
|||||||
content: this.nextElementSibling,
|
content: this.nextElementSibling,
|
||||||
placement: top ? 'top-start' : 'bottom-start',
|
placement: top ? 'top-start' : 'bottom-start',
|
||||||
interactive: true,
|
interactive: true,
|
||||||
|
role: 'dialog',
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user