hookshot/web/components/elements/InputField.module.scss
Will Hunt 30bb52fc59
Better support for dark mode in widgets (#863)
* Major package upgrades

* Update rust deps and fix a few things

* Drop 18 testing

* Use node 20

* lint rust

* lint

* changelog

* Drop usage of SVGs, use compound elements.

* Update widget API

* Drop usage of SVGs, use compound elements.

* Add dark mode for widgets

* changelog

* Remove yarn-error.log
2023-12-22 15:44:00 +00:00

60 lines
1.3 KiB
SCSS

.inputField.nopad {
label {
position: relative;
margin: 0;
}
}
.inputField {
width: 100%;
margin-bottom: 12px;
label {
position: absolute;
left: 0;
margin: -8px 45px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
max-width: calc(100% - 20px);
padding: 0 2px;
color: var(--cpd-color-text-primary);
}
> ul {
padding-left: 10px;
}
li {
list-style: none;
}
ul > label {
position: relative;
left: auto;
margin: auto;
}
input[type="text"],input[type="search"] {
border: 1px solid var(--cpd-color-border-interactive-primary);
box-sizing: border-box;
border-radius: 8px;
width: 100%;
font-size: 14px;
padding: 8px 12px;
color: var(--cpd-color-text-primary);
background: var(--cpd-color-bg-subtle-primary);
}
select {
border: 1px solid var(--cpd-color-border-interactive-primary);
box-sizing: border-box;
border-radius: 8px;
width: 100%;
font-size: 14px;
padding: 8px 12px;
color: var(--cpd-color-text-primary);
background: var(--cpd-color-bg-subtle-primary);
}
}