bilca commited on
Commit
8875052
Β·
verified Β·
1 Parent(s): 31d536d

Update style/template_modern_style.css

Browse files
Files changed (1) hide show
  1. style/template_modern_style.css +90 -44
style/template_modern_style.css CHANGED
@@ -1,4 +1,4 @@
1
- /* Modern Aesthetic CSS */
2
 
3
  /* Widget container styling */
4
  .ply-widget-container {
@@ -6,8 +6,11 @@
6
  width: 100%;
7
  height: 0;
8
  padding-bottom: var(--aspect-percent);
9
- /* Optional: a subtle shadow to lift the widget */
10
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
 
 
 
11
  }
12
 
13
  /* GIF Preview styling */
@@ -18,10 +21,10 @@
18
  width: 100%;
19
  height: 100%;
20
  border: none;
21
- border-radius: 12px;
22
  overflow: hidden;
23
  cursor: pointer;
24
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
25
  }
26
  .gif-preview-container img {
27
  width: 100%;
@@ -37,12 +40,11 @@
37
  left: 0;
38
  width: 100%;
39
  height: 100%;
40
- background: #ffffff;
41
  border: none;
42
- border-radius: 12px;
43
  overflow: hidden;
44
  box-sizing: border-box;
45
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
46
  }
47
 
48
  /* Canvas fills the viewer container */
@@ -59,73 +61,117 @@
59
  top: 50%;
60
  left: 50%;
61
  transform: translate(-50%, -50%);
62
- border: none;
63
- background: #ffffff;
64
- padding: 20px;
65
  border-radius: 8px;
 
66
  z-index: 1000;
67
  display: none;
68
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
69
  }
70
 
71
  /* Menu (instructions) content styling */
72
  .menu-content {
73
  display: none;
74
  position: absolute;
75
- top: 70px;
76
- right: 15px;
77
- background: #ffffff;
78
  border: none;
79
  border-radius: 8px;
80
  padding: 10px;
81
- font-size: 15px;
82
- line-height: 1.4;
83
  color: #333;
84
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
85
  }
86
 
87
- /* Button styling */
88
  .widget-button {
89
- position: absolute;
90
- width: 45px;
91
- height: 45px;
92
- background-color: #007BFF;
93
  border: none;
94
  border-radius: 50%;
95
  cursor: pointer;
96
- font-size: 16px;
97
- color: #ffffff;
98
  display: flex;
99
  align-items: center;
100
  justify-content: center;
101
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
102
  }
103
 
104
- /* Positions for specific buttons */
105
  .close-btn {
106
- top: 17px;
107
- left: 15px;
108
- font-family: sans-serif;
109
  }
110
  .fullscreen-toggle {
111
- top: 17px;
112
- right: 15px;
 
113
  }
114
  .help-toggle {
115
- top: 17px;
116
- right: 70px;
117
- font-size: 20px;
118
  }
119
  .reset-camera-btn {
120
- top: 17px;
121
- right: 123px;
122
- font-size: 20px;
123
- line-height: normal;
124
- padding: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
125
  }
126
 
127
- /* Adjust the reset icon position */
128
- .reset-icon {
129
- display: inline-block;
130
- transform: translateY(-3px);
131
  }
 
1
+ /* Modern Safari-Like CSS */
2
 
3
  /* Widget container styling */
4
  .ply-widget-container {
 
6
  width: 100%;
7
  height: 0;
8
  padding-bottom: var(--aspect-percent);
9
+ background: #fff;
10
+ border: none;
11
+ border-radius: 10px;
12
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
13
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
14
  }
15
 
16
  /* GIF Preview styling */
 
21
  width: 100%;
22
  height: 100%;
23
  border: none;
24
+ border-radius: 10px;
25
  overflow: hidden;
26
  cursor: pointer;
27
+ background: #f2f2f2;
28
  }
29
  .gif-preview-container img {
30
  width: 100%;
 
40
  left: 0;
41
  width: 100%;
42
  height: 100%;
43
+ background: #fff;
44
  border: none;
45
+ border-radius: 10px;
46
  overflow: hidden;
47
  box-sizing: border-box;
 
48
  }
49
 
50
  /* Canvas fills the viewer container */
 
61
  top: 50%;
62
  left: 50%;
63
  transform: translate(-50%, -50%);
64
+ background: rgba(255, 255, 255, 0.9);
65
+ padding: 15px;
 
66
  border-radius: 8px;
67
+ box-shadow: 0 2px 6px rgba(0,0,0,0.1);
68
  z-index: 1000;
69
  display: none;
 
70
  }
71
 
72
  /* Menu (instructions) content styling */
73
  .menu-content {
74
  display: none;
75
  position: absolute;
76
+ top: 45px;
77
+ left: 10px;
78
+ background: rgba(255,255,255,0.95);
79
  border: none;
80
  border-radius: 8px;
81
  padding: 10px;
82
+ font-size: 14px;
 
83
  color: #333;
84
+ box-shadow: 0 2px 6px rgba(0,0,0,0.1);
85
  }
86
 
87
+ /* Common button styling for modern controls */
88
  .widget-button {
89
+ width: 36px;
90
+ height: 36px;
91
+ background-color: rgba(0, 0, 0, 0.05);
 
92
  border: none;
93
  border-radius: 50%;
94
  cursor: pointer;
95
+ padding: 0;
 
96
  display: flex;
97
  align-items: center;
98
  justify-content: center;
99
+ transition: background-color 0.2s;
100
  }
101
 
102
+ /* Position buttons as a group on the top left */
103
  .close-btn {
104
+ position: absolute;
105
+ top: 8px;
106
+ left: 8px;
107
  }
108
  .fullscreen-toggle {
109
+ position: absolute;
110
+ top: 8px;
111
+ left: 52px;
112
  }
113
  .help-toggle {
114
+ position: absolute;
115
+ top: 8px;
116
+ left: 96px;
117
  }
118
  .reset-camera-btn {
119
+ position: absolute;
120
+ top: 8px;
121
+ left: 140px;
122
+ }
123
+
124
+ /* Mimic macOS window controls (Safari-style) */
125
+ /* Close button: red circle with a white β€œβœ•β€ overlay */
126
+ .close-btn {
127
+ background-color: #ff5f57;
128
+ }
129
+ .close-btn::before {
130
+ content: "";
131
+ display: block;
132
+ width: 14px;
133
+ height: 14px;
134
+ border-radius: 50%;
135
+ background: #ff5f57;
136
+ }
137
+ .close-btn::after {
138
+ content: "βœ•";
139
+ font-size: 14px;
140
+ color: #fff;
141
+ position: absolute;
142
+ }
143
+
144
+ /* Fullscreen toggle: yellow circle with a maximize icon */
145
+ .fullscreen-toggle {
146
+ background-color: #ffbd2e;
147
+ }
148
+ .fullscreen-toggle::before {
149
+ content: "πŸ—–";
150
+ font-size: 14px;
151
+ color: #fff;
152
+ }
153
+
154
+ /* Help toggle: green circle with a β€œ?” for extra info */
155
+ .help-toggle {
156
+ background-color: #28c940;
157
+ }
158
+ .help-toggle::before {
159
+ content: "?";
160
+ font-size: 16px;
161
+ color: #fff;
162
+ }
163
+
164
+ /* Reset camera: neutral style with a refresh icon */
165
+ .reset-camera-btn {
166
+ background-color: rgba(0, 0, 0, 0.05);
167
+ }
168
+ .reset-camera-btn::before {
169
+ content: "⟲";
170
+ font-size: 16px;
171
+ color: #333;
172
  }
173
 
174
+ /* Hover effects for modern buttons */
175
+ .widget-button:hover {
176
+ background-color: rgba(0, 0, 0, 0.1);
 
177
  }