summaryrefslogtreecommitdiffstats
path: root/public/less
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-21 04:24:11 -0800
committerUnknwon <u@gogs.io>2015-12-21 04:24:11 -0800
commita49af93fafe824cdd375318d15de420b3ed61e79 (patch)
tree1508c0bbd9f9caf2c3af8163e4e9abe326093558 /public/less
parentc62a6b7a1238524225ec9c214dc5eac7da017663 (diff)
downloadgitea-a49af93fafe824cdd375318d15de420b3ed61e79.tar.gz
gitea-a49af93fafe824cdd375318d15de420b3ed61e79.zip
#1692 APIs: Users Followers
- User profile un/follow - List user's followers/following
Diffstat (limited to 'public/less')
-rw-r--r--public/less/_repository.less59
-rw-r--r--public/less/_user.less31
2 files changed, 59 insertions, 31 deletions
diff --git a/public/less/_repository.less b/public/less/_repository.less
index 2b413f0975..14306ee8dd 100644
--- a/public/less/_repository.less
+++ b/public/less/_repository.less
@@ -859,35 +859,6 @@
}
}
- &.watchers {
- .list {
- padding: 0;
-
- .item {
- list-style: none;
- width: 32%;
- margin: 10px 10px 10px 0;
- padding-bottom: 14px;
- float: left;
-
- .avatar {
- width: 48px;
- height: 48px;
- float: left;
- display: block;
- margin-right: 10px;
- }
- .name {
- margin-top: 0;
- margin-bottom: 0;
- font-weight: normal;
- }
- .meta {
- margin-top: 5px;
- }
- }
- }
- }
&.forks {
.list {
margin-top: 0;
@@ -982,6 +953,36 @@
}
// End of .repository
+&.user-cards {
+ .list {
+ padding: 0;
+
+ .item {
+ list-style: none;
+ width: 32%;
+ margin: 10px 10px 10px 0;
+ padding-bottom: 14px;
+ float: left;
+
+ .avatar {
+ width: 48px;
+ height: 48px;
+ float: left;
+ display: block;
+ margin-right: 10px;
+ }
+ .name {
+ margin-top: 0;
+ margin-bottom: 0;
+ font-weight: normal;
+ }
+ .meta {
+ margin-top: 5px;
+ }
+ }
+ }
+}
+
#search-repo-box,
#search-user-box {
.results {
diff --git a/public/less/_user.less b/public/less/_user.less
index 3aa8e3b5be..3e37011cfb 100644
--- a/public/less/_user.less
+++ b/public/less/_user.less
@@ -1,6 +1,8 @@
.user {
- padding-top: 15px;
- padding-bottom: @footer-margin * 2;
+ &:not(.icon) {
+ padding-top: 15px;
+ padding-bottom: @footer-margin * 2;
+ }
&.settings {
.list {
@@ -38,6 +40,17 @@
&:not(:last-child) {
border-bottom: 1px solid #eaeaea;
}
+
+ .octicon {
+ margin-left: 1px;
+ margin-right: 5px;
+ }
+
+ &.follow {
+ .ui.button {
+ width: 100%;
+ }
+ }
}
}
}
@@ -47,4 +60,18 @@
margin-top: 25px;
}
}
+
+ &.followers {
+ .header.name {
+ font-size: 20px;
+ line-height: 24px;
+ vertical-align: middle;
+ }
+
+ .follow {
+ .ui.button {
+ padding: 8px 15px;
+ }
+ }
+ }
}