rem for everyone (replaced remaining px values)

This commit is contained in:
jean-emmanuel 2015-10-26 22:06:21 +01:00
parent f814b26568
commit cb4bde8cc8
2 changed files with 41 additions and 37 deletions

File diff suppressed because one or more lines are too long

View file

@ -64,10 +64,10 @@ a {
display: block;
}
$scrollbar-margin:1px;
$scrollbar-margin:1rem;
::-webkit-scrollbar {
width: 10px;
height:10px;
width: 10rem;
height:10rem;
opacity:1;
}
@ -148,7 +148,7 @@ body {
.btn {
background: $bg-3d;
display: block;
border:1px solid $color-border;
border:1rem solid $color-border;
padding:15rem;
}
a.btn {
@ -161,7 +161,7 @@ a.btn {
background: $color-bg;
@include layer();
z-index: 2;
border:1px solid $color-border;
border:1rem solid $color-border;
display: flex;
align-items: center;
justify-content: center;
@ -176,7 +176,7 @@ a.btn {
background: $bg-3d;
padding:20rem;
font-weight:bold;
box-shadow: 0 0 0 1px $color-border inset;
box-shadow: 0 0 0 1rem $color-border inset;
white-space: nowrap;
text-overflow: ellipsis;
}
@ -241,7 +241,7 @@ a.btn {
bottom:0;
margin-right:-$sidepanel-size;
background:$color-fg;
border-left:1px solid $color-border;
border-left:1rem solid $color-border;
//box-shadow: 0 0 10rem 0 $color-border;
transition:right .2s;
overflow-y: auto;
@ -314,8 +314,8 @@ a {
z-index:1;
font-size:14rem;
background: $color-bg;
border-bottom: 1px solid $color-border;
border-top: 1px solid $color-fg;
border-bottom: 1rem solid $color-border;
border-top: 1rem solid $color-fg;
height:$nav-height;
::first-letter {
text-transform: uppercase;
@ -333,17 +333,17 @@ a {
display: flex;
padding:7rem 6rem;
li.on + li {border-image:none;border-left:1px solid transparent;}
li.on + li {border-image:none;border-left:1rem solid transparent;}
li {
display:block;
max-width:250rem;
flex: 1;
border-width:0 0 0 1px;
border-width:0 0 0 1rem;
border-image: linear-gradient(transparentize($color-border,1), $color-border,transparentize($color-border,1)) 0 0 0 1 stretch;
&:first-child, &.on {
border-image:none;
border-left:1px solid transparent;
border-left:1rem solid transparent;
}
&:first-child {
border-left:0;
@ -356,7 +356,7 @@ a {
border-radius:3rem;
overflow:hidden;
text-align:center;
border:1px solid transparent;
border:1rem solid transparent;
position:relative;
span {
display:block;
@ -366,7 +366,7 @@ a {
color:$color-text-fade;
&.on {
background:$color-fg;
border:1px solid $color-border;
border:1rem solid $color-border;
color:$color-text;
&:before {
@ -376,7 +376,7 @@ a {
left:0;
right:0;
bottom:0;
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.06);
box-shadow: inset 0 1rem 1rem rgba(255, 255, 255, 0.06);
background:linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0))
}
&:after {
@ -481,7 +481,7 @@ a {
margin:0 auto;
position: relative;
overflow: hidden;
border:1px solid $color-border;
border:1rem solid $color-border;
.popup-content {
height:100%;
width:100%;
@ -508,14 +508,14 @@ form {
background:$color-bg;
font:inherit;
color:$color-text;
border:1px solid $color-border;
border:1rem solid $color-border;
width:100%;
padding:10rem;
&.invalid {
box-shadow: 0 0 0 1px rgba(red,.3)!important;
box-shadow: 0 0 0 1rem rgba(red,.3)!important;
}
&:focus {
box-shadow: 0 0 0 1px $color-accent;
box-shadow: 0 0 0 1rem $color-accent;
}
}
.submit {
@ -571,7 +571,7 @@ form {
border-width:6rem 0;
margin:0 3rem;
box-shadow: 0 0 0 1px $color-bg inset;
box-shadow: 0 0 0 1rem $color-bg inset;
background:$bg-3d;
background-clip:padding-box;
-webkit-tap-highlight-color:transparent;
@ -613,7 +613,7 @@ form {
display:block;
padding:10rem;
&:focus {
box-shadow:0 0 0 1px $color-accent inset!important;
box-shadow:0 0 0 1rem $color-accent inset!important;
}
&[disabled] {
color:$color-text-fade;
@ -645,7 +645,7 @@ form {
box-shadow:none;
> .label {
background:$bg-3d;
box-shadow: 0 0 0 1px $color-bg inset;
box-shadow: 0 0 0 1rem $color-bg inset;
}
.strip {
@ -762,7 +762,7 @@ form {
background-image: $bg-3d-hover;
}
// box-shadow: 0 0 0 1px $color-bg inset;
// box-shadow: 0 0 0 1rem $color-bg inset;
cursor: pointer;
}
@ -796,13 +796,13 @@ form {
display: flex;
flex-direction:column;
align-items: stretch;
padding: 1px;
padding: 1rem;
.value {
background:$bg-3d;
color:$color-text-fade;
width:100%;
position: relative;
border-top: 1px solid $color-fg;
border-top: 1rem solid $color-fg;
padding:12rem 12rem 12rem 24rem ;
white-space: normal;
text-align: left;
@ -860,12 +860,14 @@ form {
position: relative;
left:0rem;
right:0rem;
box-shadow: 0 0 1px 0 $color-border inset;
box-shadow: 0 0 1rem 0 $color-border inset;
}
}
.xy {
position:relative;
width:100%;
width:auto;
margin-left: 1rem;
margin-right:1rem;
padding-bottom: 90%;
overflow: hidden;
background: rgba($color-base,.5);
@ -897,7 +899,7 @@ form {
background:$color-accent;
border:none!important;
border-radius: 100%!important;
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2px 0 mix($color-text,$color-fg,2);
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2rem 0 mix($color-text,$color-fg,2);
}
&:after {
content:"";
@ -949,7 +951,9 @@ form {
}
}
.hue {
width:100%;
width:auto;
margin-left: 1rem;
margin-right:1rem;
height:30rem;
background:transparent linear-gradient(to left, #F00, #FF0080, #F0F, #8000FF, #00F, #0080FF, #0FF, #00FF80, #0F0, #80FF00, #FF0, #FF8000, #F00) repeat scroll 0% 0%;
overflow: hidden;
@ -1070,7 +1074,7 @@ form {
background:$color-accent;
border:none!important;
border-radius: 100%!important;
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2px 0 mix($color-text,$color-fg,2);
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2rem 0 mix($color-text,$color-fg,2);
}
&:after {
content:"";
@ -1094,7 +1098,7 @@ form {
.pip {
height:1%;
width:4rem;
border-bottom:1px solid $color-text;
border-bottom:1rem solid $color-text;
&.val {
width:10rem;
position: relative;
@ -1159,7 +1163,7 @@ form {
display: block;
height:4rem;
border-bottom:0;
border-right:1px solid $color-text-fade;
border-right:1rem solid $color-text-fade;
&.val {
width:1%;
float:left;
@ -1215,7 +1219,7 @@ form {
background:$color-accent;
border:none!important;
border-radius: 100%!important;
box-shadow: 0 0 0 3rem transparentize($color-accent,.8),0 0 2px 0 mix($color-text,$color-fg,2);
box-shadow: 0 0 0 3rem transparentize($color-accent,.8),0 0 2rem 0 mix($color-text,$color-fg,2);
}
}
@ -1268,7 +1272,7 @@ form {
bottom:18rem;
border-radius:100%;
background:$bg-3d-hover;
box-shadow: 0 0 0 1px $color-bg;
box-shadow: 0 0 0 1rem $color-bg;
}
.knob {
@ -1318,7 +1322,7 @@ form {
background:$color-accent;
border:none!important;
border-radius: 100%!important;
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2px 0 mix($color-text,$color-fg,2);
box-shadow: 0 0 0 6rem transparentize($color-accent,.8),0 0 2rem 0 mix($color-text,$color-fg,2);
}
&:after {
content:"";
@ -1362,7 +1366,7 @@ form {
flex-shrink: 0;
.led {
padding:10rem 1px 5rem;
padding:10rem 1rem 5rem;
div {
border-radius: 100%;
width: 60%;