discourse/app/assets/stylesheets/common/base/groups.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

184 lines
3.3 KiB
SCSS
Raw Normal View History

2018-03-29 14:57:10 +08:00
.groups-header {
display: flex;
flex-wrap: wrap;
margin-bottom: 1em;
.groups-header-new {
order: 2;
margin-bottom: 0.5em;
}
2018-03-29 14:57:10 +08:00
}
.groups-header-filters {
display: flex;
flex-wrap: wrap;
.groups-header-filters-name,
2018-03-29 14:57:10 +08:00
.groups-header-filters-type {
margin: 0 0.5em 0.5em 0;
}
&:last-child {
margin-right: auto;
}
.select-kit-header {
height: 100%;
}
}
.groups-boxes {
display: grid;
grid-gap: 1em;
grid-template-columns: repeat(4, 1fr);
margin: 1em 0;
2016-12-14 17:26:16 +08:00
width: 100%;
@include breakpoint("medium") {
grid-template-columns: repeat(3, 1fr);
}
@include breakpoint("mobile-extra-large") {
grid-template-columns: repeat(2, 1fr);
}
.group-box {
display: flex;
box-sizing: border-box;
cursor: pointer;
border: 1px solid var(--primary-low);
color: var(--primary);
.discourse-no-touch & {
transition: all 0.25s;
&:hover {
box-shadow: shadow("card");
}
2016-12-15 12:07:22 +08:00
}
.group-membership {
color: var(--primary-medium);
margin-top: auto;
padding-top: 1em;
.is-group-owner,
.is-group-member {
color: var(--success);
}
}
.group-box-inner {
padding: 1em;
width: 100%;
display: flex;
flex-direction: column;
box-sizing: border-box;
min-height: 8em;
.group-info-wrapper {
align-items: center;
display: flex;
flex: 0 1 auto;
margin-bottom: 0.25em;
min-height: 40px;
overflow: hidden;
2018-11-13 23:29:16 +08:00
.group-avatar-flair {
margin-right: 0.5em;
2018-11-13 23:29:16 +08:00
}
.group-info {
flex: 1 1 auto;
span {
width: 100%;
2019-04-19 02:10:52 +08:00
word-break: break-word;
line-height: $line-height-medium;
}
}
}
.group-user-count {
display: flex;
align-items: center;
color: var(--primary-high);
.d-icon {
margin-right: 0.25em;
font-size: 0.8em;
color: var(--primary-medium);
}
}
.group-description {
color: var(--primary-high);
word-wrap: break-word;
}
}
2016-12-15 12:07:22 +08:00
.groups-info-name {
font-size: $font-up-1;
2016-12-15 12:07:22 +08:00
font-weight: bold;
color: var(--primary);
2016-12-15 12:07:22 +08:00
}
$size: 40px;
$icon-size: $size / 1.8;
2016-12-15 12:07:22 +08:00
.group-avatar-flair {
2016-12-14 17:26:16 +08:00
display: inline-block;
color: var(--primary);
2016-12-14 17:26:16 +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
.d-icon {
height: $icon-size;
width: $icon-size;
}
2016-12-14 17:26:16 +08:00
}
}
.avatar-flair-image {
width: $size;
}
2016-12-14 17:26:16 +08:00
}
}
.groups-form {
.control-group-inline {
display: inline;
}
&.groups-notifications-form {
.control-instructions {
color: $primary-medium;
margin-bottom: 10px;
font-size: $font-down-1;
line-height: $line-height-large;
}
.category-selector,
.tag-chooser {
width: 100%;
}
}
.groups-form-incoming-email {
margin-bottom: 1em;
}
}
.group-manage-logs-controls {
button {
.d-icon {
// flip the icon order for the remove button
order: 2;
margin: 0 0 0 0.45em;
}
}
}