Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7d9a8e6dec | |||
| 142a212ae9 | |||
| c257071d56 | |||
| 249d30980b | |||
| 2f2d1b8607 | |||
| 4b188950e1 | |||
| 6490217b4d |
+3
-2
@@ -8,5 +8,6 @@
|
|||||||
@import "buttons";
|
@import "buttons";
|
||||||
@import "chat";
|
@import "chat";
|
||||||
@import "hiddenstuff";
|
@import "hiddenstuff";
|
||||||
@import "topic";
|
@import "topics";
|
||||||
@import "user";
|
@import "misc";
|
||||||
|
@import "box-view";
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
import Component from "@glimmer/component";
|
||||||
|
import { apiInitializer } from "discourse/lib/api";
|
||||||
|
|
||||||
|
export default apiInitializer("1.8.0", (api) => {
|
||||||
|
api.renderInOutlet(
|
||||||
|
"above-main-container",
|
||||||
|
class ExperimentalScreen extends Component {
|
||||||
|
<template>
|
||||||
|
<ul class="experimental-screen">
|
||||||
|
<li class="experimental-screen__top-left"></li>
|
||||||
|
<li class="experimental-screen__top-right"></li>
|
||||||
|
<li class="experimental-screen__bottom-left"></li>
|
||||||
|
<li class="experimental-screen__bottom-right"></li>
|
||||||
|
<li class="experimental-screen__bottom-bar"></li>
|
||||||
|
</ul>
|
||||||
|
</template>
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
import { apiInitializer } from "discourse/lib/api";
|
|
||||||
|
|
||||||
export default apiInitializer("1.8.0", (/* api */) => {
|
|
||||||
// console.log("hello world from api initializer!");
|
|
||||||
});
|
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
.experimental-screen {
|
||||||
|
@media screen and (max-width: 488px) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 1600px) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
position: relative;
|
||||||
|
container: content-width / inline-size;
|
||||||
|
li {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
&__top-left,
|
||||||
|
&__top-right,
|
||||||
|
&__bottom-left,
|
||||||
|
&__bottom-right {
|
||||||
|
position: fixed;
|
||||||
|
width: var(--d-border-radius-large);
|
||||||
|
height: var(--d-border-radius-large);
|
||||||
|
background-color: var(--secondary);
|
||||||
|
z-index: 999;
|
||||||
|
-webkit-mask: radial-gradient(
|
||||||
|
circle at var(--d-border-radius-large) var(--d-border-radius-large),
|
||||||
|
transparent var(--d-border-radius-large),
|
||||||
|
transparent var(--d-border-radius-large),
|
||||||
|
black var(--d-border-radius-large)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
&__top-left {
|
||||||
|
top: var(--header-offset);
|
||||||
|
left: calc(var(--main-grid-gap) * 2 + var(--d-sidebar-width));
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
left: var(--main-grid-gap);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__top-right {
|
||||||
|
top: var(--header-offset);
|
||||||
|
transform: rotate(90deg);
|
||||||
|
@container content-width (width > 1px) {
|
||||||
|
left: calc(
|
||||||
|
var(--main-grid-gap) * 2 + var(--d-sidebar-width) + 100cqw -
|
||||||
|
var(--d-border-radius-large)
|
||||||
|
);
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
left: calc(
|
||||||
|
var(--main-grid-gap) + 100cqw - var(--d-border-radius-large)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__bottom-left {
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
bottom: var(--d-border-radius-large);
|
||||||
|
left: calc(var(--main-grid-gap) * 2 + var(--d-sidebar-width));
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
left: var(--main-grid-gap);
|
||||||
|
bottom: calc(var(--d-border-radius-large) * 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__bottom-right {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
bottom: var(--d-border-radius-large);
|
||||||
|
@container content-width (width > 1px) {
|
||||||
|
left: calc(
|
||||||
|
var(--main-grid-gap) * 2 + var(--d-sidebar-width) + 100cqw -
|
||||||
|
var(--d-border-radius-large)
|
||||||
|
);
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
left: calc(
|
||||||
|
var(--main-grid-gap) + 100cqw - var(--d-border-radius-large)
|
||||||
|
);
|
||||||
|
bottom: calc(var(--d-border-radius-large) * 2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&__bottom-bar {
|
||||||
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
z-index: 999;
|
||||||
|
background-color: var(--secondary);
|
||||||
|
bottom: 0;
|
||||||
|
left: calc(var(--main-grid-gap) * 2 + var(--d-sidebar-width));
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
left: var(--main-grid-gap);
|
||||||
|
height: calc(var(--d-border-radius-large) * 2);
|
||||||
|
}
|
||||||
|
height: var(--d-border-radius-large);
|
||||||
|
@container content-width (width > 1px) {
|
||||||
|
width: 100cqw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
.with-topic-progress {
|
||||||
|
bottom: calc(
|
||||||
|
env(safe-area-inset-bottom) + var(--composer-height, 0px) +
|
||||||
|
var(--d-border-radius-large)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
.with-topic-progress {
|
||||||
|
bottom: calc(
|
||||||
|
env(safe-area-inset-bottom) + var(--composer-height, 0px) +
|
||||||
|
calc(var(--d-border-radius-large) * 2)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 400px) {
|
||||||
|
.with-topic-progress {
|
||||||
|
bottom: calc(env(safe-area-inset-bottom) + var(--composer-height, 0px));
|
||||||
|
}
|
||||||
|
}
|
||||||
+5
-10
@@ -1,20 +1,15 @@
|
|||||||
:root {
|
|
||||||
--d-button-border-radius: 6.25rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
padding: 0.5em 1rem;
|
padding: 0.5em 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-default {
|
.sidebar-new-topic-button__wrapper {
|
||||||
border: 1px solid var(--accent-color);
|
margin: 1.5rem 1rem;
|
||||||
background: var(--secondary);
|
|
||||||
}
|
}
|
||||||
#create-topic.btn,
|
|
||||||
.topic-drafts-menu-trigger {
|
.sidebar-new-topic-button__wrapper .btn {
|
||||||
background-color: var(--accent-color);
|
background-color: var(--accent-color);
|
||||||
color: var(--accent-text-color);
|
color: var(--accent-text-color);
|
||||||
.d-icon {
|
svg {
|
||||||
color: var(--accent-text-color);
|
color: var(--accent-text-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+9
-9
@@ -1,10 +1,10 @@
|
|||||||
.c-navbar-container {
|
// .c-navbar-container {
|
||||||
background-color: light-dark(#ffffff, #000000);
|
// background-color: light-dark(#ffffff, #000000);
|
||||||
border-top-right-radius: var(--d-border-radius-large);
|
// border-top-right-radius: var(--d-border-radius-large);
|
||||||
border-top-left-radius: var(--d-border-radius-large);
|
// border-top-left-radius: var(--d-border-radius-large);
|
||||||
}
|
// }
|
||||||
|
|
||||||
.chat-message-container,
|
// .chat-message-container,
|
||||||
.chat-transcript {
|
// .chat-transcript {
|
||||||
background: transparent;
|
// background: transparent;
|
||||||
}
|
// }
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
.d-header {
|
.d-header {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
.desktop-view .d-header {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
|
|||||||
+62
-58
@@ -1,68 +1,72 @@
|
|||||||
body,
|
html:not(:has(.has-full-page-chat)) {
|
||||||
html {
|
|
||||||
background-color: #f5f8ff;
|
background-color: #f5f8ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
body:not(.archetype-regular, .has-full-page-chat)
|
body.has-sidebar-page #main-outlet-wrapper {
|
||||||
#main-outlet-wrapper
|
grid-template-columns: 0px 1fr minmax(0, var(--d-max-width)) 1fr;
|
||||||
#main-outlet {
|
grid-template-areas:
|
||||||
overflow: scroll;
|
"space sidebar content"
|
||||||
border-radius: var(--d-border-radius-large);
|
"space sidebar content";
|
||||||
@media screen and (max-width: 600px) {
|
gap: 0 var(--main-grid-gap);
|
||||||
border-radius: 0;
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 488px) {
|
||||||
|
#main-outlet-wrapper {
|
||||||
|
gap: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#main-outlet-wrapper {
|
.powered-by-discourse {
|
||||||
margin-top: 1.5rem;
|
display: none;
|
||||||
gap: 2em;
|
}
|
||||||
height: calc(100vh - var(--header-offset) - 4rem);
|
|
||||||
box-sizing: border-box;
|
body:not(.has-full-page-chat) {
|
||||||
@media screen and (max-width: 600px) {
|
|
||||||
gap: 0;
|
|
||||||
margin-top: 0;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
#main-outlet {
|
#main-outlet {
|
||||||
width: calc(100% - 48px);
|
// background: radial-gradient(
|
||||||
height: inherit;
|
// 100.59% 70.87% at 41.19% 73.28%,
|
||||||
overflow: scroll;
|
// rgba(188, 241, 238, 0.2) 0%,
|
||||||
padding: 12px 24px;
|
// rgba(255, 255, 255, 0) 100%
|
||||||
@media screen and (max-width: 600px) {
|
// ),
|
||||||
border-radius: 0px;
|
// radial-gradient(
|
||||||
|
// 67.07% 61.36% at 66.47% 64.15%,
|
||||||
|
// rgba(162, 164, 225, 0.2) 0%,
|
||||||
|
// rgba(255, 255, 255, 0) 100%
|
||||||
|
// ),
|
||||||
|
// #fff;
|
||||||
|
background-color: #ffffff;
|
||||||
|
padding-bottom: calc(var(--d-border-radius-large) * 2);
|
||||||
|
}
|
||||||
|
#main-outlet-wrapper {
|
||||||
|
// margin-top: 1.5rem;
|
||||||
|
// gap: 2em !important;
|
||||||
|
// height: calc(100vh - var(--header-offset) - 4rem);
|
||||||
|
// box-sizing: border-box;
|
||||||
|
// what does this do?
|
||||||
|
// > * {
|
||||||
|
// height: inherit;
|
||||||
|
// box-sizing: border-box;
|
||||||
|
// }
|
||||||
|
#main-outlet {
|
||||||
|
position: relative;
|
||||||
|
// height: inherit;
|
||||||
|
// overflow: scroll;
|
||||||
|
// &:has(.list-controls) {
|
||||||
|
// padding-top: 0;
|
||||||
|
// }
|
||||||
|
// &:has(#topic-title) {
|
||||||
|
// padding-top: 0;
|
||||||
|
// }
|
||||||
|
> *:not(.full-page-chat) {
|
||||||
|
padding-inline: 1.5em;
|
||||||
|
}
|
||||||
|
// border-radius: var(--d-border-radius-large);
|
||||||
|
// border-radius: 1.25rem;
|
||||||
|
// box-shadow: 0px 0px 1px 2px #e2e8f8, 0px 0px 24px 4px #e2e8f8;
|
||||||
|
// background-color: light-dark(#ffffff, #000000);
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 425px) {
|
|
||||||
padding: 12px 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
&:has(.list-controls) {
|
|
||||||
padding-top: 0;
|
|
||||||
}
|
|
||||||
&:has(#topic-title) {
|
|
||||||
padding-top: 0;
|
|
||||||
max-width: 1000px;
|
|
||||||
}
|
|
||||||
> *:not(.full-page-chat) {
|
|
||||||
max-width: 1000px;
|
|
||||||
margin-inline: auto;
|
|
||||||
}
|
|
||||||
border-radius: var(--d-border-radius-large);
|
|
||||||
border-radius: 1.25rem;
|
|
||||||
.navigation-topics &,
|
|
||||||
.navigation-category & {
|
|
||||||
background: radial-gradient(
|
|
||||||
100.59% 70.87% at 41.19% 73.28%,
|
|
||||||
rgba(188, 241, 238, 0.2) 0%,
|
|
||||||
rgba(255, 255, 255, 0) 100%
|
|
||||||
),
|
|
||||||
radial-gradient(
|
|
||||||
75.11% 79.17% at 66.02% 41.71%,
|
|
||||||
rgba(162, 164, 225, 0.2) 0%,
|
|
||||||
rgba(255, 255, 255, 0) 100%
|
|
||||||
),
|
|
||||||
#fff;
|
|
||||||
}
|
|
||||||
box-shadow: 0px 0px 1px 2px #e2e8f8, 0px 0px 24px 4px #e2e8f8;
|
|
||||||
background-color: light-dark(#ffffff, #000000);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.boxed.white {
|
||||||
|
background-color: #fff;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
.user-main .about.collapsed-info .details {
|
.user-main .about.collapsed-info .details {
|
||||||
background-color: #ffffff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
+8
-14
@@ -1,26 +1,20 @@
|
|||||||
.list-controls {
|
.list-controls {
|
||||||
// position: sticky;
|
position: sticky;
|
||||||
// top: 0;
|
top: var(--header-offset);
|
||||||
// background: transparent;
|
background: #ffffff;
|
||||||
// this does not work properly without using a background color
|
|
||||||
// which if used, conflicts with the gradient background
|
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
padding-top: 1.5rem;
|
padding: 1.5rem 0 1rem 0;
|
||||||
max-width: unset;
|
max-width: unset;
|
||||||
width: 100%;
|
|
||||||
|
|
||||||
.navigation-container {
|
.navigation-container {
|
||||||
.category-breadcrumb {
|
.category-breadcrumb {
|
||||||
order: 1;
|
order: 1;
|
||||||
margin-left: 0.5em;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.combo-box .combo-box-header {
|
.combo-box .combo-box-header,
|
||||||
background-color: var(--secondary);
|
.select-kit.is-expanded .select-kit-body,
|
||||||
border-radius: 6.25rem;
|
.discourse-post-event .discourse-post-event-widget {
|
||||||
}
|
background-color: #ffffff;
|
||||||
.select-kit.is-expanded .select-kit-body {
|
|
||||||
background: #ffffff;
|
|
||||||
border-radius: var(--d-border-radius);
|
border-radius: var(--d-border-radius);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
padding: 2.5em 0 2.5em;
|
padding: 2.5em 0 2.5em;
|
||||||
margin-bottom: 2.5em;
|
margin-bottom: 2.5em;
|
||||||
--search-color: #595bca;
|
--search-color: #595bca;
|
||||||
@media screen and (max-width: 425px) {
|
@media screen and (max-width: 700px) {
|
||||||
padding: 1em 1em 0 1em;
|
padding: 1em 1em 0 1em;
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|||||||
+18
-1
@@ -1,9 +1,26 @@
|
|||||||
:root {
|
:root {
|
||||||
--d-sidebar-background: #f5f8ff;
|
// --d-sidebar-background: #f5f8ff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-section-link-wrapper .sidebar-section-link {
|
||||||
|
border-radius: var(--d-border-radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-wrapper {
|
.sidebar-wrapper {
|
||||||
|
background: #f5f8ff;
|
||||||
|
|
||||||
|
.has-full-page-chat & {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
.sidebar-container {
|
.sidebar-container {
|
||||||
border-right: none;
|
border-right: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-sections {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.admin-area .sidebar-wrapper .admin-panel {
|
||||||
|
background-color: var(--secondary);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,22 +5,3 @@
|
|||||||
}
|
}
|
||||||
border: 1px solid #cedde3;
|
border: 1px solid #cedde3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.more-topics__container
|
|
||||||
.more-topics__list
|
|
||||||
.topic-list-body
|
|
||||||
.topic-list-item:last-of-type {
|
|
||||||
border: 1px solid #cedde3;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 480px) {
|
|
||||||
.topic-list-body {
|
|
||||||
border-top: none;
|
|
||||||
}
|
|
||||||
.topic-list-item {
|
|
||||||
border-top: none;
|
|
||||||
border-left: none;
|
|
||||||
border-right: none;
|
|
||||||
border-radius: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
.topic-post.sticky-avatar > article > .row > .topic-avatar {
|
|
||||||
position: sticky;
|
|
||||||
top: calc(var(--header-offset) + 0.75em);
|
|
||||||
margin-bottom: 25px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.container.posts .topic-navigation {
|
|
||||||
top: calc(var(--header-offset, 60px) + 4em);
|
|
||||||
}
|
|
||||||
|
|
||||||
#topic-title {
|
|
||||||
z-index: 999;
|
|
||||||
margin-bottom: 1em;
|
|
||||||
padding: 12px 24px;
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
background-image: linear-gradient(
|
|
||||||
to right,
|
|
||||||
rgba(255, 255, 255, 1) 50%,
|
|
||||||
rgba(255, 255, 255, 0) 100%
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
.container.posts,
|
|
||||||
.more-topics__container,
|
|
||||||
#topic-footer-buttons {
|
|
||||||
padding: 0 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.more-topics__lists.single-list {
|
|
||||||
padding: 12px 0;
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
#topic-title {
|
||||||
|
z-index: 999;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
padding: 1.5rem 2rem 0.5em;
|
||||||
|
position: sticky;
|
||||||
|
top: var(--header-offset);
|
||||||
|
background: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
// .container.posts,
|
||||||
|
// .more-topics__container,
|
||||||
|
// #topic-footer-buttons {
|
||||||
|
// padding: 0 24px;
|
||||||
|
// }
|
||||||
|
|
||||||
|
.container.posts .topic-navigation {
|
||||||
|
top: calc(var(--header-offset, 60px) + 6em);
|
||||||
|
}
|
||||||
|
|
||||||
|
.discourse-post-event .discourse-post-event-widget {
|
||||||
|
background-color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.more-topics__container
|
||||||
|
.more-topics__list
|
||||||
|
.topic-list-body
|
||||||
|
.topic-list-item:last-of-type {
|
||||||
|
border-bottom: 1px solid #cedde3;
|
||||||
|
}
|
||||||
@@ -1,8 +1,12 @@
|
|||||||
:root {
|
:root {
|
||||||
--d-border-radius-large: 20px;
|
--d-border-radius-large: 20px;
|
||||||
|
--d-button-border-radius: 20px;
|
||||||
--d-border-radius: 6px;
|
--d-border-radius: 6px;
|
||||||
--d-input-border-radius: 6px;
|
--d-input-border-radius: 6px;
|
||||||
--accent-color: #595bca;
|
--accent-color: #595bca;
|
||||||
--accent-text-color: #ffffff;
|
--accent-text-color: #ffffff;
|
||||||
--d-nav-color--active: var(--accent-color);
|
--d-nav-color--active: var(--accent-color);
|
||||||
|
--primary: #0c0d27;
|
||||||
|
--main-grid-gap: 2em;
|
||||||
|
--d-max-width: 1000px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user