iceshrimp/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 17:19:18 +09:00
//background: var(--panelHighlight);
}
}
}
._formLabel {
2021-04-11 21:09:35 +09:00
position: sticky;
top: var(--stickyTop, 0px);
background: var(--bg);
z-index: 2;
font-size: 80%;
2021-04-11 21:09:35 +09: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;
}
}