1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
// Comment!
@use "sass:math";
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;
$var_with_underscores: #fff;
$_var-starting-with-underscore: none;
float: left !important;
width: math.div(600px, 888px) * 100%;
height: math.div(100px, 888px) * 100%;
color: $var_with_underscores;
display: $_var-starting-with-underscore;
}
%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)
);
// bug:13425
div:first-child,
div:last-child {
@include foo-mixin(
$foo: 'foo',
$bar: 'bar',
);
font: 15px "Helvetica Neue", Helvetica, Arial,
"Nimbus Sans L", sans-serif;
div:first-child,
div:last-child {
font: 15px "Helvetica Neue", Helvetica, Arial,
"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;
}
}
|