Commit ab985aad by Frances Botsford

modernize the dashboard button styles

parent 0db8bac7
...@@ -278,6 +278,8 @@ $honorcode-color-lvl2: tint($honorcode-color-lvl1, 33%); ...@@ -278,6 +278,8 @@ $honorcode-color-lvl2: tint($honorcode-color-lvl1, 33%);
$audit-color-lvl1: $light-gray; $audit-color-lvl1: $light-gray;
$audit-color-lvl2: tint($audit-color-lvl1, 33%); $audit-color-lvl2: tint($audit-color-lvl1, 33%);
// STATE: credit
$credit-color-base: rgb(244,195,0); // accessible with black text
// ==================== // ====================
......
...@@ -285,6 +285,60 @@ ...@@ -285,6 +285,60 @@
} }
} }
// imitating the pattern library
// starts with overrides
%btn-pl-default-base {
@include box-sizing(border-box);
@extend %t-copy-base;
letter-spacing: 0; // reset letterspacing from elsewhere
@extend %btn-primary;
border: 1px solid darken($action-primary-bg,10%);
border-radius: 3px;
padding: ($baseline/2) $baseline;
background-color: $action-primary-fg;
color: darken($action-primary-bg,10%);
text-align: center;
&:hover,
&:focus {
border: 1px solid transparent;
background-color: $action-primary-bg;
color: $action-primary-fg;
text-decoration: none;
}
}
%btn-pl-primary-base {
@extend %btn-pl-default-base;
background-color: darken($action-primary-bg,10%);
color: $action-primary-fg;
}
%btn-pl-green-base {
@extend %btn-pl-default-base;
background-color: darken($green-d1,10%);
color: $action-primary-fg;
&:hover,
&:focus {
border: 1px solid transparent;
background-color: $green-d1;
}
}
%btn-pl-yellow-base {
@extend %btn-pl-default-base;
border: 1px solid transparent;
background-color: $credit-color-base;
color: $base-font-color;
&:hover,
&:focus {
border: 1px solid darken($credit-color-base,10%);
background-color: lighten($credit-color-base,20%);
}
}
// ==================== // ====================
// application: canned actions // application: canned actions
......
...@@ -511,25 +511,11 @@ ...@@ -511,25 +511,11 @@
} }
.enter-course { .enter-course {
@include button(simple, $button-color); @extend %btn-pl-primary-base;
@include box-sizing(border-box);
border-radius: 3px;
@include float(right); @include float(right);
font: normal 15px/1.6rem $sans-serif;
letter-spacing: 0;
text-align: center;
&.archived { &.archived {
@include button(simple, $button-archive-color); @extend %btn-pl-default-base;
font: normal 15px/1.6rem $sans-serif;
&:hover, &:focus {
text-decoration: none;
}
}
&:hover, &:focus {
text-decoration: none;
} }
} }
} }
...@@ -898,15 +884,8 @@ ...@@ -898,15 +884,8 @@
position: relative; position: relative;
.cta { .cta {
@include button(simple, $green-d1); @extend %btn-pl-green-base;
@include box-sizing(border-box);
@include float(right); @include float(right);
border-radius: 3px;
display: block;
font: normal 15px/1.6rem $sans-serif;
letter-spacing: 0;
padding: 6px 32px 7px;
text-align: center;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment