Spaces:
Running
Running
Update style/classical_style_template.css
Browse files
style/classical_style_template.css
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
/* Classical Chrome-Like CSS */
|
2 |
|
3 |
/* Widget container styling */
|
4 |
.ply-widget-container {
|
@@ -8,7 +8,7 @@
|
|
8 |
padding-bottom: var(--aspect-percent);
|
9 |
background: #fff;
|
10 |
border: 1px solid #ccc;
|
11 |
-
border-radius
|
12 |
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
13 |
}
|
14 |
|
@@ -20,7 +20,7 @@
|
|
20 |
width: 100%;
|
21 |
height: 100%;
|
22 |
border: 1px solid #ccc;
|
23 |
-
border-radius
|
24 |
overflow: hidden;
|
25 |
cursor: pointer;
|
26 |
background: #f9f9f9;
|
@@ -41,7 +41,7 @@
|
|
41 |
height: 100%;
|
42 |
background: #fff;
|
43 |
border: 1px solid #ccc;
|
44 |
-
border-radius
|
45 |
overflow: hidden;
|
46 |
box-sizing: border-box;
|
47 |
}
|
@@ -51,7 +51,6 @@
|
|
51 |
width: 100%;
|
52 |
height: 100%;
|
53 |
display: block;
|
54 |
-
/* Background is set by JS using JSON */
|
55 |
}
|
56 |
|
57 |
/* Progress dialog styling */
|
@@ -63,7 +62,7 @@
|
|
63 |
border: 1px solid #ccc;
|
64 |
background: #fff;
|
65 |
padding: 10px;
|
66 |
-
border-radius
|
67 |
z-index: 1000;
|
68 |
display: none;
|
69 |
}
|
@@ -76,26 +75,33 @@
|
|
76 |
right: 10px;
|
77 |
background: #fff;
|
78 |
border: 1px solid #ccc;
|
79 |
-
border-radius: 4px;
|
80 |
padding: 8px;
|
81 |
font-size: 13px;
|
82 |
color: #333;
|
|
|
83 |
}
|
84 |
|
85 |
/* Common button styling */
|
86 |
.widget-button {
|
87 |
-
width:
|
88 |
-
height:
|
89 |
-
background-color:
|
90 |
-
border:
|
|
|
91 |
cursor: pointer;
|
92 |
padding: 0;
|
93 |
display: flex;
|
94 |
align-items: center;
|
95 |
justify-content: center;
|
|
|
|
|
|
|
96 |
}
|
97 |
|
98 |
-
/* Position buttons
|
|
|
|
|
|
|
99 |
.close-btn {
|
100 |
position: absolute;
|
101 |
top: 4px;
|
@@ -104,61 +110,67 @@
|
|
104 |
.fullscreen-toggle {
|
105 |
position: absolute;
|
106 |
top: 4px;
|
107 |
-
right:
|
108 |
}
|
109 |
-
.
|
110 |
position: absolute;
|
111 |
top: 4px;
|
112 |
-
right:
|
113 |
}
|
114 |
-
|
|
|
|
|
115 |
position: absolute;
|
116 |
-
top:
|
117 |
-
right:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
}
|
119 |
|
120 |
-
/*
|
|
|
121 |
.close-btn::before {
|
122 |
content: "β";
|
123 |
-
font-size: 16px;
|
124 |
-
color: #333;
|
125 |
-
}
|
126 |
-
.close-btn:hover::before {
|
127 |
-
color: #d32f2f;
|
128 |
}
|
129 |
-
|
130 |
/* Fullscreen toggle: square icon */
|
131 |
.fullscreen-toggle::before {
|
132 |
content: "π";
|
133 |
-
font-size: 14px;
|
134 |
-
color: #333;
|
135 |
}
|
136 |
-
|
137 |
-
|
|
|
138 |
}
|
139 |
-
|
140 |
-
/* Help toggle: question mark for extra info */
|
141 |
.help-toggle::before {
|
142 |
content: "?";
|
143 |
-
font-size: 16px;
|
144 |
-
color: #333;
|
145 |
-
}
|
146 |
-
.help-toggle:hover::before {
|
147 |
-
color: #0078d7;
|
148 |
}
|
149 |
|
150 |
-
/*
|
151 |
-
.
|
152 |
-
|
153 |
-
|
|
|
|
|
|
|
154 |
color: #333;
|
155 |
}
|
156 |
-
.reset-camera-btn:hover
|
157 |
-
color: #
|
|
|
158 |
}
|
159 |
-
|
160 |
-
/*
|
161 |
-
|
162 |
-
display: inline-block;
|
163 |
-
transform: translateY(-2px);
|
164 |
}
|
|
|
1 |
+
/* Classical Chrome-Like CSS (Updated) */
|
2 |
|
3 |
/* Widget container styling */
|
4 |
.ply-widget-container {
|
|
|
8 |
padding-bottom: var(--aspect-percent);
|
9 |
background: #fff;
|
10 |
border: 1px solid #ccc;
|
11 |
+
/* Removed border-radius */
|
12 |
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
13 |
}
|
14 |
|
|
|
20 |
width: 100%;
|
21 |
height: 100%;
|
22 |
border: 1px solid #ccc;
|
23 |
+
/* Removed border-radius */
|
24 |
overflow: hidden;
|
25 |
cursor: pointer;
|
26 |
background: #f9f9f9;
|
|
|
41 |
height: 100%;
|
42 |
background: #fff;
|
43 |
border: 1px solid #ccc;
|
44 |
+
/* Removed border-radius */
|
45 |
overflow: hidden;
|
46 |
box-sizing: border-box;
|
47 |
}
|
|
|
51 |
width: 100%;
|
52 |
height: 100%;
|
53 |
display: block;
|
|
|
54 |
}
|
55 |
|
56 |
/* Progress dialog styling */
|
|
|
62 |
border: 1px solid #ccc;
|
63 |
background: #fff;
|
64 |
padding: 10px;
|
65 |
+
/* Removed border-radius */
|
66 |
z-index: 1000;
|
67 |
display: none;
|
68 |
}
|
|
|
75 |
right: 10px;
|
76 |
background: #fff;
|
77 |
border: 1px solid #ccc;
|
|
|
78 |
padding: 8px;
|
79 |
font-size: 13px;
|
80 |
color: #333;
|
81 |
+
/* Removed border-radius */
|
82 |
}
|
83 |
|
84 |
/* Common button styling */
|
85 |
.widget-button {
|
86 |
+
width: 36px;
|
87 |
+
height: 24px;
|
88 |
+
background-color: #fff;
|
89 |
+
border: 1px solid #ccc;
|
90 |
+
border-radius: 0; /* Rectangular buttons */
|
91 |
cursor: pointer;
|
92 |
padding: 0;
|
93 |
display: flex;
|
94 |
align-items: center;
|
95 |
justify-content: center;
|
96 |
+
font-family: inherit;
|
97 |
+
font-size: 14px;
|
98 |
+
color: #333;
|
99 |
}
|
100 |
|
101 |
+
/* Position buttons on the top right in order:
|
102 |
+
- Close (X) at far right
|
103 |
+
- Fullscreen to its left
|
104 |
+
- Reset camera next to fullscreen */
|
105 |
.close-btn {
|
106 |
position: absolute;
|
107 |
top: 4px;
|
|
|
110 |
.fullscreen-toggle {
|
111 |
position: absolute;
|
112 |
top: 4px;
|
113 |
+
right: 44px; /* 4px + 36px + 4px gap */
|
114 |
}
|
115 |
+
.reset-camera-btn {
|
116 |
position: absolute;
|
117 |
top: 4px;
|
118 |
+
right: 84px; /* 4px + 36px + 4px + 36px + 4px gap */
|
119 |
}
|
120 |
+
|
121 |
+
/* Help toggle: positioned in the right middle of the canvas */
|
122 |
+
.help-toggle {
|
123 |
position: absolute;
|
124 |
+
top: 50%;
|
125 |
+
right: 4px;
|
126 |
+
transform: translateY(-50%);
|
127 |
+
width: 36px;
|
128 |
+
height: 24px;
|
129 |
+
background-color: #fff;
|
130 |
+
border: 1px solid #ccc;
|
131 |
+
border-radius: 0;
|
132 |
+
cursor: pointer;
|
133 |
+
padding: 0;
|
134 |
+
display: flex;
|
135 |
+
align-items: center;
|
136 |
+
justify-content: center;
|
137 |
+
font-family: inherit;
|
138 |
+
font-size: 14px;
|
139 |
+
color: #333;
|
140 |
}
|
141 |
|
142 |
+
/* Button Icons */
|
143 |
+
/* Close button: "X" */
|
144 |
.close-btn::before {
|
145 |
content: "β";
|
|
|
|
|
|
|
|
|
|
|
146 |
}
|
|
|
147 |
/* Fullscreen toggle: square icon */
|
148 |
.fullscreen-toggle::before {
|
149 |
content: "π";
|
|
|
|
|
150 |
}
|
151 |
+
/* Reset camera: refresh icon */
|
152 |
+
.reset-camera-btn::before {
|
153 |
+
content: "β²";
|
154 |
}
|
155 |
+
/* Help toggle: question mark */
|
|
|
156 |
.help-toggle::before {
|
157 |
content: "?";
|
|
|
|
|
|
|
|
|
|
|
158 |
}
|
159 |
|
160 |
+
/* Hover effects for buttons */
|
161 |
+
.close-btn:hover {
|
162 |
+
background-color: #d32f2f;
|
163 |
+
color: #fff;
|
164 |
+
}
|
165 |
+
.fullscreen-toggle:hover {
|
166 |
+
background-color: #e0e0e0;
|
167 |
color: #333;
|
168 |
}
|
169 |
+
.reset-camera-btn:hover {
|
170 |
+
background-color: #e0e0e0;
|
171 |
+
color: #333;
|
172 |
}
|
173 |
+
.help-toggle:hover {
|
174 |
+
background-color: #c0c0c0; /* Darker when hovered */
|
175 |
+
color: #000;
|
|
|
|
|
176 |
}
|