@novely/solid-renderer 0.9.0 → 0.9.2

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/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # @novely/solid-renderer
2
2
 
3
- Рендерер для @novely/core на основе solid.js
3
+ Renderer for @novely/core powered by SolidJS
4
4
 
5
5
  ## Использование
6
6
 
7
- Убедитесь, что у вас установлен [solid.js](https://www.solidjs.com/) и настроена сборка.
7
+ Make sure you have [SolidJS](https://www.solidjs.com/) installed and your bundler setup dones.
8
8
 
9
9
  ```tsx
10
10
  // @see https://www.solidjs.com/docs/latest/api#render
@@ -68,27 +68,12 @@ render(
68
68
 
69
69
  ## CSS Variables API
70
70
 
71
- Возможность настройки пользовательского интерфейса через [CSS Variables](https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties) реализуется через следующие переменные:
71
+ Not documented yet.
72
72
 
73
- | Name | Default Value |
74
- | ---------------------------------------- | --------------------------------------------------------------------------------------------------- |
75
- | `--novely-button-background-color` | `#ffe9f3` |
76
- | `--novely-button-border-color` | `#ffc7df` |
77
- | `--novely-button-color` | `#000000` |
78
- | `--novely-button-hover-background-color` | `#ffffff` |
79
- | `--novely-button-hover-border-color` | `#ffc6d8` |
80
- | `--novely-button-hover-color` | `#ffb7a2` |
81
- | `--novely-select-background-color` | `#ffe9f3` |
82
- | `--novely-select-border-color` | `#ffc7df` |
83
- | `--novely-select-color` | `#000000` |
84
- | `--novely-dialog-color` | `#ffffff` |
85
- | `--novely-dialog-border-color` | `#ffffff` |
86
- | `--novely-dialog-border-radius` | `14px` |
87
- | `--novely-dialog-box-shadow-color` | `#00000072` |
88
- | `--novely-dialog-background-image` | `radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%))` |
89
- | `--novely-dialog-background-color` | `#f092b4d8` |
90
- | `--novely-dialog-background-position` | `0 0, 50px 50px` |
91
- | `--novely-dialog-background-size` | `100px 100px` |
92
- | `--novely-settings-background-image` | none |
93
- | `--novely-main-menu-background-image` | none |
94
- | `--novely-saves-background-image` | none |
73
+ ## CSS Breakpoints
74
+
75
+ | Name | Description |
76
+ | -------------------------- | -------------------- |
77
+ | `(max-aspect-ratio: 0.8)` | Portrait |
78
+ | `(max-aspect-ratio: 0.26)` | Hyper-Wide Portrait |
79
+ | `(max-aspect-ratio: 0.10)` | Thermometer Portrait |
@@ -133,17 +133,19 @@
133
133
  /* src/styles/control-panel/button/button.css */
134
134
  .control-panel__button {
135
135
  border: 2px solid var(--novely-button-border-color, #ffc7df);
136
+ justify-content: center;
136
137
  height: 2rem;
137
138
  margin: 0;
138
139
  padding: .2rem .4rem;
139
140
  font-size: 1rem;
140
141
  line-height: 1;
142
+ display: flex;
141
143
  }
142
144
  .control-panel__button__icon,
143
145
  .control-panel__button--auto-mode {
144
146
  display: none;
145
147
  }
146
- @media (orientation: portrait) and (min-aspect-ratio: .26) {
148
+ @media (min-aspect-ratio: .26) or (max-aspect-ratio: .1) {
147
149
  .control-panel__button__icon {
148
150
  display: block;
149
151
  }
@@ -306,7 +308,7 @@
306
308
  max-width: 100%;
307
309
  max-height: 100%;
308
310
  }
309
- @media (orientation: portrait) {
311
+ @media (max-aspect-ratio: .8) {
310
312
  .action-dialog {
311
313
  bottom: 0;
312
314
  left: unset;
@@ -334,7 +336,7 @@
334
336
  height: 50vh !important;
335
337
  }
336
338
  }
337
- @media only screen and (orientation: landscape) and (pointer: coarse) {
339
+ @media only screen and (min-aspect-ratio: .8) and (pointer: coarse) {
338
340
  .action-dialog-content {
339
341
  text-shadow: none;
340
342
  font-size: 1.32rem;
@@ -395,7 +397,7 @@
395
397
  background: var(--novely-dialog-panel-label-background, #ffe9f3);
396
398
  color: var(--novely-dialog-panel-label-color, #000);
397
399
  }
398
- @media (orientation: portrait) {
400
+ @media (max-aspect-ratio: .8) {
399
401
  .dialog-panel {
400
402
  width: calc(100vw - .5rem);
401
403
  }
@@ -479,7 +481,7 @@
479
481
  display: grid;
480
482
  overflow: hidden;
481
483
  }
482
- @media (orientation: landscape) {
484
+ @media (min-aspect-ratio: .8) {
483
485
  .main-menu {
484
486
  justify-content: start;
485
487
  }
@@ -568,7 +570,7 @@
568
570
  display: flex;
569
571
  overflow: hidden;
570
572
  }
571
- @media (orientation: portrait) {
573
+ @media (max-aspect-ratio: .8) {
572
574
  .settings {
573
575
  flex-direction: column-reverse;
574
576
  }
@@ -578,7 +580,7 @@
578
580
  .settings__button {
579
581
  min-width: 30vw;
580
582
  }
581
- @media (orientation: portrait) {
583
+ @media (max-aspect-ratio: .8) {
582
584
  .settings__button {
583
585
  min-width: 80%;
584
586
  }
@@ -602,7 +604,7 @@
602
604
  display: flex;
603
605
  overflow: hidden;
604
606
  }
605
- @media (orientation: portrait) {
607
+ @media (max-aspect-ratio: .8) {
606
608
  .saves {
607
609
  flex-direction: column-reverse;
608
610
  }
@@ -624,7 +626,7 @@
624
626
  .saves__button-load__type {
625
627
  margin-left: 1rem;
626
628
  }
627
- @media (orientation: portrait) {
629
+ @media (max-aspect-ratio: .8) {
628
630
  .saves__button {
629
631
  min-width: 80%;
630
632
  }
@@ -693,7 +695,7 @@
693
695
  .saves__list-item {
694
696
  display: flex;
695
697
  }
696
- @media (orientation: portrait) {
698
+ @media (max-aspect-ratio: .8) {
697
699
  .saves__list {
698
700
  height: 100%;
699
701
  }
@@ -723,7 +725,7 @@
723
725
  }
724
726
 
725
727
  /* src/styles/saves/column/column.css */
726
- @media (orientation: portrait) {
728
+ @media (max-aspect-ratio: .8) {
727
729
  .saves__column {
728
730
  flex-flow: column wrap;
729
731
  justify-content: center;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.9.0",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"