Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update onboarding.css - Use CSS variables #10

Closed
wants to merge 3 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions src/onboarding/onboarding.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
:root{
/* ### Theme Colors ### */
/* Note: #14919b ! since this is used frequently, you could call this a theme color var */
--theme_ashblu: #14919b; /* used in var --rad_label_i-chk */
/* Note: #E5E5E5 ! is used frequently too */
--theme_ashmercury: #E5E5E5; /* used in --feature_border */
--theme_ashash: #333333;
--theme_ashblu_darker: #0e7c86; /* DARKER THEME COLOR */
--theme_ashblu_dark: #30919c; /* DARKER THAN THEME COLOR, LIGHTER THAN DARKER THEME COLOR */

/* ### SRC/ONBOARDING ### */
/* onboarding.css */
--body_bg: #FAFAFA;
--feature_bg: #FFF; /* can be used for rad label span / --rad_label_span */
--feature_border: var(--theme_ashmercury); /* can be used for rad label input disabled / --rad_label_i-dis */

/* ### SRC/OPTIONS ### */
/* radio.css */
--rad_label_i-chk: var(--theme_ashblu); /* can be used for rad label span box shadow / --rad_label_span_bs */
--rad_label_i-dis: var(--feature_border);
--rad_label_span: var(--feature_bg);
--rad_label_span_bs: var(--rad_label_i-chk);

/* toggle.css */
/* Created Theme Variables */
/* theme: _ashblue / _ashmercury */

/* ### SRC/SHARED ### */
/* site.css */
/* Created Theme Variables */
/* theme: _ashash / _ashblu_darker / _ashblu_dark */
}

body {
background-color: #FAFAFA;
background-color: var(--body_bg);
}

img .inline {
Expand Down Expand Up @@ -27,13 +60,13 @@ h4 {
}

.feature {
background-color: #FFFFFF;
background-color: var(--feature_bg);
display: flex;
flex-flow: row;
justify-content: space-around;
padding: 1rem;
margin: 1.5rem 0;
border: #E5E5E5 2px solid;
border: var(--feature_border) 2px solid;
border-radius: 6px;
}

Expand Down