UX: desktop tweaks (#14)
This commit is contained in:
@@ -2,4 +2,5 @@ $accent-color: dark-light-choose(#3c41c3, #6e4bbc);
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--accent-color: #{$accent-color};
|
--accent-color: #{$accent-color};
|
||||||
|
--background-color: #f5f8ff;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -1,6 +1,7 @@
|
|||||||
.d-header {
|
.d-header {
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
background: var(--tertiary-50);
|
background: var(--background-color);
|
||||||
|
padding-bottom: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-menu .quick-access-panel,
|
.user-menu .quick-access-panel,
|
||||||
|
|||||||
+21
-18
@@ -1,5 +1,5 @@
|
|||||||
html:not(:has(.has-full-page-chat)) {
|
html:not(:has(.has-full-page-chat)) {
|
||||||
background-color: var(--tertiary-50);
|
background-color: var(--background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
@@ -7,7 +7,7 @@ html:not(:has(.has-full-page-chat)) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body:not(.has-full-page-chat) {
|
body:not(.has-full-page-chat) {
|
||||||
background-color: var(--tertiary-50);
|
background-color: var(--background-color);
|
||||||
#main-outlet-wrapper {
|
#main-outlet-wrapper {
|
||||||
// margin-top: 1.5rem;
|
// margin-top: 1.5rem;
|
||||||
@media screen and (max-width: 485px) {
|
@media screen and (max-width: 485px) {
|
||||||
@@ -22,6 +22,7 @@ body:not(.has-full-page-chat) {
|
|||||||
// }
|
// }
|
||||||
#main-outlet {
|
#main-outlet {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
padding-bottom: var(--spacing-block-l);
|
||||||
// height: inherit;
|
// height: inherit;
|
||||||
// overflow: scroll;
|
// overflow: scroll;
|
||||||
// &:has(.list-controls) {
|
// &:has(.list-controls) {
|
||||||
@@ -30,7 +31,13 @@ body:not(.has-full-page-chat) {
|
|||||||
// &:has(#topic-title) {
|
// &:has(#topic-title) {
|
||||||
// padding-top: 0;
|
// padding-top: 0;
|
||||||
// }
|
// }
|
||||||
> *:not(.full-page-chat) {
|
//thanks to random container elements on the page, I can't do a direct child selector here because it targets all the randomness, so I see no other option than MANUALLY adding every possible element that can appear in the main outlet YAY
|
||||||
|
.list-controls,
|
||||||
|
.list-container,
|
||||||
|
#topic-title,
|
||||||
|
.container.posts,
|
||||||
|
#topic-footer-buttons,
|
||||||
|
.more-topics__container {
|
||||||
max-width: 1000px;
|
max-width: 1000px;
|
||||||
margin-inline: auto;
|
margin-inline: auto;
|
||||||
padding-inline: 1.5em;
|
padding-inline: 1.5em;
|
||||||
@@ -38,21 +45,8 @@ body:not(.has-full-page-chat) {
|
|||||||
padding-inline: 0.5em;
|
padding-inline: 0.5em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// border-radius: var(--d-border-radius-large);
|
border-radius: var(--d-border-radius-large);
|
||||||
// border-radius: 1.25rem;
|
border-radius: 1.25rem;
|
||||||
// .navigation-topics & {
|
|
||||||
// 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(
|
|
||||||
// 67.07% 61.36% at 66.47% 64.15%,
|
|
||||||
// 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;
|
// box-shadow: 0px 0px 1px 2px #e2e8f8, 0px 0px 24px 4px #e2e8f8;
|
||||||
background-color: var(--d-content-background);
|
background-color: var(--d-content-background);
|
||||||
}
|
}
|
||||||
@@ -63,6 +57,15 @@ body:not(.has-full-page-chat) {
|
|||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.list-container {
|
||||||
|
.topic-list-body {
|
||||||
|
padding-top: var(--spacing-block-m);
|
||||||
|
}
|
||||||
|
.topic-list-item {
|
||||||
|
box-shadow: 0px 0px 26px 1px hsl(224 61% 96% / 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
aside.onebox {
|
aside.onebox {
|
||||||
background-color: var(--d-content-background);
|
background-color: var(--d-content-background);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,7 +28,6 @@
|
|||||||
|
|
||||||
.select-kit.is-expanded .select-kit-body {
|
.select-kit.is-expanded .select-kit-body {
|
||||||
border-radius: var(--d-border-radius);
|
border-radius: var(--d-border-radius);
|
||||||
border: 1px solid var(--accent-color);
|
|
||||||
background-color: var(--d-content-background);
|
background-color: var(--d-content-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -10,7 +10,9 @@
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.sidebar-section-link {
|
.sidebar-section-link {
|
||||||
// font-size: var(--font-up-1); // dont want to change fonts here just yet as font-size can be changed as a user pref.
|
font-size: var(
|
||||||
|
--font-up-1
|
||||||
|
); // dont want to change fonts here just yet as font-size can be changed as a user pref. – charlie: sure but I want it to be bigger by default
|
||||||
// font-family: "inter";
|
// font-family: "inter";
|
||||||
letter-spacing: 0.5px;
|
letter-spacing: 0.5px;
|
||||||
border-radius: 10px; //visually somewhat consistent with border on main outlet (?)
|
border-radius: 10px; //visually somewhat consistent with border on main outlet (?)
|
||||||
@@ -20,7 +22,7 @@
|
|||||||
.sidebar-section-wrapper {
|
.sidebar-section-wrapper {
|
||||||
padding-block: 0.45em;
|
padding-block: 0.45em;
|
||||||
.sidebar-section-header {
|
.sidebar-section-header {
|
||||||
// font-size: var(--font-down-1);
|
font-size: var(--font-down-1);
|
||||||
}
|
}
|
||||||
.sidebar-section-content {
|
.sidebar-section-content {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
.topic-list-item {
|
.topic-list-item {
|
||||||
background: var(--d-content-background);
|
background: var(--d-content-background);
|
||||||
&:hover {
|
&:hover {
|
||||||
background: var(--primary-very-low);
|
border: 1px solid var(--accent-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+7
-4
@@ -1,12 +1,15 @@
|
|||||||
.post-stream {
|
.post-stream {
|
||||||
.contents p {
|
.contents p {
|
||||||
// font-size: var(--font-up-1);
|
font-size: var(--font-up-1);
|
||||||
line-height: 1.25;
|
line-height: 1.25;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.container.posts .topic-navigation {
|
.container.posts .topic-navigation {
|
||||||
top: calc(var(--header-offset, 60px) + 6em);
|
//super fragile because new sticky topic title doesnt have a calculated value (= 53px with this font and size but…)
|
||||||
|
top: calc(
|
||||||
|
var(--header-offset, 60px) + 53px + calc(var(--spacing-block-l) * 2)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
.timeline-container .topic-timeline {
|
.timeline-container .topic-timeline {
|
||||||
@@ -45,9 +48,9 @@
|
|||||||
|
|
||||||
#topic-title {
|
#topic-title {
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
margin-bottom: 1em;
|
padding: var(--spacing-block-l) var(--spacing-inline-xl);
|
||||||
padding: 1.5rem 2rem 0.5em;
|
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
margin-bottom: 0;
|
||||||
top: var(--header-offset);
|
top: var(--header-offset);
|
||||||
background: var(--d-content-background);
|
background: var(--d-content-background);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user