|
46 | 46 | {% if full_or_widget == 'widget' %} |
47 | 47 | font-size: 105%; |
48 | 48 | {% endif %} |
49 | | -{% if full_or_widget == 'full' %} |
50 | | - font-size: 110%; |
51 | | -{% endif %} |
52 | 49 | } |
53 | 50 | #panel-buttons, #actions { |
54 | | - padding: 0.2em 0.5em; |
55 | 51 | background: #f8f8f8a0; |
56 | 52 | } |
57 | 53 | #actions { |
|
63 | 59 | #show-panel-button { |
64 | 60 | display: none; |
65 | 61 | } |
66 | | -#zoom-in, #zoom-out { |
67 | | - font-weight: bold; |
68 | | - padding: 0 0.4em; |
69 | | - margin-left: 0.3em; |
70 | | -} |
| 62 | + |
71 | 63 | #cy-panel { |
72 | 64 | margin-top: 2.5em; |
73 | 65 | width: 0.1em; |
74 | 66 | flex: 0 0 auto; |
75 | 67 | {% if full_or_widget == 'widget' %} |
76 | 68 | width: 18em; |
77 | 69 | {% endif %} |
| 70 | +} |
| 71 | + |
| 72 | +#zoom-in, #zoom-out { |
| 73 | + padding: 0 0.4em; |
| 74 | + margin-left: 0.3em; |
| 75 | +} |
| 76 | +@media (max-width: 999px) { |
| 77 | + #show-search img, #zoom-in img, #zoom-out img { |
| 78 | + width: 2vw; |
| 79 | + height: 2vw; |
| 80 | + } |
| 81 | +} |
| 82 | +@media (min-width: 1000px) { |
| 83 | + #show-search img, #zoom-in img, #zoom-out img { |
| 84 | + width: 16px; |
| 85 | + height: 16px; |
| 86 | + } |
| 87 | +} |
| 88 | + |
| 89 | + |
| 90 | + |
78 | 91 | {% if full_or_widget == 'full' %} |
79 | | - width: 20em; |
80 | | -{% endif %} |
| 92 | +@media (max-width: 999px) { |
| 93 | + #panel-buttons, #actions { |
| 94 | + padding: 0.05em 0.3em; |
| 95 | + } |
| 96 | + #panel-buttons button, #actions button { |
| 97 | + font-size: 2vw; |
| 98 | + } |
| 99 | + #cy-panel { |
| 100 | + width: 32vw; |
| 101 | + font-size: 2vw; |
| 102 | + } |
81 | 103 | } |
| 104 | +@media (min-width: 1000px) { |
| 105 | + #panel-buttons, #actions { |
| 106 | + padding: 0.2em 0.5em; |
| 107 | + } |
| 108 | + #panel-buttons button, #actions button { |
| 109 | + font-size: 110%; |
| 110 | + } |
| 111 | + #cy-panel { |
| 112 | + width: 20em; |
| 113 | + } |
| 114 | +} |
| 115 | +{% endif %} |
| 116 | + |
82 | 117 | #search-input { |
83 | 118 | font-size: 105%; |
84 | 119 | } |
|
744 | 779 | const searchBoxDiv = document.getElementById('search-box'); |
745 | 780 |
|
746 | 781 | window.showCyPanel = function() { |
747 | | - if (fullOrWidget == 'widget') { |
748 | | - panelStyle.width = '18em'; |
749 | | - } else { |
750 | | - panelStyle.width = '20em'; |
751 | | - } |
752 | 782 | showPanelButton.style.display = 'none'; |
753 | 783 | hidePanelButton.style.display = 'inline-block'; |
754 | 784 | panelContent.style.display = 'block'; |
|
763 | 793 | }; |
764 | 794 |
|
765 | 795 | window.hideCyPanel = function() { |
766 | | - panelStyle.width = '0.1em'; |
767 | 796 | showPanelButton.style.display = 'inline-block'; |
768 | 797 | hidePanelButton.style.display = 'none'; |
769 | 798 | panelContent.style.display = 'none'; |
|
1083 | 1112 | <div id="panel-buttons"> |
1084 | 1113 | {% if full_or_widget == 'full' %} |
1085 | 1114 | <button id="show-search" title="Search" onclick="showSearch()"> |
1086 | | - <img width="16px" height="16px" src='data:image/svg+xml;charset=utf-8,<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg fill="%23000000" height="10mm" width="10mm" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <g> <path d="M483.4,454.444l-121.3-121.4c28.7-35.2,46-80,46-128.9c0-112.5-91.5-204.1-204.1-204.1S0,91.644,0,204.144 s91.5,204,204.1,204c48.8,0,93.7-17.3,128.9-46l121.3,121.3c8.3,8.3,20.9,8.3,29.2,0S491.8,462.744,483.4,454.444z M40.7,204.144 c0-90.1,73.2-163.3,163.3-163.3s163.4,73.3,163.4,163.4s-73.3,163.4-163.4,163.4S40.7,294.244,40.7,204.144z"/> </g> </svg>'/> |
| 1115 | + <img src='data:image/svg+xml;charset=utf-8,<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg fill="%23000000" height="10mm" width="10mm" viewBox="0 0 500 500" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <g> <path d="M483.4,454.444l-121.3-121.4c28.7-35.2,46-80,46-128.9c0-112.5-91.5-204.1-204.1-204.1S0,91.644,0,204.144 s91.5,204,204.1,204c48.8,0,93.7-17.3,128.9-46l121.3,121.3c8.3,8.3,20.9,8.3,29.2,0S491.8,462.744,483.4,454.444z M40.7,204.144 c0-90.1,73.2-163.3,163.3-163.3s163.4,73.3,163.4,163.4s-73.3,163.4-163.4,163.4S40.7,294.244,40.7,204.144z"/> </g> </svg>'/> |
1087 | 1116 | </button> |
1088 | 1117 | {% endif %} |
1089 | 1118 | <button id="zoom-out" title="Zoom out" onclick="modelZoomOut()"> |
1090 | 1119 | {% if full_or_widget == 'widget' %} |
1091 | 1120 | - |
1092 | 1121 | {% endif %} |
1093 | 1122 | {% if full_or_widget == 'full' %} |
1094 | | - <img width="16px" height="16px" src='data:image/svg+xml;charset=utf-8,<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="10mm" height="10mm" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <g transform="matrix(0.09090916,0,0,0.09090916,-2.2369372,-4.0168636)"> <rect style="fill:%23000000;stroke-width:0.264583" width="116.41666" height="31.75" x="31.75" y="95.25" ry="0.26052997" /> </g> </svg>'/> |
| 1123 | + <img src='data:image/svg+xml;charset=utf-8,<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="10mm" height="10mm" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <g transform="matrix(0.09090916,0,0,0.09090916,-2.2369372,-4.0168636)"> <rect style="fill:%23000000;stroke-width:0.264583" width="116.41666" height="31.75" x="31.75" y="95.25" ry="0.26052997" /> </g> </svg>'/> |
1095 | 1124 | {% endif %} |
1096 | 1125 | </button> |
1097 | 1126 | <button id="zoom-in" title="Zoom in" onclick="modelZoomIn()"> |
1098 | 1127 | {% if full_or_widget == 'widget' %} |
1099 | 1128 | + |
1100 | 1129 | {% endif %} |
1101 | 1130 | {% if full_or_widget == 'full' %} |
1102 | | - <img width="16px" height="16px" src='data:image/svg+xml;charset=utf-8,<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="10mm" height="10mm" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <g transform="matrix(0.09090916,0,0,0.09090916,-2.2369372,-4.0168636)"> <rect style="fill:%23000000;stroke-width:0.264583" width="116.41666" height="31.75" x="31.75" y="95.25" ry="0.26052997" /> <rect style="fill:%23000000;stroke-width:0.264583" width="31.749998" height="116.41666" x="74.083336" y="52.916668" ry="0" /> </g> </svg>'/> |
| 1131 | + <img src='data:image/svg+xml;charset=utf-8,<?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg width="10mm" height="10mm" viewBox="0 0 12 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"> <g transform="matrix(0.09090916,0,0,0.09090916,-2.2369372,-4.0168636)"> <rect style="fill:%23000000;stroke-width:0.264583" width="116.41666" height="31.75" x="31.75" y="95.25" ry="0.26052997" /> <rect style="fill:%23000000;stroke-width:0.264583" width="31.749998" height="116.41666" x="74.083336" y="52.916668" ry="0" /> </g> </svg>'/> |
1103 | 1132 | {% endif %} |
1104 | 1133 | </button> |
1105 | 1134 | <button id="show-panel-button" onclick="showCyPanel()">Show side panel</button> |
|
0 commit comments