]> source.dussan.org Git - gitea.git/commitdiff
#2159 use icon+tooltip to replace text
authorUnknwon <u@gogs.io>
Sat, 12 Dec 2015 21:53:16 +0000 (16:53 -0500)
committerUnknwon <u@gogs.io>
Sat, 12 Dec 2015 21:53:16 +0000 (16:53 -0500)
public/css/gogs.css
public/less/_dashboard.less
templates/user/dashboard/dashboard.tmpl

index 2ff08242c84bd5cf14629ddf26d5017e6ec96763..b4e50eda768980e80da16e557c46acbbb5d77899 100755 (executable)
@@ -2980,6 +2980,10 @@ footer .container .links > *:first-child {
   padding-top: 10px;
   padding-bottom: 5px;
 }
+.feeds .list .header .plus.icon {
+  margin-top: 5px;
+  margin-right: 0;
+}
 .feeds .list ul {
   list-style: none;
   margin: 0;
index 53d3352cbd4e9d7a128aef58edbc5b74be089366..d28c994d92f59d28382567bac3fedb64fe70919e 100644 (file)
                .header {
                        padding-top: 10px;
                        padding-bottom: 5px;
+
+                       .plus.icon {
+                               margin-top: 5px;
+                               margin-right: 0;
+                       }
                }
                ul {
                        list-style: none;
index 2c476dfa9bf9f1c5f5d3a24397a7c65bdffaab01..86936efa68c55dd460507d30babebeb7ebc340e0 100644 (file)
@@ -18,7 +18,7 @@
                                        <h4 class="ui top attached header">
                                                {{.i18n.Tr "home.my_repos"}} <span class="ui grey label">{{.ContextUser.NumRepos}}</span>
                                                <div class="ui right">
-                                                       <a class="ui blue tiny show-panel button" href="{{AppSubUrl}}/repo/create">{{.i18n.Tr "new_repo"}}</a>
+                                                       <a class="poping up" href="{{AppSubUrl}}/repo/create" data-content="{{.i18n.Tr "new_repo"}}" data-variation="tiny inverted" data-position="left center"><i class="plus icon"></i></a>
                                                </div>
                                        </h4>
                                        <div class="ui attached table segment">
@@ -64,7 +64,7 @@
                                                <h4 class="ui top attached header">
                                                        {{.i18n.Tr "home.my_orgs"}} <span class="ui grey label">{{.ContextUser.GetOrganizationCount}}</span>
                                                        <div class="ui right">
-                                                               <a class="ui blue tiny show-panel button" href="{{AppSubUrl}}/org/create">{{.i18n.Tr "new_org"}}</a>
+                                                               <a class="poping up" href="{{AppSubUrl}}/org/create" data-content="{{.i18n.Tr "new_org"}}" data-variation="tiny inverted" data-position="left center"><i class="plus icon"></i></a>
                                                        </div>
                                                </h4>
                                                <div class="ui attached table segment">
@@ -89,7 +89,7 @@
                                        <h4 class="ui top attached header">
                                                {{.i18n.Tr "home.my_mirrors"}} <span class="ui grey label">{{.MirrorCount}}</span>
                                                <div class="ui right">
-                                                       <a class="ui blue tiny show-panel button" href="{{AppSubUrl}}/repo/migrate?mirror=1">{{.i18n.Tr "new_mirror"}}</a>
+                                                       <a class="poping up" href="{{AppSubUrl}}/repo/migrate?mirror=1" data-content="{{.i18n.Tr "new_mirror"}}" data-variation="tiny inverted" data-position="left center"><i class="plus icon"></i></a>
                                                </div>
                                        </h4>
                                        <div class="ui attached table segment">