Skip to content

Instantly share code, notes, and snippets.

@yuitakano
Last active June 29, 2021 03:36
Show Gist options
  • Select an option

  • Save yuitakano/d0ca707a17ebb4f466cec0fc683dfd85 to your computer and use it in GitHub Desktop.

Select an option

Save yuitakano/d0ca707a17ebb4f466cec0fc683dfd85 to your computer and use it in GitHub Desktop.

Revisions

  1. yuitakano revised this gist Jun 29, 2021. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,3 @@
    csscomb 設定及規則
    csscomb 設定及規則

    全局設定 home/.csscomb
  2. yuitakano created this gist Jun 29, 2021.
    5 changes: 5 additions & 0 deletions Configuration of syntax associations.
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    {
    "csscomb.syntaxAssociations": {
    "postcss": "scss"
    }
    }
    8 changes: 8 additions & 0 deletions For example:
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    {
    "csscomb.formatOnSave": true,
    "csscomb.preset": "yandex",
    "csscomb.preset": {
    "remove-empty-rulesets": true,
    "always-semicolon": true
    }
    }
    4 changes: 4 additions & 0 deletions Keyboard shortcuts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    {
    "key": "ctrl+shift+c",
    "command": "csscomb.execute"
    }
    244 changes: 244 additions & 0 deletions csscomb.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,244 @@
    {
    "exclude": [".git/**", "node_modules/**", "bower_components/**"],
    "sort-order": [
    [
    "composes",
    "@import",
    "@extend",
    "@mixin",
    "@at-root",
    "position",
    "top",
    "right",
    "bottom",
    "left",
    "z-index",
    "display",
    "flex",
    "flex-basis",
    "flex-direction",
    "flex-flow",
    "flex-grow",
    "flex-shrink",
    "flex-wrap",
    "grid",
    "grid-area",
    "grid-auto-rows",
    "grid-auto-columns",
    "grid-auto-flow",
    "grid-gap",
    "grid-row",
    "grid-row-start",
    "grid-row-end",
    "grid-row-gap",
    "grid-column",
    "grid-column-start",
    "grid-column-end",
    "grid-column-gap",
    "grid-template",
    "grid-template-areas",
    "grid-template-rows",
    "grid-template-columns",
    "gap",
    "align-content",
    "align-items",
    "align-self",
    "justify-content",
    "justify-items",
    "justify-self",
    "order",
    "float",
    "clear",
    "box-sizing",
    "width",
    "min-width",
    "max-width",
    "height",
    "min-height",
    "max-height",
    "margin",
    "margin-top",
    "margin-right",
    "margin-bottom",
    "margin-left",
    "padding",
    "padding-top",
    "padding-right",
    "padding-bottom",
    "padding-left",
    "object-fit",
    "object-position",
    "overflow",
    "overflow-x",
    "overflow-y",
    "color",
    "font",
    "font-weight",
    "font-size",
    "font-family",
    "font-style",
    "font-variant",
    "font-size-adjust",
    "font-stretch",
    "font-effect",
    "font-emphasize",
    "font-emphasize-position",
    "font-emphasize-style",
    "font-smooth",
    "line-height",
    "direction",
    "letter-spacing",
    "white-space",
    "text-align",
    "text-align-last",
    "text-transform",
    "text-decoration",
    "text-emphasis",
    "text-emphasis-color",
    "text-emphasis-style",
    "text-emphasis-position",
    "text-indent",
    "text-justify",
    "text-outline",
    "text-wrap",
    "text-overflow",
    "text-overflow-ellipsis",
    "text-overflow-mode",
    "text-orientation",
    "text-shadow",
    "vertical-align",
    "word-wrap",
    "word-break",
    "word-spacing",
    "overflow-wrap",
    "tab-size",
    "hyphens",
    "unicode-bidi",
    "columns",
    "column-count",
    "column-fill",
    "column-gap",
    "column-rule",
    "column-rule-color",
    "column-rule-style",
    "column-rule-width",
    "column-span",
    "column-width",
    "page-break-after",
    "page-break-before",
    "page-break-inside",
    "src",
    "list-style",
    "list-style-position",
    "list-style-type",
    "list-style-image",
    "table-layout",
    "empty-cells",
    "caption-side",
    "background",
    "background-color",
    "background-image",
    "background-repeat",
    "background-position",
    "background-position-x",
    "background-position-y",
    "background-size",
    "background-clip",
    "background-origin",
    "background-attachment",
    "background-blend-mode",
    "border",
    "border-color",
    "border-style",
    "border-width",
    "border-top",
    "border-top-color",
    "border-top-width",
    "border-top-style",
    "border-right",
    "border-right-color",
    "border-right-width",
    "border-right-style",
    "border-bottom",
    "border-bottom-color",
    "border-bottom-width",
    "border-bottom-style",
    "border-left",
    "border-left-color",
    "border-left-width",
    "border-left-style",
    "border-radius",
    "border-top-left-radius",
    "border-top-right-radius",
    "border-bottom-right-radius",
    "border-bottom-left-radius",
    "border-image",
    "border-image-source",
    "border-image-slice",
    "border-image-width",
    "border-image-outset",
    "border-image-repeat",
    "border-collapse",
    "border-spacing",
    "outline",
    "outline-width",
    "outline-style",
    "outline-color",
    "outline-offset",
    "box-shadow",
    "box-decoration-break",
    "transform",
    "transform-origin",
    "transform-style",
    "backface-visibility",
    "perspective",
    "perspective-origin",
    "visibility",
    "cursor",
    "opacity",
    "filter",
    "isolation",
    "backdrop-filter",
    "mix-blend-mode",
    "transition",
    "transition-delay",
    "transition-timing-function",
    "transition-duration",
    "transition-property",
    "animation",
    "animation-name",
    "animation-duration",
    "animation-play-state",
    "animation-timing-function",
    "animation-delay",
    "animation-iteration-count",
    "animation-direction",
    "animation-fill-mode",
    "appearance",
    "content",
    "clip",
    "clip-path",
    "counter-reset",
    "counter-increment",
    "resize",
    "user-select",
    "nav-index",
    "nav-up",
    "nav-right",
    "nav-down",
    "nav-left",
    "pointer-events",
    "quotes",
    "touch-action",
    "will-change",
    "zoom",
    "fill",
    "fill-rule",
    "clip-rule",
    "stroke",
    "-webkit-line-clamp",
    "-webkit-box-orient"
    ]
    ]
    }

    1 change: 1 addition & 0 deletions env variable
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    CSSCOMB_CONFIG="$HOME/.csscomb.json"
    1 change: 1 addition & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    csscomb 設定及規則