diff --git a/lemmy-translations b/lemmy-translations index f45ddff2..c9a07885 160000 --- a/lemmy-translations +++ b/lemmy-translations @@ -1 +1 @@ -Subproject commit f45ddff206adb52ab0ac7555bf14978edac5d2f2 +Subproject commit c9a07885f35cf334d3cf167cb57587a8177fc3fb diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 82f8433e..da3f7ffc 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -46,7 +46,7 @@ } .md-div p:last-child { - margin-bottom: 0px; + margin-bottom: 0; } .md-div img { @@ -371,7 +371,7 @@ br.big { } .tribute-container li { - padding: 5px 5px; + padding: 5px; cursor: pointer; } @@ -410,13 +410,22 @@ br.big { -webkit-line-clamp: 3; -webkit-box-orient: vertical; } -.lang-select-action { - width: 100px; -} -.lang-select-action:focus { - width: auto; -} -em-emoji-picker { +.emoji-picker { width: 100%; } + +.skip-link { + top: -40px; + transition: top 0.3s ease; +} + +@media (prefers-reduced-motion: reduce) { + .skip-link { + transition: none; + } +} + +.skip-link:focus { + top: 0; +} diff --git a/src/assets/css/themes/darkly.css b/src/assets/css/themes/darkly.css index a2b09177..49399db2 100644 --- a/src/assets/css/themes/darkly.css +++ b/src/assets/css/themes/darkly.css @@ -19,6 +19,7 @@ --warning: #f39c12; --danger: #e74c3c; --light: #303030; + --medium-light: var(--secondary); --dark: #dee2e6; --breakpoint-xs: 0; --breakpoint-sm: 576px; diff --git a/src/assets/css/themes/litely.css b/src/assets/css/themes/litely.css index 9f7d685d..f9d2b2d3 100644 --- a/src/assets/css/themes/litely.css +++ b/src/assets/css/themes/litely.css @@ -19,6 +19,7 @@ --warning: #ffc107; --danger: #873208; --light: #f8f9fa; + --medium-light: var(--bs-gray-300); --dark: #343a40; --breakpoint-xs: 0; --breakpoint-sm: 576px; diff --git a/src/shared/components/app/app.tsx b/src/shared/components/app/app.tsx index c495548c..79aa77eb 100644 --- a/src/shared/components/app/app.tsx +++ b/src/shared/components/app/app.tsx @@ -1,4 +1,4 @@ -import { Component } from "inferno"; +import { Component, createRef, linkEvent, RefObject } from "inferno"; import { Provider } from "inferno-i18next-dess"; import { Route, Switch } from "inferno-router"; import { i18n } from "../../i18next"; @@ -15,8 +15,15 @@ import { Theme } from "./theme"; export class App extends Component { private isoData: IsoDataOptionalSite = setIsoData(this.context); + private readonly mainContentRef: RefObject; constructor(props: any, context: any) { super(props, context); + this.mainContentRef = createRef(); + } + + handleJumpToContent(event) { + event.preventDefault(); + this.mainContentRef.current?.focus(); } render() { const siteRes = this.isoData.site_res; @@ -26,6 +33,12 @@ export class App extends Component { <>
+ + ${i18n.t("jump_to_content", "Jump to content")} + {siteView && ( )} @@ -39,14 +52,16 @@ export class App extends Component { exact component={routeProps => ( - {RouteComponent && - (isAuthPath(path ?? "") ? ( - +
+ {RouteComponent && + (isAuthPath(path ?? "") ? ( + + + + ) : ( - - ) : ( - - ))} + ))} +
)} /> diff --git a/src/shared/components/common/language-select.tsx b/src/shared/components/common/language-select.tsx index fac3216f..09e9c968 100644 --- a/src/shared/components/common/language-select.tsx +++ b/src/shared/components/common/language-select.tsx @@ -100,12 +100,9 @@ export class LanguageSelect extends Component { return (