ui: style changes:

- simpler push & toggle differenciation
- ui buttons/tabs on/off state made obvious
- widgets' editing layer more symbolic
- pixel (closer to) perfect tab container
- disabled alt menu bar
This commit is contained in:
jean-emmanuel 2016-09-27 15:46:59 +02:00
parent a3c07b8b48
commit 156407c5f7
8 changed files with 51 additions and 62 deletions

View file

@ -102,7 +102,7 @@
.widget.editing {
z-index: 11!important;
overflow: visible;
overflow: hidden;
}
.widget.editing:after, li.editing a:before, a.editing:before, .content.editing:before, #container.editing:before{
content:"";
@ -112,7 +112,7 @@
left:0;
right:0;
bottom:0;
border:1rem dashed var(--color-accent);
border:1rem solid var(--color-accent);
pointer-events: none;
}
.widget.editing:after {
@ -179,10 +179,8 @@
justify-content: center;
align-items: center;
background: var(--color-accent);
width:20rem;
height:20rem;
border-radius:100%;
box-shadow: 0 0 4rem 0 var(--color-bg);
width:10rem;
height:10rem;
&:after {
content:"";
@ -194,35 +192,22 @@
}
&.ui-resizable-se {
content:"";
bottom: 5rem;
right: 5rem;
bottom: 0;
right: 0;
cursor: se-resize;
&:before {
content:"\f065";
font-family: FontAwesome;
transform:rotate(90deg)
}
}
&.ui-resizable-e {
top: 50%;
margin-top:-10rem;
right: 5rem;
margin-top:-5rem;
right: 0;
cursor: e-resize;
&:before {
content:"\f051";
font-family: FontAwesome;
}
}
&.ui-resizable-s {
bottom: 5rem;
bottom: 0;
left: 50%;
margin-left:-10rem;
margin-left:-5rem;
cursor: s-resize;
&:before {
content:"\f051";
font-family: FontAwesome;
transform: rotate(90deg);
}
}
}
@ -244,24 +229,23 @@
.ui-draggable-handle:not(.label) {
position: absolute;
top: 5rem;
left: 5rem;
top: 0;
left: 0;
z-index: 100000;
height:20rem;
width: 20rem;
height:10rem;
width: 10rem;
display: flex;
justify-content: center;
align-items: center;
border-radius:100%;
background: var(--color-accent);
box-shadow: 0 0 4rem 0 var(--color-bg);
&:before {
content:"\f0b2";
font-family: FontAwesome;
transform: rotate(45deg);
&:after {
content:"";
position: absolute;
top:-5rem;
right:-5rem;
left:-5rem;
bottom:-5rem;
}
}
.ui-draggable-handle {

View file

@ -30,7 +30,7 @@ body {
position: absolute;
overflow: auto;
left:0;
right:0;
right:-1rem; // because widgets have a fake 1rem right-border
top:0;
bottom:0;
background:var(--color-bg);
@ -105,17 +105,17 @@ body {
bottom:0;
left:0;
right:0;
height:1rem;
top:0;
opacity: 0;
transition: all .2s;
transform: scale(0);
transition: opacity .2s;
z-index: -1;
}
&.on a, .sidepanel-open {
position: relative;
background: var(--color-raised);
z-index: 0;
&:after {
opacity:1;
transform: scale(1);
opacity:0.3;
}
}
}

View file

@ -1,7 +1,7 @@
::-webkit-scrollbar {
width: 20rem;
height:20rem;
width: var(--scrollbar-size);
height:var(--scrollbar-size);
opacity:1;
}
@ -33,8 +33,8 @@
::-webkit-scrollbar-button:decrement:start, ::-webkit-scrollbar-button:increment:end {
background:var(--color-fg);
height:20rem;
width: 20rem;
height:var(--scrollbar-size);
width: var(--scrollbar-size);
display: block;

View file

@ -76,6 +76,9 @@
border-left:8rem solid var(--color-fg);
}
}
&::-webkit-scrollbar-button {
display: none;
}
}
.actions {
padding:1rem;
@ -112,10 +115,10 @@
overflow: visible;
&.on {
z-index: 0;
pointer-events: none;
&:after {
opacity:1;
transform: scale(1);
opacity:.3;
}
}
&:before {
@ -135,10 +138,10 @@
top:0;
left:0;
right:0;
height:1rem;
bottom:0;
opacity: 0;
transition: all .2s;
transform: scale(0);
transition: opacity .2s;
z-index: -1;
}
}
}

View file

@ -17,6 +17,7 @@
--nav-height:40rem;
--sidepanel-size:300rem;
--scrollbar-size:20rem;
--pixel-scale:1;

View file

@ -3,13 +3,7 @@
.active {
background: var(--color-fg);
}
.light:after {
content:"";
position: absolute;
width:100%;
height:100%;
box-shadow: 0 0 0 4rem var(--color-text-fade) inset;
opacity: .1;
.light:after{
display: none;
}
}

View file

@ -28,6 +28,13 @@
box-shadow: 0 0 1rem 0 var(--color-text-fade) inset;
flex:1;
&:after {
content:"";
border-top: 4rem solid var(--color-text-fade);
opacity: .1;
display: block;
}
&:before {
content:"";
width: 100%;

View file

@ -7,7 +7,7 @@ module.exports = function(settings,app,ipc,browserWindow) {
icon: path.resolve(__dirname + '/../resources/images/logo.png'),
title:settings.read('appName'),
backgroundColor:'#1a1d22',
autoHideMenuBar:true,
// autoHideMenuBar:true,
// show:false
})