Skip to content

Commit 19c3b2e

Browse files
committed
margin and wiki tweaks
1 parent 6066d19 commit 19c3b2e

File tree

6 files changed

+40
-26
lines changed

6 files changed

+40
-26
lines changed

templates/repo/commits.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{{template "repo/header" .}}
44
<div class="ui container">
55
{{template "repo/sub_menu" .}}
6-
<div class="flex-button-row df ac sb fw mb-4 mt-3">
7-
<div class="df ac mt-2">
6+
<div class="repo-button-row df ac sb fw mb-4 mt-3">
7+
<div class="df ac">
88
{{template "repo/branch_dropdown" dict "root" .}}
99
<a href="{{.RepoLink}}/graph" class="ui basic small compact button">
1010
<span class="text">

templates/repo/home.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
</div>
6161
{{end}}
6262
{{template "repo/sub_menu" .}}
63-
<div class="flex-button-row df ac sb fw">
64-
<div class="df ac mt-3">
63+
<div class="repo-button-row df ac sb fw">
64+
<div class="df ac">
6565
{{template "repo/branch_dropdown" dict "root" .}}
6666
{{ $n := len .TreeNames}}
6767
{{ $l := Subtract $n 1}}
@@ -105,7 +105,7 @@
105105
<span class="ui breadcrumb repo-path"><a class="section" href="{{.RepoLink}}/src/{{.BranchNameSubURL}}" title="{{.Repository.Name}}">{{EllipsisString .Repository.Name 30}}</a>{{range $i, $v := .TreeNames}}<span class="divider">/</span>{{if eq $i $l}}<span class="active section" title="{{$v}}">{{EllipsisString $v 30}}</span>{{else}}{{ $p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{EllipsisString $v 30}}</a></span>{{end}}{{end}}</span>
106106
{{end}}
107107
</div>
108-
<div class="df ac mt-3">
108+
<div class="df ac">
109109
{{if eq $n 0}}
110110
{{if .Repository.IsTemplate}}
111111
<div class="ui tiny primary buttons">

templates/repo/sub_menu.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="ui segments repository-summary{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) .LanguageStats }} repository-summary-language-stats{{end}} my-2">
1+
<div class="ui segments repository-summary{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo) .LanguageStats }} repository-summary-language-stats{{end}} mt-2 mb-0">
22
<div class="ui segment sub-menu repository-menu">
33
<div class="ui two horizontal center link list">
44
{{if and (.Permission.CanRead $.UnitTypeCode) (not .IsEmptyRepo)}}

templates/repo/wiki/view.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{{template "repo/header" .}}
44
{{ $title := .title}}
55
<div class="ui container">
6-
<div class="flex-button-row df ac sb fw">
7-
<div class="df ac mt-2">
6+
<div class="repo-button-row df ac sb fw">
7+
<div class="df ac">
88
<div class="choose page">
99
<div class="ui floating filter dropdown" data-no-results="{{.locale.Tr "repo.pulls.no_results"}}">
1010
<div class="ui basic small button">
@@ -28,7 +28,7 @@
2828
</div>
2929
</div>
3030
</div>
31-
<div class="df ac mt-2">
31+
<div class="df ac">
3232
<div class="ui action small input" id="clone-panel">
3333
{{template "repo/clone_buttons" .}}
3434
{{template "repo/clone_script" .}}

web_src/less/_base.less

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,16 +2216,3 @@ table th[data-sortt-desc] {
22162216
.color-text-light-2 {
22172217
color: var(--color-text-light-2);
22182218
}
2219-
2220-
.flex-button-row {
2221-
margin-bottom: 10px;
2222-
}
2223-
2224-
.flex-button-row .button {
2225-
padding: 6px 10px !important;
2226-
height: 30px;
2227-
}
2228-
2229-
.flex-button-row input {
2230-
height: 30px;
2231-
}

web_src/less/_repository.less

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,10 +2063,6 @@
20632063
}
20642064

20652065
&.view {
2066-
.choose.page {
2067-
margin-top: -5px;
2068-
}
2069-
20702066
> .markup {
20712067
padding: 15px 30px;
20722068

@@ -2093,6 +2089,12 @@
20932089
margin-bottom: 2px;
20942090
}
20952091
}
2092+
2093+
@media @mediaSm {
2094+
#clone-panel #repo-clone-url {
2095+
width: 160px;
2096+
}
2097+
}
20962098
}
20972099

20982100
&.settings {
@@ -2783,6 +2785,31 @@
27832785
line-height: 1.3em; // there is a `font-size: 1.25em` for inside emoji, so here the line-height needs to be larger slightly
27842786
}
27852787

2788+
.repo-button-row {
2789+
margin-bottom: 10px;
2790+
}
2791+
2792+
.repo-button-row > * {
2793+
margin-top: 10px;
2794+
}
2795+
2796+
.wiki .repo-button-row {
2797+
margin-bottom: 0;
2798+
}
2799+
2800+
.wiki .repo-button-row > * {
2801+
margin-top: 0;
2802+
}
2803+
2804+
.repo-button-row .button {
2805+
padding: 6px 10px !important;
2806+
height: 30px;
2807+
}
2808+
2809+
.repo-button-row input {
2810+
height: 30px;
2811+
}
2812+
27862813
tbody.commit-list {
27872814
vertical-align: baseline;
27882815
}

0 commit comments

Comments
 (0)