Commit bf71f099 by Brian Talbot

studio - checklists: finished static styling, initial checklist content import, and some basic JS

parent 66a8735a
...@@ -23,7 +23,9 @@ body.course.checklists { ...@@ -23,7 +23,9 @@ body.course.checklists {
header { header {
@include clearfix(); @include clearfix();
@include box-shadow(inset 0 -1px 1px $shadow-l1);
margin-bottom: 0; margin-bottom: 0;
border-bottom: 1px solid $gray-l3;
padding: $baseline ($baseline*1.5); padding: $baseline ($baseline*1.5);
.checklist-title { .checklist-title {
...@@ -32,6 +34,14 @@ body.course.checklists { ...@@ -32,6 +34,14 @@ body.course.checklists {
margin: 0 flex-gutter() 0 0; margin: 0 flex-gutter() 0 0;
float: left; float: left;
.icon-confirm {
@include font-size(20);
display: inline-block;
vertical-align: middle;
margin-right: ($baseline/4);
color: $gray-l4;
}
&.is-selectable { &.is-selectable {
cursor: pointer; cursor: pointer;
...@@ -105,6 +115,10 @@ body.course.checklists { ...@@ -105,6 +115,10 @@ body.course.checklists {
// state - collapsed // state - collapsed
&.is-collapsed { &.is-collapsed {
header {
@include box-shadow(none);
}
.list-tasks { .list-tasks {
height: 0; height: 0;
} }
...@@ -115,8 +129,8 @@ body.course.checklists { ...@@ -115,8 +129,8 @@ body.course.checklists {
header { header {
.checklist-title { .checklist-title, .icon-confirm {
color: $gray-l1; color: $green;
} }
.checklist-status { .checklist-status {
...@@ -147,7 +161,8 @@ body.course.checklists { ...@@ -147,7 +161,8 @@ body.course.checklists {
overflow: hidden; overflow: hidden;
.task { .task {
@include transition(background .15s ease-in-out .25s, border .15s ease-in-out .25s); @include transition(background .15s ease-in-out .25s);
@include transition(border .15s ease-in-out .25s);
@include clearfix(); @include clearfix();
position: relative; position: relative;
border-top: 1px solid $white; border-top: 1px solid $white;
...@@ -169,13 +184,13 @@ body.course.checklists { ...@@ -169,13 +184,13 @@ body.course.checklists {
.task-input { .task-input {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: text-top;
margin-right: flex-gutter(); margin: ($baseline/2) flex-gutter() 0 0;
} }
.task-details { .task-details {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: text-top;
width: flex-grid(6,7); width: flex-grid(6,7);
.task-name { .task-name {
...@@ -234,6 +249,7 @@ body.course.checklists { ...@@ -234,6 +249,7 @@ body.course.checklists {
opacity: 1.0; opacity: 1.0;
.task-details { .task-details {
.task-support { .task-support {
opacity: 1.0; opacity: 1.0;
pointer-events: auto; pointer-events: auto;
...@@ -253,14 +269,17 @@ body.course.checklists { ...@@ -253,14 +269,17 @@ body.course.checklists {
border-top-color: $gray-l5; border-top-color: $gray-l5;
border-bottom-color: $gray-l5; border-bottom-color: $gray-l5;
.task-details { .task-name {
opacity: 0.50; color: $gray-l2;
} }
&:hover { &:hover {
background: $blue-l5;
border-bottom-color: $blue-l4;
border-top-color: $blue-l4;
.task-details { .task-details {
opacity: 1.0; opacity:1.0;
} }
} }
} }
......
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