phonograph/sass/condition-editor.scss

94 lines
1.6 KiB
SCSS
Raw Normal View History

2025-08-24 23:24:01 -07:00
@use 'sass:color';
@use 'globals';
.expression-editor {
&__container {
@include globals.rounded;
background: #eee;
display: flex;
}
&__sidebar {
display: grid;
grid-template:
'padding-top' 1fr
'operator-selector' max-content
'actions' minmax(max-content, 1fr);
}
&__main {
@include globals.rounded;
background: #fff;
border: globals.$default-border;
flex: 1;
padding: 0.5rem;
}
&__action-button {
padding: 0.5rem;
svg path {
fill: currentColor;
}
}
&__params {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
}
.expression-selector {
&__container {
grid-area: operator-selector;
}
&__expression-button {
@include globals.button-clear;
align-items: center;
display: flex;
justify-content: center;
height: 2.5rem;
padding: 0;
width: 2.5rem;
svg path {
fill: currentColor;
}
}
&__popover {
&:popover-open {
@include globals.rounded;
inset: unset;
2025-10-01 22:36:19 -07:00
top: anchor(bottom);
2025-08-24 23:24:01 -07:00
border: globals.$popover-border;
margin: 0;
margin-top: 0.25rem;
2025-10-01 22:36:19 -07:00
position: absolute;
2025-08-24 23:24:01 -07:00
display: flex;
flex-direction: column;
padding: 0;
background: #fff;
box-shadow: globals.$popover-shadow;
}
}
&__section {
align-items: center;
display: grid;
grid-template-columns: repeat(3, 1fr);
justify-content: center;
list-style-type: none;
margin: 1rem;
padding: 0;
}
&__li {
align-items: center;
display: flex;
justify-content: center;
}
}