ui: pixel perfect: get rid of the 1px error near scrollbars, yay
This commit is contained in:
parent
b8a458dfc5
commit
614c8752a5
8 changed files with 55 additions and 54 deletions
|
|
@ -11,6 +11,8 @@
|
|||
- sidepanel: layout glitches with iOS
|
||||
- misc
|
||||
- some little style fixes
|
||||
- pixel perfect ui fixes
|
||||
|
||||
## 0.17.5
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue