umami/components/layout/FormLayout.module.css

96 lines
1.4 KiB
CSS
Raw Normal View History

2020-08-07 07:03:02 +02:00
.form {
display: flex;
flex-direction: column;
justify-content: center;
}
.form label {
2020-08-09 08:48:43 +02:00
display: block;
2020-08-07 07:03:02 +02:00
min-width: 100px;
}
.row {
display: flex;
flex-wrap: wrap;
2020-08-07 07:03:02 +02:00
align-items: center;
position: relative;
margin-bottom: 20px;
line-height: 1.8;
2021-03-08 22:18:24 +01:00
padding: 0 20px;
2020-08-07 07:03:02 +02:00
}
.row > div {
position: relative;
flex: 1 1;
}
.row > div > input,
.row > div > select {
width: 100%;
2021-03-06 01:48:20 +01:00
min-width: 240px;
}
2020-08-07 07:03:02 +02:00
.buttons {
display: flex;
justify-content: center;
margin-top: 20px;
2020-08-07 07:03:02 +02:00
}
.buttons button + button {
margin-left: 10px;
}
2020-08-07 07:03:02 +02:00
.error {
position: absolute;
display: flex;
justify-content: center;
align-items: center;
top: 0;
left: calc(100% + 16px);
2020-08-07 07:03:02 +02:00
bottom: 0;
z-index: 1;
2020-08-09 11:03:37 +02:00
}
.msg {
2020-09-20 10:33:39 +02:00
color: var(--msgColor);
2020-08-09 11:03:37 +02:00
background: var(--red400);
font-size: var(--font-size-small);
padding: 4px 8px;
2020-08-07 07:03:02 +02:00
border-radius: 4px;
2020-08-09 08:48:43 +02:00
white-space: nowrap;
2020-08-07 07:03:02 +02:00
}
2020-08-07 11:27:12 +02:00
.error:after {
content: '';
position: absolute;
top: 0;
left: -5px;
bottom: 0;
margin: auto;
width: 10px;
height: 10px;
background: var(--red400);
2020-08-07 11:27:12 +02:00
transform: rotate(45deg);
}
2020-08-07 07:03:02 +02:00
.message {
text-align: center;
margin: 20px 0;
padding: 4px 8px;
border-radius: 4px;
color: var(--gray50);
background: var(--gray800);
}
@media only screen and (max-width: 576px) {
.error {
align-items: flex-start;
top: calc(100% + 7px);
left: 0;
}
.error:after {
left: 10px;
}
}