GithubHelp home page GithubHelp logo

Create CSS rules sorting about zen-coding HOT 5 OPEN

protoc avatar protoc commented on May 22, 2024
Create CSS rules sorting

from zen-coding.

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
I love to have my CSS properties in alphabetical order.

Original comment by [email protected] on 22 Nov 2009 at 6:23

from zen-coding.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
О! Надеюсь, можно будет настроить порядок?
Кстати, ещё хорошо было бы иметь 
возможность настраивать группы свойств, 
разделяемые 
строкой, типа отдельно свойства текста, 
отдельно — блочные свойства и т.д., мне в 
последне время нравится подобный подход :)

На самом деле, помимо этого можно добавить 
полноценный настраиваемый бьютифаер CSS. 
Хотя! Напишу-ка я отдельный enhancement на эту 
тему :)

Original comment by kizmarh on 18 Feb 2010 at 9:41

from zen-coding.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
На мой взгляд, сортировку на первом этапе 
стоит сделать по существующей 
документации. Дальше, если 
придумается какой-нибудь удобный механизм 
кастомной сортировки, можно будет 
докрутить хоть 
безумную алфавитную сортировку. А те, кому 
это будет очень нужно, смогут лично 
покопаться в 
конфигах и всё пересортировать.

Из фиче риквестов для сортировки:

1. Возможность сортировать внутри 
конкретного блока правил (от открывающей 
до закрывающей 
фигурной), чтобы экономить время и не 
сортировать весь документ. Для редакторов, 
где не получить 
блок правил, можно сделать сортировку 
только по выделению.

2. Возможность отсортировать весь документ.

3. Возможность горизонтальной сортировки 
для тех, кто пишет код в одну строку (и такие 
безумцы 
встречаются).

4. Принцип сортировки: всё, что известно по 
порядку, остальное как было и в конец.

5. Работа с вендорными префиксами, т.е. игнор 
первой части от дефиса до дефиса: [-moz-]property

Original comment by pepelsbey on 21 Feb 2010 at 2:26

from zen-coding.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
I would like my CSS to be sorted in order that it affects the HTML document

So:
body - rules first
If I have a.nav in a #header, then a #main section, rules such as .nav will 
come before #header rules

Original comment by [email protected] on 15 Sep 2010 at 6:31

from zen-coding.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
Just to clarify, I believe you are talking about sorting the attributes of the 
properties in alphabetical order. Something like:
- - -
div a {
 color: #006;
 text-decoration: none;
}

#article {
 background: #eee;
 border: 1px solid #000;
 color: #111;
 height: 100%;
 width: 80%
}
- - -

Where the actual properties aren't sorted, but the attributes within them are 
alphabetical.

Original comment by [email protected] on 9 Sep 2011 at 9:09

from zen-coding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.