mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 00:18:34 +08:00
6e522e4aad
This PR is a major change to Sass compilation in Discourse. The new version of sass-ruby moves to dart-sass putting we back on the supported version of Sass. It does so while keeping compatibility with the existing method signatures, so minimal change is needed in Discourse for this change. This moves us From: - sassc 2.0.1 (Feb 2019) - libsass 3.5.2 (May 2018) To: - dart-sass 1.58 This update applies the following breaking changes: > > These breaking changes are coming soon or have recently been released: > > [Functions are stricter about which units they allow](https://sass-lang.com/documentation/breaking-changes/function-units) beginning in Dart Sass 1.32.0. > > [Selectors with invalid combinators are invalid](https://sass-lang.com/documentation/breaking-changes/bogus-combinators) beginning in Dart Sass 1.54.0. > > [/ is changing from a division operation to a list separator](https://sass-lang.com/documentation/breaking-changes/slash-div) beginning in Dart Sass 1.33.0. > > [Parsing the special syntax of @-moz-document will be invalid](https://sass-lang.com/documentation/breaking-changes/moz-document) beginning in Dart Sass 1.7.2. > > [Compound selectors could not be extended](https://sass-lang.com/documentation/breaking-changes/extend-compound) in Dart Sass 1.0.0 and Ruby Sass 4.0.0. SCSS files have been migrated automatically using `sass-migrator division app/assets/stylesheets/**/*.scss`
179 lines
3.3 KiB
SCSS
179 lines
3.3 KiB
SCSS
@use "sass:math";
|
|
|
|
.groups-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 1em;
|
|
.groups-header-new {
|
|
order: 2;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
}
|
|
|
|
.groups-header-filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
.groups-header-filters-name,
|
|
.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(auto-fit, minmax(16em, 1fr));
|
|
margin: 1em 0;
|
|
width: 100%;
|
|
|
|
.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");
|
|
border-color: var(--primary-low-mid-or-secondary-high);
|
|
}
|
|
}
|
|
|
|
.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;
|
|
|
|
.group-avatar-flair {
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
.group-info {
|
|
flex: 1 1 auto;
|
|
|
|
span {
|
|
width: 100%;
|
|
word-break: break-word;
|
|
line-height: var(--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;
|
|
}
|
|
}
|
|
|
|
.groups-info-name {
|
|
font-size: var(--font-up-1);
|
|
font-weight: bold;
|
|
color: var(--primary);
|
|
}
|
|
|
|
$size: 40px;
|
|
$icon-size: math.div($size, 1.8);
|
|
|
|
.group-avatar-flair {
|
|
display: inline-block;
|
|
color: var(--primary);
|
|
|
|
.avatar-flair {
|
|
background-size: $size;
|
|
height: $size;
|
|
width: $size;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-repeat: no-repeat;
|
|
|
|
.d-icon {
|
|
height: $icon-size;
|
|
width: $icon-size;
|
|
}
|
|
}
|
|
}
|
|
.avatar-flair-image {
|
|
width: $size;
|
|
}
|
|
}
|
|
}
|
|
|
|
.groups-form {
|
|
.control-group-inline {
|
|
display: inline;
|
|
}
|
|
&.groups-notifications-form {
|
|
.control-instructions {
|
|
color: var(--primary-medium);
|
|
margin-bottom: 10px;
|
|
font-size: var(--font-down-1);
|
|
line-height: var(--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;
|
|
}
|
|
}
|
|
}
|