Skip to content
Snippets Groups Projects
Commit 0241d055 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon: Committed by Reiter, Christoph
Browse files

Add css for select and vpu-data-table-view buttons

parent 9abd4bae
No related branches found
No related tags found
No related merge requests found
...@@ -340,7 +340,7 @@ export function getNotificationCSS() { ...@@ -340,7 +340,7 @@ export function getNotificationCSS() {
export function getButtonCSS() { export function getButtonCSS() {
// language=css // language=css
return css` return css`
.button { button.button, .button, button.dt-button {
border-color: black; border-color: black;
border-width: 1px; border-width: 1px;
border-radius: var(--vpu-border-radius); border-radius: var(--vpu-border-radius);
...@@ -355,48 +355,60 @@ export function getButtonCSS() { ...@@ -355,48 +355,60 @@ export function getButtonCSS() {
white-space: nowrap; white-space: nowrap;
font-size: inherit; font-size: inherit;
font-family: inherit; font-family: inherit;
background-color: transparent;
transition: background-color 0.15s ease 0s, color 0.15s ease 0s; transition: background-color 0.15s ease 0s, color 0.15s ease 0s;
background: none;
} }
.button:hover { button.button:hover, .button:hover, button.dt-button:hover, button.dt-button:hover:not(.disabled) {
color: white; color: white;
background: none;
background-color: black; background-color: black;
} }
.button.is-small { button.button.is-small, ..button.is-small {
border-radius: calc(var(--vpu-border-radius) / 2); border-radius: calc(var(--vpu-border-radius) / 2);
font-size: .75rem; font-size: .75rem;
} }
.button.is-primary { button.button.is-primary, ..button.is-primary {
background-color: var(--vpu-primary-bg-color); background-color: var(--vpu-primary-bg-color);
color: var(--vpu-primary-text-color); color: var(--vpu-primary-text-color);
} }
.button.is-info { button.button.is-info, ..button.is-info {
background-color: var(--vpu-info-bg-color); background-color: var(--vpu-info-bg-color);
color: var(--vpu-info-text-color); color: var(--vpu-info-text-color);
} }
.button.is-success { button.button.is-success, ..button.is-success {
background-color: var(--vpu-success-bg-color); background-color: var(--vpu-success-bg-color);
color: var(--vpu-success-text-color); color: var(--vpu-success-text-color);
} }
.button.is-warning { button.button.is-warning, ..button.is-warning {
background-color: var(--vpu-warning-bg-color); background-color: var(--vpu-warning-bg-color);
color: var(--vpu-warning-text-color); color: var(--vpu-warning-text-color);
} }
.button.is-danger { .button.button.is-danger, .button.is-danger {
background-color: var(--vpu-danger-bg-color); background-color: var(--vpu-danger-bg-color);
color: var(--vpu-danger-text-color); color: var(--vpu-danger-text-color);
} }
.button[disabled], fieldset[disabled] .button { button.button[disabled], ..button[disabled], fieldset[disabled] .button {
opacity: .5; opacity: .5;
} }
select {
-moz-appearance: none;
-webkit-appearance: none;
background: right/25% no-repeat url("local/vpu-common/icons/chevron-down.svg");
border-color: black;
border-width: 1px;
border-radius: var(--vpu-border-radius);
color: black;
padding: 0.14rem;
}
`; `;
} }
......
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