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

53 lines
1,002 B
SCSS
Raw Normal View History

._formPanel {
background: var(--panel);
border-radius: var(--radius);
2021-04-13 19:41:49 +03:00
transition: background 0.2s ease;
&._formClickable {
&:hover {
2020-12-20 10:19:18 +02:00
//background: var(--panelHighlight);
}
2021-04-13 19:41:49 +03:00
&:active {
background: var(--panelHighlight);
transition: background 0s;
}
}
}
2021-04-12 07:06:00 +03:00
._formLabel,
._formCaption {
font-size: 80%;
color: var(--fgTransparentWeak);
&:empty {
display: none;
}
}
._formLabel {
2021-04-11 15:09:35 +03:00
position: sticky;
top: var(--stickyTop, 0px);
z-index: 2;
margin: -8px calc(var(--formXPadding) * -1) 0 calc(var(--formXPadding) * -1);
padding: 8px calc(var(--formContentHMargin) + var(--formXPadding)) 8px calc(var(--formContentHMargin) + var(--formXPadding));
2021-04-11 15:09:35 +03:00
background: var(--X17);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
2021-04-12 07:06:00 +03:00
}
2021-04-12 07:06:00 +03:00
._themeChanging_ ._formLabel {
transition: none !important;
background: transparent;
}
._formCaption {
padding: 8px var(--formContentHMargin) 0 var(--formContentHMargin);
}
._formItem {
& + ._formItem {
margin-top: 24px;
}
}