using a mix of border and box shadow to get merging outlines and pixel perfect uis

This commit is contained in:
jean-emmanuel 2016-03-19 07:31:20 +01:00
parent c2eb3cef06
commit aa027ddbf2
5 changed files with 39 additions and 29 deletions

File diff suppressed because one or more lines are too long

View file

@ -6,22 +6,19 @@
position:relative;
padding:35rem 0 0;
vertical-align:top;
box-shadow: 0 0 0 1rem $color-bg;
box-shadow: -0.5rem -0.5rem 0 0.5rem $color-bg;
border-right:1rem solid $color-bg;
border-bottom:1rem solid $color-bg;
background:$color-fg;
background-clip:padding-box;
-webkit-tap-highlight-color:transparent;
min-height:30rem;
min-width:30rem;
&:not(:last-child):not(.absolute-position) {
margin-right:1rem//$gutter;
}
&.absolute-position {
position: absolute;
z-index: 10;
border:0;
}
&.nolabel {

View file

@ -18,6 +18,7 @@
display: block;
width:auto;
margin:0;
box-shadow: none;
}
}
&.vertical {
@ -25,6 +26,10 @@
border-bottom:0;
.strip > .widget {
max-width: 100%;
border-right:0;
&:last-child {
border-bottom:0;
}
}
}
&.horizontal {
@ -42,7 +47,10 @@
width: 100%;
min-height: 100%;
max-height: 100%;
border-bottom:0;
&:last-child {
border-right:0;
}
}
}
> .label {