sideleft: conversions: style adjustments

This commit is contained in:
end-4 2025-03-29 13:22:47 +01:00
parent 4f5d4f802e
commit e5ff109bef
3 changed files with 6 additions and 6 deletions

View file

@ -20,8 +20,8 @@ const conversions = [
forcePrecision: true,
},
{
unit1: 'degrees',
unit2: 'radians',
unit1: 'deg',
unit2: 'rad',
unit1Default: 90,
formula1to2: '{{x}} * Math.PI / 180',
formula2to1: '{{x}} * 180 / Math.PI',
@ -63,13 +63,13 @@ export default () => {
const ValueBox = ({ unit, initValue = 0, updateCallback }) => {
const unitName = Label({
xalign: 0,
className: 'txt txt-smallie',
className: 'txt txt-smallie txt-semibold margin-top-2 margin-left-2',
label: `${unit}`,
});
const entry = Entry({
hexpand: 'true',
widthChars: 10,
className: 'txt-small techfont',
className: 'txt-small techfont margin-left-2',
text: `${initValue}`,
onChange: updateCallback,
});

View file

@ -403,7 +403,7 @@
@include button-minsize;
}
@each $spacing in (5, 8, 10, 15, 20) {
@each $spacing in (2, 5, 8, 10, 15, 20) {
@each $dir in ("top", "bottom", "left", "right") {
.margin-#{$dir}-#{$spacing} {
margin-#{$dir}: 0.068rem * $spacing;

View file

@ -512,7 +512,7 @@ $colorpicker_rounding: 0.341rem;
.sidebar-module-csscalc-valuebox {
@include small-rounding;
padding: 0.341rem;
padding: 0.477rem;
background-color: $layer2;
color: $onLayer2;
}