From 14fda0dbbfd0fe61af2cb7a0628928a627c5ca61 Mon Sep 17 00:00:00 2001 From: ghose <704948+xmgz@users.noreply.github.com> Date: Sun, 23 Jun 2024 15:43:05 +0200 Subject: [PATCH] [feature/frontend] Rain Forest Theme (#3021) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Create sweet-home.css new green-ish theme * Rain Forest theme v1 changes since *draft* version: * lighter green for links (better contrast ratio) * higher «show more/less» button contrast * post's border thinner and darker (papaya) * lighter "glow" (shadow) * button has not shadow * polls themed (dark blues) * papaya scrollbar * code box border thinner (not rounded) * accesibility tested in firefox dev options (no issues) * release ready v1.0 * Rename rain-forest.css to rain-forest.css delete "theme" folder and move to "themes" --- web/assets/themes/rain-forest.css | 119 ++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 web/assets/themes/rain-forest.css diff --git a/web/assets/themes/rain-forest.css b/web/assets/themes/rain-forest.css new file mode 100644 index 000000000..fb4d6ba3f --- /dev/null +++ b/web/assets/themes/rain-forest.css @@ -0,0 +1,119 @@ +/* + theme-title: Rain Forest + theme-description: Rain Forest is dark and green, with sunlight spots. Sloth's home. +*/ + +/* based on Rain Forest color palette and elements + color names as reference + v1.0 by xmgz at github */ + +:root { +/* color definitions */ +--dgreen1: #003333; +--dgreen2: #196C41; +--dgreen3: #027C68; +--dgreen4: #009933; +--dblue1: #141E46; /* very dark blue */ +--typecolor: #F8F4EC; +--linkcolor: #c0f0c0; /* very soft lime green */ +--sunny: #FCDC2A; +--lesssunny: #FF7431; /* papaya */ +/* wood/earth colors */ +--codebg: #3A2722; /* darker caoba */ +--quotebg: #800000; /* maroon */ +/* water, post's date and stats. User stats */ +--fg-reduced: #BBEBFF; + + /* Restyle basic colors */ + --blue1: var(--dgreen2); + --blue2: var(--lesssunny); + --blue3: var(--linkcolor); + --bg-accent: var(--dblue1); + --orange2: var(--sunny); + --profile-bg: var(--dgreen2); + /* dark blues */ + --gray2: #29485A; /* black forest blue */ + --gray4: #2B3246; /* vintage dark blue */ + /* statuses */ + --status-bg: var(--dgreen1); + --status-focus-bg: var(--dgreen1); + --status-info-bg: var(--dgreen3); + --status-focus-info-bg: var(--dgreen3); + /* «show more» button */ + --button-bg: var(--lesssunny); + --button-fg: var(--dblue1); + + + + /* Used around statuses + other items */ + --boxshadow: 0 0.4rem 0.7rem -0.1rem rgba(252,220,42,0.15); /* subtle status glow */ + --boxshadow-border: 0.07rem solid var(--lesssunny); /* thin papaya border */ + +} + + +html, body { + /* background */ + --bg: linear-gradient(180deg, var(--dgreen2) 0%, var(--dgreen1) 40%, var(--dblue1) 100%); + + /* browser's scrollbar, papaya and green */ + scrollbar-color: var(--lesssunny) var(--dgreen2); + +} + +/* header */ +.profile .profile-header { + border-color: var(--sunny); + border-width: 8px; + border-style: solid; +} + +/* about user */ +.profile .about-user .bio { + background: var(--gray4); +} + +.button { +box-shadow: none; /* no "glow" for buttons */ +} + +.profile .about-user .accountstats { + background: var(--fg-reduced); + color: var(--dgreen2); +} + +/* Profile fields */ +.profile .about-user .fields .field { + border-bottom: 0.1rem solid var(--sunny); +} +.profile .about-user .fields .field:first-child { + border-top: 0.1rem solid var(--sunny); +} + +/* Block quotes */ +blockquote { + background-color: var(--quotebg); + color: var(--typecolor); + font-style: italic; +} + +/* Code snippets */ +pre { + border: 1px solid var(--fg-accent); /* box's border */ + border-radius: 0px; /* and not rounded */ +} +/* kept this because other people know more */ +pre, pre[class*="language-"], +code, code[class*="language-"] { + background-color: var(--codebg); +} + + +/* status language */ +.status .status-info .status-stats .language { + color: var(--quotebg); + font-weight: bold; + background-color: var(--typecolor); + padding: 3px; + border-radius: 5px 10px; +}