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

231 lines
4.4 KiB
SCSS
Raw Normal View History

2018-03-29 14:57:10 +08:00
.groups-header {
display: flex;
flex-wrap: wrap;
2018-03-29 14:57:10 +08:00
margin-bottom: 30px;
.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-right: 5px;
margin-bottom: 0.5em;
}
&:last-child {
margin-right: auto;
}
}
2016-12-14 17:26:16 +08:00
.groups-table {
width: 100%;
2016-12-15 12:07:22 +08:00
tr {
td {
padding: 0.8em;
2018-03-29 14:57:10 +08:00
color: $primary-medium;
2016-12-15 12:07:22 +08:00
}
td.groups-info {
width: 50%;
}
td.group-user-status {
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-27 05:49:57 +08:00
.d-icon {
color: $primary;
}
}
2016-12-15 12:07:22 +08:00
td.groups-user-count {
2018-03-29 14:57:10 +08:00
width: 17%;
font-size: $font-up-2;
.d-icon {
display: none;
}
2016-12-15 12:07:22 +08:00
}
2018-03-29 14:57:10 +08:00
td.groups-table-type {
width: 17%;
font-size: $font-up-1;
}
td.groups-table-membership {
font-size: $font-up-1;
2018-03-29 14:57:10 +08:00
.group-membership-button {
font-size: $font-down-1;
2018-03-29 14:57:10 +08:00
display: inline-block;
margin-left: 5px;
&:empty {
display: none;
}
}
}
@include breakpoint(mobile) {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
padding: 10px 0;
td.groups-info,
td.groups-user-count,
td.groups-table-type,
td.groups-table-membership {
width: 100%;
padding: 0;
text-align: right;
font-size: $font-0;
}
td.groups-info {
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 1;
grid-row-end: 3;
text-align: left;
line-height: $line-height-medium;
margin-bottom: 0.5em;
2018-11-13 23:29:16 +08:00
a {
display: flex;
}
.group-avatar-flair {
margin-right: 0.5em;
}
.groups-info-name {
word-break: break-all;
max-width: 45vw;
}
.groups-info-full-name {
font-size: $font-down-1;
}
}
td.groups-user-count {
display: flex;
align-items: center;
grid-column-start: 4;
grid-row-start: 1;
.d-icon {
display: inline-block;
margin-right: 0.25em;
color: $primary-low-mid;
}
}
td.groups-table-type {
grid-row-start: 3;
grid-column-start: 1;
grid-column-end: 3;
text-align: left;
align-self: center;
2018-11-13 23:29:16 +08:00
.d-icon {
margin-right: 0.25em;
}
2018-03-29 14:57:10 +08:00
}
td.groups-table-membership {
grid-row-start: 3;
grid-column-start: 3;
grid-column-end: 5;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-end;
button {
margin-left: 5px;
display: flex;
}
&:empty {
display: none;
}
}
// IE11 grid support
2018-03-29 14:57:10 +08:00
display: -ms-grid;
-ms-grid-columns: 1fr 1fr;
-ms-grid-rows: 1fr 1fr;
td.groups-info {
display: -ms-grid;
-ms-grid-row: 1;
-ms-grid-column: 1;
}
td.groups-user-count {
justify-content: flex-end;
-ms-grid-row: 1;
-ms-grid-column: 2;
}
td.groups-table-type {
display: flex;
align-items: center;
-ms-grid-row: 2;
-ms-grid-column: 1;
2018-03-29 14:57:10 +08:00
}
td.groups-table-membership {
display: flex;
-ms-grid-row: 2;
-ms-grid-column: 2;
}
}
}
@include breakpoint(mobile) {
thead {
display: none;
2018-03-29 14:57:10 +08:00
}
}
2016-12-15 12:07:22 +08:00
.groups-info {
.group-info-details {
vertical-align: middle;
}
2016-12-15 12:07:22 +08:00
.groups-info-name {
font-weight: bold;
color: $primary;
2017-10-11 04:07:46 +08:00
color: dark-light-choose($primary-high, $secondary-low);
2016-12-15 12:07:22 +08:00
}
.groups-info-full-name {
2017-10-11 04:07:46 +08:00
color: dark-light-choose($primary-high, $secondary-low);
2016-12-15 12:07:22 +08:00
}
.groups-info-title {
2018-01-13 06:27:38 +08:00
font-size: $font-down-1;
2017-10-11 04:07:46 +08:00
color: dark-light-choose($primary-medium, $secondary-medium);
2016-12-15 12:07:22 +08:00
}
.group-avatar-flair {
vertical-align: middle;
color: $primary;
}
2016-12-14 17:26:16 +08:00
span {
display: inline-block;
}
$size: 40px;
2018-11-30 01:02:11 +08:00
$icon-size: $size / 1.8;
2016-12-14 17:26:16 +08:00
.avatar-flair {
2016-12-14 17:26:16 +08:00
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
Upgrade to FontAwesome 5 (take two) (#6673) * Add missing icons to set * Revert FA5 revert This reverts commit 42572ff * use new SVG syntax in locales * Noscript page changes (remove login button, center "powered by" footer text) * Cast wider net for SVG icons in settings - include any _icon setting for SVG registry (offers better support for plugin settings) - let themes store multiple pipe-delimited icons in a setting - also replaces broken onebox image icon with SVG reference in cooked post processor * interpolate icons in locales * Fix composer whisper icon alignment * Add support for stacked icons * SECURITY: enforce hostname to match discourse hostname This ensures that the hostname rails uses for various helpers always matches the Discourse hostname * load SVG sprite with pre-initializers * FIX: enable caching on SVG sprites * PERF: use JSONP for SVG sprites so they are served from CDN This avoids needing to deal with CORS for loading of the SVG Note, added the svg- prefix to the filename so we can quickly tell in dev tools what the file is * Add missing SVG sprite JSONP script to CSP * Upgrade to FA 5.5.0 * Add support for all FA4.7 icons - adds complete frontend and backend for renamed FA4.7 icons - improves performance of SvgSprite.bundle and SvgSprite.all_icons * Fix group avatar flair preview - adds an endpoint at /svg-sprites/search/:keyword - adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset * Remove FA 4.7 font files
2018-11-27 05:49:57 +08:00
.d-icon {
2018-11-30 01:02:11 +08:00
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
}
}