Commit d2d6e445 authored by Simen Heggestøyl's avatar Simen Heggestøyl
Browse files

Support a new CSS indentation style

* lisp/textmodes/css-mode.el (css-smie-rules): Indent after property
immediately followed by a newline.

* test/manual/indent/css-mode.css: Add test for the change above.

* test/manual/indent/scss-mode.scss: Ditto.
parent e3b7eead
......@@ -1208,7 +1208,10 @@ for determining whether point is within a selector."
(smie-backward-sexp ";")
(smie-indent-virtual)))
(`(:before . ,(or "{" "("))
(if (smie-rule-hanging-p) (smie-rule-parent 0)))))
(if (smie-rule-hanging-p) (smie-rule-parent 0)))
(`(:after . ":-property")
(when (smie-rule-hanging-p)
css-indent-offset))))
;;; Completion
......
......@@ -65,8 +65,15 @@ div::before {
5.0, 6.0
);
}
@font-face {
src: url("Sans-Regular.eot") format("eot"),
url("Sans-Regular.woff") format("woff"),
url("Sans-Regular.ttf") format("truetype");
}
@font-face {
src:
url("Sans-Regular.eot") format("eot"),
url("Sans-Regular.woff") format("woff");
}
......@@ -92,3 +92,17 @@ div:last-child {
"Nimbus Sans L", sans-serif;
}
}
body {
font:
15px "Helvetica Neue", Helvetica, Arial,
"Nimbus Sans L", sans-serif;
font-family:
sans-serif;
article {
font:
15px "Helvetica Neue", Helvetica, Arial,
"Nimbus Sans L", sans-serif;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment