Skip to content

Commit 8215a7b

Browse files
committed
style changes
1 parent 09ed4bb commit 8215a7b

6 files changed

+17
-5
lines changed

css/base.scss

+1
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ a:hover {
176176
h2,
177177
h3,
178178
h4 {
179+
text-wrap: balance;
179180
font-family: $u-font-sans-serif;
180181
font-weight: bold;
181182
}

css/doc.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ img[title='w600'] {
9898
}
9999

100100
.warning {
101-
padding: 0.2rem;
101+
margin: 0.2rem;
102+
padding: 0.4rem;
102103
border-radius: 0.4rem;
103104
}
104105

iotstyle.css

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

iotstyle.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

iotstylecheck.htm

+9
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,15 @@ <h3>weatherfeed</h3><svg class="icon">
730730
</div>
731731
</div>
732732

733+
<hr />
734+
735+
<h2>Colors</h2>
736+
737+
<div class="panel">
738+
739+
<a href="https://colors.artyclick.com/color-names-dictionary/color-names/mariner-color/">Mariner Color</a>
740+
</div>
741+
733742
<script>
734743

735744
function checkDefaultParameter(a, b = 8) {

src/DisplayWidget.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class DisplayWidgetClass extends GenericWidgetClass {
2727
}
2828
sty.width = w + 'px';
2929
sty.height = h + 'px';
30-
if (w > 260) {
30+
if (w <= 128) {
31+
sty.setProperty('zoom', '2');
32+
} else if (w > 260) {
3133
this.classList.add('wide');
3234
}
3335
}

0 commit comments

Comments
 (0)