project/3-web/submission/4 FooBar/sass/_blog-sidebar.scss
/*---------------------
  Blog Sidebar
-----------------------*/
.blog__sidebar__search {
    margin-bottom: 65px;

    form {
        position: relative;

        input {
            height: 50px;
            width: 100%;
            font-size: 14px;
            color: #444444;
            padding-left: 20px;
            border: 1px solid #e1e1e1;

            &::placeholder {
                color: #444444;
            }
        }

        button {
            font-size: 18px;
            color: $heading-color;
            border: none;
            background: transparent;
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            padding: 0 18px;
        }
    }
}

.blog__sidebar__item {
    margin-bottom: 65px;

    &:last-child {
        margin-bottom: 0;
    }

    h5 {
        font-size: 20px;
        color: $heading-color;
        font-weight: 600;
        text-transform: uppercase;
        padding-left: 20px;
        position: relative;
        margin-bottom: 35px;

        &:before {
            position: absolute;
            left: 0;
            top: 5px;
            height: 14px;
            width: 10px;
            background: rgba(226, 108, 12, 0.3);
            content: "";
        }
    }

    .blog__sidebar__social {

        a {
            display: inline-block;
            font-size: 16px;
            color: $heading-color;
            height: 46px;
            width: 46px;
            border-radius: 50%;
            background: #f2f2f2;
            line-height: 46px;
            text-align: center;
            margin-right: 6px;
            @include transition(all, .3s);

            &:hover {
                background: $heading-color;
                color: $white-color;
            }

            &:last-child {
                margin-right: 0;
            }
        }
    }

    .blog__sidebar__item__categories {

        ul {

            li {
                list-style: none;
                line-height: 36px;
                overflow: hidden;

                &:hover {

                    a {
                        text-decoration: line-through;

                        span {
                            color: $primary-color;
                        }
                    }
                }

                a {
                    font-size: 16px;
                    color: #444444;

                    span {
                        float: right;
                    }
                }
            }
        }
    }

    p {
        margin-bottom: 25px;
    }

    form {

        input {
            height: 50px;
            width: 100%;
            font-size: 14px;
            color: #444444;
            padding-left: 20px;
            border: 1px solid #e1e1e1;
            margin-bottom: 20px;

            &::placeholder {
                color: #444444;
            }
        }

        label {
            font-size: 14px;
            color: #444444;
            position: relative;
            padding-left: 30px;
            font-weight: 500;
            cursor: pointer;
            margin-bottom: 22px;
            display: block;

            input {
                position: absolute;
                visibility: hidden;

                &:checked~.checkmark {
                    border-color: $primary-color;
                }

                &:checked~.checkmark:after {
                    opacity: 1;
                }
            }

            .checkmark {
                position: absolute;
                left: 0;
                top: 3px;
                height: 14px;
                width: 14px;
                border: 1.5px solid #888888;
                content: "";
                border-radius: 2px;

                &:after {
                    position: absolute;
                    left: 1px;
                    top: -3px;
                    width: 14px;
                    height: 7px;
                    border: solid $primary-color;
                    border-width: 1.5px 1.5px 0px 0px;
                    -webkit-transform: rotate(127deg);
                    -ms-transform: rotate(127deg);
                    transform: rotate(127deg);
                    content: "";
                    opacity: 0;
                }
            }
        }
    }
}

.blog__sidebar__recent {

    .blog__sidebar__recent__item {

        &:last-child {
            margin-bottom: 0;
        }
    }
}

.blog__sidebar__recent__item {
    display: block;
    overflow: hidden;
    margin-bottom: 20px;
}

.blog__sidebar__recent__item__pic {
    float: left;
    margin-right: 25px;
}

.blog__sidebar__recent__item__text {
    overflow: hidden;

    h4 {
        font-size: 20px;
        color: $heading-color;
        line-height: 26px;
        font-style: italic;
        font-family: 'Playfair Display', serif;
        margin-bottom: 8px;
    }

    span {
        font-size: 12px;
        color: #888888;
    }
}