2018-03-29 14:57:10 +08:00
|
|
|
.groups-header {
|
2019-02-22 10:42:39 +08:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2019-04-18 10:44:30 +08:00
|
|
|
margin-bottom: 1em;
|
2019-02-22 10:42:39 +08:00
|
|
|
.groups-header-new {
|
|
|
|
order: 2;
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
}
|
2018-03-29 14:57:10 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.groups-header-filters {
|
2018-11-22 23:18:02 +08:00
|
|
|
display: flex;
|
2019-02-22 10:42:39 +08:00
|
|
|
flex-wrap: wrap;
|
2018-03-21 16:32:08 +08:00
|
|
|
|
2018-11-22 23:18:02 +08:00
|
|
|
.groups-header-filters-name,
|
2018-03-29 14:57:10 +08:00
|
|
|
.groups-header-filters-type {
|
2018-11-22 23:18:02 +08:00
|
|
|
margin-right: 5px;
|
2019-02-22 10:42:39 +08:00
|
|
|
margin-bottom: 0.5em;
|
2018-03-23 13:46:02 +08:00
|
|
|
}
|
|
|
|
|
2018-11-22 23:18:02 +08:00
|
|
|
&:last-child {
|
2019-02-22 10:42:39 +08:00
|
|
|
margin-right: auto;
|
2018-03-21 16:32:08 +08:00
|
|
|
}
|
2018-03-19 17:16:51 +08:00
|
|
|
}
|
|
|
|
|
2019-04-18 10:44:30 +08:00
|
|
|
.groups-boxes {
|
|
|
|
margin: 1em 0;
|
2016-12-14 17:26:16 +08:00
|
|
|
width: 100%;
|
2019-04-18 10:44:30 +08:00
|
|
|
// IE11 falls back to flexbox
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: space-between;
|
|
|
|
// Everything that's not IE11 uses grid
|
|
|
|
@supports (display: grid) {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(4, 24%);
|
|
|
|
grid-column-gap: 1.333%;
|
|
|
|
grid-row-gap: 1em;
|
|
|
|
@include breakpoint("tablet") {
|
|
|
|
grid-template-columns: repeat(3, 32%);
|
|
|
|
grid-column-gap: 2%;
|
|
|
|
}
|
|
|
|
@include breakpoint("mobile") {
|
|
|
|
grid-template-columns: 100%;
|
2018-03-19 18:28:57 +08:00
|
|
|
}
|
2019-04-18 10:44:30 +08:00
|
|
|
}
|
2018-03-19 18:28:57 +08:00
|
|
|
|
2019-04-18 10:44:30 +08:00
|
|
|
.group-box {
|
|
|
|
// Flex and margin are for IE11
|
|
|
|
flex: 1 1 24%;
|
|
|
|
margin: 1%;
|
|
|
|
@include breakpoint("mobile") {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
display: flex;
|
|
|
|
box-sizing: border-box;
|
|
|
|
cursor: pointer;
|
|
|
|
border: 1px solid $primary-low;
|
|
|
|
color: $primary;
|
|
|
|
.discourse-no-touch & {
|
|
|
|
transition: all 0.25s;
|
|
|
|
&:hover {
|
|
|
|
box-shadow: shadow("card");
|
2018-11-13 07:13:42 +08:00
|
|
|
}
|
2016-12-15 12:07:22 +08:00
|
|
|
}
|
2019-04-18 10:44:30 +08:00
|
|
|
.group-membership {
|
|
|
|
color: $primary-medium;
|
|
|
|
margin-top: auto;
|
|
|
|
padding-top: 1em;
|
|
|
|
.is-group-owner,
|
|
|
|
.is-group-member {
|
|
|
|
color: $success;
|
2018-11-13 07:13:42 +08:00
|
|
|
}
|
|
|
|
}
|
2019-04-18 10:44:30 +08:00
|
|
|
.group-box-inner {
|
|
|
|
padding: 1em;
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
box-sizing: border-box;
|
|
|
|
.group-info-wrapper {
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
flex: 0 1 auto;
|
2018-11-13 23:29:16 +08:00
|
|
|
.group-avatar-flair {
|
2019-04-19 02:10:52 +08:00
|
|
|
margin-top: 0.2em;
|
2019-04-18 10:44:30 +08:00
|
|
|
margin-right: 8px;
|
|
|
|
flex: 0 0 auto;
|
2018-11-13 23:29:16 +08:00
|
|
|
}
|
2019-04-18 10:44:30 +08:00
|
|
|
.group-info {
|
|
|
|
flex: 1 0 auto;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
width: 70%;
|
|
|
|
|
|
|
|
span {
|
|
|
|
width: 100%;
|
2019-04-19 02:10:52 +08:00
|
|
|
word-break: break-word;
|
|
|
|
line-height: $line-height-medium;
|
2019-04-18 10:44:30 +08:00
|
|
|
}
|
2018-11-13 07:13:42 +08:00
|
|
|
}
|
|
|
|
}
|
2019-04-18 10:44:30 +08:00
|
|
|
.group-user-count {
|
2018-11-13 07:13:42 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-04-18 10:44:30 +08:00
|
|
|
color: $primary-high;
|
2018-11-13 07:13:42 +08:00
|
|
|
.d-icon {
|
|
|
|
margin-right: 0.25em;
|
2019-04-18 10:44:30 +08:00
|
|
|
font-size: 0.8em;
|
|
|
|
color: $primary-medium;
|
2018-11-13 07:13:42 +08:00
|
|
|
}
|
|
|
|
}
|
2019-04-18 10:44:30 +08:00
|
|
|
.group-description {
|
|
|
|
color: $primary-high;
|
|
|
|
word-wrap: break-word;
|
2018-11-13 07:13:42 +08:00
|
|
|
}
|
|
|
|
}
|
2018-11-29 05:02:49 +08:00
|
|
|
|
2016-12-15 12:07:22 +08:00
|
|
|
.groups-info-name {
|
2019-04-18 10:44:30 +08:00
|
|
|
font-size: $font-up-1;
|
2016-12-15 12:07:22 +08:00
|
|
|
font-weight: bold;
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
|
2019-04-18 10:44:30 +08:00
|
|
|
$size: 40px;
|
|
|
|
$icon-size: $size / 1.8;
|
2016-12-15 12:07:22 +08:00
|
|
|
|
2018-11-29 05:02:49 +08:00
|
|
|
.group-avatar-flair {
|
2016-12-14 17:26:16 +08:00
|
|
|
display: inline-block;
|
2019-04-18 10:44:30 +08:00
|
|
|
color: $primary;
|
2016-12-14 17:26:16 +08:00
|
|
|
|
2019-04-18 10:44:30 +08:00
|
|
|
.avatar-flair {
|
|
|
|
background-size: $size;
|
|
|
|
height: $size;
|
|
|
|
width: $size;
|
|
|
|
border-radius: 50%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
background-repeat: no-repeat;
|
2016-12-14 17:26:16 +08:00
|
|
|
|
2019-04-18 10:44:30 +08:00
|
|
|
.d-icon {
|
|
|
|
height: $icon-size;
|
|
|
|
width: $icon-size;
|
|
|
|
}
|
2016-12-14 17:26:16 +08:00
|
|
|
}
|
|
|
|
}
|
2017-01-03 10:07:11 +08:00
|
|
|
.avatar-flair-image {
|
|
|
|
width: $size;
|
|
|
|
}
|
2016-12-14 17:26:16 +08:00
|
|
|
}
|
|
|
|
}
|