@dosgato/dialog 1.1.10 → 1.1.12
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/dist/Dialog.svelte +21 -14
- package/package.json +1 -1
package/dist/Dialog.svelte
CHANGED
|
@@ -84,37 +84,42 @@ $: describedby = [title ? labelid : undefined, descid].filter(isNotBlank).join('
|
|
|
84
84
|
section.tiny {
|
|
85
85
|
width: 30vw;
|
|
86
86
|
min-width: 200px;
|
|
87
|
-
max-width:
|
|
87
|
+
max-width: 275px;
|
|
88
88
|
}
|
|
89
|
+
@media (max-width: 250px) { section.tiny button.expand { display: none; } }
|
|
90
|
+
@media (max-width: 800px) { section.tiny { width: 50vw; } }
|
|
91
|
+
@media (max-width: 430px) { section.tiny { width: 75vw; } }
|
|
92
|
+
|
|
89
93
|
section.small {
|
|
90
94
|
width: 50vw;
|
|
91
|
-
min-width:
|
|
92
|
-
max-width:
|
|
95
|
+
min-width: 250px;
|
|
96
|
+
max-width: 450px;
|
|
93
97
|
}
|
|
98
|
+
@media (max-width: 450px) { section.small button.expand { display: none; } }
|
|
99
|
+
@media (max-width: 800px) { section.small { width: 75vw; } }
|
|
100
|
+
@media (max-width: 430px) { section.small { width: 90vw; } }
|
|
94
101
|
section.normal {
|
|
95
102
|
width: 75vw;
|
|
96
|
-
min-width:
|
|
103
|
+
min-width: 300px;
|
|
97
104
|
max-width: 750px;
|
|
98
105
|
}
|
|
106
|
+
@media (max-width: 750px) { section.normal button.expand { display: none; } }
|
|
107
|
+
@media (max-width: 800px) { section.normal { width: 90vw; } }
|
|
108
|
+
@media (max-width: 430px) { section.normal { width: 95vw; } }
|
|
99
109
|
section.large {
|
|
100
110
|
width: 90vw;
|
|
101
111
|
min-width: 300px;
|
|
102
112
|
max-width: 1000px;
|
|
103
113
|
}
|
|
114
|
+
@media (max-width: 1000px) { section.large button.expand { display: none; } }
|
|
115
|
+
@media (max-width: 800px) { section.large { width: 95vw; } }
|
|
116
|
+
@media (max-width: 430px) { section.large { width: 97vw; } }
|
|
104
117
|
section.xl {
|
|
105
118
|
width: 95vw;
|
|
106
119
|
max-width: 2000px;
|
|
107
120
|
}
|
|
108
|
-
|
|
109
|
-
@media (max-width:
|
|
110
|
-
section.tiny, section.small, section.normal, section.large, section.xl {
|
|
111
|
-
width: 95vw;
|
|
112
|
-
max-width: 2000px;
|
|
113
|
-
}
|
|
114
|
-
button.expand {
|
|
115
|
-
display: none;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
121
|
+
@media (max-width: 2000px) { section.xl button.expand { display: none; } }
|
|
122
|
+
@media (max-width: 800px) { section.xl { width: 97vw; } }
|
|
118
123
|
|
|
119
124
|
header {
|
|
120
125
|
display: flex;
|
|
@@ -143,6 +148,8 @@ $: describedby = [title ? labelid : undefined, descid].filter(isNotBlank).join('
|
|
|
143
148
|
max-height: calc(100vh - 7.5em);
|
|
144
149
|
max-height: calc(100dvh - 7.5em);
|
|
145
150
|
}
|
|
151
|
+
@media (max-width: 800px) { .dialog-content { padding: 1.2em; } }
|
|
152
|
+
@media (max-width: 430px) { .dialog-content { padding: 0.6em; } }
|
|
146
153
|
|
|
147
154
|
section.tiny .dialog-content, section.small .dialog-content {
|
|
148
155
|
padding: 0 1em;
|
package/package.json
CHANGED