Code Monkey home page Code Monkey logo

csscheme's People

Contributors

fichtefoll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

csscheme's Issues

There should be support for "normal" fontStyle

When I convert from tmTheme file to csscheme,

<key>fontStyle</key>
<string>normal</string>

is converted to
fontStyle: normal;

But when converting from csscheme to tmTheme, I get an error:
invalid value 'normal' for style property fontStyle in "keyword.operator"

Support empty fontStyle

To clear existing font styles you can use:

<dict>
<key>fontStyle</key>
<string></string>
</div>

This is currently not possible in the CSScheme syntax.

P.S. I hope more people come out of the woodwork with their obscure tmTheme know-how :)

Add a "CSSTheme" version for themes

Well, this is a wonderful package! CSS (w/ preprocessors) is indeed very convenient for this purpose.

To me, it seems like CSS will also be a convenient language for specifying UI Themes. Let's extend this to .sublime-theme! πŸ˜‰

(There's only 1 thing that can be a problem: keys that refer to objects.)

Traceback caused by: edit.py

as mentioned at [Solved] issue using β€œedit” objects recursively

Info:

ST Version: Stable Channel, Build 3103
OS: Windows 10 Pro (64-bit), Build 10586

Error:

Traceback (most recent call last):
  File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 568, in run_
    return self.run(edit, **args)
TypeError: run() missing 1 required positional argument: 'name'

@ MyPlugin.py:

try:
    from .Edit import Edit as Edit
except:
    from Edit import Edit as Edit

...
...

edit = Edit(view)
edit.replace(region, text)

the above code works with my modified version of edit.py

Run as command line tool

Hello! Would it be possible to use CSScheme as command line tool so it would be useful not only inside of Sublime?

Strange Error ("'FunctionToken' object has no attribute 'value'")

Given this:

@name "Test";

$hotpink: #fe57a1;

* {
    selection:       transparentize($hotpink, .85);
    selectionBorder: transparentize($hotpink, .76);
}

I get this:

Traceback (most recent call last):
  File "my_sublime_lib in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 62, in run_
  File "C:\Alex\Dropbox\Apps\Sublime Text 3\sublime_plugin.py", line 526, in run_
    return self.run()
  File "csscheme in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 182, in run
  File "tinycsscheme.dumper in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 65, in dump_stylesheet_file
  File "tinycsscheme.dumper in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 114, in datafy_stylesheet
  File "tinycsscheme.dumper in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 147, in datafy_ruleset
  File "tinycsscheme.dumper in C:\Alex\Dropbox\Apps\Sublime Text 3\Data\Installed Packages\CSScheme.sublime-package", line 147, in <genexpr>
AttributeError: 'FunctionToken' object has no attribute 'value'

It's line 7 (selectionBorder) that causes the issue, but I don't understand why. It will work if I change the line to:

    selectionBorder: $hotpink;

Edit: This is in 3061 on Win XP.

question(stylus): split styluscheme file multiple modules

1. Question

Is it possible to split styluscheme file to multiple files?

2. Argumentation

At the time tmTheme file of my package have 3124 lines and 111 Kb size.

  • File editing works slowly
  • Inconvenient navigation

I have long wanted to split this file. Is it possible via CSScheme?

3. Example of expected behavior

In stylusfiles folder I create 2 files:

  • html.styluscheme β€” theme for HTML
  • python.styluscheme β€” theme for Python

In root directory of my package I create SashaSublime.styluscheme file with these lines:

@import "stylusfiles/html.styluscheme"
@import "stylusfiles/python.styluscheme"

After build command content of html.styluscheme and python.styluscheme will include to SashaSublime.tmTheme.

Thanks.

Conversion from tmTheme to CSS?

Any chance this will be implemented? I'd love to use this, but without a way to convert my current .tmTheme files to CSS, I'm kind of stuck...

Make every scope a class.

Much like Atom syntaxes, it would be nice if the first scope would (optionally, because backwards compatibility) be a class-name instead of a tag name. This would require some changes here and there, but I feel it might be worth it because then it would be possible to support both Atom and Sublime Text with the exact same LESS code. Yay!

Anyone thinks this might be a good idea.

Sidenote:
Why is this package not used more!? Please advice/advertise. πŸ˜‰

Negative selectors

Sublime supports negative selectors. Here's an example from the default Monokai theme:

constant.numeric.line-number.find-in-files - match

They're less useful than they appear, as it's almost always better to tweak the syntax than to monkey around the color scheme, but there have you it.

Negative selectors (again)

On Ubuntu 14.04 with Sass 3.4.9 the syntax for negative selector is invalid.

This is the error when attempting to compile the example scsscheme:

Error: Invalid CSS after "&.name ": expected selector, was "'-' &.name.tag"
        in Example SCSScheme.scsscheme on line 100

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.