samedi 11 juin 2016

How I can compile this CSS


I use Socialengine (Zend Framework) with lot of plugin but one of plugin has a different CSS.

In fact there are lot of CSS cascading but isn't less or sass file.

My file style.css looks like this :

/*Mixins*/
=font-size($px){
    font-size: calc($px/13)em;
}

=transition{
    -webkit-transition: all 300ms ease-in-out;
    -o-transition: all 300ms ease-in-out;
    transition: all 300ms ease-in-out;
}

=border-radius($radius) {
    -webkit-border-radius: $radius;
    -moz-border-radius: $radius;
    border-radius: $radius;
}

=text-clamp($line) {
    word-break: break-word;
    word-wrap: break-word; 
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: normal;        
    -webkit-line-clamp: $line; 
    line-height: 18px;
    height: calc(18*$line)px;
}

/* CSS */
.blog_options{
    display: block;
    position: absolute;
    width: 170px;
    right: 0;
    border: 1px solid $theme_border_color;
    background: #FFF;
    display: none;
    box-shadow: 0px 0px 21px -5px #ccc;


    &.blog_options_show{
        display: block;
    }

    & > a{
        padding: 10px 15px;
        display: block;
        +font-size(13);
        border-bottom: 1px solid $theme_border_color;
        color: $theme_font_color !important;

        &:hover{
            background: $theme_link_color_hover;
            color: #FFF !important;
        }

        i.fa{
            +font-size(14);
            margin-right: 5px;
        }

        &:last-of-type{
            border-bottom: 0;
        }

        &.icon_blog_delete{
            color: #c31919 !important;
            background: #f6f6f6 !important;
            i.fa{
                color: #c31919;
            }
        }
    }
}

So how I can compile this manually for have a clean CSS file ? This type of CSS have a name ?

Thank you


Aucun commentaire:

Enregistrer un commentaire