@import '../../shared/mixins',
        '../../shared/reset',
        '../../shared/about-dark';

/*
 * Copyright (c) 2013 Thibaut Courouble
 * http://www.cssflow.com
 *
 * Licensed under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 */

body {
  font: 13px/20px 'Lucida Grande', Verdana, sans-serif;
  color: #404040;
  background: #f2f8fc;
}

.tasks {
  margin: 50px auto;
  width: 240px;
  background: white;
  border: 1px solid #cdd3d7;
  border-radius: 4px;
  @include box-shadow(0 1px 2px rgba(black, .05));
}

.tasks-header {
  position: relative;
  line-height: 24px;
  padding: 7px 15px;
  color: #5d6b6c;
  text-shadow: 0 1px rgba(white, .7);
  background: #f0f1f2;
  border-bottom: 1px solid #d1d1d1;
  border-radius: 3px 3px 0 0;
  @include linear-gradient(top, #f5f7fd, #e6eaec);
  @include box-shadow(inset 0 1px rgba(white, .5), 0 1px rgba(black, .03));
}

.tasks-title {
  line-height: inherit;
  font-size: 14px;
  font-weight: bold;
  color: inherit;
}

.tasks-lists {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -11px;
  padding: 10px 4px;
  width: 19px;
  height: 3px;
  @include hide-text;

  &:before {
    content: '';
    display: block;
    height: 3px;
    background: #8c959d;
    border-radius: 1px;
    @include box-shadow(0 6px #8c959d, 0 -6px #8c959d);
  }
}

.tasks-list-item {
  display: block;
  line-height: 24px;
  padding: 12px 15px;
  cursor: pointer;
  @include user-select(none);

  & + & { border-top: 1px solid #f0f2f3; }
}

.tasks-list-cb {
  display: none;
}

.tasks-list-mark {
  position: relative;
  display: inline-block;
  vertical-align: top;
  margin-right: 12px;
  width: 20px;
  height: 20px;
  border: 2px solid #c4cbd2;
  border-radius: 12px;

  &:before {
    content: '';
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -5px 0 0 -6px;
    height: 4px;
    width: 8px;
    border: solid #39ca74;
    border-width: 0 0 4px 4px;
    @include transform(rotate(-45deg));
  }

  .tasks-list-cb:checked ~ & {
    border-color: #39ca74;

    &:before { display: block; }
  }
}

.tasks-list-desc {
  font-weight: bold;
  color: #8a9a9b;

  .tasks-list-cb:checked ~ & {
    color: #34bf6e;
    text-decoration: line-through;
  }
}
