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

Allow overriding of default button style variables #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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: 27 additions & 12 deletions css/barebones.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,19 @@ html {
--accent-hue: 194; /* blue */

--text-color-richer: hsl(var(--theme-hue), 0%, 5%); /* #0d0d0d */
--text-color-normal: hsl(var(--theme-hue), 0%, 13%); /* #222222 text color; button:hover:focus color */
--text-color-softer: hsl(var(--theme-hue), 0%, 33%); /* #555555 button color; button:hover border */
--text-color-normal: hsl(var(--theme-hue), 0%, 13%); /* #222222 text color */
--text-color-softer: hsl(var(--theme-hue), 0%, 33%); /* #555555 */

--accent-color: hsl(var(--accent-hue), 86%, 57%); /* #33C3F0 link; button-primary bg+border; textarea,select:focus border */
--accent-color-hover: hsl(var(--accent-hue), 76%, 49%); /* #1EAEDB link hover; button-primary:hover:focus bg+border */

--button-color: var(--text-color-softer); /* button color */
--button-color-hover: var(--text-color-normal); /* button:hover:focus color */

--button-background: transparent; /* button, input[type="submit" | "reset" | "button"] */
--button-background-hover: transparent; /* button:hover, input[type="submit" | "reset" | "button"]:hover */

--border-color-richer: hsl(var(--theme-hue), 0%, 57%); /* #888888 button:hover border */
--border-color: hsl(var(--theme-hue), 0%, 73%); /* #bbbbbb button border */
--border-color-softer: hsl(var(--theme-hue), 0%, 82%); /* #d1d1d1 textarea,select,code,td,hr border */

Expand All @@ -61,9 +68,9 @@ html {
--code-background: hsl(var(--theme-hue), 0%, 95%); /* #f1f1f1 code background*/

--button-primary-color: white;
/* Note: Skeleton was based off a 10px font sizing for REM */


/* Note: Skeleton was based off a 10px font sizing for REM */
/* 62.5% of typical 16px browser default = 10px */
--base-font-size: 62.5%;

Expand All @@ -81,13 +88,20 @@ html {
--theme-hue: 0; /* black */
--accent-hue: 194; /* blue */

--text-color-richer: hsl(var(--theme-hue), 0%, 95%); /* */
--text-color-normal: hsl(var(--theme-hue), 0%, 80%); /* text color; button:hover:focus color */
--text-color-softer: hsl(var(--theme-hue), 0%, 67%); /* button color; button:hover border */
--text-color-richer: hsl(var(--theme-hue), 0%, 95%); /* #f2f2f2 */
--text-color-normal: hsl(var(--theme-hue), 0%, 80%); /* #cccccc text color */
--text-color-softer: hsl(var(--theme-hue), 0%, 67%); /* #ababab */

--accent-color: hsl(var(--accent-hue), 76%, 49%); /* link; button-primary bg+border; textarea,select:focus border */
--accent-color-hover: hsl(var(--accent-hue), 86%, 57%); /* link hover; button-primary:hover:focus bg+border */

--button-color: var(--text-color-softer); /* button color */
--button-color-hover: var(--text-color-normal); /* button:hover:focus color */

--button-background: transparent; /* button, input[type="submit" | "reset" | "button"] */
--button-background-hover: transparent; /* button:hover, input[type="submit" | "reset" | "button"]:hover */

--border-color-richer: hsl(var(--theme-hue), 0%, 67%); /* #ababab button:hover border */
--border-color: hsl(var(--theme-hue), 0%, 27%); /* button border */
--border-color-softer: hsl(var(--theme-hue), 0%, 20%); /* textarea,select,code,td,hr border */

Expand Down Expand Up @@ -227,7 +241,7 @@ input[type="button"] {
display: inline-block;
height: 38px;
padding: 0 30px;
color: var(--text-color-softer);
color: var(--button-color);
text-align: center;
font-size: 11px;
font-weight: 600;
Expand All @@ -236,7 +250,7 @@ input[type="button"] {
text-transform: uppercase;
text-decoration: none;
white-space: nowrap;
background-color: transparent;
background-color: var(--button-background);
border-radius: 4px;
border: 1px solid var(--border-color);
cursor: pointer;
Expand All @@ -251,8 +265,9 @@ button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
color: var(--text-color-normal);
border-color: var(--text-color-softer);
color: var(--button-color-hover);
background-color: var(--button-background-hover);
border-color: var(--border-color-richer);
outline: 0; }
.button.button-primary,
button.button-primary,
Expand Down