Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Style Guide: Initial commit of SCSS style guide #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kristyjy
Copy link
Contributor

@kristyjy kristyjy commented Aug 4, 2015

This is a pretty rough first draft but definitely want feedback on what I have so far. Also please let me know if I didn't include something that should be here.

@@ -0,0 +1,123 @@
<script>{
"title": "Chassis SCSS Style Guide"
}</script>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does nothing unless we either move this to contribute.jquery.org or start using a jquery-wp-content website. Either way in this repo it should be removed.

@arschmitz
Copy link
Contributor

We use css-comb on our scss files so you should mention that all scss should pass css combo and give the settings we use since its not just a preset. https://github.com/jquery/css-chassis/blob/master/.csscomb.json

@arschmitz
Copy link
Contributor

Since this is chassis specific we should say that variables should never be defined directly in the scss they should always use a seperate js file and explain how this works a bit

4. regular styles
- Sort declarations based on type such as padding/margin, position/top/right/bottom/left etc.
5. pseudo classes and elements
6. media queries
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From what i'v always seen it seems like general convention is to put media queries last

@thejdeep
Copy link
Contributor

thejdeep commented Mar 4, 2016

@kristyjy Please let me know if I can help you out here. I have made the changes as suggested by @arschmitz to this guide.

Base automatically changed from master to main March 16, 2021 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants