Compare commits

..

1 Commits

Author SHA1 Message Date
Jordan Vidrine 4e6b4a6c80 add radius to modals 2025-05-13 14:25:08 -05:00
10 changed files with 32 additions and 128 deletions
+1 -2
View File
@@ -132,6 +132,5 @@
"header_primary": "ffffff",
"hover": "584B3E"
}
},
"screenshots": ["screenshots/light.png", "screenshots/dark.png"]
}
}
@@ -83,34 +83,6 @@ export default {
api.registerValueTransformer("topic-list-item-mobile-layout", () => {
return false;
});
api.registerBehaviorTransformer(
"topic-list-item-click",
({ context: { event }, next }) => {
if (event.target.closest("a, button, input")) {
return next();
}
event.preventDefault();
event.stopPropagation();
const topicLink = event.target
.closest("tr")
.querySelector("a.raw-topic-link");
// Redespatch the click on the topic link, so that all key-handing is sorted
topicLink.dispatchEvent(
new MouseEvent("click", {
ctrlKey: event.ctrlKey,
metaKey: event.metaKey,
shiftKey: event.shiftKey,
button: event.button,
bubbles: true,
cancelable: true,
})
);
}
);
});
},
};
Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

-30
View File
@@ -127,36 +127,6 @@
}
}
.rtl .experimental-screen {
&__top-left {
right: var(--left-distance);
left: unset;
}
&__top-right {
transform: rotate(-90deg) !important;
right: calc(var(--right-distance) - var(--d-border-radius-large));
left: unset;
}
&__bottom-left {
transform: rotate(90deg);
right: var(--left-distance);
left: unset;
}
&__bottom-right {
transform: rotate(180deg);
left: unset;
right: calc(var(--right-distance) - var(--d-border-radius-large));
}
&__bottom-bar {
right: var(--left-distance);
left: unset;
}
}
@media screen and (min-width: 768px) {
.with-topic-progress {
bottom: calc(
+1 -25
View File
@@ -1,5 +1,3 @@
@use "lib/viewport";
.full-page-chat.full-page-chat-sidebar-enabled {
border: none;
}
@@ -25,22 +23,6 @@ body.has-full-page-chat {
.chat-drawer-outlet-container {
z-index: z("composer", "content");
.peek-mode-active & {
padding-bottom: 0;
left: unset;
right: var(--main-grid-gap);
&:has(.is-expanded) {
z-index: calc(z("composer", "dropdown") + 1);
}
}
}
.chat-drawer {
.peek-mode-active & {
max-width: 90vw;
}
}
.chat-drawer .channels-list-container .chat-channel-row {
@@ -72,11 +54,5 @@ body.has-full-page-chat {
}
.chat-drawer-active.chat-drawer-expanded .chat-composer-dropdown__menu-content {
z-index: z("modal", "dialog");
}
.chat-replying-indicator-container {
@include viewport.from(sm) {
margin-left: calc(0.65em + 0.2rem);
}
z-index: z("composer", "content") + 1;
}
-2
View File
@@ -19,8 +19,6 @@
.grippie {
background: var(--tertiary-low);
border-top-right-radius: var(--d-border-radius);
border-top-left-radius: var(--d-border-radius);
}
.user-selector,
+17
View File
@@ -7,6 +7,23 @@
}
}
.user-menu .quick-access-panel,
.user-notifications-list {
li {
&.pending,
&.unread {
background: var(--d-hover);
.discourse-no-touch & {
&:hover,
&:focus {
background: var(--d-selected);
}
}
}
}
}
.user-menu.revamped .tabs-list .btn.active {
background: var(--d-hover);
}
+2 -32
View File
@@ -1,5 +1,3 @@
@use "lib/viewport";
.user-main .about.collapsed-info .details {
background: var(--d-content-background);
}
@@ -108,34 +106,6 @@ input[type="color"]:focus,
border-radius: 0;
}
// compatibility with the top contributors sidebar theme component
// https://meta.discourse.org/t/top-contributors-sidebar/215110
.list-container
#list-area
> .contents
> .topic-list:has(.discourse-top-contributors) {
grid-template-areas: "head head" "body sidebar";
grid-template-rows: auto 1fr;
@include viewport.until(lg) {
grid-template-areas: "head head" "body body";
}
tbody {
display: flex;
}
.discourse-top-contributors {
width: auto;
box-sizing: border-box;
@include viewport.until(lg) {
display: none;
}
.top-contributors-heading {
font-size: var(--font-up-2);
padding-bottom: 0.5em;
}
}
.d-modal__container {
border-radius: var(--d-border-radius);
}
+11 -9
View File
@@ -40,7 +40,6 @@
grid-column-gap: 12px;
grid-row-gap: 8px;
border-radius: var(--d-border-radius);
cursor: pointer;
td.main-link .link-top-line {
grid-row: 1/2;
@@ -256,10 +255,6 @@
min-width: unset;
}
.badge-notification.new-topic::before {
display: none;
}
// timestamp
td.activity .post-activity {
grid-area: activity;
@@ -725,8 +720,15 @@ body.user-messages-page {
}
}
.event-date-container {
display: inline-flex;
position: relative;
top: -0.25em; // optical alignment
.mobile-view {
.link-top-line .event-date-container {
display: inline;
margin-top: 0;
}
.topic-list-body .topic-list-item .link-top-line .event-date {
position: relative;
margin-left: 0;
top: -0.125em;
}
}