diff --git a/CHANGELOG.md b/CHANGELOG.md index b0db340d..cc93a0e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ - sidepanel: layout glitches with iOS - misc - some little style fixes + - pixel perfect ui fixes + ## 0.17.5 - bug fixes diff --git a/src/browser/scss/_editor.scss b/src/browser/scss/_editor.scss index d9c5c620..0581f6e7 100644 --- a/src/browser/scss/_editor.scss +++ b/src/browser/scss/_editor.scss @@ -292,19 +292,19 @@ &:before { content:""; position: absolute; - top:0; - left:0; - right:1rem; - bottom:1rem; + top:1rem; + left:1rem; + right:0; + bottom:0; border:1rem dashed var(--color-accent); } &:after { content:""; position: absolute; - top:0; - left:0; - right:1rem; - bottom:1rem; + top:1rem; + left:1rem; + right:0; + bottom:0; background: var(--color-accent); opacity: .25; } diff --git a/src/browser/scss/_layout.scss b/src/browser/scss/_layout.scss index 74cc6698..f7eb0604 100644 --- a/src/browser/scss/_layout.scss +++ b/src/browser/scss/_layout.scss @@ -24,14 +24,15 @@ body { position: relative; background:var(--color-fg); padding:2rem; + margin-top:1rem; } .tab { position: absolute; overflow: auto; - left:0; - right:-1rem; // because widgets have a fake 1rem right-border - top:0; + left:-1rem; + right:0; + top:-1rem; bottom:0; background:var(--color-bg); transform: rotateZ(0); @@ -41,17 +42,15 @@ body { flex-direction: column; > .navigation { background:var(--color-bg); - margin-right:1rem; // because widgets have a fake 1rem right-border } > .content { background:none; - margin-right:1rem; // because widgets have a fake 1rem right-border } } .navigation { height:var(--nav-height); - margin-bottom: 2rem; + margin-bottom: 1rem; flex-shrink:0; font-weight:bold; text-transform: uppercase; diff --git a/src/browser/scss/_scrollbars.scss b/src/browser/scss/_scrollbars.scss index f912bb94..b6927108 100644 --- a/src/browser/scss/_scrollbars.scss +++ b/src/browser/scss/_scrollbars.scss @@ -51,25 +51,25 @@ &:vertical { &:decrement:start { border-left:2rem solid var(--color-bg); - border-bottom:2rem solid var(--color-bg); + border-bottom:1rem solid var(--color-bg); @include arrow(180) } &:increment:end { border-left:2rem solid var(--color-bg); - border-top:2rem solid var(--color-bg); + border-top:1rem solid var(--color-bg); @include arrow(0) } } &:horizontal { &:decrement:start { - border-right:2rem solid var(--color-bg); + border-right:1rem solid var(--color-bg); border-top:2rem solid var(--color-bg); @include arrow(90) } &:increment:end { - border-left:2rem solid var(--color-bg); + border-left:1rem solid var(--color-bg); border-top:2rem solid var(--color-bg); @include arrow(-90) } diff --git a/src/browser/scss/_widgets.scss b/src/browser/scss/_widgets.scss index 84d77dc9..c7dd0101 100644 --- a/src/browser/scss/_widgets.scss +++ b/src/browser/scss/_widgets.scss @@ -5,10 +5,10 @@ overflow: hidden; position:relative; vertical-align:top; - box-shadow: -0.5rem -0.5rem 0 0.5rem var(--color-bg), 0 1rem 0 0 var(--color-light) inset; + box-shadow: 0.5rem 0.5rem 0 0.5rem var(--color-bg), 0 1rem 0 0 var(--color-light) inset; color:var(--color-bg); - border-right:1rem solid var(--color-bg); - border-bottom:1rem solid var(--color-bg); + border-left:1rem solid var(--color-bg); + border-top:1rem solid var(--color-bg); -webkit-tap-highlight-color:transparent; min-height:30rem; min-width:30rem; diff --git a/src/browser/scss/widgets/_matrices.scss b/src/browser/scss/widgets/_matrices.scss index 8201d718..c7792307 100644 --- a/src/browser/scss/widgets/_matrices.scss +++ b/src/browser/scss/widgets/_matrices.scss @@ -16,8 +16,9 @@ display: flex; flex-wrap: wrap; flex-direction: row; - margin-right:-2rem; - margin-bottom: -1rem; + margin-left:-1rem; + margin-right:-1rem; + margin-top: -1rem; > .widget { min-height: 0; diff --git a/src/browser/scss/widgets/_panel.scss b/src/browser/scss/widgets/_panel.scss index f6c2e907..23def9cb 100644 --- a/src/browser/scss/widgets/_panel.scss +++ b/src/browser/scss/widgets/_panel.scss @@ -1,8 +1,5 @@ .panel-container-base { - &.nolabel > .panel { - top:0; - } > .label { border-bottom:1rem solid var(--color-bg); } @@ -10,12 +7,13 @@ .panel { overflow: auto; position: absolute; - top:30rem; + top:29rem; left:0; right:0; bottom:0; &.has-tabs { + top:30rem; display: flex; flex-direction: column; background: var(--color-bg); @@ -29,9 +27,18 @@ } } + } + &.nolabel { + > .panel { + top:-1rem; + } + > .panel.has-tabs { + top:0; + } + } .navigation { - border-top: 0; + // margin-top: 1rem; background: transparent; &:after { background: var(--color-bg); @@ -52,7 +59,7 @@ width: 200rem; height: 200rem; - border:0; + // border:0; background: var(--color-fg); @@ -63,8 +70,8 @@ bottom:0; right: 0; left: 0; - border-bottom: 1rem solid var(--color-bg); - border-right: 1rem solid var(--color-bg); + // border-bottom: 1rem solid var(--color-bg); + // border-right: 1rem solid var(--color-bg); pointer-events: none; z-index: 2; @@ -112,7 +119,8 @@ bottom:0; border-right:0; height: auto!important; - border-top:2rem solid var(--color-bg); + border-top:1rem solid var(--color-bg); + box-shadow: 0 1rem 0 0 var(--color-bg) inset; } } @@ -138,7 +146,7 @@ > .light:after { content:"\f00d"; transform: none; - width:calc(var(--nav-height) + 1rem); + width:calc(var(--nav-height)); height:var(--nav-height); line-height: var(--nav-height); background:var(--color-fg); diff --git a/src/browser/scss/widgets/_strip.scss b/src/browser/scss/widgets/_strip.scss index fd6564ec..4ff7a14a 100644 --- a/src/browser/scss/widgets/_strip.scss +++ b/src/browser/scss/widgets/_strip.scss @@ -4,19 +4,6 @@ width:100rem; height:100%; overflow: visible; - // background: var(--color-bg); - border:0; - - &:before { - content:""; - position: absolute; - top:0; - bottom:0; - right: 0; - left: 0; - pointer-events: none; - z-index: 2; - } > .strip { height: 100%; @@ -25,16 +12,12 @@ flex-direction: column; > .widget { width:auto; - margin:0; - // border-color: transparent; - &:not(:first-child) { - // box-shadow: none; - } .label { background-image: none; } } } + &.vertical { > .strip { align-items: center; @@ -42,7 +25,10 @@ > .strip > .widget { width: 100%; min-width: 100%; - max-width: 100%; + + margin-left:0; + border-left:0; + margin-left:0rem; // margin-right:1rem; // &:not(:first-child) > .label { // border-top:1rem solid var(--color-bg); @@ -69,8 +55,13 @@ flex-shrink: initial; width: 100%; min-height: 100%; - max-height: 100%; + margin-top:0; + border-top:0; + margin-left:0rem; height:100%; + &:last-child { + border-right:0; + } } } > .label { @@ -79,7 +70,7 @@ flex-shrink: 0; height:100%; border-bottom:0; - border-right:1rem solid var(--color-bg); + // border-right:1rem solid var(--color-bg); max-height: initial; span { transform: rotate(180deg);