Skip to content

Commit fa35854

Browse files
committed
Styled select input
1 parent c9cc77f commit fa35854

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

src/components/api-request.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ export default class ApiRequest extends LitElement {
515515
return html`
516516
<div style="display:flex; align-items: center; margin:16px 0; font-size:var(--font-size-small);">
517517
<div style="display:flex; flex-direction:column; margin:0; width:calc(100% - 60px);">
518-
<div style="display:flex;flex-direction:row;overflow:hidden;">
518+
<div style="display:flex; flex-direction:row; align-items:center; overflow:hidden;">
519519
<div style="font-weight:bold;padding-right:5px;">API SERVER: </div>
520520
${containerServer}
521521
</div>
@@ -532,7 +532,7 @@ export default class ApiRequest extends LitElement {
532532
}
533533
</div>
534534
</div>
535-
<button class="m-btn primary try-btn" style="padding: 6px 0px;width:60px" @click="${this.onTryClick}">TRY</button>
535+
<button class="m-btn primary try-btn" style="padding: 6px 0px;width:60px; align-self:flex-end;" @click="${this.onTryClick}">TRY</button>
536536
</div>
537537
${this.responseMessage === ''
538538
? ''

src/styles/input-styles.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,17 @@ input[type="password"] {
6262
box-sizing: border-box;
6363
}
6464
65+
select {
66+
padding: 6px 35px 6px 5px;
67+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E");
68+
background-position: calc(100% - 5px) center;
69+
background-repeat: no-repeat;
70+
background-size: 10px;
71+
-webkit-appearance: none;
72+
-moz-appearance: none;
73+
appearance: none;
74+
}
75+
6576
textarea.mono,
6677
input[type="text"].mono,
6778
input[type="password"].mono{

0 commit comments

Comments
 (0)