diff --git a/less/groups.less b/less/groups.less index f5b3b9a..db238be 100644 --- a/less/groups.less +++ b/less/groups.less @@ -1,27 +1,43 @@ -.groups { - &.list { - margin-top: 1em; +[component="groups/container"] { + [component="groups/summary"] { .panel-body { min-height: 72px; } - } - .list-cover { - background-size: cover; - min-height: 125px; - background-position: 50% 50%; - .pointer; + .list-cover { + background-size: cover; + min-height: 125px; + background-position: 50% 50%; + .pointer; - h3 { - background-color: rgba(0,0,0,0.5); - display: inline-block; - padding: 0.25em 0.5em; - color: white; - font-weight: bold; + h3 { + background-color: rgba(0,0,0,0.5); + display: inline-block; + padding: 0.25em 0.5em; + color: white; + font-weight: bold; + } + } + + .members { + padding-left: 0; + + > li { + list-style-type: none; + display: inline-block; + + img { + width: 32px; + } + } + + .truncated { + vertical-align: bottom; + } } } - .group-cover { + [component="groups/cover"] { background-size: cover; background-repeat: no-repeat; min-height: 200px; @@ -115,48 +131,25 @@ } } - .members { - padding-left: 0; - - > li { - list-style-type: none; - display: inline-block; - - img { - width: 32px; - } + [component="groups/members"] { + img { + width: 32px; } - .truncated { - vertical-align: bottom; + .member-name { + vertical-align: middle; } } - .view-full { - float: right; - } - - &.details { - .members, .pending { - img { - width: 32px; - } - - .member-name { - vertical-align: middle; - } + [component="groups/activity"] { + .content { + max-height: 250px; + word-break: break-word; + overflow: hidden; + position: relative; } - - .latest-posts { - .content { - max-height: 250px; - word-break: break-word; - overflow: hidden; - position: relative; - } - .user-img { - width: 32px; - } + .user-img { + width: 32px; } } } \ No newline at end of file diff --git a/templates/groups/details.tpl b/templates/groups/details.tpl index 5469910..bc16a41 100644 --- a/templates/groups/details.tpl +++ b/templates/groups/details.tpl @@ -1,5 +1,5 @@ -
-
+
+
[[groups:cover-change]]
[[groups:cover-save]]
[[groups:cover-saving]]
@@ -29,7 +29,7 @@

[[groups:details.members]]

- +
@@ -70,7 +70,7 @@

[[groups:details.pending]]

- +
@@ -109,7 +109,7 @@
-
+
@@ -120,14 +120,14 @@
- disabled /> + disabled />

{group.userTitle}{group.name} - - + + -
+
[[groups:details.has_no_posts]]
diff --git a/templates/groups/list.tpl b/templates/groups/list.tpl index a10e812..fe12eda 100644 --- a/templates/groups/list.tpl +++ b/templates/groups/list.tpl @@ -21,7 +21,9 @@
-
+
+ +
diff --git a/templates/partials/groups/list.tpl b/templates/partials/groups/list.tpl index 3789a5b..66d8a1a 100644 --- a/templates/partials/groups/list.tpl +++ b/templates/partials/groups/list.tpl @@ -1,5 +1,5 @@ -
+

{groups.name} {groups.memberCount}