|
4 | 4 | <title>three.js css3d - molecules</title> |
5 | 5 | <meta charset="utf-8"> |
6 | 6 | <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> |
| 7 | + <link type="text/css" rel="stylesheet" href="main.css"> |
7 | 8 | <style> |
8 | | - html, body { |
9 | | - height: 100%; |
10 | | - } |
11 | | - |
12 | 9 | body { |
13 | 10 | background-color: #050505; |
14 | 11 | background: radial-gradient(ellipse at center, rgba(43,45,48,1) 0%,rgba(0,0,0,1) 100%); |
15 | | - |
16 | | - margin: 0; |
17 | | - font-family: Arial; |
18 | | - overflow: hidden; |
19 | | - } |
20 | | - |
21 | | - a { |
22 | | - color: #ffffff; |
23 | 12 | } |
24 | 13 |
|
25 | | - #info { |
| 14 | + #topmenu { |
26 | 15 | position: absolute; |
27 | | - top: 0px; |
| 16 | + top: 50px; |
28 | 17 | width: 100%; |
29 | | - color: #ffffff; |
30 | | - padding: 5px; |
31 | | - font-family: Monospace; |
32 | | - font-size: 13px; |
33 | | - font-weight: bold; |
| 18 | + padding: 10px; |
| 19 | + box-sizing: border-box; |
34 | 20 | text-align: center; |
35 | | - z-index: 1; |
36 | 21 | } |
37 | 22 |
|
38 | 23 | #menu { |
39 | 24 | position: absolute; |
40 | 25 | bottom: 20px; |
41 | 26 | width: 100%; |
| 27 | + padding: 10px; |
| 28 | + box-sizing: border-box; |
42 | 29 | text-align: center; |
43 | | - padding: 0; |
44 | | - margin: 0; |
45 | | - } |
46 | | - |
47 | | - #topmenu { |
48 | | - position: absolute; |
49 | | - top: 10px; |
50 | | - right: 10px; |
51 | | - width: 100%; |
52 | | - text-align: right; |
53 | | - padding: 0; |
54 | | - margin: 0; |
55 | | - z-index: 1; |
56 | 30 | } |
57 | 31 |
|
58 | 32 | button { |
59 | 33 | color: rgb(255,255,255); |
60 | | - background: transparent; |
| 34 | + background: rgb(255,255,255,0.1); |
61 | 35 | border: 0px; |
62 | 36 | padding: 5px 10px; |
| 37 | + margin: 2px; |
| 38 | + font-size: 14px; |
63 | 39 | cursor: pointer; |
64 | 40 | } |
65 | | - button:hover { |
66 | | - background-color: rgba(0,255,255,0.5); |
67 | | - } |
68 | | - button:active { |
69 | | - color: #000000; |
70 | | - background-color: rgba(0,255,255,1); |
71 | | - } |
| 41 | + |
| 42 | + button:hover { |
| 43 | + background-color: rgba(0,255,255,0.5); |
| 44 | + } |
| 45 | + |
| 46 | + button:active { |
| 47 | + color: #000000; |
| 48 | + background-color: rgba(0,255,255,1); |
| 49 | + } |
72 | 50 |
|
73 | 51 | .bond { |
74 | 52 | width: 5px; |
|
85 | 63 | <script src="js/loaders/PDBLoader.js"></script> |
86 | 64 |
|
87 | 65 | <div id="container"></div> |
88 | | - <div id="info"><a href="http://threejs.org" target="_blank" rel="noopener">three.js css3d</a> - molecules</div> |
| 66 | + <div id="info"><a href="http://threejs.org" target="_blank" rel="noopener">three.js</a> css3d - molecules</div> |
89 | 67 | <div id="topmenu"> |
90 | | - <button id="b_a">Atoms</button> |
91 | | - <button id="b_b">Bonds</button> |
92 | | - <button id="b_ab">Atoms + Bonds</button> |
| 68 | + <button id="b_a">Atoms</button><button id="b_b">Bonds</button><button id="b_ab">Atoms + Bonds</button> |
93 | 69 | </div> |
94 | 70 | <div id="menu"></div> |
95 | 71 |
|
|
0 commit comments