@eaprelsky/nocturna-wheel 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +250 -0
- package/dist/assets/css/demo.css +466 -0
- package/dist/assets/css/nocturna-wheel.css +218 -0
- package/dist/assets/png/nocturna-logo.png +0 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-conjunction.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-opposition.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-quincunx.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-semisextile.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-semisquare.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-sesquisquare.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-sextile.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-square.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-aspect-trine.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-jupiter.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-ketu.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-lilith.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-mars.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-mercury.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-moon.svg +17 -0
- package/dist/assets/svg/zodiac/zodiac-planet-neptune.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-pluto.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-rahu.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-saturn.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-selena.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-sun.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-uranus.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-planet-venus.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-aquarius.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-aries.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-cancer.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-capricorn.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-gemini.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-leo.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-libra.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-pisces.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-sagittarius.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-scorpio.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-taurus.svg +3 -0
- package/dist/assets/svg/zodiac/zodiac-sign-virgo.svg +3 -0
- package/dist/nocturna-wheel.bundle.js +4598 -0
- package/dist/nocturna-wheel.bundle.js.map +1 -0
- package/dist/nocturna-wheel.es.js +4580 -0
- package/dist/nocturna-wheel.es.js.map +1 -0
- package/dist/nocturna-wheel.min.js +2 -0
- package/dist/nocturna-wheel.min.js.map +1 -0
- package/dist/nocturna-wheel.umd.js +4598 -0
- package/dist/nocturna-wheel.umd.js.map +1 -0
- package/package.json +85 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Nocturna
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# Nocturna Wheel
|
|
2
|
+
|
|
3
|
+
A JavaScript library for rendering astrological natal charts.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Responsive SVG-based chart rendering
|
|
8
|
+
- Zodiac sign display with customizable styling
|
|
9
|
+
- House system rendering with multiple system options
|
|
10
|
+
- Planet placement with customizable icons and colors
|
|
11
|
+
- Aspect calculation and visualization
|
|
12
|
+
- Interactive tooltips for celestial objects
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
### Direct Script Include
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<!-- Include the Nocturna Wheel stylesheet -->
|
|
20
|
+
<link rel="stylesheet" href="path/to/nocturna-wheel.css">
|
|
21
|
+
|
|
22
|
+
<!-- Include the Nocturna Wheel library -->
|
|
23
|
+
<script src="path/to/nocturna-wheel.min.js"></script>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### NPM Installation
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install nocturna-wheel
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Basic Usage
|
|
33
|
+
|
|
34
|
+
### ES Module (Recommended)
|
|
35
|
+
|
|
36
|
+
```javascript
|
|
37
|
+
import { WheelChart } from 'nocturna-wheel';
|
|
38
|
+
|
|
39
|
+
const chart = new WheelChart({
|
|
40
|
+
container: "#chart-container",
|
|
41
|
+
planets: {
|
|
42
|
+
sun: { lon: 85.83 },
|
|
43
|
+
moon: { lon: 133.21 }
|
|
44
|
+
},
|
|
45
|
+
houses: [
|
|
46
|
+
{ lon: 300.32 }, // 1st house cusp
|
|
47
|
+
{ lon: 330.15 }, // 2nd house cusp
|
|
48
|
+
{ lon: 355.24 }, // 3rd house cusp
|
|
49
|
+
{ lon: 20.32 }, // 4th house cusp
|
|
50
|
+
{ lon: 45.15 }, // 5th house cusp
|
|
51
|
+
{ lon: 75.24 }, // 6th house cusp
|
|
52
|
+
{ lon: 120.32 }, // 7th house cusp
|
|
53
|
+
{ lon: 150.15 }, // 8th house cusp
|
|
54
|
+
{ lon: 175.24 }, // 9th house cusp
|
|
55
|
+
{ lon: 200.32 }, // 10th house cusp
|
|
56
|
+
{ lon: 225.15 }, // 11th house cusp
|
|
57
|
+
{ lon: 255.24 } // 12th house cusp
|
|
58
|
+
]
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
chart.render();
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Browser Script
|
|
65
|
+
|
|
66
|
+
```html
|
|
67
|
+
<div id="chart-container"></div>
|
|
68
|
+
|
|
69
|
+
<script>
|
|
70
|
+
// The library exports a NocturnaWheel object with all components
|
|
71
|
+
const { WheelChart } = NocturnaWheel;
|
|
72
|
+
|
|
73
|
+
const chart = new WheelChart({
|
|
74
|
+
container: "#chart-container",
|
|
75
|
+
planets: {
|
|
76
|
+
sun: { lon: 85.83 },
|
|
77
|
+
moon: { lon: 133.21 }
|
|
78
|
+
},
|
|
79
|
+
houses: [
|
|
80
|
+
{ lon: 300.32 }, // 1st house cusp
|
|
81
|
+
{ lon: 330.15 }, // 2nd house cusp
|
|
82
|
+
{ lon: 355.24 }, // 3rd house cusp
|
|
83
|
+
{ lon: 20.32 }, // 4th house cusp
|
|
84
|
+
{ lon: 45.15 }, // 5th house cusp
|
|
85
|
+
{ lon: 75.24 }, // 6th house cusp
|
|
86
|
+
{ lon: 120.32 }, // 7th house cusp
|
|
87
|
+
{ lon: 150.15 }, // 8th house cusp
|
|
88
|
+
{ lon: 175.24 }, // 9th house cusp
|
|
89
|
+
{ lon: 200.32 }, // 10th house cusp
|
|
90
|
+
{ lon: 225.15 }, // 11th house cusp
|
|
91
|
+
{ lon: 255.24 } // 12th house cusp
|
|
92
|
+
]
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
chart.render();
|
|
96
|
+
</script>
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## API Documentation
|
|
100
|
+
|
|
101
|
+
### WheelChart Class
|
|
102
|
+
|
|
103
|
+
Main class for creating and managing astrological charts.
|
|
104
|
+
|
|
105
|
+
#### Constructor Options
|
|
106
|
+
|
|
107
|
+
- `container`: String selector or DOM element for the chart container
|
|
108
|
+
- `planets`: Object containing planet positions and properties
|
|
109
|
+
- `houses`: Array of house cusp positions
|
|
110
|
+
- `aspectSettings`: Object with aspect calculation settings
|
|
111
|
+
- `config`: Additional configuration options
|
|
112
|
+
|
|
113
|
+
```javascript
|
|
114
|
+
const chart = new NocturnaWheel.WheelChart({
|
|
115
|
+
container: "#chart-container",
|
|
116
|
+
planets: {
|
|
117
|
+
sun: { lon: 85.83, color: "#ff0000" },
|
|
118
|
+
moon: { lon: 133.21 }
|
|
119
|
+
},
|
|
120
|
+
houses: [{ lon: 300.32 }, ...],
|
|
121
|
+
aspectSettings: {
|
|
122
|
+
enabled: true,
|
|
123
|
+
orb: 6,
|
|
124
|
+
types: {
|
|
125
|
+
conjunction: { angle: 0, orb: 8, color: "#000000", enabled: true }
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
config: {
|
|
129
|
+
zodiacSettings: { enabled: true },
|
|
130
|
+
planetSettings: { enabled: true }
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
#### Methods
|
|
136
|
+
|
|
137
|
+
- `render()`: Renders the chart
|
|
138
|
+
- `update(config)`: Updates chart configuration
|
|
139
|
+
- `togglePlanet(name, visible)`: Toggles visibility of a planet
|
|
140
|
+
- `toggleHouses(visible)`: Toggles visibility of houses
|
|
141
|
+
- `toggleAspects(visible)`: Toggles visibility of aspects
|
|
142
|
+
- `togglePrimaryPlanets(visible)`: Toggles primary planets
|
|
143
|
+
- `toggleSecondaryPlanets(visible)`: Toggles secondary planets
|
|
144
|
+
- `setHouseRotation(angle)`: Sets house system rotation
|
|
145
|
+
- `setHouseSystem(name)`: Changes the house system
|
|
146
|
+
- `destroy()`: Removes the chart and cleans up resources
|
|
147
|
+
|
|
148
|
+
## Advanced Configuration
|
|
149
|
+
|
|
150
|
+
### ChartConfig Options
|
|
151
|
+
|
|
152
|
+
```javascript
|
|
153
|
+
const chartConfig = {
|
|
154
|
+
// Astronomical data
|
|
155
|
+
astronomicalData: {
|
|
156
|
+
ascendant: 0,
|
|
157
|
+
mc: 90,
|
|
158
|
+
latitude: 51.5,
|
|
159
|
+
houseSystem: "Placidus"
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
// Aspect settings
|
|
163
|
+
aspectSettings: {
|
|
164
|
+
enabled: true,
|
|
165
|
+
orb: 6,
|
|
166
|
+
types: {
|
|
167
|
+
conjunction: { angle: 0, orb: 8, color: "#ff0000", enabled: true },
|
|
168
|
+
opposition: { angle: 180, orb: 8, color: "#0000ff", enabled: true }
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
|
|
172
|
+
// Visual settings
|
|
173
|
+
zodiacSettings: {
|
|
174
|
+
enabled: true,
|
|
175
|
+
colors: {
|
|
176
|
+
aries: "#ff6666",
|
|
177
|
+
taurus: "#66cc66"
|
|
178
|
+
// Other signs...
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
|
|
182
|
+
// SVG dimensions
|
|
183
|
+
svg: {
|
|
184
|
+
width: 460,
|
|
185
|
+
height: 460,
|
|
186
|
+
viewBox: "0 0 460 460",
|
|
187
|
+
center: { x: 230, y: 230 }
|
|
188
|
+
},
|
|
189
|
+
|
|
190
|
+
// Asset paths
|
|
191
|
+
assets: {
|
|
192
|
+
basePath: "./assets/",
|
|
193
|
+
zodiacIconPath: "svg/zodiac/"
|
|
194
|
+
}
|
|
195
|
+
};
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
## Library Integration
|
|
199
|
+
|
|
200
|
+
The Nocturna Wheel library is available as both UMD and ES modules bundles for easy integration into modern web applications.
|
|
201
|
+
|
|
202
|
+
### Using with Module Bundlers (Webpack, Rollup, Vite)
|
|
203
|
+
|
|
204
|
+
```javascript
|
|
205
|
+
// Import specific components
|
|
206
|
+
import { WheelChart, ChartConfig } from 'nocturna-wheel';
|
|
207
|
+
|
|
208
|
+
// Create a chart instance
|
|
209
|
+
const chart = new WheelChart({
|
|
210
|
+
container: '#chart-container',
|
|
211
|
+
planets: {
|
|
212
|
+
sun: { lon: 85.83 },
|
|
213
|
+
moon: { lon: 133.21 }
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
// Render the chart
|
|
218
|
+
chart.render();
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Using with Factory Injection Pattern
|
|
222
|
+
|
|
223
|
+
The library supports Factory Injection for better decoupling and testability:
|
|
224
|
+
|
|
225
|
+
```javascript
|
|
226
|
+
import { WheelChart, NocturnaWheel } from 'nocturna-wheel';
|
|
227
|
+
|
|
228
|
+
// Create a custom factory
|
|
229
|
+
const chartFactory = (options) => {
|
|
230
|
+
console.log("Creating chart with custom factory");
|
|
231
|
+
return new NocturnaWheel({
|
|
232
|
+
...options,
|
|
233
|
+
// Apply custom configurations
|
|
234
|
+
config: {
|
|
235
|
+
...options.config,
|
|
236
|
+
theme: 'dark'
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
// Use the factory when creating WheelChart
|
|
242
|
+
const chart = new WheelChart(options, chartFactory);
|
|
243
|
+
chart.render();
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
See MODULE_ARCHITECTURE.md for more details on the library's architecture.
|
|
247
|
+
|
|
248
|
+
## License
|
|
249
|
+
|
|
250
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--nocturna-primary: #79a0c1;
|
|
3
|
+
--nocturna-secondary: #6c757d;
|
|
4
|
+
--nocturna-dark: #212529;
|
|
5
|
+
--nocturna-light: #f8f9fa;
|
|
6
|
+
--nocturna-hover: #6789ab;
|
|
7
|
+
|
|
8
|
+
/* Default stroke widths for aspects */
|
|
9
|
+
--aspect-conjunction-width: 1px;
|
|
10
|
+
--aspect-opposition-width: 1px;
|
|
11
|
+
--aspect-trine-width: 1px;
|
|
12
|
+
--aspect-square-width: 1px;
|
|
13
|
+
--aspect-sextile-width: 1px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
18
|
+
background-color: #f8f9fa;
|
|
19
|
+
color: var(--nocturna-dark);
|
|
20
|
+
line-height: 1.4;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.navbar {
|
|
24
|
+
background-color: #ffffff;
|
|
25
|
+
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
|
26
|
+
padding: 0.25rem 0;
|
|
27
|
+
margin-bottom: 0.25rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.navbar-brand {
|
|
31
|
+
padding: 0;
|
|
32
|
+
display: flex;
|
|
33
|
+
align-items: center;
|
|
34
|
+
height: 32px;
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.logo {
|
|
39
|
+
height: 48px;
|
|
40
|
+
width: auto;
|
|
41
|
+
max-width: 160px;
|
|
42
|
+
object-fit: contain;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.brand-text {
|
|
46
|
+
margin-left: 0.5rem;
|
|
47
|
+
font-size: 0.9rem;
|
|
48
|
+
color: #555;
|
|
49
|
+
font-weight: 400;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.navbar-nav .nav-item {
|
|
53
|
+
margin: 0 0.25rem;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.navbar-nav .nav-link {
|
|
57
|
+
padding: 0.25rem 0.5rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.navbar-nav .nav-link:hover,
|
|
61
|
+
.navbar-nav .nav-link:focus {
|
|
62
|
+
color: var(--nocturna-primary);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.navbar-nav .nav-link.active {
|
|
66
|
+
color: var(--nocturna-primary);
|
|
67
|
+
font-weight: 600;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.login-btn {
|
|
71
|
+
background-color: var(--nocturna-primary);
|
|
72
|
+
color: #ffffff;
|
|
73
|
+
border: none;
|
|
74
|
+
font-weight: 500;
|
|
75
|
+
padding: 0.5rem 1.25rem;
|
|
76
|
+
border-radius: 4px;
|
|
77
|
+
transition: all 0.2s ease;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.login-btn:hover,
|
|
81
|
+
.login-btn:focus {
|
|
82
|
+
background-color: var(--nocturna-hover);
|
|
83
|
+
color: #ffffff;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.main-container {
|
|
87
|
+
padding-top: 0;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.demo-card {
|
|
91
|
+
background-color: #fff;
|
|
92
|
+
border-radius: 6px;
|
|
93
|
+
padding: 1rem;
|
|
94
|
+
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
|
95
|
+
margin-bottom: 0.5rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.intro-card {
|
|
99
|
+
padding: 0.5rem 0.75rem;
|
|
100
|
+
margin-bottom: 0.5rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.intro-card .demo-title {
|
|
104
|
+
font-size: 1.1rem;
|
|
105
|
+
margin-bottom: 0.35rem;
|
|
106
|
+
padding-bottom: 0.35rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.intro-card p {
|
|
110
|
+
font-size: 0.8rem;
|
|
111
|
+
margin-bottom: 0;
|
|
112
|
+
line-height: 1.2;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.demo-title {
|
|
116
|
+
margin-bottom: 0.75rem;
|
|
117
|
+
font-weight: 600;
|
|
118
|
+
font-size: 1.1rem;
|
|
119
|
+
color: #333;
|
|
120
|
+
padding-bottom: 0.35rem;
|
|
121
|
+
border-bottom: 1px solid rgba(121, 160, 193, 0.2);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.chart-container {
|
|
125
|
+
height: 420px;
|
|
126
|
+
margin-bottom: 10px;
|
|
127
|
+
display: flex;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
align-items: center;
|
|
130
|
+
position: relative;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.control-panel {
|
|
134
|
+
background-color: #fff;
|
|
135
|
+
border-radius: 6px;
|
|
136
|
+
padding: 0.75rem;
|
|
137
|
+
box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
|
|
138
|
+
height: 420px;
|
|
139
|
+
overflow-y: auto;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.control-section {
|
|
143
|
+
margin-bottom: 10px;
|
|
144
|
+
border: 1px solid rgba(121, 160, 193, 0.2);
|
|
145
|
+
border-radius: 4px;
|
|
146
|
+
padding: 0.5rem;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.control-title {
|
|
150
|
+
font-weight: 600;
|
|
151
|
+
margin-bottom: 6px;
|
|
152
|
+
color: #333;
|
|
153
|
+
display: flex;
|
|
154
|
+
justify-content: space-between;
|
|
155
|
+
align-items: center;
|
|
156
|
+
cursor: pointer;
|
|
157
|
+
font-size: 0.9rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.control-title i {
|
|
161
|
+
transition: transform 0.3s ease;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.control-title.collapsed i {
|
|
165
|
+
transform: rotate(-90deg);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.planet-checkbox, .aspect-checkbox {
|
|
169
|
+
margin-right: 5px;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
footer {
|
|
173
|
+
background-color: var(--nocturna-dark);
|
|
174
|
+
color: var(--nocturna-light);
|
|
175
|
+
padding: 20px 0;
|
|
176
|
+
margin-top: 2rem;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.github-link {
|
|
180
|
+
color: var(--nocturna-light);
|
|
181
|
+
text-decoration: none;
|
|
182
|
+
transition: color 0.3s;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.github-link:hover {
|
|
186
|
+
color: #fff;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.rotation-control {
|
|
190
|
+
margin-top: 15px;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.btn-primary {
|
|
194
|
+
background-color: var(--nocturna-primary);
|
|
195
|
+
border-color: var(--nocturna-primary);
|
|
196
|
+
padding: 0.6rem 1.5rem;
|
|
197
|
+
font-weight: 500;
|
|
198
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.btn-primary:hover {
|
|
202
|
+
background-color: var(--nocturna-hover);
|
|
203
|
+
border-color: var(--nocturna-hover);
|
|
204
|
+
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.form-check-input:checked {
|
|
208
|
+
background-color: var(--nocturna-primary);
|
|
209
|
+
border-color: var(--nocturna-primary);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.code-block {
|
|
213
|
+
background-color: #f8f9fa;
|
|
214
|
+
border-radius: 5px;
|
|
215
|
+
padding: 15px;
|
|
216
|
+
margin-bottom: 15px;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/* Custom styles for color pickers */
|
|
220
|
+
.color-picker-wrapper {
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: center;
|
|
223
|
+
gap: 10px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.color-preview {
|
|
227
|
+
width: 24px;
|
|
228
|
+
height: 24px;
|
|
229
|
+
border-radius: 50%;
|
|
230
|
+
border: 1px solid #ccc;
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
position: relative;
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.color-preview input[type="color"] {
|
|
237
|
+
position: absolute;
|
|
238
|
+
opacity: 0;
|
|
239
|
+
width: 100%;
|
|
240
|
+
height: 100%;
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.section-body {
|
|
245
|
+
padding-top: 10px;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.planet-item, .aspect-item {
|
|
249
|
+
margin-bottom: 8px;
|
|
250
|
+
background-color: rgba(248, 249, 250, 0.5);
|
|
251
|
+
padding: 6px;
|
|
252
|
+
border-radius: 4px;
|
|
253
|
+
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.controls-row {
|
|
257
|
+
display: flex;
|
|
258
|
+
flex-wrap: wrap;
|
|
259
|
+
align-items: center;
|
|
260
|
+
gap: 6px;
|
|
261
|
+
margin-top: 6px;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.control-group {
|
|
265
|
+
flex: 1;
|
|
266
|
+
min-width: 100px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.control-label {
|
|
270
|
+
font-size: 0.75rem;
|
|
271
|
+
font-weight: 500;
|
|
272
|
+
color: #666;
|
|
273
|
+
margin-bottom: 2px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.form-check {
|
|
277
|
+
margin-bottom: 0.25rem;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.form-check-label {
|
|
281
|
+
font-size: 0.85rem;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* CSS to control aspect line thickness */
|
|
285
|
+
#chart-container svg line[stroke="#FF0000"],
|
|
286
|
+
#chart-container svg path[stroke="#FF0000"] {
|
|
287
|
+
stroke-width: var(--aspect-opposition-width);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
#chart-container svg line[stroke="#008000"],
|
|
291
|
+
#chart-container svg path[stroke="#008000"] {
|
|
292
|
+
stroke-width: var(--aspect-trine-width);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/* Additional styling for specific aspect types based on color and styles */
|
|
296
|
+
#chart-container svg line[stroke-dasharray],
|
|
297
|
+
#chart-container svg path[stroke-dasharray] {
|
|
298
|
+
stroke-width: var(--aspect-square-width);
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/* The most specific selector for aspects */
|
|
302
|
+
#chart-container svg g[id^="aspects"] line,
|
|
303
|
+
#chart-container svg g[class*="aspect"] line {
|
|
304
|
+
stroke-width: var(--aspect-sextile-width);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* Individual styling for each aspect type to override any shared colors */
|
|
308
|
+
#chart-container svg .aspect-line-opposition {
|
|
309
|
+
stroke-width: var(--aspect-opposition-width) !important;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
#chart-container svg .aspect-line-trine {
|
|
313
|
+
stroke-width: var(--aspect-trine-width) !important;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
#chart-container svg .aspect-line-square {
|
|
317
|
+
stroke-width: var(--aspect-square-width) !important;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
#chart-container svg .aspect-line-sextile {
|
|
321
|
+
stroke-width: var(--aspect-sextile-width) !important;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
#chart-container svg .aspect-line-conjunction {
|
|
325
|
+
stroke-width: var(--aspect-conjunction-width) !important;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/* Additional style to ensure specificity */
|
|
329
|
+
.aspect-line-thickness-applied {
|
|
330
|
+
transition: stroke-width 0.2s ease;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.control-group {
|
|
334
|
+
margin-bottom: 15px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.form-select-sm {
|
|
338
|
+
height: calc(1.4em + 0.5rem + 2px);
|
|
339
|
+
padding-top: 0.2rem;
|
|
340
|
+
padding-bottom: 0.2rem;
|
|
341
|
+
font-size: 0.8rem;
|
|
342
|
+
border-radius: 0.2rem;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.form-select:focus {
|
|
346
|
+
border-color: var(--nocturna-primary);
|
|
347
|
+
box-shadow: 0 0 0 0.25rem rgba(121, 160, 193, 0.25);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
#house-system-description {
|
|
351
|
+
font-size: 0.8rem;
|
|
352
|
+
color: #666;
|
|
353
|
+
margin-top: 0.25rem;
|
|
354
|
+
min-height: 2.4rem;
|
|
355
|
+
display: block;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.row {
|
|
359
|
+
--bs-gutter-x: 0.75rem;
|
|
360
|
+
--bs-gutter-y: 0.75rem;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
@media (min-width: 992px) {
|
|
364
|
+
.g-4 {
|
|
365
|
+
--bs-gutter-x: 0.75rem;
|
|
366
|
+
--bs-gutter-y: 0.75rem;
|
|
367
|
+
}
|
|
368
|
+
} /* Fix for aspect selector overlap issues */
|
|
369
|
+
.aspect-item .form-check {
|
|
370
|
+
display: flex;
|
|
371
|
+
align-items: flex-start;
|
|
372
|
+
margin-bottom: 6px;
|
|
373
|
+
position: relative;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.aspect-item .form-check-input {
|
|
377
|
+
margin-top: 3px;
|
|
378
|
+
flex-shrink: 0;
|
|
379
|
+
z-index: 1;
|
|
380
|
+
margin-right: 8px;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.aspect-item .form-check-label {
|
|
384
|
+
display: flex;
|
|
385
|
+
align-items: center;
|
|
386
|
+
padding-left: 0;
|
|
387
|
+
position: relative;
|
|
388
|
+
z-index: 1;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.aspect-item .aspect-name {
|
|
392
|
+
padding-left: 2px;
|
|
393
|
+
display: inline-block;
|
|
394
|
+
display: flex;
|
|
395
|
+
align-items: center;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.aspect-indicator {
|
|
399
|
+
display: inline-block;
|
|
400
|
+
width: 12px;
|
|
401
|
+
height: 12px;
|
|
402
|
+
margin-right: 6px;
|
|
403
|
+
border-radius: 2px;
|
|
404
|
+
border: 1px solid #ccc;
|
|
405
|
+
flex-shrink: 0;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/* Ensure controls row has enough space and doesn't overlap */
|
|
409
|
+
.aspect-item .controls-row {
|
|
410
|
+
margin-top: 8px;
|
|
411
|
+
padding-top: 6px;
|
|
412
|
+
border-top: 1px solid rgba(0,0,0,0.05);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/* Ensure color picker doesn't overlap */
|
|
416
|
+
.aspect-item .color-picker-wrapper {
|
|
417
|
+
margin-top: 2px;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* Fix Line Style dropdowns layout */
|
|
421
|
+
.aspect-item .control-group {
|
|
422
|
+
margin-bottom: 8px;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/* Visually hidden class for accessibility */
|
|
426
|
+
.visually-hidden {
|
|
427
|
+
position: absolute !important;
|
|
428
|
+
width: 1px !important;
|
|
429
|
+
height: 1px !important;
|
|
430
|
+
padding: 0 !important;
|
|
431
|
+
margin: -1px !important;
|
|
432
|
+
overflow: hidden !important;
|
|
433
|
+
clip: rect(0, 0, 0, 0) !important;
|
|
434
|
+
white-space: nowrap !important;
|
|
435
|
+
border: 0 !important;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/* Fix for aspect item spacing */
|
|
439
|
+
#aspect-types {
|
|
440
|
+
display: flex;
|
|
441
|
+
flex-direction: column;
|
|
442
|
+
gap: 8px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* Additional styling for aspect types container */
|
|
446
|
+
.aspect-types-container {
|
|
447
|
+
padding-top: 4px;
|
|
448
|
+
max-height: 280px;
|
|
449
|
+
overflow-y: auto;
|
|
450
|
+
overflow-x: hidden;
|
|
451
|
+
scrollbar-width: thin;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/* Ensure aspect items are well-spaced */
|
|
455
|
+
.aspect-item {
|
|
456
|
+
padding: 8px;
|
|
457
|
+
margin-bottom: 8px;
|
|
458
|
+
border-radius: 4px;
|
|
459
|
+
background-color: rgba(248, 249, 250, 0.7);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/* Fix form-check alignment */
|
|
463
|
+
.form-check {
|
|
464
|
+
display: flex;
|
|
465
|
+
align-items: flex-start;
|
|
466
|
+
}
|