Sharkey/src/client/components/form/form.scss

45 lines
763 B
SCSS
Raw Normal View History

._formPanel {
background: var(--panel);
border-radius: var(--radius);
&._formClickable {
&:hover {
2020-12-20 10:19:18 +02:00
//background: var(--panelHighlight);
}
}
}
._formLabel {
2021-04-11 15:09:35 +03:00
position: sticky;
top: var(--stickyTop, 0px);
background: var(--bg);
z-index: 2;
font-size: 80%;
2021-04-11 15:09:35 +03:00
margin: -8px calc(var(--formXPadding) * -1) 0 calc(var(--formXPadding) * -1);
padding: 8px calc(16px + var(--formXPadding)) 8px calc(16px + var(--formXPadding));
color: var(--fgTransparentWeak);
background: var(--X17);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
&:empty {
display: none;
}
}
._formCaption {
font-size: 80%;
padding: 8px 16px 0 16px;
opacity: 0.8;
&:empty {
display: none;
}
}
._formItem {
& + ._formItem {
margin-top: 24px;
}
}