Skip to content

A platform for community discussion. Free, open, simple.

DEV: Update lint-configs and auto-fix issues (#31485)

Jarek Radosz3d2a6322d03d
diff --git a/app/assets/stylesheets/admin/admin_base.scss b/app/assets/stylesheets/admin/admin_base.scss
index bb3cd3830ef..1c812a19c03 100644
--- a/app/assets/stylesheets/admin/admin_base.scss
+++ b/app/assets/stylesheets/admin/admin_base.scss
@@ -33,6 +33,7 @@ $mobile-breakpoint: 700px;
width: calc(100% - 10px);
flex: 1 0 auto;
margin-top: 0;
+
@include breakpoint(tablet) {
white-space: nowrap;
flex-wrap: nowrap;
@@ -55,6 +56,7 @@ $mobile-breakpoint: 700px;
}
}
}
+
@include breakpoint(tablet) {
// Fade-out for horizontal scroll nav
&::before {
@@ -289,6 +291,7 @@ $mobile-breakpoint: 700px;
h3 {
font-weight: normal;
font-size: var(--font-0);
+
@include breakpoint(mobile-extra-large) {
word-wrap: break-word;
}
@@ -346,6 +349,7 @@ $mobile-breakpoint: 700px;
.title {
margin-bottom: 1em;
}
+
@include breakpoint(mobile-extra-large) {
.title {
word-wrap: break-word;
@@ -405,6 +409,7 @@ $mobile-breakpoint: 700px;
.admin-content {
.admin-contents {
padding: 0 0 8px 0;
+
@include clearfix;
}
@@ -437,6 +442,7 @@ $mobile-breakpoint: 700px;
td.x-value {
max-width: 0;
+
@include ellipsis;
}
}
@@ -586,6 +592,7 @@ $mobile-breakpoint: 700px;
.username {
input[type="text"] {
min-width: 15em;
+
@media screen and (max-width: 500px) {
box-sizing: border-box;
width: 100%;
@@ -607,6 +614,7 @@ $mobile-breakpoint: 700px;
.search-logs-filter {
margin-left: auto;
+
@media screen and (max-width: 700px) {
flex: 1 1 100%;
margin-left: 0;
@@ -656,6 +664,7 @@ $mobile-breakpoint: 700px;
overflow: hidden;
padding: 0;
height: 100%;
+
@include breakpoint(tablet) {
width: calc(100% + 10px);
padding-left: 10px;
@@ -698,6 +707,7 @@ $mobile-breakpoint: 700px;
margin: 0;
white-space: nowrap;
overflow-x: auto;
+
@include breakpoint(tablet) {
margin-left: -10px;
overflow-x: scroll;
@@ -822,11 +832,13 @@ $mobile-breakpoint: 700px;
width: 18%;
box-sizing: border-box;
position: relative; // The admin-nav becomes a slide-out menu at the mobile-nav breakpoint
+
@media (max-width: $mobile-breakpoint) {
position: absolute;
z-index: z("base") - 1;
width: 250px;
}
+
@media (max-width: 500px) {
width: 50%;
}
@@ -851,6 +863,7 @@ $mobile-breakpoint: 700px;
padding: 30px 0 30px 30px;
width: 82%;
box-sizing: border-box;
+
@media (max-width: $mobile-breakpoint) {
width: 100%;
border: none;
@@ -862,6 +875,7 @@ $mobile-breakpoint: 700px;
transition: transform 0.3s ease;
transform: translateX(250px);
}
+
@media (max-width: 500px) {
transition: transform 0.3s ease;
transform: translateX(50%);
@@ -894,6 +908,7 @@ section.details {
.btn {
line-height: var(--line-height-medium);
}
+
@media (max-width: $mobile-breakpoint) {
.btn {
margin: 2px;
@@ -1034,6 +1049,7 @@ table#user-badges {
.value-list {
.value {
padding: 0.125em 0;
+
@include ellipsis;
display: flex;
@@ -1056,6 +1072,7 @@ table#user-badges {
.remove-value-btn {
margin-right: 0.25em;
+
@include value-btn;
}
@@ -1117,6 +1134,7 @@ table#user-badges {
.shift-down-value-btn {
margin-right: 0 !important;
margin-left: 0.25em;
+
@include value-btn;
}
@@ -1148,6 +1166,7 @@ table#user-badges {
.add-value-btn {
margin-left: 0.25em;
margin-top: 0.125em;
+
@include value-btn;
}
}
diff --git a/app/assets/stylesheets/admin/admin_filter.scss b/app/assets/stylesheets/admin/admin_filter.scss
index c3bf2583c06..a717fb050f2 100644
--- a/app/assets/stylesheets/admin/admin_filter.scss
+++ b/app/assets/stylesheets/admin/admin_filter.scss
@@ -6,6 +6,7 @@
.admin-filter__input-container {
min-width: 50%;
+
@media screen and (max-width: 500px) {
width: 100%;
}
@@ -13,6 +14,7 @@
input {
min-width: 15em;
margin: 0;
+
@media screen and (max-width: 500px) {
box-sizing: border-box;
width: 100%;
diff --git a/app/assets/stylesheets/admin/admin_report_chart.scss b/app/assets/stylesheets/admin/admin_report_chart.scss
index be3c79eeea0..f39e2f9aa69 100644
--- a/app/assets/stylesheets/admin/admin_report_chart.scss
+++ b/app/assets/stylesheets/admin/admin_report_chart.scss
@@ -1,5 +1,6 @@
.admin-report-chart {
animation: fadein 2s;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
diff --git a/app/assets/stylesheets/admin/admin_report_counters.scss b/app/assets/stylesheets/admin/admin_report_counters.scss
index 6dca634ec3d..149410bdb5b 100644
--- a/app/assets/stylesheets/admin/admin_report_counters.scss
+++ b/app/assets/stylesheets/admin/admin_report_counters.scss
@@ -13,6 +13,7 @@
&.title {
text-align: left;
+
@include ellipsis;
.d-icon {
diff --git a/app/assets/stylesheets/admin/admin_report_table.scss b/app/assets/stylesheets/admin/admin_report_table.scss
index 6ac9c589c44..bfd8619c4a2 100644
--- a/app/assets/stylesheets/admin/admin_report_table.scss
+++ b/app/assets/stylesheets/admin/admin_report_table.scss
@@ -30,6 +30,7 @@
outline: none;
background: none;
padding: 3px 8px;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/admin/api.scss b/app/assets/stylesheets/admin/api.scss
index 1110353cfcc..237f99b6d44 100644
--- a/app/assets/stylesheets/admin/api.scss
+++ b/app/assets/stylesheets/admin/api.scss
@@ -153,6 +153,7 @@
.hook-event {
margin-bottom: 0.5em;
+
@include breakpoint(mobile-extra-large) {
width: 100%;
}
diff --git a/app/assets/stylesheets/admin/backups.scss b/app/assets/stylesheets/admin/backups.scss
index 299640b5639..05ebc442a74 100644
--- a/app/assets/stylesheets/admin/backups.scss
+++ b/app/assets/stylesheets/admin/backups.scss
@@ -29,6 +29,7 @@
.backup-message {
margin-left: auto;
margin-top: 1em;
+
@include breakpoint(mobile-extra-large) {
margin: 1.25em 0 0;
}
diff --git a/app/assets/stylesheets/admin/customize-install-theme.scss b/app/assets/stylesheets/admin/customize-install-theme.scss
index 0b95250ecd1..3012aa4e37f 100644
--- a/app/assets/stylesheets/admin/customize-install-theme.scss
+++ b/app/assets/stylesheets/admin/customize-install-theme.scss
@@ -1,5 +1,6 @@
.install-theme {
display: flex;
+
@include breakpoint(mobile-extra-large) {
.install-theme-items {
flex: 0 0 150px;
diff --git a/app/assets/stylesheets/admin/customize.scss b/app/assets/stylesheets/admin/customize.scss
index b5edf5fc777..0580956587d 100644
--- a/app/assets/stylesheets/admin/customize.scss
+++ b/app/assets/stylesheets/admin/customize.scss
@@ -310,6 +310,7 @@
&.active {
position: relative;
+
@include nav-active;
}
}
@@ -394,6 +395,7 @@
@media screen and (max-height: 1000px) {
max-height: 50vh;
}
+
@media screen and (max-height: 800px) {
max-height: 40vh;
}
@@ -478,6 +480,7 @@
overflow: hidden;
display: flex;
align-items: center;
+
@include line-clamp(4);
.icons {
@@ -938,6 +941,7 @@
width: calc(100% - 10px);
}
}
+
@media screen and (max-width: 880px) {
table.grid {
thead {
diff --git a/app/assets/stylesheets/admin/dashboard.scss b/app/assets/stylesheets/admin/dashboard.scss
index b6c5d8a766c..43134e3cd9e 100644
--- a/app/assets/stylesheets/admin/dashboard.scss
+++ b/app/assets/stylesheets/admin/dashboard.scss
@@ -634,6 +634,7 @@
box-sizing: border-box;
padding-right: 20px;
min-width: 250px;
+
@include breakpoint(medium) {
max-width: unset;
}
diff --git a/app/assets/stylesheets/admin/emails.scss b/app/assets/stylesheets/admin/emails.scss
index f2cfd66b3c3..513051d8af5 100644
--- a/app/assets/stylesheets/admin/emails.scss
+++ b/app/assets/stylesheets/admin/emails.scss
@@ -18,12 +18,14 @@
.username div {
max-width: 180px;
+
@include ellipsis;
}
.addresses p {
margin: 2px 0;
max-width: 200px;
+
@include ellipsis;
}
@@ -36,6 +38,7 @@
.email-address {
max-width: 250px;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/admin/schema_theme_setting_editor.scss b/app/assets/stylesheets/admin/schema_theme_setting_editor.scss
index e1820cabf32..a144a0a8bb2 100644
--- a/app/assets/stylesheets/admin/schema_theme_setting_editor.scss
+++ b/app/assets/stylesheets/admin/schema_theme_setting_editor.scss
@@ -5,6 +5,7 @@
grid-template-columns: minmax(10em, 0.3fr) 1fr;
grid-template-rows: auto 1fr;
gap: 0 5vw;
+
@include breakpoint(mobile-extra-large) {
--schema-space: 0.33em;
gap: 0 1em;
diff --git a/app/assets/stylesheets/admin/settings.scss b/app/assets/stylesheets/admin/settings.scss
index 834cfd6bd9f..ed434d6843f 100644
--- a/app/assets/stylesheets/admin/settings.scss
+++ b/app/assets/stylesheets/admin/settings.scss
@@ -7,6 +7,7 @@
float: left;
width: 17.6576%;
margin-right: 12px;
+
@media (max-width: $mobile-breakpoint) {
float: none;
margin-right: 0;
@@ -42,6 +43,7 @@
.category-selector {
width: 95%;
}
+
@media (max-width: $mobile-breakpoint) {
width: 100%;
padding-right: 0;
@@ -49,6 +51,7 @@
.select-kit {
width: 100% !important; // Needs !important to override hard-coded value
+
@media (max-width: $mobile-breakpoint) {
width: 100% !important; // !important overrides hard-coded mobile width of 68px
}
@@ -73,6 +76,7 @@
.input-setting-integer,
.input-setting-textarea {
width: 100%;
+
@media (max-width: $mobile-breakpoint) {
width: 100%;
}
diff --git a/app/assets/stylesheets/admin/staff_logs.scss b/app/assets/stylesheets/admin/staff_logs.scss
index 1c3b1dd93c6..a1c5efe160a 100644
--- a/app/assets/stylesheets/admin/staff_logs.scss
+++ b/app/assets/stylesheets/admin/staff_logs.scss
@@ -9,6 +9,7 @@
.staff-actions {
width: 100%;
word-wrap: break-word;
+
@media screen and (min-width: 550px) and (max-width: 767px) {
table.staff-logs tr {
display: grid;
@@ -169,9 +170,11 @@
.combobox {
width: 140px;
}
+
@media screen and (min-width: 900px) {
margin-left: auto;
}
+
@media screen and (max-width: 899px) {
margin-top: 1em;
}
@@ -244,6 +247,7 @@ table.screened-ip-addresses {
.screened-emails {
td.ip_address {
word-wrap: break-word;
+
@include breakpoint(tablet, min-width) {
max-width: 20vw;
}
@@ -382,6 +386,7 @@ table.search-logs-list {
td.term {
width: 60%;
word-wrap: break-word;
+
@media screen and (max-width: 767px) {
width: 100%;
}
@@ -391,6 +396,7 @@ table.search-logs-list {
td:not(.term) {
text-align: center;
}
+
@media screen and (min-width: 550px) {
tr {
td.term {
@@ -398,6 +404,7 @@ table.search-logs-list {
}
}
}
+
@include breakpoint(mobile-extra-large) {
tr {
td.term {
diff --git a/app/assets/stylesheets/admin/users.scss b/app/assets/stylesheets/admin/users.scss
index ad9f9f289d7..403f11ab4cf 100644
--- a/app/assets/stylesheets/admin/users.scss
+++ b/app/assets/stylesheets/admin/users.scss
@@ -1,6 +1,7 @@
// Styles for /admin/users
.display-row.associations .value {
width: 750px;
+
@media (max-width: $mobile-breakpoint) {
width: 75%;
float: right;
@@ -43,6 +44,7 @@
width: 17.65765%;
min-width: 125px;
margin-left: 12px;
+
@media (max-width: $mobile-breakpoint) {
margin-left: 0;
line-height: var(--line-height-large);
@@ -79,6 +81,7 @@
.controls {
margin-left: 12px;
+
@media (max-width: $mobile-breakpoint) {
width: 75%;
text-align: left;
diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scss
index ffbb3347437..a68f112dd4d 100644
--- a/app/assets/stylesheets/common/base/_topic-list.scss
+++ b/app/assets/stylesheets/common/base/_topic-list.scss
@@ -71,6 +71,7 @@
.select-kit-header {
height: 100%;
}
+
@include breakpoint(mobile-large) {
.edit-category {
.d-button-label {
@@ -317,6 +318,7 @@
border: 1px solid var(--primary-low);
border-radius: 0.25em;
min-width: 3em;
+
@include ellipsis;
> a {
diff --git a/app/assets/stylesheets/common/base/activation.scss b/app/assets/stylesheets/common/base/activation.scss
index 748c861609b..01d584511a9 100644
--- a/app/assets/stylesheets/common/base/activation.scss
+++ b/app/assets/stylesheets/common/base/activation.scss
@@ -24,6 +24,7 @@
padding: 2rem 3rem;
background: var(--secondary);
margin: 10vh auto 1em auto;
+
@media screen and (max-height: 700px) {
margin: 1em auto 1em auto;
}
diff --git a/app/assets/stylesheets/common/base/category-list.scss b/app/assets/stylesheets/common/base/category-list.scss
index d807ee59609..7e2e75b43af 100644
--- a/app/assets/stylesheets/common/base/category-list.scss
+++ b/app/assets/stylesheets/common/base/category-list.scss
@@ -19,6 +19,7 @@
.category-name {
display: inline-block;
max-width: 100%;
+
@include ellipsis;
vertical-align: text-top;
line-height: var(--line-height-medium);
@@ -164,6 +165,7 @@
font-size: var(--font-0);
color: var(--primary-med-or-secondary-high);
position: relative;
+
@include line-clamp(4);
// allow clicks to fall through the description text to the category below...
@@ -252,6 +254,7 @@
.subcategory {
display: flex;
align-items: center;
+
@include ellipsis;
margin-bottom: 0.6em;
@@ -267,6 +270,7 @@
.subcategory-link {
min-width: 0;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/base/compose.scss b/app/assets/stylesheets/common/base/compose.scss
index 843f374cf22..d5d0ca4e56f 100644
--- a/app/assets/stylesheets/common/base/compose.scss
+++ b/app/assets/stylesheets/common/base/compose.scss
@@ -107,6 +107,7 @@ html.composer-open {
.draft-text {
display: block;
+
@include ellipsis;
}
@@ -156,6 +157,7 @@ html.composer-open {
.user-link,
.post-link {
margin-right: 8px;
+
@include ellipsis;
}
}
@@ -163,7 +165,9 @@ html.composer-open {
.username {
margin-right: 5px;
max-width: 100px;
+
@include ellipsis;
+
@media screen and (max-width: 500px) {
display: none;
}
diff --git a/app/assets/stylesheets/common/base/crawler_layout.scss b/app/assets/stylesheets/common/base/crawler_layout.scss
index 696860e67ee..ce701eda06c 100644
--- a/app/assets/stylesheets/common/base/crawler_layout.scss
+++ b/app/assets/stylesheets/common/base/crawler_layout.scss
@@ -227,6 +227,7 @@ body > noscript {
a {
font-weight: bold;
}
+
@include breakpoint(tablet) {
display: inline-block;
margin-bottom: 0.25em;
@@ -237,6 +238,7 @@ body > noscript {
.crawler-post-infos {
color: #666;
display: inline-block;
+
@include breakpoint(tablet, min-width) {
float: right;
}
@@ -348,6 +350,7 @@ body > noscript {
color: #e25600;
text-decoration: underline;
}
+
@media print {
.buorg {
display: none !important;
diff --git a/app/assets/stylesheets/common/base/dialog.scss b/app/assets/stylesheets/common/base/dialog.scss
index 39f0634fb9b..fca219bd5f8 100644
--- a/app/assets/stylesheets/common/base/dialog.scss
+++ b/app/assets/stylesheets/common/base/dialog.scss
@@ -30,6 +30,7 @@
.dialog-overlay {
background: rgba(var(--always-black-rgb), 0.65);
animation: fade-in 250ms both;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
@@ -43,6 +44,7 @@
box-shadow: var(--shadow-card);
min-width: 40vw;
animation: fade-in 250ms both;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
diff --git a/app/assets/stylesheets/common/base/directory.scss b/app/assets/stylesheets/common/base/directory.scss
index 57e08b917d2..41bee4d6127 100644
--- a/app/assets/stylesheets/common/base/directory.scss
+++ b/app/assets/stylesheets/common/base/directory.scss
@@ -205,10 +205,12 @@
.user-detail {
padding: 0;
width: 100%;
+
@include breakpoint(tablet) {
// overrides existing media query
font-size: var(--font-0);
}
+
@include breakpoint("mobile-medium") {
font-size: var(--font-down-1);
}
@@ -252,6 +254,7 @@
// caution: display flex here can interfere with overflow hiding
flex: 0 1 auto; // can shrink if needed
margin-right: 0.25em;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/base/discourse.scss b/app/assets/stylesheets/common/base/discourse.scss
index 1c3e6fb98c2..02ac50446ec 100644
--- a/app/assets/stylesheets/common/base/discourse.scss
+++ b/app/assets/stylesheets/common/base/discourse.scss
@@ -93,6 +93,7 @@ small {
blockquote {
clear: both;
+
@include post-aside;
}
diff --git a/app/assets/stylesheets/common/base/group.scss b/app/assets/stylesheets/common/base/group.scss
index b29322c5aaa..5888ab7e656 100644
--- a/app/assets/stylesheets/common/base/group.scss
+++ b/app/assets/stylesheets/common/base/group.scss
@@ -165,6 +165,7 @@ table.group-manage-logs {
&--can-manage {
grid-template-columns: 3fr repeat(4, minmax(min-content, 1fr)) 3em;
+
@container (max-width: 47em) {
// positioning the member settings button within the same cell
// and avoiding overlap with padding-right on user-info
diff --git a/app/assets/stylesheets/common/base/header.scss b/app/assets/stylesheets/common/base/header.scss
index ad2a95e8a41..0e1d4812841 100644
--- a/app/assets/stylesheets/common/base/header.scss
+++ b/app/assets/stylesheets/common/base/header.scss
@@ -85,6 +85,7 @@
#site-text-logo {
margin: 0;
+
@include ellipsis;
}
@@ -305,6 +306,7 @@
overflow: hidden;
width: 100%;
animation: fadein 0.5s;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
@@ -339,6 +341,7 @@
.topic-link {
color: var(--header_primary);
display: block;
+
@include ellipsis;
}
@@ -363,11 +366,13 @@
display: inline-flex;
flex: 0 1 auto;
gap: 0 0.5em;
+
@include ellipsis;
}
.badge-category__wrapper {
min-width: 2.75em; // min needed for ellipsis
+
@include ellipsis;
.badge-category {
@@ -384,6 +389,7 @@
.discourse-tags {
display: inline;
color: var(--header_primary-high);
+
@include ellipsis;
.discourse-tag {
@@ -411,6 +417,7 @@ $mobile-avatar-height: 1.532em;
display: flex;
align-items: center;
font-size: var(--font-down-1);
+
@include ellipsis;
&:not(:first-child) {
@@ -445,6 +452,7 @@ $mobile-avatar-height: 1.532em;
border: 1px solid var(--primary-low);
border-radius: 0.25em;
min-width: 3em;
+
@include ellipsis;
.icon {
diff --git a/app/assets/stylesheets/common/base/history.scss b/app/assets/stylesheets/common/base/history.scss
index 7ea7205a60b..1b1e97224b9 100644
--- a/app/assets/stylesheets/common/base/history.scss
+++ b/app/assets/stylesheets/common/base/history.scss
@@ -19,9 +19,11 @@
padding-bottom: 0.5em;
overflow: auto;
border-bottom: 3px solid var(--primary-low);
+
@include breakpoint(tablet) {
padding-bottom: 0;
}
+
@include breakpoint(mobile-large) {
padding-bottom: 0.5em;
}
@@ -40,6 +42,7 @@
padding: 0;
border: none;
}
+
@include breakpoint(tablet) {
width: 100%;
margin-top: 0.5em;
@@ -203,6 +206,7 @@
@include ellipsis;
}
}
+
@include breakpoint(tablet) {
width: 100%;
flex: 1 1 100%;
diff --git a/app/assets/stylesheets/common/base/lightbox.scss b/app/assets/stylesheets/common/base/lightbox.scss
index 83c8f4c2bcb..787ca4652c6 100644
--- a/app/assets/stylesheets/common/base/lightbox.scss
+++ b/app/assets/stylesheets/common/base/lightbox.scss
@@ -51,6 +51,7 @@ $meta-element-margin: 6px;
.filename {
margin: $meta-element-margin;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/base/menu-panel.scss b/app/assets/stylesheets/common/base/menu-panel.scss
index a1151e3ee1b..6d354a54ec9 100644
--- a/app/assets/stylesheets/common/base/menu-panel.scss
+++ b/app/assets/stylesheets/common/base/menu-panel.scss
@@ -267,6 +267,7 @@
position: relative;
border-radius: 0;
padding: 0.857em;
+
@media screen and (max-height: 400px) {
// helps with 400% zoom level
font-size: var(--font-down-1);
@@ -283,6 +284,7 @@
right: 6px;
top: 6px;
font-size: var(--font-down-3);
+
@media screen and (max-height: 400px) {
// helps with 400% zoom level
right: 0;
diff --git a/app/assets/stylesheets/common/base/modal.scss b/app/assets/stylesheets/common/base/modal.scss
index 9336699e070..479d4a47190 100644
--- a/app/assets/stylesheets/common/base/modal.scss
+++ b/app/assets/stylesheets/common/base/modal.scss
@@ -405,6 +405,7 @@
width: calc(100% - 36px);
padding: 10px 4px 4px 4px;
}
+
@media screen and (max-width: 760px) {
.incoming-email-html-part {
width: calc(100% - 10px);
diff --git a/app/assets/stylesheets/common/base/new-user.scss b/app/assets/stylesheets/common/base/new-user.scss
index efe12af6736..47222808e5f 100644
--- a/app/assets/stylesheets/common/base/new-user.scss
+++ b/app/assets/stylesheets/common/base/new-user.scss
@@ -18,6 +18,7 @@
span {
line-height: normal;
+
@include ellipsis;
}
}
@@ -111,6 +112,7 @@
.category-breadcrumb {
width: auto;
padding-top: var(--navigation-secondary-padding-top);
+
@include breakpoint(extra-large) {
font-size: var(--font-down-1);
}
@@ -123,6 +125,7 @@
.navigation-controls {
padding-top: var(--navigation-secondary-padding-top);
flex-wrap: nowrap;
+
@include breakpoint(extra-large) {
font-size: var(--font-down-1);
}
diff --git a/app/assets/stylesheets/common/base/not-found.scss b/app/assets/stylesheets/common/base/not-found.scss
index cb16c6129db..3cd43a287cd 100644
--- a/app/assets/stylesheets/common/base/not-found.scss
+++ b/app/assets/stylesheets/common/base/not-found.scss
@@ -24,6 +24,7 @@
.page-not-found-topics {
display: flex;
+
@media screen and (max-width: 600px) {
flex-wrap: wrap;
}
@@ -36,6 +37,7 @@
max-width: 400px;
margin-bottom: 40px;
padding-right: 20px;
+
@media screen and (max-width: 600px) {
width: 100%;
}
@@ -50,6 +52,7 @@
flex-wrap: wrap;
align-items: baseline;
margin-bottom: 15px;
+
@media screen and (max-width: 600px) {
&:nth-of-type(n + 6) {
display: none;
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss
index 65d0aae3301..14a2131a4e9 100644
--- a/app/assets/stylesheets/common/base/onebox.scss
+++ b/app/assets/stylesheets/common/base/onebox.scss
@@ -328,6 +328,7 @@ aside.onebox {
width: 60px;
height: 50px;
float: left;
+
@include gdocs-logo("docs");
@include gdocs-logo("forms");
@include gdocs-logo("sheets");
@@ -768,6 +769,7 @@ aside.onebox.twitterstatus .onebox-body {
font-size: var(--font-down-1);
color: #fff;
background-color: rgba(0, 0, 0, 0.6);
+
@include ellipsis;
max-width: 100%;
padding: 5px 0;
@@ -776,6 +778,7 @@ aside.onebox.twitterstatus .onebox-body {
padding-left: 10px;
padding-right: 10px;
overflow: hidden;
+
@include ellipsis;
.album-title {
@@ -1080,6 +1083,7 @@ iframe.loom-onebox {
position: absolute;
width: calc(100% - 40px);
animation: 0.5s fadeIn;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
diff --git a/app/assets/stylesheets/common/base/reorder-categories.scss b/app/assets/stylesheets/common/base/reorder-categories.scss
index 67199039407..a917ad24435 100644
--- a/app/assets/stylesheets/common/base/reorder-categories.scss
+++ b/app/assets/stylesheets/common/base/reorder-categories.scss
@@ -18,6 +18,7 @@
td {
padding: 0.5em 0.5em 0.5em 0;
min-width: 10em;
+
@include breakpoint(mobile, min-width) {
min-width: 15em;
}
@@ -26,6 +27,7 @@
.badge-category__wrapper .badge-category {
max-width: 20em;
+
@include breakpoint(mobile-extra-large) {
max-width: 30vw;
}
diff --git a/app/assets/stylesheets/common/base/reviewables.scss b/app/assets/stylesheets/common/base/reviewables.scss
index f5a6bf2d513..944ed301660 100644
--- a/app/assets/stylesheets/common/base/reviewables.scss
+++ b/app/assets/stylesheets/common/base/reviewables.scss
@@ -250,6 +250,7 @@
.created-by {
margin-right: 1em;
padding-top: 0.35em;
+
@include breakpoint("mobile-large") {
float: left;
margin-bottom: 1em;
@@ -265,6 +266,7 @@
margin-top: 1em;
min-width: 275px;
word-break: break-word;
+
@include breakpoint("mobile-large", min-width) {
display: flex;
}
@@ -561,6 +563,7 @@
&.user a,
&.reviewed-by a {
max-width: 150px;
+
@include ellipsis;
}
}
@@ -574,6 +577,7 @@
&:not(:empty) {
padding: 0.5em;
}
+
@include breakpoint("mobile-large") {
@include ellipsis;
padding-right: 0.5em;
diff --git a/app/assets/stylesheets/common/base/search-menu.scss b/app/assets/stylesheets/common/base/search-menu.scss
index fa9053ef814..a906f022b2b 100644
--- a/app/assets/stylesheets/common/base/search-menu.scss
+++ b/app/assets/stylesheets/common/base/search-menu.scss
@@ -308,6 +308,7 @@ $search-pad-horizontal: 0.5em;
display: flex;
flex-wrap: wrap;
align-items: baseline;
+
@include ellipsis;
.d-icon {
diff --git a/app/assets/stylesheets/common/base/search.scss b/app/assets/stylesheets/common/base/search.scss
index a083b04ef3c..3aa1659cc5f 100644
--- a/app/assets/stylesheets/common/base/search.scss
+++ b/app/assets/stylesheets/common/base/search.scss
@@ -19,6 +19,7 @@
.search-header {
background: var(--primary-very-low);
+
@include search-page-spacing;
}
@@ -97,6 +98,7 @@
padding: 1em 10%;
background-color: var(--secondary);
border-bottom: 1px solid var(--primary-low);
+
@include breakpoint(medium) {
padding: 0.5em 0;
}
@@ -113,6 +115,7 @@
button {
margin: 0 0.5em 0 0;
+
@include breakpoint(medium) {
margin: 0 0.5em 0.5em 0;
}
@@ -442,12 +445,14 @@
color: var(--primary-high-or-secondary-low);
font-size: var(--font-0);
font-weight: 700;
+
@include ellipsis;
}
.username {
color: var(--primary-high-or-secondary-low);
font-size: var(--font-down-1);
+
@include ellipsis;
}
}
diff --git a/app/assets/stylesheets/common/base/sidebar-custom-section.scss b/app/assets/stylesheets/common/base/sidebar-custom-section.scss
index 515fb2f5815..b6536c313cd 100644
--- a/app/assets/stylesheets/common/base/sidebar-custom-section.scss
+++ b/app/assets/stylesheets/common/base/sidebar-custom-section.scss
@@ -14,6 +14,7 @@
a {
-webkit-touch-callout: none !important;
+
@include unselectable;
cursor: pointer;
}
diff --git a/app/assets/stylesheets/common/base/sidebar-section.scss b/app/assets/stylesheets/common/base/sidebar-section.scss
index d6fcc8ef3ab..370c75d692f 100644
--- a/app/assets/stylesheets/common/base/sidebar-section.scss
+++ b/app/assets/stylesheets/common/base/sidebar-section.scss
@@ -95,6 +95,7 @@
.sidebar-section-header-text {
line-height: normal;
margin-right: 0.25em;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/base/sidebar.scss b/app/assets/stylesheets/common/base/sidebar.scss
index 4c613b7d64c..ed933660514 100644
--- a/app/assets/stylesheets/common/base/sidebar.scss
+++ b/app/assets/stylesheets/common/base/sidebar.scss
@@ -224,6 +224,7 @@
.input-group {
margin: 0 0.5em;
+
@include breakpoint(mobile-large) {
margin: 0 0.25em;
}
@@ -258,6 +259,7 @@
display: grid;
grid-template-columns: auto 1fr auto;
gap: 0.5em 1em;
+
@include breakpoint(mobile-extra-large) {
grid-template-columns: auto 1fr;
justify-items: left;
diff --git a/app/assets/stylesheets/common/base/tagging.scss b/app/assets/stylesheets/common/base/tagging.scss
index 1ea30fabb6a..04df862960e 100644
--- a/app/assets/stylesheets/common/base/tagging.scss
+++ b/app/assets/stylesheets/common/base/tagging.scss
@@ -59,6 +59,7 @@
.discourse-tag {
max-width: 14em;
display: inline-block;
+
@include ellipsis;
vertical-align: middle;
margin: 0;
@@ -294,6 +295,7 @@ header .discourse-tag {
display: block;
}
}
+
@include breakpoint(tablet) {
.select-kit.multi-select {
width: 100%;
diff --git a/app/assets/stylesheets/common/base/topic-admin-menu.scss b/app/assets/stylesheets/common/base/topic-admin-menu.scss
index 3f198d82ef9..ffe68fabee0 100644
--- a/app/assets/stylesheets/common/base/topic-admin-menu.scss
+++ b/app/assets/stylesheets/common/base/topic-admin-menu.scss
@@ -68,6 +68,7 @@
&[disabled] {
text-shadow: 0 1px 0 rgba(var(--primary-rgb), 0.2);
+
@include linear-gradient(var(--tertiary), var(--tertiary-hover));
box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.33);
}
diff --git a/app/assets/stylesheets/common/base/topic-post.scss b/app/assets/stylesheets/common/base/topic-post.scss
index 61d6d4807e5..eead4319c68 100644
--- a/app/assets/stylesheets/common/base/topic-post.scss
+++ b/app/assets/stylesheets/common/base/topic-post.scss
@@ -66,6 +66,7 @@
font-size: var(--font-0);
margin-right: 0.33em;
display: inline-block;
+
@include ellipsis;
vertical-align: middle;
@@ -657,6 +658,7 @@ aside.quote {
.expanded-quote {
overflow: hidden;
+
@media (prefers-reduced-motion: no-preference) {
animation: slideout 1s ease-in-out;
}
@@ -752,6 +754,7 @@ aside.quote {
.buttons {
display: flex;
flex-wrap: wrap;
+
@media screen and (max-width: 420px) {
flex-direction: column;
align-items: flex-start;
@@ -1426,6 +1429,7 @@ span.mention {
max-width: calc(var(--topic-body-width) + 4.5em);
padding: 3em 5em 2em
calc(var(--topic-avatar-width) + var(--topic-body-width-padding));
+
@include breakpoint(mobile-extra-large) {
padding: 1.5em 1.5em 0.25em;
}
@@ -1459,6 +1463,7 @@ span.mention {
&.btn-remind {
background: var(--primary-very-low);
margin-right: auto;
+
@include hover {
background: var(--primary-medium);
}
diff --git a/app/assets/stylesheets/common/base/topic.scss b/app/assets/stylesheets/common/base/topic.scss
index dc17a34723f..445a2f44a5d 100644
--- a/app/assets/stylesheets/common/base/topic.scss
+++ b/app/assets/stylesheets/common/base/topic.scss
@@ -169,6 +169,7 @@
.title-wrapper {
display: flex;
flex-wrap: wrap;
+
@media screen and (min-width: 925px) {
width: 90%; // topic title isn't full-width on wide screens
}
@@ -210,6 +211,7 @@
.edit-category__wrapper {
flex: 1 1 5%;
+
@include breakpoint(tablet) {
min-width: 0; // allows category name to shrink to fit narrow screens
}
@@ -221,6 +223,7 @@
.edit-tags__wrapper {
flex: 1 1 33%;
+
@include breakpoint(tablet) {
flex: 1 1 100%; // force full row on narrow screens
}
@@ -232,6 +235,7 @@
.select-kit-header--filter {
flex-wrap: nowrap; // forces the whole input to wrap if needed, rather than individual tags
min-width: 0;
+
@include breakpoint(tablet) {
flex-wrap: wrap; // individual tags will need to wrap on narrow screens
}
@@ -284,6 +288,7 @@
.mini-tag-chooser {
margin-left: 0;
+
@include breakpoint(mobile-large, min-width) {
.selected-name {
max-width: 500px;
diff --git a/app/assets/stylesheets/common/base/user-badges.scss b/app/assets/stylesheets/common/base/user-badges.scss
index 9bb931718f9..c4404fdbcf2 100644
--- a/app/assets/stylesheets/common/base/user-badges.scss
+++ b/app/assets/stylesheets/common/base/user-badges.scss
@@ -231,6 +231,7 @@
h3 {
margin-bottom: 0.25em;
font-size: var(--font-up-1);
+
@media screen and (min-width: 900px) {
font-size: var(--font-up-2);
}
diff --git a/app/assets/stylesheets/common/base/user.scss b/app/assets/stylesheets/common/base/user.scss
index 635e6b35c9e..3ba9e9b0fc9 100644
--- a/app/assets/stylesheets/common/base/user.scss
+++ b/app/assets/stylesheets/common/base/user.scss
@@ -742,6 +742,7 @@
@include inactiveMode;
}
}
+
@media (prefers-color-scheme: light) {
.dark-color-scheme {
@include inactiveMode;
@@ -940,6 +941,7 @@
.user-profile-names__secondary {
max-width: 100%;
margin: 0;
+
@include ellipsis;
}
@@ -967,6 +969,7 @@
.user-profile__location-and-website {
font-size: var(--font-0);
margin-top: 0.5em;
+
@include ellipsis;
.d-icon {
diff --git a/app/assets/stylesheets/common/components/bookmark-list.scss b/app/assets/stylesheets/common/components/bookmark-list.scss
index 564f422e224..82d0a30a90a 100644
--- a/app/assets/stylesheets/common/components/bookmark-list.scss
+++ b/app/assets/stylesheets/common/components/bookmark-list.scss
@@ -10,6 +10,7 @@ $mobile-breakpoint: 700px;
.topic-list-data.post-metadata {
text-align: center;
}
+
@media (max-width: $mobile-breakpoint) {
.main-link {
padding-right: 0.5em;
diff --git a/app/assets/stylesheets/common/components/buttons.scss b/app/assets/stylesheets/common/components/buttons.scss
index 7a4a0bf8340..19158fb1fc6 100644
--- a/app/assets/stylesheets/common/components/buttons.scss
+++ b/app/assets/stylesheets/common/components/buttons.scss
@@ -57,6 +57,7 @@
margin-right: 0;
}
}
+
@include hover {
background-color: $hover-bg-color;
color: $hover-text-color;
@@ -78,6 +79,7 @@
.d-icon {
color: $hover-icon-color;
+
@media (forced-colors: active) {
color: Highlight;
}
@@ -414,6 +416,7 @@
&:focus-visible {
color: var(--tertiary);
background: transparent;
+
@include default-focus;
}
}
@@ -491,6 +494,7 @@
.d-icon {
color: var(--primary-medium);
}
+
@include hover {
.d-icon {
color: var(--primary);
diff --git a/app/assets/stylesheets/common/components/conditional-loading-section.scss b/app/assets/stylesheets/common/components/conditional-loading-section.scss
index cbfd44f5b2b..c332ea9d53a 100644
--- a/app/assets/stylesheets/common/components/conditional-loading-section.scss
+++ b/app/assets/stylesheets/common/components/conditional-loading-section.scss
@@ -16,6 +16,7 @@
&:not(.is-loading) {
animation: fadein 0.5s;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
diff --git a/app/assets/stylesheets/common/components/footer-nav.scss b/app/assets/stylesheets/common/components/footer-nav.scss
index 50c474a7626..21c2ac00c60 100644
--- a/app/assets/stylesheets/common/components/footer-nav.scss
+++ b/app/assets/stylesheets/common/components/footer-nav.scss
@@ -48,6 +48,7 @@ html.footer-nav-visible {
.footer-nav-widget {
display: flex;
justify-content: "space-evenly";
+
@include unselectable;
button {
diff --git a/app/assets/stylesheets/common/components/navs.scss b/app/assets/stylesheets/common/components/navs.scss
index 92d97f21b3d..57f26bc229a 100644
--- a/app/assets/stylesheets/common/components/navs.scss
+++ b/app/assets/stylesheets/common/components/navs.scss
@@ -89,6 +89,7 @@
line-height: var(--line-height-small);
cursor: pointer;
color: var(--primary);
+
@include ellipsis;
&:hover {
diff --git a/app/assets/stylesheets/common/components/notifications-tracking.scss b/app/assets/stylesheets/common/components/notifications-tracking.scss
index 3357c134ac9..870c8ac3819 100644
--- a/app/assets/stylesheets/common/components/notifications-tracking.scss
+++ b/app/assets/stylesheets/common/components/notifications-tracking.scss
@@ -30,6 +30,7 @@
font-size: var(--font-0);
color: var(--primary);
max-width: 100%;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/components/post-list.scss b/app/assets/stylesheets/common/components/post-list.scss
index 12e5c1d814b..cc278c14b28 100644
--- a/app/assets/stylesheets/common/components/post-list.scss
+++ b/app/assets/stylesheets/common/components/post-list.scss
@@ -60,6 +60,7 @@
.name {
font-size: var(--font-0);
max-width: 400px;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/components/powered-by-discourse.scss b/app/assets/stylesheets/common/components/powered-by-discourse.scss
index 999a6e867c2..3c9560e4f13 100644
--- a/app/assets/stylesheets/common/components/powered-by-discourse.scss
+++ b/app/assets/stylesheets/common/components/powered-by-discourse.scss
@@ -42,6 +42,7 @@
.discourse-no-touch & {
&:hover {
color: var(--primary-high);
+
@media (prefers-reduced-motion: no-preference) {
// secondary repeat is an intentional buffer
background: linear-gradient(
diff --git a/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/categories-modal.scss b/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/categories-modal.scss
index f974b8f2983..21e4717a9ac 100644
--- a/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/categories-modal.scss
+++ b/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/categories-modal.scss
@@ -59,6 +59,7 @@
.category-name {
color: var(--primary);
font-size: var(--font-up-1);
+
@include ellipsis;
}
}
diff --git a/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/modal.scss b/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/modal.scss
index 5f295e6fcd3..b010eac55c4 100644
--- a/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/modal.scss
+++ b/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/modal.scss
@@ -8,6 +8,7 @@
display: flex;
gap: 0.5em;
padding: 1rem 0.66em 0;
+
@include breakpoint("tablet", min-width) {
padding: 1rem 1.5rem 0;
}
diff --git a/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/tags-modal.scss b/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/tags-modal.scss
index fea3b38f9b4..5bf37b5784b 100644
--- a/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/tags-modal.scss
+++ b/app/assets/stylesheets/common/components/sidebar/edit-navigation-menu/tags-modal.scss
@@ -22,6 +22,7 @@
min-width: 0;
padding: 0.33em 0;
font-weight: normal;
+
@include breakpoint(tablet) {
// extra tappable space
padding: 0.5em 0;
diff --git a/app/assets/stylesheets/common/components/theme-card.scss b/app/assets/stylesheets/common/components/theme-card.scss
index 511e1a7cfe0..00aa9b9fe3b 100644
--- a/app/assets/stylesheets/common/components/theme-card.scss
+++ b/app/assets/stylesheets/common/components/theme-card.scss
@@ -19,6 +19,7 @@
&.--updating {
animation: updating 3s ease-in-out 1,
updatingInfinite 3s ease-in-out 3s infinite;
+
@keyframes updating {
0% {
box-shadow: 0 0 0 3px transparent;
@@ -35,6 +36,7 @@
border: 1px solid var(--success);
}
}
+
@keyframes updatingInfinite {
0% {
box-shadow: 0 0 0 3px var(--success-low);
@@ -56,6 +58,7 @@
&.--updating .d-icon-arrows-rotate {
animation: rotate 3s linear infinite;
margin-right: 0.45em;
+
@keyframes rotate {
0% {
transform: rotate(0deg);
diff --git a/app/assets/stylesheets/common/components/topic-map.scss b/app/assets/stylesheets/common/components/topic-map.scss
index d21d74b2a3c..2e3bf362a77 100644
--- a/app/assets/stylesheets/common/components/topic-map.scss
+++ b/app/assets/stylesheets/common/components/topic-map.scss
@@ -133,6 +133,7 @@ body:not(.archetype-private_message) {
font-size: var(--font-down-1);
color: var(--primary-medium);
width: 100%;
+
@include ellipsis;
}
}
diff --git a/app/assets/stylesheets/common/components/user-card.scss b/app/assets/stylesheets/common/components/user-card.scss
index 1ec8eeb4981..3ebcde2d1ca 100644
--- a/app/assets/stylesheets/common/components/user-card.scss
+++ b/app/assets/stylesheets/common/components/user-card.scss
@@ -99,6 +99,7 @@
.name-username-wrapper {
margin-right: 0;
flex: 0 1 auto;
+
@include ellipsis;
}
@@ -151,6 +152,7 @@
.names__secondary,
[class*="metadata__"] {
margin: 0;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/components/user-info.scss b/app/assets/stylesheets/common/components/user-info.scss
index 9b2f2af7eb8..476ad19320b 100644
--- a/app/assets/stylesheets/common/components/user-info.scss
+++ b/app/assets/stylesheets/common/components/user-info.scss
@@ -11,6 +11,7 @@
.user-detail {
min-width: 0;
+
@include breakpoint(mobile-medium) {
font-size: var(--font-down-1);
}
@@ -26,6 +27,7 @@
.name,
.username {
width: 100%;
+
@include ellipsis;
}
@@ -44,6 +46,7 @@
.title {
color: var(--primary-medium);
+
@include ellipsis;
}
}
diff --git a/app/assets/stylesheets/common/components/user-stream-item.scss b/app/assets/stylesheets/common/components/user-stream-item.scss
index ba32e1f3042..02f72b560c1 100644
--- a/app/assets/stylesheets/common/components/user-stream-item.scss
+++ b/app/assets/stylesheets/common/components/user-stream-item.scss
@@ -166,6 +166,7 @@
.name {
font-size: var(--font-0);
max-width: 400px;
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/form-kit/_control-menu.scss b/app/assets/stylesheets/common/form-kit/_control-menu.scss
index ff3eb29d9fc..50007c3e828 100644
--- a/app/assets/stylesheets/common/form-kit/_control-menu.scss
+++ b/app/assets/stylesheets/common/form-kit/_control-menu.scss
@@ -1,5 +1,6 @@
.form-kit__control-menu-trigger {
justify-content: space-between;
+
@include default-input;
}
diff --git a/app/assets/stylesheets/common/foundation/base.scss b/app/assets/stylesheets/common/foundation/base.scss
index d4f775080d8..d22d4911dd9 100644
--- a/app/assets/stylesheets/common/foundation/base.scss
+++ b/app/assets/stylesheets/common/foundation/base.scss
@@ -148,6 +148,7 @@ tbody {
.topic-list-item,
tr {
border-bottom: 1px solid var(--primary-low);
+
@media (prefers-reduced-motion: no-preference) {
&.highlighted {
animation: background-fade-highlight 2.5s ease-out;
diff --git a/app/assets/stylesheets/common/foundation/math.scss b/app/assets/stylesheets/common/foundation/math.scss
index fe429566238..74ff5aa9249 100644
--- a/app/assets/stylesheets/common/foundation/math.scss
+++ b/app/assets/stylesheets/common/foundation/math.scss
@@ -29,10 +29,12 @@ $SQRT2: 1.4142135623730951;
}
$ret: 1;
+
@while $x > 0 {
$ret: $ret * $x;
$x: $x - 1;
}
+
@return $ret;
}
@@ -41,9 +43,11 @@ $SQRT2: 1.4142135623730951;
// @return {List} fraction, exponent
@function frexp($x) {
$exp: 0;
+
@if $x < 0 {
$x: $x * -1;
}
+
@if $x < 0.5 {
@while $x < 0.5 {
$x: $x * 2;
@@ -55,6 +59,7 @@ $SQRT2: 1.4142135623730951;
$exp: $exp + 1;
}
}
+
@return $x, $exp;
}
@@ -63,9 +68,11 @@ $SQRT2: 1.4142135623730951;
// @param {Number} $exp
@function ldexp($x, $exp) {
$b: if($exp >= 0, 2, 1 * 0.5);
+
@if $exp < 0 {
$exp: $exp * -1;
}
+
@while $exp > 0 {
@if $exp % 2 == 1 {
$x: $x * $b;
@@ -74,6 +81,7 @@ $SQRT2: 1.4142135623730951;
$b: $b * $b;
$exp: math.floor($exp * 0.5);
}
+
@return $x;
}
@@ -94,12 +102,14 @@ $SQRT2: 1.4142135623730951;
$i: 1;
$s: $x;
$sp: null;
+
@while $sp != $s {
$x: $x * $x2;
$i: $i + 2;
$sp: $s;
$s: $s + math.div($x, $i);
}
+
@return $LN2 * $k + 2 * $s;
}
@@ -110,10 +120,12 @@ $SQRT2: 1.4142135623730951;
$r: 1;
$s: 0;
+
@if $exp < 0 {
$exp: $exp * -1;
$s: 1;
}
+
@while $exp > 0 {
@if $exp % 2 == 1 {
$r: $r * $base;
@@ -122,6 +134,7 @@ $SQRT2: 1.4142135623730951;
$exp: math.floor($exp * 0.5);
$base: $base * $base;
}
+
@return if($s != 0, math.div(1, $r), $r);
}
@@ -132,9 +145,11 @@ $SQRT2: 1.4142135623730951;
// exp(-1) // 0.36788
@function exp($x) {
$ret: 0;
+
@for $n from 0 to 24 {
$ret: $ret + math.div(ipow($x, $n), fact($n));
}
+
@return $ret;
}
@@ -165,8 +180,10 @@ $SQRT2: 1.4142135623730951;
}
$ret: 1;
+
@for $i from 1 through 24 {
$ret: $ret - math.div(pow($ret, 2) - $x, 2 * $ret);
}
+
@return $ret;
}
diff --git a/app/assets/stylesheets/common/foundation/mixins.scss b/app/assets/stylesheets/common/foundation/mixins.scss
index 4b443ad83dd..8e59fd3f047 100644
--- a/app/assets/stylesheets/common/foundation/mixins.scss
+++ b/app/assets/stylesheets/common/foundation/mixins.scss
@@ -129,6 +129,7 @@ $hpad: 0.65em;
// Unselectable (avoids unwanted selections with iPad, touch laptops, etc)
@mixin unselectable {
cursor: default;
+
@include user-select(none);
}
@@ -222,6 +223,7 @@ $hpad: 0.65em;
@if global-variable-exists(public_image_path) {
@if string.index("#{$path}", "/plugins") == 1 {
$plugin_asset_path: str-replace($public_image_path, "/images", "");
+
@return url("#{$plugin_asset_path}#{$path}");
} @else {
@return url("#{$public_image_path}#{$path}");
diff --git a/app/assets/stylesheets/common/foundation/variables.scss b/app/assets/stylesheets/common/foundation/variables.scss
index dcca317fbf0..3cdfd2400ed 100644
--- a/app/assets/stylesheets/common/foundation/variables.scss
+++ b/app/assets/stylesheets/common/foundation/variables.scss
@@ -117,6 +117,7 @@ $z-layers: (
/* stylelint-disable-next-line scss/no-global-function-names */
$map: map-get($map, $key);
}
+
@return true;
}
@@ -125,6 +126,7 @@ $z-layers: (
/* stylelint-disable-next-line scss/no-global-function-names */
$map: map-get($map, $key);
}
+
@return $map;
}
@@ -132,6 +134,7 @@ $z-layers: (
@if not map-has-nested-keys($z-layers, $layers...) {
@warn "No layer defined for `#{meta.inspect($layers...)}` in $z-layers map- Check variables.scss, property omitted.";
}
+
@return map-deep-get($z-layers, $layers...);
}
@@ -162,6 +165,7 @@ $z-layers: (
$r_r: discourse-math.sqrt($r_r2);
$r_g: discourse-math.sqrt($r_g2);
$r_b: discourse-math.sqrt($r_b2);
+
@return rgb($r_r, $r_g, $r_b);
}
@@ -188,6 +192,7 @@ $z-layers: (
@return color.scale($adjusted-color, $lightness: $darkness);
}
}
+
@function dark-light-choose($light-theme-result, $dark-theme-result) {
@if is-light-color-scheme() {
@return $light-theme-result;
diff --git a/app/assets/stylesheets/common/input_tip.scss b/app/assets/stylesheets/common/input_tip.scss
index 0745218f14f..74d6bbe17f7 100644
--- a/app/assets/stylesheets/common/input_tip.scss
+++ b/app/assets/stylesheets/common/input_tip.scss
@@ -18,6 +18,7 @@
left: 0;
z-index: z("composer", "dropdown") + 1;
cursor: pointer;
+
@media (prefers-reduced-motion: no-preference) {
animation: 0.15s slidein 3;
}
diff --git a/app/assets/stylesheets/common/login/invite-signup.scss b/app/assets/stylesheets/common/login/invite-signup.scss
index 05c1379eac8..42c6cda1fcc 100644
--- a/app/assets/stylesheets/common/login/invite-signup.scss
+++ b/app/assets/stylesheets/common/login/invite-signup.scss
@@ -81,6 +81,7 @@
padding: 2rem 3rem;
background: var(--secondary);
margin: 0 auto;
+
@media screen and (max-width: 700px) {
margin: 1em auto 1em auto;
padding: 1rem;
diff --git a/app/assets/stylesheets/common/modal/modal-overrides.scss b/app/assets/stylesheets/common/modal/modal-overrides.scss
index 29dac884444..83f7f0c027c 100644
--- a/app/assets/stylesheets/common/modal/modal-overrides.scss
+++ b/app/assets/stylesheets/common/modal/modal-overrides.scss
@@ -464,6 +464,7 @@
border: 0;
outline: none;
flex: 1;
+
@include ellipsis;
width: 100%;
justify-content: flex-start;
diff --git a/app/assets/stylesheets/common/select-kit/dropdown-select-box.scss b/app/assets/stylesheets/common/select-kit/dropdown-select-box.scss
index 73300852840..8ad98b0c8f8 100644
--- a/app/assets/stylesheets/common/select-kit/dropdown-select-box.scss
+++ b/app/assets/stylesheets/common/select-kit/dropdown-select-box.scss
@@ -49,6 +49,7 @@
font-size: var(--font-0);
color: var(--primary);
padding: 0;
+
@include ellipsis;
max-width: 100%;
}
diff --git a/app/assets/stylesheets/common/select-kit/email-group-user-chooser.scss b/app/assets/stylesheets/common/select-kit/email-group-user-chooser.scss
index 40141175d5d..a3d4ce41e02 100644
--- a/app/assets/stylesheets/common/select-kit/email-group-user-chooser.scss
+++ b/app/assets/stylesheets/common/select-kit/email-group-user-chooser.scss
@@ -18,6 +18,7 @@
.name {
color: var(--primary-high);
font-size: var(--font-down-1);
+
@include ellipsis;
}
diff --git a/app/assets/stylesheets/common/select-kit/multi-select.scss b/app/assets/stylesheets/common/select-kit/multi-select.scss
index 8c0b112607f..daf76c35635 100644
--- a/app/assets/stylesheets/common/select-kit/multi-select.scss
+++ b/app/assets/stylesheets/common/select-kit/multi-select.scss
@@ -57,6 +57,7 @@
.formatted-selection {
margin: 0;
cursor: pointer;
+
@include ellipsis;
display: inline-block;
}
diff --git a/app/assets/stylesheets/common/topic-entrance.scss b/app/assets/stylesheets/common/topic-entrance.scss
index cedd7c4a1a5..89d962d3b3d 100644
--- a/app/assets/stylesheets/common/topic-entrance.scss
+++ b/app/assets/stylesheets/common/topic-entrance.scss
@@ -4,6 +4,7 @@
background: var(--secondary);
box-shadow: var(--shadow-card);
width: 133px;
+
@include unselectable;
&:not(.--glimmer) {
diff --git a/app/assets/stylesheets/common/topic-timeline.scss b/app/assets/stylesheets/common/topic-timeline.scss
index 8ead00be033..719f28779e8 100644
--- a/app/assets/stylesheets/common/topic-timeline.scss
+++ b/app/assets/stylesheets/common/topic-timeline.scss
@@ -16,6 +16,7 @@
&.timeline-fullscreen.show {
max-height: 700px;
+
@media (prefers-reduced-motion: no-preference) {
transition: max-height 0.4s ease-out;
}
@@ -79,7 +80,9 @@
max-width: 650px;
line-height: var(--line-height-large);
display: block;
+
@include line-clamp(8);
+
@media screen and (max-height: 425px) {
@include line-clamp(5);
}
@@ -103,6 +106,7 @@
display: block;
line-height: var(--line-height-medium);
font-size: var(--font-up-2);
+
@include line-clamp(4);
}
diff --git a/app/assets/stylesheets/desktop.scss b/app/assets/stylesheets/desktop.scss
index d302363926b..20f8d326ea0 100644
--- a/app/assets/stylesheets/desktop.scss
+++ b/app/assets/stylesheets/desktop.scss
@@ -1,5 +1,4 @@
@import "common";
-
@import "desktop/_index";
// Import all component-specific files
diff --git a/app/assets/stylesheets/desktop/category-list.scss b/app/assets/stylesheets/desktop/category-list.scss
index 9dfe1e7f189..caa1c5f106b 100644
--- a/app/assets/stylesheets/desktop/category-list.scss
+++ b/app/assets/stylesheets/desktop/category-list.scss
@@ -67,6 +67,7 @@
display: inline-flex;
align-items: baseline;
gap: 0.25em;
+
@include ellipsis;
.badge-category {
@@ -173,9 +174,11 @@
@media all and (max-width: 600px) {
margin-right: 0;
}
+
@media all and (min-width: 600px) {
margin-right: 1em;
}
+
@media all and (min-width: 700px) {
margin-right: 2em;
}
diff --git a/app/assets/stylesheets/desktop/components/user-card.scss b/app/assets/stylesheets/desktop/components/user-card.scss
index 356799bd340..5bbfd9f81ab 100644
--- a/app/assets/stylesheets/desktop/components/user-card.scss
+++ b/app/assets/stylesheets/desktop/components/user-card.scss
@@ -18,6 +18,7 @@
.user-profile-link {
&:focus-visible {
border: 1px solid;
+
@include default-focus;
}
}
diff --git a/app/assets/stylesheets/desktop/discourse.scss b/app/assets/stylesheets/desktop/discourse.scss
index 1afa1923f35..499495106ff 100644
--- a/app/assets/stylesheets/desktop/discourse.scss
+++ b/app/assets/stylesheets/desktop/discourse.scss
@@ -120,6 +120,7 @@ select {
.control-group {
margin-bottom: 18px;
+
@include clearfix;
}
diff --git a/app/assets/stylesheets/desktop/modal.scss b/app/assets/stylesheets/desktop/modal.scss
index 3bb7ed075b0..6a68a1da5cd 100644
--- a/app/assets/stylesheets/desktop/modal.scss
+++ b/app/assets/stylesheets/desktop/modal.scss
@@ -24,6 +24,7 @@ html.modal-open {
.modal.in {
animation: fade 0.25s;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
diff --git a/app/assets/stylesheets/desktop/topic-post.scss b/app/assets/stylesheets/desktop/topic-post.scss
index 390648639b0..32203282175 100644
--- a/app/assets/stylesheets/desktop/topic-post.scss
+++ b/app/assets/stylesheets/desktop/topic-post.scss
@@ -588,6 +588,7 @@ blockquote {
padding: 0.714em;
margin-bottom: 5px;
right: 10px;
+
@include breakpoint(extra-large, min-width) {
right: auto;
margin-left: 330px;
diff --git a/app/assets/stylesheets/mobile/components/user-card.scss b/app/assets/stylesheets/mobile/components/user-card.scss
index 13ee216820a..ada1b7d019d 100644
--- a/app/assets/stylesheets/mobile/components/user-card.scss
+++ b/app/assets/stylesheets/mobile/components/user-card.scss
@@ -128,6 +128,7 @@
width: 100vw;
background-color: rgba(black, 0.5);
animation: fadein 0.2s;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
diff --git a/app/assets/stylesheets/mobile/discourse.scss b/app/assets/stylesheets/mobile/discourse.scss
index 2a37facd357..c9ba161f88d 100644
--- a/app/assets/stylesheets/mobile/discourse.scss
+++ b/app/assets/stylesheets/mobile/discourse.scss
@@ -61,6 +61,7 @@ blockquote {
> li > a.expander {
display: flex;
align-items: center;
+
@include form-item-sizing;
border-color: var(--primary-medium);
max-width: 100%;
@@ -102,6 +103,7 @@ blockquote {
height: 100%;
display: block;
padding: 5px 8px;
+
@include ellipsis;
}
}
diff --git a/app/assets/stylesheets/mobile/edit-category.scss b/app/assets/stylesheets/mobile/edit-category.scss
index f4f7988da0b..1810ce7d10f 100644
--- a/app/assets/stylesheets/mobile/edit-category.scss
+++ b/app/assets/stylesheets/mobile/edit-category.scss
@@ -55,6 +55,7 @@ div.edit-category {
h2 {
order: 2;
margin-bottom: 0;
+
@include ellipsis;
}
}
diff --git a/app/assets/stylesheets/mobile/header.scss b/app/assets/stylesheets/mobile/header.scss
index e56ad0ced9a..d30742993c9 100644
--- a/app/assets/stylesheets/mobile/header.scss
+++ b/app/assets/stylesheets/mobile/header.scss
@@ -53,6 +53,7 @@
// Fade in header avatar + icons if topic title is not visible in mobile header
.panel .icons {
animation: fadein 0.5s;
+
@media (prefers-reduced-motion) {
animation-duration: 0s;
}
diff --git a/app/assets/stylesheets/mobile/topic-post.scss b/app/assets/stylesheets/mobile/topic-post.scss
index 22d9c414348..c2f742a442d 100644
--- a/app/assets/stylesheets/mobile/topic-post.scss
+++ b/app/assets/stylesheets/mobile/topic-post.scss
@@ -126,6 +126,7 @@ nav.post-controls button.reply .d-icon {
.post-admin-menu {
bottom: -50px;
left: 135px;
+
@media screen and (max-width: 374px) {
left: 50px;
}
diff --git a/app/assets/stylesheets/publish.scss b/app/assets/stylesheets/publish.scss
index 19a448f5d94..f58de1ea6ad 100644
--- a/app/assets/stylesheets/publish.scss
+++ b/app/assets/stylesheets/publish.scss
@@ -43,6 +43,7 @@
font-size: var(--font-up-5);
margin: 0;
line-height: var(--line-height-medium);
+
@include breakpoint(mobile-extra-large) {
font-size: var(--font-up-3);
}
diff --git a/app/assets/stylesheets/wizard.scss b/app/assets/stylesheets/wizard.scss
index 7301d02f649..f03c3b79543 100644
--- a/app/assets/stylesheets/wizard.scss
+++ b/app/assets/stylesheets/wizard.scss
@@ -53,9 +53,11 @@ body.wizard {
position: relative;
height: 70px;
width: auto;
+
@include breakpoint("mobile-extra-large") {
height: 50px;
}
+
@media screen and (max-height: 900px) {
.desktop-view & {
display: none;
@@ -127,6 +129,7 @@ body.wizard {
&__step-description {
font-size: var(--font-up-2);
flex: 1 0 40%;
+
@include breakpoint("tablet") {
font-size: var(--font-up-2);
}
@@ -169,6 +172,7 @@ body.wizard {
&__field.invalid input {
outline: 0;
border: 3px solid var(--danger);
+
@media (prefers-reduced-motion: no-preference) {
animation: bump 0.25s ease-in-out;
animation-iteration-count: 2;
@@ -195,6 +199,7 @@ body.wizard {
&__step-form {
display: flex;
flex: 1 0 50%;
+
@media only screen and (max-width: 568px) {
width: 100%;
}
@@ -292,6 +297,7 @@ body.wizard {
color: var(--primary);
line-height: var(--line-height-medium);
margin: 0 0 0.5em 0;
+
@include breakpoint("medium") {
font-size: var(--font-up-5);
}
@@ -322,6 +328,7 @@ body.wizard {
flex-wrap: wrap;
gap: 1em;
align-items: center;
+
@include breakpoint("mobile-extra-large") {
order: 2;
}
@@ -340,6 +347,7 @@ body.wizard {
&__step-text {
display: inline;
+
@media only screen and (max-width: 568px) {
display: none;
}
@@ -399,6 +407,7 @@ body.wizard {
&__button.primary {
background-color: var(--tertiary);
color: var(--secondary);
+
@include breakpoint("mobile-extra-large") {
order: 1;
margin-left: 0;
@@ -422,6 +431,7 @@ body.wizard {
margin-right: 1em;
background-color: transparent;
color: var(--tertiary);
+
@include breakpoint("mobile-extra-large") {
order: 2;
}
@@ -440,6 +450,7 @@ body.wizard {
&__button.finish {
color: var(--tertiary);
+
@include breakpoint("mobile-extra-large") {
order: 2;
}
@@ -458,6 +469,7 @@ body.wizard {
&__button.next {
min-width: 70px;
margin-left: 1em;
+
@include breakpoint("mobile-extra-large") {
order: 1;
margin-left: 0;
@@ -514,6 +526,7 @@ body.wizard {
display: flex;
justify-content: space-between;
align-items: center;
+
@include breakpoint("mobile-extra-large") {
flex-direction: column;
justify-content: center;
@@ -554,6 +567,7 @@ body.wizard {
color: var(--primary-high);
font-size: var(--font-up-1);
margin: 0.25em 0 0.5em 3.5em;
+
@media only screen and (max-width: 568px) {
margin-left: 2em;
}
@@ -615,6 +629,7 @@ body.wizard {
position: relative;
vertical-align: middle;
transition: background 0.25s;
+
@media only screen and (max-width: 568px) {
height: 20px;
width: 35px;
@@ -633,6 +648,7 @@ body.wizard {
color: var(--secondary);
top: 4px;
left: 9px;
+
@media only screen and (max-width: 568px) {
top: 3px;
left: 5px;
@@ -648,6 +664,7 @@ body.wizard {
top: 4px;
left: 4px;
transition: left 0.25s;
+
@media only screen and (max-width: 568px) {
height: 12px;
width: 12px;
@@ -667,6 +684,7 @@ body.wizard {
&__checkbox:checked + .wizard-container__checkbox-slider::before {
left: 26px;
+
@media only screen and (max-width: 568px) {
left: 20px;
}
@@ -691,6 +709,7 @@ body.wizard {
align-items: stretch;
display: flex;
gap: 1em;
+
@include breakpoint(mobile-extra-large) {
flex-direction: column;
}
@@ -746,6 +765,7 @@ body.wizard {
.wizard-congratulations-wrap {
display: flex;
gap: 1em;
+
@media screen and (max-width: 750px) {
flex-direction: column-reverse;
}
diff --git a/package.json b/package.json
index 72e3e1c84ce..0011c60fa4e 100644
--- a/package.json
+++ b/package.json
@@ -6,7 +6,7 @@
"license": "GPL-2.0-only",
"devDependencies": {
"@babel/plugin-proposal-decorators": "^7.25.9",
- "@discourse/lint-configs": "^2.6.0",
+ "@discourse/lint-configs": "^2.7.0",
"@discourse/moment-timezone-names-translations": "^1.0.0",
"@fortawesome/fontawesome-free": "6.7.2",
"@glint/core": "1.4.1-unstable.34c4510",
diff --git a/plugins/chat/assets/stylesheets/common/chat-channel-row.scss b/plugins/chat/assets/stylesheets/common/chat-channel-row.scss
index 6af3a5d3df9..e5a42ba5c02 100644
--- a/plugins/chat/assets/stylesheets/common/chat-channel-row.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-channel-row.scss
@@ -80,6 +80,7 @@
&__channel-info {
white-space: nowrap;
overflow: hidden;
+
@include ellipsis;
display: flex;
align-items: center;
diff --git a/plugins/chat/assets/stylesheets/common/chat-channel-settings.scss b/plugins/chat/assets/stylesheets/common/chat-channel-settings.scss
index 716a192fc8c..4b5e0e41bc7 100644
--- a/plugins/chat/assets/stylesheets/common/chat-channel-settings.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-channel-settings.scss
@@ -3,6 +3,7 @@
.c-channel-settings__slug {
max-width: 250px;
+
@include ellipsis;
}
diff --git a/plugins/chat/assets/stylesheets/common/chat-channel.scss b/plugins/chat/assets/stylesheets/common/chat-channel.scss
index 8923cc8109d..adee32a6331 100644
--- a/plugins/chat/assets/stylesheets/common/chat-channel.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-channel.scss
@@ -7,6 +7,7 @@
overflow: hidden;
grid-area: main;
min-width: 250px;
+
@include chat-height(var(--chat-header-offset, 0));
.join-channel-btn.in-float {
diff --git a/plugins/chat/assets/stylesheets/common/chat-message-info.scss b/plugins/chat/assets/stylesheets/common/chat-message-info.scss
index 34846bc6019..13fb3eed4d2 100644
--- a/plugins/chat/assets/stylesheets/common/chat-message-info.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-message-info.scss
@@ -20,6 +20,7 @@
.chat-message-info__username__name {
color: var(--secondary-low);
font-weight: 700;
+
@include ellipsis;
max-width: 180px;
}
diff --git a/plugins/chat/assets/stylesheets/common/chat-navbar.scss b/plugins/chat/assets/stylesheets/common/chat-navbar.scss
index 3186147d67a..66d121a9e8e 100644
--- a/plugins/chat/assets/stylesheets/common/chat-navbar.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-navbar.scss
@@ -66,6 +66,7 @@
.c-navbar__title {
display: flex;
align-items: center;
+
@include ellipsis;
height: var(--chat-header-offset);
diff --git a/plugins/chat/assets/stylesheets/common/chat-replying-indicator.scss b/plugins/chat/assets/stylesheets/common/chat-replying-indicator.scss
index 7d8f2ce8e3f..215d06af440 100644
--- a/plugins/chat/assets/stylesheets/common/chat-replying-indicator.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-replying-indicator.scss
@@ -24,6 +24,7 @@
.chat-replying-indicator__dot {
display: inline-block;
+
@media (prefers-reduced-motion: no-preference) {
animation: chat-replying-indicator__wave 1.8s linear infinite;
}
diff --git a/plugins/chat/assets/stylesheets/common/chat-thread-list-item.scss b/plugins/chat/assets/stylesheets/common/chat-thread-list-item.scss
index 4f0b6286fc5..88f4f408f38 100644
--- a/plugins/chat/assets/stylesheets/common/chat-thread-list-item.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-thread-list-item.scss
@@ -105,6 +105,7 @@
flex-shrink: 0;
color: var(--primary-medium);
font-size: var(--font-down-2);
+
@include ellipsis;
margin-left: auto;
}
@@ -118,6 +119,7 @@
&__title {
flex: 1 1 auto;
+
@include ellipsis;
}
diff --git a/plugins/chat/assets/stylesheets/common/chat-thread.scss b/plugins/chat/assets/stylesheets/common/chat-thread.scss
index 748b254477e..f7f12675ff8 100644
--- a/plugins/chat/assets/stylesheets/common/chat-thread.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-thread.scss
@@ -2,5 +2,6 @@
display: flex;
flex-direction: column;
position: relative;
+
@include chat-height(var(--chat-header-expanded-offset, 0));
}
diff --git a/plugins/chat/assets/stylesheets/common/chat-threads-list.scss b/plugins/chat/assets/stylesheets/common/chat-threads-list.scss
index 8f72154f2f1..66a89afd16b 100644
--- a/plugins/chat/assets/stylesheets/common/chat-threads-list.scss
+++ b/plugins/chat/assets/stylesheets/common/chat-threads-list.scss
@@ -2,6 +2,7 @@
display: flex;
flex-direction: column;
position: relative;
+
@include chat-height(
calc(var(--chat-header-offset) + env(safe-area-inset-bottom))
);
diff --git a/plugins/chat/assets/stylesheets/mobile/chat-message.scss b/plugins/chat/assets/stylesheets/mobile/chat-message.scss
index bebb3725344..137ba92f904 100644
--- a/plugins/chat/assets/stylesheets/mobile/chat-message.scss
+++ b/plugins/chat/assets/stylesheets/mobile/chat-message.scss
@@ -25,6 +25,7 @@
.chat-message-container {
transition: transform 400ms;
transform: scale(1);
+
@media (prefers-reduced-motion: no-preference) {
&.-active {
animation: scale-animation 400ms;
diff --git a/plugins/discourse-presence/assets/stylesheets/presence.scss b/plugins/discourse-presence/assets/stylesheets/presence.scss
index da305830e84..d2794c5f3ef 100644
--- a/plugins/discourse-presence/assets/stylesheets/presence.scss
+++ b/plugins/discourse-presence/assets/stylesheets/presence.scss
@@ -30,6 +30,7 @@
.dot {
display: inline-block;
+
@media (prefers-reduced-motion: no-preference) {
animation: wave 1.8s linear infinite;
}
diff --git a/plugins/poll/assets/stylesheets/common/poll.scss b/plugins/poll/assets/stylesheets/common/poll.scss
index 4d9d6c1b684..b1585a89452 100644
--- a/plugins/poll/assets/stylesheets/common/poll.scss
+++ b/plugins/poll/assets/stylesheets/common/poll.scss
@@ -4,6 +4,7 @@ div.poll-outer {
border: 1px solid var(--primary-low);
display: grid;
grid-template-areas: "poll" "info" "buttons";
+
@include breakpoint("mobile-extra-large", min-width) {
grid-template-columns: 1fr 10em;
grid-template-areas: "poll info" "buttons buttons";
@@ -184,6 +185,7 @@ div.poll-outer {
}
}
}
+
@include breakpoint("mobile-extra-large", min-width) {
+ .poll-info_instructions:not(:empty) {
margin-top: 1.25em;
diff --git a/plugins/styleguide/assets/stylesheets/styleguide.scss b/plugins/styleguide/assets/stylesheets/styleguide.scss
index 789e4e0192c..834bef795d1 100644
--- a/plugins/styleguide/assets/stylesheets/styleguide.scss
+++ b/plugins/styleguide/assets/stylesheets/styleguide.scss
@@ -251,6 +251,7 @@
padding: 3px 6px;
background: var(--primary-low);
max-width: 25%;
+
@include ellipsis;
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4de503b2b1e..6e83a491d66 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -35,8 +35,8 @@ importers:
specifier: ^7.25.9
version: 7.25.9(@babel/[email protected])
'@discourse/lint-configs':
- specifier: ^2.6.0
+ specifier: ^2.7.0
'@discourse/moment-timezone-names-translations':
specifier: ^1.0.0
version: 1.0.0
@@ -1742,8 +1742,8 @@ packages:
'@discourse/[email protected]':
resolution: {integrity: sha512-Jn1gdiyHMGUsmUfLFf4Q7VnTAv0l7NePbegU6pKhKHEmbzV3FosGxq30fTOYgVyTS1bxqGjlA6LvQttJpv3ROw==}
- '@discourse/[email protected]':
- resolution: {integrity: sha512-+wNTZ0Pso7PzePd9AqB4LiYdj273+cOB+wUbJkdZoiUG9frbBP6nCNVW2MSxCYOeOreAWSHUDaHxAwpuge1bJg==}
+ '@discourse/[email protected]':
+ resolution: {integrity: sha512-lkLHJVgWoweG4QMw9mwrwP30HYhzjdOHtbOlJpcLth/ZqQFhDDIiU0VchsT6JB5gfocQ+7G26WYyR3bTuGEHOg==}
peerDependencies:
ember-template-lint: 6.1.0
eslint: 9.20.1
@@ -5205,8 +5205,8 @@ packages:
resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==}
+ resolution: {integrity: sha512-iInW14XItCXET01CQFqudPOWP2jYMl7T+QRQT+UNcR/iQncN/F0UNpgd76iFkBPgNQb4+X3LV9tLJYzwh+Gl3A==}
engines: {node: '>=18'}
@@ -9519,7 +9519,7 @@ snapshots:
'@discourse/[email protected]': {}
dependencies:
'@babel/core': 7.26.9([email protected])
'@babel/eslint-parser': 7.26.8(@babel/[email protected])([email protected])
@@ -9532,7 +9532,7 @@ snapshots:
eslint-plugin-qunit: 8.1.2([email protected])
eslint-plugin-simple-import-sort: 12.1.1([email protected])
eslint-plugin-sort-class-members: 1.21.0([email protected])
- globals: 15.15.0
+ globals: 16.0.0
prettier: 2.8.8
prettier-plugin-ember-template-tag: 0.3.2
stylelint: 16.14.1([email protected])
@@ -14261,7 +14261,7 @@ snapshots:
dependencies: