File tree Expand file tree Collapse file tree 10 files changed +39
-43
lines changed Expand file tree Collapse file tree 10 files changed +39
-43
lines changed Original file line number Diff line number Diff line change 1
- <footer role="group" aria-label="{{.locale.Tr "aria.footer"}}">
2
- <div class="gt-float-left left-links" role="contentinfo" aria-label="{{.locale.Tr "aria.footer.software"}}">
1
+ <footer class="page-footer" role="group" aria-label="{{.locale.Tr "aria.footer"}}">
2
+ <div class="left-links" role="contentinfo" aria-label="{{.locale.Tr "aria.footer.software"}}">
3
3
<a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.locale.Tr "powered_by" "Gitea"}}</a>
4
4
{{if (or .ShowFooterVersion .PageIsAdmin)}}
5
5
{{.locale.Tr "version"}}:
14
14
{{.locale.Tr "template"}}{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>
15
15
{{end}}
16
16
</div>
17
- <div class="gt-float-right right-links" role="group" aria-label="{{.locale.Tr "aria.footer.links"}}">
17
+ <div class="right-links" role="group" aria-label="{{.locale.Tr "aria.footer.links"}}">
18
18
<div class="ui dropdown upward language">
19
19
<span>{{svg "octicon-globe"}} {{.locale.LangName}}</span>
20
20
<div class="menu language-menu">
Original file line number Diff line number Diff line change 83
83
{{template "custom/body_inner_pre" .}}
84
84
85
85
{{if not .PageIsInstall}}
86
- <div class="ui top secondary stackable main menu following bar light no-vertical-tabs ">
86
+ <div class="ui top secondary stackable main menu following bar light">
87
87
{{template "base/head_navbar" .}}
88
88
</div><!-- end bar -->
89
89
{{end}}
Original file line number Diff line number Diff line change 3
3
{{.locale.Tr "repo.cite_this_repo"}}
4
4
</div>
5
5
<div class="content">
6
- <div class="ui stackable secondary menu mobile--margin-between-items mobile--no-negative-margins no-vertical-tabs ">
6
+ <div class="ui stackable secondary menu">
7
7
<div class="fitted item">
8
8
<div class="ui action input" id="citation-panel">
9
9
{{template "repo/cite/cite_buttons" .}}
Original file line number Diff line number Diff line change 151
151
{{end}}
152
152
<div class="ui tabs container">
153
153
{{if not (or .Repository.IsBeingCreated .Repository.IsBroken)}}
154
- <div class="ui tabular stackable menu navbar">
154
+ <div class="ui tabular menu navbar gt-overflow-x-auto gt-overflow-y-hidden ">
155
155
{{if .Permission.CanRead $.UnitTypeCode}}
156
156
<a class="{{if .PageIsViewCode}}active {{end}}item" href="{{.RepoLink}}{{if (ne .BranchName .Repository.DefaultBranch)}}/src/{{.BranchNameSubURL}}{{end}}">
157
157
{{svg "octicon-code"}} {{.locale.Tr "repo.code"}}
236
236
{{template "custom/extra_tabs" .}}
237
237
238
238
{{if .Permission.IsAdmin}}
239
- <div class="right menu">
240
- <a class="{{if .PageIsRepoSettings}}active {{end}}item" href="{{.RepoLink}}/settings">
241
- {{svg "octicon-tools"}} {{.locale.Tr "repo.settings"}}
242
- </a>
243
- </div>
239
+ <a class="{{if .PageIsRepoSettings}}active {{end}}right item" href="{{.RepoLink}}/settings">
240
+ {{svg "octicon-tools"}} {{.locale.Tr "repo.settings"}}
241
+ </a>
244
242
{{end}}
245
243
</div>
246
244
{{else if .Permission.IsAdmin}}
247
- <div class="ui tabular stackable menu navbar">
248
- <div class="right menu ">
245
+ <div class="ui tabular menu navbar">
246
+ <div class="right item ">
249
247
<a class="{{if .PageIsRepoSettings}}active {{end}}item" href="{{.RepoLink}}/settings">
250
248
{{svg "octicon-tools"}} {{.locale.Tr "repo.settings"}}
251
249
</a>
Original file line number Diff line number Diff line change 34
34
{{template "repo/issue/openclose" .}}
35
35
</div>
36
36
<div class="ten wide right aligned column">
37
- <div class="ui secondary filter stackable menu labels">
37
+ <div class="ui secondary filter menu labels gt-overflow-x-auto gt-overflow-y-hidden ">
38
38
<!-- Label -->
39
39
<div class="ui {{if not .Labels}}disabled{{end}} dropdown jump item label-filter" style="margin-left: auto">
40
40
<span class="text">
Original file line number Diff line number Diff line change 50
50
{{template "repo/issue/openclose" .}}
51
51
</div>
52
52
<div class="ten wide right aligned column">
53
- <div class="ui secondary filter stackable menu labels">
53
+ <div class="ui secondary filter menu labels">
54
54
<!-- Label -->
55
55
<div class="ui {{if not .Labels}}disabled{{end}} dropdown jump item label-filter" style="margin-left: auto">
56
56
<span class="text">
Original file line number Diff line number Diff line change 1
1
<div class="dashboard-navbar">
2
- <div class="ui secondary stackable menu">
2
+ <div class="ui secondary stackable menu g-menu-stackable-scrollable ">
3
3
<div class="item">
4
4
<div class="ui floating dropdown jump">
5
5
<span class="text truncated-item-container">
Original file line number Diff line number Diff line change @@ -2766,21 +2766,16 @@ table th[data-sortt-desc] .svg {
2766
2766
height : 15px ;
2767
2767
}
2768
2768
2769
- @media (max-width : 767px ) {
2770
- .ui .stackable .menu : not (.no-vertical-tabs ) {
2771
- overflow-y : hidden;
2772
- overflow-x : auto;
2773
- flex-direction : row;
2774
- flex-wrap : nowrap !important ;
2775
- }
2776
- .ui .stackable .menu : not (.no-vertical-tabs ) .item {
2777
- width : initial !important ;
2778
- }
2779
- .ui .stackable .menu : not (.no-vertical-tabs ) > .dropdown .item {
2780
- position : initial;
2781
- }
2782
- .ui .stackable .menu : not (.no-vertical-tabs ) .menu {
2783
- flex-direction : row;
2769
+ .g-menu-stackable-scrollable {
2770
+ overflow-y : hidden;
2771
+ overflow-x : auto;
2772
+ }
2773
+
2774
+ @media only screen and (max-width : 767.98px ) {
2775
+ /* also respect Fomantic's "stackable" definition */
2776
+ .g-menu-stackable-scrollable {
2777
+ overflow-x : unset;
2778
+ overflow-y : unset;
2784
2779
}
2785
2780
}
2786
2781
Original file line number Diff line number Diff line change @@ -66,13 +66,16 @@ Gitea's private styles use `g-` prefix.
66
66
.gt-cursor-default { cursor : default !important ; }
67
67
.gt-invisible { visibility : hidden !important ; }
68
68
.gt-items-start { align-items : flex-start !important ; }
69
- .gt-overflow-x-scroll { overflow-x : scroll !important ; }
70
69
.gt-pointer-events-none { pointer-events : none !important ; }
71
70
.gt-relative { position : relative !important ; }
72
71
.gt-whitespace-nowrap { white-space : nowrap !important ; }
73
72
.gt-whitespace-pre { white-space : pre !important ; }
74
73
.gt-whitespace-pre-wrap { white-space : pre-wrap !important ; }
75
74
75
+ .gt-overflow-x-auto { overflow-x : auto !important ; }
76
+ .gt-overflow-x-scroll { overflow-x : scroll !important ; }
77
+ .gt-overflow-y-hidden { overflow-y : hidden !important ; }
78
+
76
79
.gt-w-screen { width : 100vw !important ; }
77
80
.gt-h-screen { height : 100vh !important ; }
78
81
Original file line number Diff line number Diff line change 43
43
color : var (--color-green );
44
44
}
45
45
46
- footer {
46
+ .page-footer {
47
+ width : 100vw ;
48
+ display : flex;
47
49
background-color : var (--color-footer );
48
50
border-top : 1px solid var (--color-secondary );
49
51
line-height : 39px ;
50
- flex-basis : 40px ;
51
- color : var (--color-text-light );
52
52
padding : 0 20px ;
53
53
}
54
54
55
- footer .right-links {
55
+ .page-footer .left-links {
56
+ flex : 1 ;
57
+ }
58
+
59
+ .page-footer .right-links {
56
60
min-width : 180px ; /* make sure the menu dropdown doesn't overflow horizontally when language name is short */
57
61
}
58
62
59
- footer .right-links > a {
63
+ . page- footer .right-links > a {
60
64
border-left : 1px solid var (--color-secondary-dark-1 );
61
65
padding-left : 8px ;
62
66
margin-left : 5px ;
63
67
}
64
68
65
- footer .ui .dropdown .language .menu {
69
+ . page- footer .ui .dropdown .language .menu {
66
70
height : 500px ;
67
71
max-height : calc (100vh - 60px );
68
72
overflow-y : auto;
69
73
margin-bottom : 10px ;
70
74
}
71
75
72
-
73
76
@media (max-width : 880px ) {
74
- footer .left-links ,
75
- footer .right-right {
76
- width : 100% ;
77
+ .page-footer {
77
78
display : block;
78
79
text-align : center;
79
- float : none;
80
80
}
81
81
}
You can’t perform that action at this time.
0 commit comments