diff --git a/src/app.module.css b/src/app.module.css index 0ffc0490..001294fe 100644 --- a/src/app.module.css +++ b/src/app.module.css @@ -1,5 +1,5 @@ .app { - background: var(--background-color) var(--background-fade) top center repeat-x; + background: var(--background-base-color) var(--background-pattern-image) top center repeat-x; font: 13px/1.231 arial, helvetica, sans-serif; z-index: 1; min-height: 100%; diff --git a/src/themes.css b/src/themes.css index c5e9b0d9..091291a0 100644 --- a/src/themes.css +++ b/src/themes.css @@ -1,21 +1,25 @@ :root .yotsuba { - --background-color: #ffe; - --background-fade: url("/public/assets/background-fade.png"); - --color-primary: #800; - --text-primary: #fff; - --text-black: #000; - --text-white: #fff; - --text-background: #fff; - --text-link: #00f; + --background-base-color: #ffe; + --background-pattern-image: url("/public/assets/background-fade.png"); + --primary-color: #800; + --secondary-color: #fca; + --text-color-on-primary: #fff; + --text-color-on-secondary: #800; + --text-color-standard: #000; + --text-color-inverse: #fff; + --background-text-color: #fff; + --link-text-color: #00f; } :root .yotsuba-b { - --background-color: #eef2ff; - --background-fade: url("/public/assets/background-fade-blue.png"); - --color-primary: #98e; - --text-primary: #000; - --text-black: #000; - --text-white: #fff; - --text-background: #fff; - --text-link: #00f; -} \ No newline at end of file + --background-base-color: #eef2ff; + --background-pattern-image: url("/public/assets/background-fade-blue.png"); + --primary-color: #98e; + --secondary-color: #98e; + --text-color-on-primary: #000; + --text-color-on-secondary: #000; + --text-color-standard: #000; + --text-color-inverse: #fff; + --background-text-color: #fff; + --link-text-color: #00f; +} diff --git a/src/views/home/home.module.css b/src/views/home/home.module.css index 1528d4dc..dbe2efda 100644 --- a/src/views/home/home.module.css +++ b/src/views/home/home.module.css @@ -1,5 +1,4 @@ .content { - color: var(--color-primary); width: 100%; height: 100%; margin: auto; @@ -30,20 +29,28 @@ } .box { - background: var(--text-background); - color: var(--text-black); + background: var(--background-text-color); + color: var(--text-color-standard); border: 1px solid; margin-bottom: 0.5em; padding-bottom: 0.5em; } .boxBar { - background: var(--color-primary); - color: var(--text-primary); padding-left: 0.5em; line-height: 2em; } +.primaryColorBar { + background: var(--primary-color); + color: var(--text-color-on-primary); +} + +.secondaryColorBar { + background: var(--secondary-color); + color: var(--text-color-on-secondary); +} + .boxBar h2 { font-size: 131%; font-weight: 700; @@ -58,7 +65,7 @@ } .boxContent a, .boxContent a:visited{ - color: var(--text-link); + color: var(--link-text-color); } .searchBar { @@ -85,7 +92,7 @@ .searchBar button { margin-left: 4px; - padding: 3px 10px; + padding: 3px 5px; display: inline-block; text-transform: capitalize; font-size: 14px; @@ -98,6 +105,8 @@ @media (max-width: 768px) { .content { + min-width: 0; width: auto; + padding: 10px; } } \ No newline at end of file diff --git a/src/views/home/home.tsx b/src/views/home/home.tsx index 6face47b..0a46366a 100644 --- a/src/views/home/home.tsx +++ b/src/views/home/home.tsx @@ -59,7 +59,7 @@ const Home = () => {