Skip to content
Snippets Groups Projects
Commit be2af432 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio :fire: Committed by Reiter, Christoph
Browse files

Unify more styles for Firefox and Chrome

parent 2482b16c
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,7 @@ export function getThemeCSS() { ...@@ -27,6 +27,7 @@ export function getThemeCSS() {
--vpu-muted-text: var(--vpu-override-muted-text, #6c757d); --vpu-muted-text: var(--vpu-override-muted-text, #6c757d);
--vpu-border-radius: var(--vpu-override-border-radius, 0px); --vpu-border-radius: var(--vpu-override-border-radius, 0px);
--vpu-border-width: var(--vpu-override-border-width, 1px); --vpu-border-width: var(--vpu-override-border-width, 1px);
--vpu-placeholder-color: #777;
} }
`; `;
} }
...@@ -53,6 +54,7 @@ export function getGeneralCSS() { ...@@ -53,6 +54,7 @@ export function getGeneralCSS() {
} }
.input, .textarea, .select select { .input, .textarea, .select select {
border: solid 1px #aaa;
border-radius: var(--vpu-border-radius); border-radius: var(--vpu-border-radius);
padding-bottom: calc(.375em - 1px); padding-bottom: calc(.375em - 1px);
padding-left: calc(.625em - 1px); padding-left: calc(.625em - 1px);
...@@ -60,6 +62,10 @@ export function getGeneralCSS() { ...@@ -60,6 +62,10 @@ export function getGeneralCSS() {
padding-top: calc(.375em - 1px); padding-top: calc(.375em - 1px);
} }
.input::placeholder, .textarea::placeholder, .select select::placeholder {
color: var(--vpu-placeholder-color);
}
input, ::placeholder, textarea, select, .select select { input, ::placeholder, textarea, select, .select select {
font-size: inherit; font-size: inherit;
font-family: inherit; font-family: inherit;
...@@ -360,6 +366,7 @@ export function getButtonCSS() { ...@@ -360,6 +366,7 @@ export function getButtonCSS() {
// language=css // language=css
return css` return css`
button.button, .button, button.dt-button { button.button, .button, button.dt-button {
border-style: solid;
border-color: black; border-color: black;
border-width: 1px; border-width: 1px;
border-radius: var(--vpu-border-radius); border-radius: var(--vpu-border-radius);
...@@ -648,6 +655,10 @@ export function getSelect2CSS() { ...@@ -648,6 +655,10 @@ export function getSelect2CSS() {
/* color: red; */ /* color: red; */
} }
.select2-container--default .select2-selection--single .select2-selection__placeholder {
color: var(--vpu-placeholder-color);
}
/* Work around single selections not wrapping and breaking responsivness */ /* Work around single selections not wrapping and breaking responsivness */
.select2-container--default .select2-selection--single { .select2-container--default .select2-selection--single {
height: 100% !important; height: 100% !important;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment