Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
Fix #160
Browse files Browse the repository at this point in the history
  • Loading branch information
Gareth Joyce committed Dec 8, 2016
1 parent f755186 commit 11706a6
Show file tree
Hide file tree
Showing 18 changed files with 115 additions and 122 deletions.
55 changes: 24 additions & 31 deletions src/scss/_var.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,34 @@
// =============================================

$colors: (
brand: (
pink : #e91e63
primary: (
pink : DeepPink
),

grey: (
base : #666,
darker : #222,
dark : #444,
light : #999,
lighter : #e4e4e4
),

black: (
base : #000
),

white: (
base : #fff

secondary: (
purple : RebeccaPurple
),

success: (
base : #4caf50,
light : #c8e6c9
),

warning: (
base : #ffeb3b,
light : #fff59d

neutral: (
black : #000,
white : #fff,
darkest : #222,
darker : #444,
dark : #666,
light : #999,
lighter : #e4e4e4,
lightest : #f4f4f4
),

error: (
base : #f44336,
light : #ffcdd2

contextual: (
success : #4caf50,
success-light : #c8e6c9,
warning : #ffeb3b,
warning-light : #fff59d,
error : #f44336,
error-light : #ffcdd2
),

social: (
twitter : #55acee,
facebook : #32639f,
Expand Down
20 changes: 10 additions & 10 deletions src/scss/base/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ label {
input,
textarea,
select[multiple=multiple] {
background-color: color(white);
border: 1px solid color(grey);
background-color: color(neutral, white);
border: 1px solid color(neutral, dark);
border-radius: 0;
padding: spacing(xs) spacing(sm);
width: 100%;

&:focus {
border-color: color(black);
border-color: color(neutral, black);
outline: none;
}
}
Expand Down Expand Up @@ -125,25 +125,25 @@ optgroup {
.error,
abbr[title="Required"],
.required em {
color: color(error, base);
color: color(contextual, error);
}

.required::after {
content: "*";
color: color(error, base);
color: color(contextual, error);
margin-left: spacing(xs);
}

.valid {
color: color(success, base);
color: color(contextual, success);
}

.is-error {
border-color: color(error, base);
border-color: color(contextual, error);
}

.is-valid {
border-color: color(success, base);
border-color: color(contextual, success);
}

.validation-advice {
Expand All @@ -156,7 +156,7 @@ abbr[title="Required"],
}

.has-error .validation-advice {
background-color: color(error, light);
border-color: color(error);
background-color: color(contextual, error-light);
border-color: color(contextual, error);
}

2 changes: 1 addition & 1 deletion src/scss/base/_horizontal-rule.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
hr {
border: 0;
height: 1px;
background-color: color(grey,light);
background-color: color(neutral, light);
margin-top: spacing(xl);
margin-bottom: spacing(xl);
}
4 changes: 2 additions & 2 deletions src/scss/base/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

.tag {
display: inline-block;
background-color: color(grey,dark);
color: color(white);
background-color: color(neutral,darker);
color: color(neutral, white);
padding: spacing(xs)/2 spacing(xs);
white-space: nowrap;
vertical-align: baseline;
Expand Down
14 changes: 7 additions & 7 deletions src/scss/base/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ html {
font-size: $font-size;
font-family: $font-family;
line-height: $line-height;
color: color(grey);
color: color(neutral, dark);
}

ul, ol, p {
Expand Down Expand Up @@ -63,14 +63,14 @@ samp {
code {
padding: 2px 4px;
font-size: $font-size-sm;
color: color(error);
background-color: color(grey, lighter);
color: color(contextual, error);
background-color: color(neutral, lighter);
border-radius: $border-radius;
}

mark {
background: color(error);
color: color(black);
background: color(contextual, error);
color: color(neutral, black);
}


Expand All @@ -80,11 +80,11 @@ mark {

a,
.link {
color: color(black);
color: color(neutral, black);
touch-action: manipulation;

&:hover {
color: color(grey);
color: color(neutral, dark);
}
}

Expand Down
42 changes: 21 additions & 21 deletions src/scss/chopchop-ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
right: 0;
z-index: 999;
font-size: 12px;
border-bottom: 4px solid color(grey,darker);
border-bottom: 4px solid color(neutral,darkest);
@include flex;

ul {
Expand All @@ -30,7 +30,7 @@

li {
list-style: none;
color: color(white);
color: color(neutral, white);

> * {
display: inline-block;
Expand All @@ -39,13 +39,13 @@
}

a {
color: color(white);
background-color: color(grey,darker);
color: color(neutral, white);
background-color: color(neutral,darkest);
text-decoration: none;

&.is-active {
background-color: #EFEDED;
color: color(grey,darker);
color: color(neutral,darkest);
}
}

Expand Down Expand Up @@ -75,23 +75,23 @@

span {
background-color: #FFE800;
color: color(grey,darker);
color: color(neutral,darkest);

@include breakpoint(screen(sm) screen(sm, max)) {
background-color: #E800E8;
color: color(white);
color: color(neutral, white);
}
@include breakpoint(screen(md) screen(md, max)) {
background-color: #70F800;
color: color(grey,darker);
color: color(neutral,darkest);
}
@include breakpoint(screen(lg) screen(lg, max)) {
background-color: #00B1F5;
color: color(white);
color: color(neutral, white);
}
@include breakpoint(screen(xl)) {
background-color: #FF2C00;
color: color(white);
color: color(neutral, white);
}
}
}
Expand Down Expand Up @@ -130,10 +130,10 @@
width: 200px;
left: -100%;
z-index: 998;
background-color: color(grey,darker);
background-color: color(neutral,darkest);
padding: 20px 10px;
padding-bottom: 46px;
color: color(grey,lighter);
color: color(neutral, lighter);

&.is-active {
left: 0;
Expand All @@ -151,7 +151,7 @@
counter-increment: section;
content: counters(section,".") ". ";
font-size: $font-size-sm;
color: color(grey);
color: color(neutral, dark);
}

ol {
Expand All @@ -163,7 +163,7 @@
}

a {
color: color(grey,lighter);
color: color(neutral, lighter);
text-decoration: none;

&:hover {
Expand All @@ -178,9 +178,9 @@
// =============================================

.cc-section {
border: 5px solid color(grey,lighter);
border: 5px solid color(neutral, lighter);
border-top: 0;
background-color: color(white);
background-color: color(neutral, white);
}

.cc-demo {
Expand All @@ -201,7 +201,7 @@
// =============================================

.cc-title {
background-color: color(grey,lighter);
background-color: color(neutral, lighter);
@include flex;
@include justify-content(space-between);
@include align-items(center);
Expand Down Expand Up @@ -234,13 +234,13 @@

.cc-title-desc {
padding: 20px 20px 0;
border-left: 5px solid color(grey,lighter);
border-right: 5px solid color(grey,lighter);
border-left: 5px solid color(neutral, lighter);
border-right: 5px solid color(neutral, lighter);
border-top: 0;

> *:last-child {
margin-bottom: 0;
border-bottom: 2px solid color(grey,lighter);
border-bottom: 2px solid color(neutral, lighter);
padding-bottom: 20px;
}
}
Expand Down Expand Up @@ -330,7 +330,7 @@
display: block;
max-height: 20em;
overflow: scroll;
background-color: color(grey,lighter) !important;
background-color: color(neutral, lighter) !important;
}


Expand Down
12 changes: 6 additions & 6 deletions src/scss/component/_alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

.alert {
padding: spacing();
background-color: color(grey, lighter);
border: 1px solid color(grey);
background-color: color(neutral, lighter);
border: 1px solid color(neutral, dark);
margin-bottom: spacing();

p {
Expand Down Expand Up @@ -55,11 +55,11 @@
// =============================================

.alert--success {
background-color: color(success, light);
border-color: color(success);
background-color: color(contextual, success-light);
border-color: color(contextual, success);
}

.alert--error {
background-color: color(error, light);
border-color: color(error);
background-color: color(contextual, error-light);
border-color: color(contextual, error);
}
2 changes: 1 addition & 1 deletion src/scss/component/_breadcrumb.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
margin-right: spacing(sm);

&:after {
@include chevron(color(grey), 4px, right, 1px);
@include chevron(color(neutral, dark), 4px, right, 1px);
vertical-align: middle;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/scss/component/_drawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
bottom: 0;
width: 90%;
max-width: 30em;
background: color(white);
background: color(neutral, white);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}
Expand Down
2 changes: 1 addition & 1 deletion src/scss/component/_modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// =============================================

.modal__dialog {
background-color: color(white);
background-color: color(neutral, white);
margin-left: auto;
margin-right: auto;
position: relative;
Expand Down
4 changes: 2 additions & 2 deletions src/scss/component/_pagination.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
vertical-align: middle;
}
li:first-child a::after {
@include chevron(color(grey), 6px, left, 2px);
@include chevron(color(neutral, dark), 6px, left, 2px);
}
li:last-child a::after {
@include chevron(color(grey), 6px, right, 2px);
@include chevron(color(neutral, dark), 6px, right, 2px);
}
}
Loading

0 comments on commit 11706a6

Please sign in to comment.