diff --git a/app/components/AlternateSolutionEditor.module.css b/app/components/AlternateSolutionEditor.module.css new file mode 100644 index 00000000..9ea810f7 --- /dev/null +++ b/app/components/AlternateSolutionEditor.module.css @@ -0,0 +1,24 @@ +.page { + display: flex; + flex-direction: column; + height: 100%; +} + +.main { + flex: 1 1 auto; + overflow: scroll; + position: relative; +} + +.container { + outline: none; + display: flex; + flex: 1 1 auto; + flex-direction: column; + align-items: center; + height: 100%; + width: 100%; + position: absolute; + flex-wrap: nowrap; + container-type: size; +} diff --git a/app/components/AlternateSolutionEditor.tsx b/app/components/AlternateSolutionEditor.tsx index 8d1c5464..a59bdde3 100644 --- a/app/components/AlternateSolutionEditor.tsx +++ b/app/components/AlternateSolutionEditor.tsx @@ -40,6 +40,7 @@ import { isSome } from 'fp-ts/lib/Option'; import { GridView } from './Grid'; import { logAsyncErrors } from '../lib/utils'; import { isTextInput } from '../lib/domUtils'; +import styles from './AlternateSolutionEditor.module.css'; export function AlternateSolutionEditor(props: { grid: string[]; @@ -224,40 +225,21 @@ export function AlternateSolutionEditor(props: { return ( <> -
This article is part of a series of posts designed to teach visitors
about crosswords in general as well as some Crosshare specific
diff --git a/app/components/AuthHelpers.tsx b/app/components/AuthHelpers.tsx
index 2ecfe442..f9b8d82e 100644
--- a/app/components/AuthHelpers.tsx
+++ b/app/components/AuthHelpers.tsx
@@ -57,7 +57,7 @@ function renderLoginIfNeeded({
return (
<>
Please sign-in with your Google account to continue. We use your
account to keep track of the puzzles you've played and your
@@ -72,7 +72,7 @@ function renderLoginIfNeeded({
return (
<>
Please sign-in with your Google account to continue. We use your account to keep track of the puzzles you've played and your diff --git a/app/components/BigQuote.module.css b/app/components/BigQuote.module.css new file mode 100644 index 00000000..8fe15fbd --- /dev/null +++ b/app/components/BigQuote.module.css @@ -0,0 +1,34 @@ +@value small-and-up from '../lib/definitions.module.css'; + +.outer { + padding: 2em; + background-color: var(--secondary); + text-align: center; + color: var(--text); +} +.wrapper { + max-width: 900px; + margin: auto; +} + +.wrapper:before { + font-family: georgia, serif; + content: open-quote; + font-size: 6em; + line-height: 0.1em; + margin-right: 0.25em; + vertical-align: -0.4em; +} +.quote { + font-family: georgia, serif; + font-size: 20px; + font-style: italic; +} +@media (small-and-up) { + .quote { + font-size: 30px; + } + .attrib { + font-size: 20px; + } +} diff --git a/app/components/BigQuote.tsx b/app/components/BigQuote.tsx index a127b061..993b3f68 100644 --- a/app/components/BigQuote.tsx +++ b/app/components/BigQuote.tsx @@ -1,52 +1,13 @@ -import { SMALL_AND_UP } from '../lib/style'; import { ReactNode } from 'react'; +import styles from './BigQuote.module.css'; export function BigQuote(props: { quote: string; attribution: ReactNode }) { return ( -