mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-29 01:59:39 +01:00
CSS / Layout cleanup - better autosize
- let things inside box shrink, actual widget can decide minimums - Slotted inputs take up full width by default - More consistent sizing/position for invoker
This commit is contained in:
parent
f8f04071be
commit
ec8b32c01d
@ -39,7 +39,7 @@ export class Et2Box extends Et2Widget(LitElement) implements et2_IDetachedDOM
|
||||
}
|
||||
/* CSS for child elements */
|
||||
::slotted(*) {
|
||||
flex: 1 0 auto;
|
||||
flex: 1 1 auto;
|
||||
}
|
||||
::slotted(img),::slotted(et2-image) {
|
||||
/* Stop images from growing. In general we want them to stay */
|
||||
|
@ -52,7 +52,12 @@ const Et2InputWidgetMixin = (superclass) =>
|
||||
/* Needed so required can show through */
|
||||
::slotted(input), input {
|
||||
background-color: transparent;
|
||||
}`
|
||||
}
|
||||
/* Used to allow auto-sizing on slotted inputs */
|
||||
.input-group__container > .input-group__input ::slotted(.form-control) {
|
||||
width: 100%;
|
||||
}
|
||||
`
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -54,12 +54,13 @@ export const Et2InvokerMixin = dedupeMixin((superclass) =>
|
||||
border: 1px solid var(--input-border-color);
|
||||
}
|
||||
.input-group__suffix{
|
||||
text-align: center;
|
||||
}
|
||||
.input-group__container {
|
||||
align-items: center
|
||||
}
|
||||
::slotted([slot="suffix"]) {
|
||||
width: 12px;
|
||||
width: 14px;
|
||||
border: none !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
import {Et2InvokerMixin} from "./Et2InvokerMixin";
|
||||
import {IsEmail} from "../Validators/IsEmail";
|
||||
import {Et2Textbox} from "../Et2Textbox/Et2Textbox";
|
||||
import {colorsDefStyles} from "../Styles/colorsDefStyles";
|
||||
import {css} from "@lion/core";
|
||||
@ -50,7 +49,6 @@ export class Et2Url extends Et2InvokerMixin(Et2Textbox)
|
||||
::slotted([slot="suffix"]) {
|
||||
font-size: 133% !important;
|
||||
position: relative;
|
||||
left: -2px;
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
@ -27,7 +27,6 @@ export class Et2UrlFax extends Et2UrlPhone
|
||||
::slotted([slot="suffix"]) {
|
||||
font-size: 90% !important;
|
||||
position: relative;
|
||||
left: -2px;
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user