#05 Simple Task Card

Preview

  • Mobile App Case Study

    +5
  • Meeting with client

    +8
  • People Management

    +2
  • Work plan for 2020

    +4

HTML

SCSS


*, ::after, ::before {
  box-sizing: border-box;
}

/* css element */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');
  
.task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  justify-content: left;
  overflow-x: auto;
  flex-wrap: nowrap;
  
  > li {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 15px;
    width: 145px;
    margin: 10px;
    flex: 0 0 auto;
    
    h3 {
      font-weight: 400;
      color: #162B39;
      font-size: 15px;
      line-height: 20px;
      margin-top: 10px;
    }
    
    .users {
      display: -ms-flexbox;
      display: flex;
      -ms-flex-wrap: wrap;
      flex-wrap: wrap;
      -ms-flex-align: center;
      align-items: center;
      margin-top: 40px;
      
      ul {
        list-style: none;
        margin: 0;
        padding: 0;
        
        li {
          border-radius: 15px;
          overflow: hidden;
          margin-left: -20px;
          width: 40px;
          height: 40px;
          display: inline-block;
          border: 3px solid #ffffff;
          
          &:first-child {
            margin-left: 0;
          }
          
          img {
            width: 100%;
            height: auto;
          }
        }
      }
      
      .more-users {
        color: #8492A6;
        font-size: 16px;
        font-weight: 400;
        margin-left: 15px;
      }
    }
  }

  > li.active {
    background-color: #f57b51;
    
    h3 {
      color: #ffffff;
    }
    
    .users {
        
      ul {
          
        li {
          border-color: #f57b51;
        }
      }
      
      .more-users {
        color: #ffffff;
      }
    }
  }
}

@media (max-width: 578px) {
  .task-list {
    width: 100%;
    justify-content: center;
  }
}


Notes

In the code you can replace the images, icons and font. For icons and font you may have to change the size in the css.

Help the Project

Your help is important for the success of this project. We will make this project grow for everyone.