-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor appearence to
account.{theme,color_scheme}
- Loading branch information
h.u.g.u.rp
committed
Oct 18, 2023
1 parent
cba31e1
commit b69ca2c
Showing
11 changed files
with
340 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,122 @@ | ||
/* The default theme for R4 and components */ | ||
|
||
/* Shared between light and dark color schemes */ | ||
r4-app { | ||
backround-color: red; | ||
--font: Maison Neue, system-ui, sans-serif; | ||
--s-font: 15px; | ||
--s-line-height: 1.3125; | ||
--s: 0.5rem; | ||
|
||
--c-light: hsl(0deg 0% 98%); | ||
--c-lightgray: hsl(0deg 0% 80%); | ||
/* --c-darkgray: hsl(0deg 0% 15%); */ | ||
--c-dark: hsl(0deg 0% 10%); | ||
/* --c-link: hotpink; */ | ||
--c-purple: #5d1ae6; | ||
--c-light--accent: var(--c-purple); | ||
--c-dark--accent: var(--c-purple); | ||
/* --c-link: var(--c-purple); */ | ||
/* background-color: hsl(40, 6%, 90%); */ | ||
/* color: hsl(0, 0%, 10%); */ | ||
/* font-size: 15px; */ | ||
--c-border: var(--c-dark); | ||
} | ||
|
||
[color-scheme='light'] r4-app { | ||
/* --c-card-background: var(--c-lightgray); */ | ||
/* --c-input-background: hsl(0 0% 93%); */ | ||
/* --c-button-background: hsl(0 0% 93%); */ | ||
/* --c-text: hsl(0 0% 10%); */ | ||
/* --c-border: hsla(0 10% 50% / 0.5); */ | ||
} | ||
|
||
[color-scheme='dark'] r4-app { | ||
/* --c-border: hsl(0 0% 5%); */ | ||
/* --c-text: hsl(0 0% 90%); */ | ||
/* --c-link: hsl(260 80% 90%); */ | ||
} | ||
|
||
r4-layout { | ||
padding: 1rem; | ||
} | ||
|
||
r4-app [slot='main'] header:first-of-type { | ||
margin-bottom: var(--s); | ||
} | ||
|
||
r4-app [slot='main'] header:first-of-type h1 { | ||
margin-top: var(--s); | ||
} | ||
|
||
r4-app h1, | ||
r4-app h2 { | ||
line-height: 1.1; | ||
} | ||
|
||
r4-app h1 { | ||
font-size: 2rem; | ||
} | ||
|
||
r4-app h2 { | ||
font-size: 1.5rem; | ||
} | ||
|
||
r4-app button { | ||
display: inline-block; | ||
font-size: 0.86667rem; | ||
font-weight: bold; | ||
border: 1px solid rgba(115, 115, 115, 0.4); | ||
border-radius: 3px; | ||
box-shadow: 0 3px 0 -1px rgba(204, 204, 204, 0.9); | ||
box-sizing: border-box; | ||
cursor: pointer; | ||
line-height: 1; | ||
min-height: 2.1em; | ||
padding: 0.6em; | ||
background-color: hsl(0, 0%, 98%); | ||
color: var(--c-fg); | ||
text-align: center; | ||
text-decoration: none; | ||
} | ||
|
||
r4-app[color-scheme='dark'] button { | ||
color: var(--c-bg); | ||
} | ||
|
||
r4-channel-card { | ||
display: flex; | ||
flex-flow: column nowrap; | ||
/* background-color: var(--c-lightgray); */ | ||
max-width: 21rem; | ||
margin-bottom: var(--s); | ||
} | ||
|
||
/* Maison Neue regular/italic + bold/italic from Cloudinary */ | ||
@font-face { | ||
font-family: 'Maison Neue'; | ||
src: url('https://res.cloudinary.com/radio4000/raw/upload/v1492541388/maisonneueweb-book_ee98sm.woff2') | ||
format('woff2'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: 'Maison Neue'; | ||
src: url('https://res.cloudinary.com/radio4000/raw/upload/v1492541388/maisonneueweb-bookitalic_szjrvl.woff2') | ||
format('woff2'); | ||
font-weight: normal; | ||
font-style: italic; | ||
} | ||
@font-face { | ||
font-family: 'Maison Neue'; | ||
src: url('https://res.cloudinary.com/radio4000/raw/upload/v1492541388/maisonneueweb-bold_rvmbzr.woff2') | ||
format('woff2'); | ||
font-weight: bold; | ||
font-style: normal; | ||
} | ||
@font-face { | ||
font-family: 'Maison Neue'; | ||
src: url('https://res.cloudinary.com/radio4000/raw/upload/v1492541388/maisonneueweb-bolditalic_awvcg5.woff2') | ||
format('woff2'); | ||
font-weight: bold; | ||
font-style: italic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.