Commit 6464d70c by Brian Talbot

applying step-based error styling to peer/self assessment actions

parent a98305e0
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -478,14 +478,14 @@ ...@@ -478,14 +478,14 @@
opacity: 0.0; opacity: 0.0;
} }
// CASE: error is shown // CASE: error is shown
.has--error { .has--error {
.message--error { .message--error {
display: block; display: block;
opacity: 1.0; opacity: 1.0;
}
} }
}
...@@ -739,6 +739,10 @@ ...@@ -739,6 +739,10 @@
// step actions // step actions
.peer-assessment__actions { .peer-assessment__actions {
@include transition(background-color $tmg-f1 ease-in-out 0s);
border-radius: ($baseline-v/5);
padding: ($baseline-v/2) ($baseline-h/2);
background: transparent;
text-align: center; text-align: center;
@include media($bp-ds) { @include media($bp-ds) {
...@@ -761,6 +765,61 @@ ...@@ -761,6 +765,61 @@
@extend %btn--primary; @extend %btn--primary;
@extend %action-4; @extend %action-4;
} }
// STATE: has error
&.has--error {
@include row();
background: tint($color-error, 90%);
.message {
display: block;
margin-bottom: ($baseline-v/2);
@include media($bp-ds) {
@include span-columns(3 of 6);
margin-bottom: 0;
text-align: left;
}
@include media($bp-dm) {
@include span-columns(6 of 12);
margin-bottom: 0;
text-align: left;
}
@include media($bp-dl) {
@include span-columns(6 of 12);
margin-bottom: 0;
text-align: left;
}
@include media($bp-dx) {
@include span-columns(6 of 12);
margin-bottom: 0;
text-align: left;
}
}
.list--actions {
display: block;
@include media($bp-ds) {
@include span-columns(3 of 6);
}
@include media($bp-dm) {
@include span-columns(6 of 12);
}
@include media($bp-dl) {
@include span-columns(6 of 12);
}
@include media($bp-dx) {
@include span-columns(6 of 12);
}
}
}
} }
} }
...@@ -826,6 +885,10 @@ ...@@ -826,6 +885,10 @@
// step actions // step actions
.self-assessment__actions { .self-assessment__actions {
@include transition(background-color $tmg-f1 ease-in-out 0s);
border-radius: ($baseline-v/5);
padding: ($baseline-v/2) ($baseline-h/2);
background: transparent;
text-align: center; text-align: center;
@include media($bp-ds) { @include media($bp-ds) {
...@@ -848,6 +911,61 @@ ...@@ -848,6 +911,61 @@
@extend %btn--primary; @extend %btn--primary;
@extend %action-4; @extend %action-4;
} }
// STATE: has error
&.has--error {
@include row();
background: tint($color-error, 90%);
.message {
display: block;
margin-bottom: ($baseline-v/2);
@include media($bp-ds) {
@include span-columns(3 of 6);
margin-bottom: 0;
text-align: left;
}
@include media($bp-dm) {
@include span-columns(6 of 12);
margin-bottom: 0;
text-align: left;
}
@include media($bp-dl) {
@include span-columns(6 of 12);
margin-bottom: 0;
text-align: left;
}
@include media($bp-dx) {
@include span-columns(6 of 12);
margin-bottom: 0;
text-align: left;
}
}
.list--actions {
display: block;
@include media($bp-ds) {
@include span-columns(3 of 6);
}
@include media($bp-dm) {
@include span-columns(6 of 12);
}
@include media($bp-dl) {
@include span-columns(6 of 12);
}
@include media($bp-dx) {
@include span-columns(6 of 12);
}
}
}
} }
} }
......
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