-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.scss
138 lines (101 loc) · 4.17 KB
/
demo.scss
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// compileNested: demo.css, sourceMap: true, compileOnSave: true
/* Bad example : empty class*/
.aa { }
/* Bad example : multiple classes per line*/
.a { width: auto; } .b { height: auto; }
/* Bad example : invalid color*/
.c { color: #y3; }
/*Bad example : use 3 digit hex*/
.d { color: #FFFFFF; }
/*Bad example : add space after property:*/
.e { color:pink }
.ea { border:0; }
/*Bad example : do not add space after value:*/
a { color: pink ; top: 0 ; }
/*Bad example : do not define the same property multiple times*/
.f { color: pink; border: 0; color: orange; }
/* Bad example : do not use properties which are ignored*/
.fa { display: inline; width: 100px; }
.fb { display: inline-block; float: left; }
.fc { display: block; vertical-align: baseline; }
/* Bad example : do not ever use !important */
.g { color: #000 !important; }
/* Bad example : do not use properties which are overwriten */
.ga { padding-left: 10px; padding: 20px; }
.gb { transition-property: opacity; transition: opacity 1s linear; }
.gc { border-top-width: 1px; border: 2px solid blue; }
/* this is allowed ---> border: 1px solid #000; border-top: 0; */
/* Bad example : do not use nesting with more than 3 descendents */
.i {
span {
div { color: pink;
a { display: none; }
}
}
}
/* Bad example : do not use duplicate selectors */
.a { height: auto; }
/* Bad example : do not use units with 0 */
.aj { top: 0px; }
.ak { height: 0.000em; }
/* Bad example : do not use px for font-size, use em, vh */
.j { font-size: 12px; }
/* Bad example : do not use id selectors */
#k { height: auto; }
/* Bad example : do not use single quotes */
.foa { content: 'x'; }
/* Bad example : do not forget quotes on font-family */
.kf { font-family: Times New Roman, Times, serif; }
/* Bad example : do not use numbers on font-weight */
.kg { font: italic 400 20px; font-weight: 700; }
.lk { Width: 1px }
* { margin: 0; }
/* Bad example : do not use more than 3 compound selectors */
.foo .bar .baz .da { height: auto; }
.foo .baz {
& > .bar .lorem { color: pink; }
}
/* Bad example : do not use leading 0 format */
.foo { height: 0.5em; }
/* Bad example : do not use specificity more than (0,3,0) */
.foo + div:not(.a ~ .c) { color: white; }
.nav .selected > a:hover { color: blue; }
/* Bad example: no-qualifying-type */
div.class { margin: 0 }
a { background-size: 0
, 0; }
a, button, label { text-decoration: none; }
input::-moz-placeholder { text-decoration: none; }
:full-screen a { color: red; }
/******************
*** properties order from EM-SASS Standards
**************************/
.testdata { filter: gray; -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); }
.aaa { color: pink; top: 0; }
.aba { float: left; display: block; }
.abc { text-align: left; color: red; }
.acb { border-radius: 0; background: #313131; }
/********************
//*** Scrollbar
//**************************/
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-button { background: #222; }
::-webkit-scrollbar-track { border-radius: 0 }
::-webkit-scrollbar-track-piece { background: #000; }
::-webkit-scrollbar-thumb { background: #313131; border-radius: 0; }
::-webkit-scrollbar-corner { /* 6 */ }
::-webkit-resizer { /* 7 */ }
@font-face { font-family: "demo";
src: url("./fonts/demo.eot");
src: url("./fonts/demo.eot?#iefix") format("embedded-opentype"),
url("./fonts/demo.woff") format("woff"),
url("./fonts/demo.ttf") format("truetype"),
url("./fonts/demo.svg#Futura Light") format("svg");
}
/************/
/* CLEARFIX */
/************/
*|*:link { /* stylelint-disable-line */ outline: 0 none; }
.Main { display : table-cell; *display : block; width : auto; }
.Body, .Container, .Box, .Main, .BoxTitle, .Tabs, .SlideItem, .Zone { *zoom : 1; }
.Container:after, .Box:after { clear : both; display : block; visibility : hidden; overflow : hidden; height : 0; line-height : 0; font-size : xx-large; content : " x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x "; }