项目作者: lnikell

项目描述 :
Sublime Text 3 Plugin for converting CSS to SASS/Stylus from clipboard
高级语言: Python
项目地址: git://github.com/lnikell/css-converter.git
创建时间: 2015-09-23T19:02:15Z
项目社区:https://github.com/lnikell/css-converter

开源协议:

下载


CSS to SASS and Stylus converter for Sublime Text 3

5k

STOP WASTING YOUR TIME removing brackets, semicolons and formating any css inserted from your browser to Sublime Text.

![Example usage]
(https://habrastorage.org/files/1cc/aa6/0bb/1ccaa60bb0924c8b8976b99acf0e5fd9.gif)

You could also copy something like this:

  1. {
  2. display: block;
  3. color: #ffffff;
  4. }

And plugin will transform it to:

  1. display: block
  2. color: #ffffff

Features

  • works without any gems or npm packages
  • supports nested selectors
  • unprefixing (comming soon)

Installation

via Package Control

  • Open the Command Pallete (ctrl+shift+P or cmd+shift+P);
  • Type “Install Package”
  • Type “css to sass converter” and hit return.

Configuration options

colon

Default: true.
Add semicolon after property name or not. Makes sense only for stylus.

Default key bindings

Ctrl+V on Windows/Linux

Cmd+V on OS X