2018-03-01 12:16:22 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
#HEADER{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: calc( #{$header-height} - 1px );
|
|
|
|
|
|
|
|
background-color: $header-bg;
|
|
|
|
border-bottom: 1px solid #e3e7eb;
|
|
|
|
|
|
|
|
// flex properties
|
2018-03-13 18:23:22 +00:00
|
|
|
flex-direction: row;
|
2018-03-12 18:50:56 +00:00
|
|
|
justify-content: space-between;
|
2018-03-13 18:23:22 +00:00
|
|
|
align-items: center;
|
2018-03-01 12:16:22 +00:00
|
|
|
|
|
|
|
z-index: 150;
|
2018-03-12 18:50:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* (1) Version management */
|
|
|
|
& > div.versions{
|
|
|
|
|
|
|
|
/* (1.1) Version status */
|
|
|
|
& > div.current{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
margin-left: 1em;
|
|
|
|
|
|
|
|
padding: .5em 1em;
|
|
|
|
|
|
|
|
padding-left: 2em;
|
|
|
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-radius: 3px;
|
|
|
|
box-shadow: 0 2px 2px #fff;
|
|
|
|
|
|
|
|
transition: box-shadow .2s ease-in-out;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
// hover animation
|
|
|
|
&:hover{ box-shadow: 0 2px 2px darken(#fff,10%); }
|
|
|
|
|
|
|
|
// color state
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: calc( 50% - .7em/2 );
|
|
|
|
left: calc( 1em/2 + .7em/2 );
|
|
|
|
width: .7em;
|
|
|
|
height: .7em;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
background-color: $form-invalid-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-id='0']:before{
|
|
|
|
background-color: $form-valid-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (1.2) Version dialog (to switch to another) */
|
|
|
|
& > div.version-dialog{
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: #{$header-height + .5em};
|
|
|
|
left: 1em;
|
|
|
|
|
|
|
|
// padding: 1em .5em;
|
|
|
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
box-shadow: 0 2px 2px #ddd;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
/* (1.2.1) version items */
|
|
|
|
& > span{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
padding: .5em 1em;
|
|
|
|
padding-left: 2em;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
transition: background-color .2s ease-in-out;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
// hover animation
|
|
|
|
&:hover{ background-color: darken(#fff, 5%); }
|
|
|
|
|
|
|
|
// color state
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: calc( 50% - .7em/2 );
|
|
|
|
left: calc( 1em/2 + .7em/2 );
|
|
|
|
width: .7em;
|
|
|
|
height: .7em;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
background-color: $form-invalid-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-id='0']:before{
|
|
|
|
background-color: $form-valid-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
}
|