summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-02 21:47:55 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-02 21:47:55 +0800
commitffe0ba562c2d749ea904e7171b424ae251c1f62e (patch)
tree24e94937d2baa40088f0f0813e1081f696977218 /public
parentffcfd428b8372b3b5fafc70acf2ecc189bd7712e (diff)
downloadgitea-ffe0ba562c2d749ea904e7171b424ae251c1f62e.tar.gz
gitea-ffe0ba562c2d749ea904e7171b424ae251c1f62e.zip
ui for user/profile page, only skeleton
Diffstat (limited to 'public')
-rwxr-xr-xpublic/css/gogs.css60
-rw-r--r--public/js/app.js17
2 files changed, 77 insertions, 0 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index 68c2b8a41b..39796f6e39 100755
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -8,6 +8,22 @@ body {
background: #F6F6F6;
}
+/* override bs3 */
+
+.tooltip-inner{
+ border-radius: 3px;
+ background: #333;
+ border: none;
+}
+
+.tooltip-arrow{
+ border-bottom-color: #333 !important;
+}
+
+.fa{
+ margin: 0 .5em;
+}
+
/* gogits nav header */
.gogs-masthead {
background-color: #428bca;
@@ -110,4 +126,48 @@ body {
#gogs-social-login .btn{
float: none;
margin: auto;
+}
+
+/* gogs-user-profile */
+
+#gogs-user-avatar{
+ width: 200px;
+ height: 200px;
+ border-radius: 6px;
+}
+
+#gogs-user-name{
+ margin-top: 20px;
+ font-size: 1.6em;
+ font-weight: bold;
+ margin-bottom: 20px;
+}
+
+#gogs-user-profile .profile-info .list-group-item{
+ background-color: transparent;
+ padding-top: 18px;
+ color: #666;
+}
+
+#gogs-user-profile .profile-info .list-group-item a{
+ margin: 0;
+ padding: 0;
+ display: inline;
+ color: #0093c4;
+}
+
+#gogs-user-profile .profile-info .list-group{
+ border-top: 1px solid #ccc;
+ padding-bottom: 18px;
+ border-bottom: 1px solid #ccc;
+ padding-left: 18px;
+ padding-right: 18px;
+}
+
+#gogs-user-activity .tab-pane{
+ padding: 20px;
+}
+
+#gogs-user-act-tabs li.active a{
+ border-bottom-color: #ddd;
} \ No newline at end of file
diff --git a/public/js/app.js b/public/js/app.js
new file mode 100644
index 0000000000..a8220f46e1
--- /dev/null
+++ b/public/js/app.js
@@ -0,0 +1,17 @@
+var Gogits = {};
+
+(function($){
+ Gogits.showTooltips = function(){
+ $("body").tooltip({
+ selector: "[data-toggle=tooltip]"
+ //container: "body"
+ });
+ };
+ Gogits.showTab = function (selector, index) {
+ if (!index) {
+ index = 0;
+ }
+ $(selector).tab("show");
+ $(selector).find("li:eq(" + index + ") a").tab("show");
+ }
+})(jQuery); \ No newline at end of file