mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-26 10:49:33 +00:00
1d07dcd720
* lisp/textmodes/css-mode.el (css-bang-ids): New defconst holding CSS identifiers on the form !foo. (scss-bang-ids): New defconst holding SCSS identifiers on the form !foo. (css--font-lock-keywords): Highlight the new SCSS bang identifiers in `font-lock-builtin-face'. * test/indent/css-mode.css: Add bang rule test case. * test/indent/scss-mode.css: Add test cases for the introduced bang rules.
77 lines
1.1 KiB
SCSS
77 lines
1.1 KiB
SCSS
// Comment!
|
|
|
|
nav {
|
|
ul {
|
|
margin: 0; /* More comment */
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
li { display: inline-block; }
|
|
|
|
a {
|
|
display: block;
|
|
padding: 6px 12px;
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
nav ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
nav li {
|
|
display: inline-block;
|
|
}
|
|
|
|
nav a var
|
|
{
|
|
display: block;
|
|
padding: 6px 12px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
$name: foo;
|
|
$attr: border;
|
|
p.#{$name} var
|
|
{
|
|
x#{$attr}-color: blue;
|
|
}
|
|
article[role="main"] {
|
|
$toto: 500 !global;
|
|
$var-with-default: 300 !default;
|
|
float: left !important;
|
|
width: 600px / 888px * 100%;
|
|
height: 100px / 888px * 100%;
|
|
}
|
|
|
|
%placeholder {
|
|
color: #f0f0f0;
|
|
}
|
|
|
|
button {
|
|
@extend %placeholder !optional;
|
|
}
|
|
|
|
@import 'reset';
|
|
|
|
@mixin border-radius($radius) {
|
|
-webkit-border-radius: $radius;
|
|
-moz-border-radius: $radius;
|
|
-ms-border-radius: $radius;
|
|
border-radius: $radius;
|
|
}
|
|
|
|
.box { @include border-radius(10px); }
|
|
|
|
// bug:21230
|
|
$list: (
|
|
('a', #000000, #fff)
|
|
('b', #000000, #fff)
|
|
('c', #000000, #fff)
|
|
('d', #000000, #fff)
|
|
('e', #000000, #fff)
|
|
('f', #000000, #fff)
|
|
);
|