diff options
author | silverwind <me@silverwind.io> | 2020-10-31 23:15:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 18:15:11 -0400 |
commit | 2ac112d84e7318a294b1e8cea5adae2dd50c89df (patch) | |
tree | ded99a4d4d7626c21332ffd10eb0b39ef23a98bf /templates/user | |
parent | e4e85a3e51066f4987a87762c9c69acda093f6ca (diff) | |
download | gitea-2ac112d84e7318a294b1e8cea5adae2dd50c89df.tar.gz gitea-2ac112d84e7318a294b1e8cea5adae2dd50c89df.zip |
Comment box tweaks and SVG dropdown triangles (#13376)
* Comment box tweaks and SVG dropdown triangles
- Change all dropdown triangles to SVG
- Bring inline review comment box closer to regular comment boxes
- Enhance arc-green checkbox contrast
- Minor reaction tweaks
- Flexbox the diff file header
* remove a border
* fix type marker in arc-green
* add small code padding
* fix position regression and remove useless rules
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/issues.tmpl | 2 | ||||
-rw-r--r-- | templates/user/dashboard/milestones.tmpl | 2 | ||||
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 2 | ||||
-rw-r--r-- | templates/user/project.tmpl | 2 | ||||
-rw-r--r-- | templates/user/settings/account.tmpl | 4 | ||||
-rw-r--r-- | templates/user/settings/profile.tmpl | 2 |
6 files changed, 7 insertions, 7 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index 58b51f1722..f035aed779 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -82,7 +82,7 @@ <div class="ui dropdown type jump item"> <span class="text"> {{.i18n.Tr "repo.issues.filter_sort"}} - <i class="dropdown icon"></i> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> <div class="menu"> <a class="{{if or (eq .SortType "latest") (not .SortType)}}active{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=latest&state={{$.State}}&q={{$.Keyword}}">{{.i18n.Tr "repo.issues.filter_sort.latest"}}</a> diff --git a/templates/user/dashboard/milestones.tmpl b/templates/user/dashboard/milestones.tmpl index f22bf13e22..c3fe4e2236 100644 --- a/templates/user/dashboard/milestones.tmpl +++ b/templates/user/dashboard/milestones.tmpl @@ -49,7 +49,7 @@ <div class="ui dropdown type jump item"> <span class="text"> {{.i18n.Tr "repo.issues.filter_sort"}} - <i class="dropdown icon"></i> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> <div class="menu"> <a class="{{if or (eq .SortType "closestduedate") (not .SortType)}}active{{end}} item" href="{{$.Link}}?repos=[{{range $.RepoIDs}}{{.}}%2C{{end}}]&sort=closestduedate&state={{$.State}}">{{.i18n.Tr "repo.milestones.filter_sort.closest_due_date"}}</a> diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index a911d1c4e1..0fc328e9c6 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -11,7 +11,7 @@ {{if .ContextUser.Visibility.IsPrivate}}<div class="ui red tiny horizontal label">{{.i18n.Tr "org.settings.visibility.private_shortname"}}</div>{{end}} </span> {{end}} - <i class="dropdown icon"></i> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> <div class="context user overflow menu" tabindex="-1"> <div class="ui header"> diff --git a/templates/user/project.tmpl b/templates/user/project.tmpl index 662544a366..64f671ae4a 100644 --- a/templates/user/project.tmpl +++ b/templates/user/project.tmpl @@ -17,7 +17,7 @@ <img class="ui mini image" src="{{.ContextUser.RelAvatarLink}}"> {{.ContextUser.ShortName 20}} </span> - <i class="dropdown icon"></i> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="menu"> <div class="item" data-value="{{.SignedUser.ID}}" title="{{.SignedUser.Name}}"> <img class="ui mini image" src="{{.SignedUser.RelAvatarLink}}"> {{.SignedUser.ShortName 20}} diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 1a978a6c28..8467d5b45f 100644 --- a/templates/user/settings/account.tmpl +++ b/templates/user/settings/account.tmpl @@ -56,7 +56,7 @@ <div class="field"> <div class="ui selection dropdown" tabindex="0"> <input name="preference" type="hidden" value="{{.EmailNotificationsPreference}}"> - <i class="dropdown icon"></i> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="text">{{$.i18n.Tr "settings.email_notifications"}}</div> <div class="menu"> <div data-value="enabled" class="{{if eq .EmailNotificationsPreference "enabled"}}active selected {{end}}item">{{$.i18n.Tr "settings.email_notifications.enable"}}</div> @@ -144,7 +144,7 @@ <label for="ui">{{.i18n.Tr "settings.ui"}}</label> <div class="ui selection dropdown" id="ui"> <input name="theme" type="hidden" value="{{.SignedUser.Theme}}"> - <i class="dropdown icon"></i> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="text"> {{range $i,$a := .AllThemes}} {{if eq $.SignedUser.Theme $a}}{{$a}}{{end}} diff --git a/templates/user/settings/profile.tmpl b/templates/user/settings/profile.tmpl index ea895ecd89..141be2d72d 100644 --- a/templates/user/settings/profile.tmpl +++ b/templates/user/settings/profile.tmpl @@ -48,7 +48,7 @@ <label for="language">{{.i18n.Tr "settings.language"}}</label> <div class="ui language selection dropdown" id="language"> <input name="language" type="hidden" value="{{.SignedUser.Language}}"> - <i class="dropdown icon"></i> + {{svg "octicon-triangle-down" 14 "dropdown icon"}} <div class="text">{{range .AllLangs}}{{if eq $.SignedUser.Language .Lang}}{{.Name}}{{end}}{{end}}</div> <div class="menu"> {{range .AllLangs}} |