diff --git a/examples/examples.css b/examples/examples.css index c291f06..81105d6 100644 --- a/examples/examples.css +++ b/examples/examples.css @@ -2,6 +2,7 @@ box-sizing: border-box; } +#container, .container { background: #EEE; width: 50%; @@ -30,3 +31,52 @@ position: absolute; border: 1px solid; } + + +/* element */ + +.element { + width: 80px; + height: 90px; + margin: 5px; + background: #DDD; + float: left; + position: relative; + padding: 5px; +} + +.element > * { + margin: 0; +} + +.element .number { + right: 5px; + top: 5px; + position: absolute; +} + +.element .symbol { + font-size: 30px; + left: 5px; + top: 5px; + color: white; +} + +.element .name { + font-size: 14px; +} + +.element .weight { + font-size: 14px; +} + +.element.alkali { background: #F00; background: hsl( 0, 100%, 50%); } +.element.alkaline-earth { background: #F80; background: hsl( 36, 100%, 50%); } +.element.lanthanoid { background: #FF0; background: hsl( 72, 100%, 50%); } +.element.actinoid { background: #0F0; background: hsl( 108, 100%, 50%); } +.element.transition { background: #0F8; background: hsl( 144, 100%, 50%); } +.element.post-transition { background: #0FF; background: hsl( 180, 100%, 50%); } +.element.metalloid { background: #08F; background: hsl( 216, 100%, 50%); } +.element.other.nonmetal { background: #00F; background: hsl( 252, 100%, 50%); } +.element.halogen { background: #F0F; background: hsl( 288, 100%, 50%); } +.element.noble-gas { background: #F08; background: hsl( 324, 100%, 50%); } diff --git a/examples/sorting.html b/examples/sorting.html new file mode 100644 index 0000000..6e27cbc --- /dev/null +++ b/examples/sorting.html @@ -0,0 +1,201 @@ + + + + + + sorting + + + + + + +

sorting

+ +
+

Sort

+ +
+ +
+ +
+

80

+

Hg

+

Mercury

+

200.59

+
+ +
+

52

+

Te

+

Tellurium

+

127.6

+
+ +
+

83

+

Bi

+

Bismuth

+

208.9804

+
+ +
+

48

+

Cd

+

Cadmium

+

112.411

+
+ +
+

20

+

Ca

+

Calcium

+

40.078

+
+ +
+

75

+

Re

+

Rhenium

+

186.207

+
+ +
+

81

+

Tl

+

Thallium

+

204.3833

+
+ +
+

51

+

Sb

+

Antimony

+

121.76

+
+ +
+

27

+

Co

+

Cobalt

+

58.933195

+
+ +
+

71

+

Lu

+

Lutetium

+

174.9668

+
+ +
+

18

+

Ar

+

Argon

+

39.948

+
+ +
+

37

+

Rb

+

Rubidium

+

85.4678

+
+ +
+

7

+

N

+

Nitrogen

+

14.0067

+
+ +
+

93

+

Np

+

Neptunium

+

(237)

+
+ +
+

89

+

Ac

+

Actinium

+

(227)

+
+
+ + + + + + + + + + + + + + + + + + + + + +