2018-03-01 12:16:22 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
#HEADER{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
2018-03-16 14:25:05 +00:00
|
|
|
height: calc( #{$header-height-noratio} - 1px );
|
2018-03-01 12:16:22 +00:00
|
|
|
|
|
|
|
background-color: $header-bg;
|
|
|
|
border-bottom: 1px solid #e3e7eb;
|
|
|
|
|
|
|
|
// flex properties
|
2018-03-13 18:23:22 +00:00
|
|
|
flex-direction: row;
|
2018-03-15 16:38:06 +00:00
|
|
|
justify-content: flex-start;
|
2018-03-13 18:23:22 +00:00
|
|
|
align-items: center;
|
2018-03-01 12:16:22 +00:00
|
|
|
|
2018-03-16 14:25:05 +00:00
|
|
|
font-size: #{$header-font-size-ratio}em;
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
z-index: 150;
|
2018-03-12 18:50:56 +00:00
|
|
|
|
|
|
|
|
2018-05-12 14:42:46 +00:00
|
|
|
/* (1) left-side managers */
|
2018-03-15 16:38:06 +00:00
|
|
|
& > div.departments,
|
2018-05-12 14:42:46 +00:00
|
|
|
& > div.versions,
|
|
|
|
& > div.global-export{
|
2018-03-12 18:50:56 +00:00
|
|
|
|
2018-05-12 14:42:46 +00:00
|
|
|
/* (1.1) Current status */
|
2018-03-12 18:50:56 +00:00
|
|
|
& > div.current{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
margin-left: 1em;
|
|
|
|
|
|
|
|
padding: .5em 1em;
|
2018-05-12 14:17:27 +00:00
|
|
|
padding-left: .7em;
|
2018-03-12 18:50:56 +00:00
|
|
|
|
|
|
|
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%); }
|
|
|
|
|
2018-05-12 14:42:46 +00:00
|
|
|
// current: EXPORT / CREATE / EDIT / REMOVE icons
|
|
|
|
span.export,
|
2018-05-12 14:17:27 +00:00
|
|
|
span.create,
|
2018-05-09 15:43:34 +00:00
|
|
|
span.edit,
|
|
|
|
span.remove{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: .2em;
|
2018-05-12 14:17:27 +00:00
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
2018-05-09 15:43:34 +00:00
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
background: center center no-repeat;
|
|
|
|
background-size: 80% auto;
|
|
|
|
|
2018-05-12 14:42:46 +00:00
|
|
|
&.export{
|
|
|
|
background-image: url('/asset/svg/fiche.svg@b8c0c8');
|
|
|
|
background-size: 100% auto;
|
|
|
|
&:hover{
|
|
|
|
background-image: url('/asset/svg/fiche.svg@#{$rd-form-invalid-color}');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-12 14:17:27 +00:00
|
|
|
&.create{
|
|
|
|
background-image: url('/asset/svg/plus.svg@b8c0c8');
|
|
|
|
&:hover{
|
|
|
|
background-image: url('/asset/svg/plus.svg@#{$rd-form-valid-color}');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-09 15:43:34 +00:00
|
|
|
&.edit{
|
|
|
|
background-image: url('/asset/svg/a.svg@b8c0c8');
|
|
|
|
&:hover{
|
|
|
|
background-image: url('/asset/svg/a.svg@#{$rd-form-search-color}');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.remove{
|
|
|
|
background-image: url('/asset/svg/cross.svg@b8c0c8');
|
|
|
|
&:hover{
|
|
|
|
background-image: url('/asset/svg/cross.svg@#{$rd-form-invalid-color}');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child{
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
|
|
|
}
|
2018-05-12 14:42:46 +00:00
|
|
|
|
|
|
|
&:hover > span.export{
|
|
|
|
background-image: url('/asset/svg/fiche.svg@#{$rd-form-invalid-color}');
|
|
|
|
}
|
2018-05-09 15:43:34 +00:00
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
// editable input
|
|
|
|
& > input[type='text']{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 10em;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
// background-color: #f00;
|
|
|
|
|
|
|
|
font-size: inherit;
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-12 18:50:56 +00:00
|
|
|
/* (1.2) Version dialog (to switch to another) */
|
2018-03-15 16:38:06 +00:00
|
|
|
& > div.department-dialog,
|
2018-03-12 18:50:56 +00:00
|
|
|
& > div.version-dialog{
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2018-03-15 16:38:06 +00:00
|
|
|
margin-top: 0;
|
|
|
|
margin-left: 0;
|
|
|
|
|
|
|
|
&.department-dialog{ margin-left: 1em; }
|
2018-03-12 18:50:56 +00:00
|
|
|
|
|
|
|
// padding: 1em .5em;
|
|
|
|
|
|
|
|
border: 1px solid #ddd;
|
2018-03-15 16:38:06 +00:00
|
|
|
border-top: 0;
|
|
|
|
border-radius: 0 0 3px 3px;
|
2018-03-12 18:50:56 +00:00
|
|
|
|
2018-05-09 15:43:34 +00:00
|
|
|
&>:first-child{ border-top: 1px solid #ddd; }
|
|
|
|
|
2018-03-12 18:50:56 +00:00
|
|
|
background-color: #fff;
|
|
|
|
|
2018-03-15 16:38:06 +00:00
|
|
|
// box-shadow: 0 2px 2px #ddd;
|
2018-03-12 18:50:56 +00:00
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
/* (1.2.1) version items */
|
|
|
|
& > span{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
padding: .5em 1em;
|
2018-05-09 15:43:34 +00:00
|
|
|
padding-left: 2em;
|
2018-03-12 18:50:56 +00:00
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
transition: background-color .2s ease-in-out;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
// hover animation
|
|
|
|
&:hover{ background-color: darken(#fff, 5%); }
|
|
|
|
|
2018-05-09 15:43:34 +00:00
|
|
|
// switch+create icons
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: calc( 50% - 1em/2 );
|
|
|
|
left: calc( .5em/2 + 1em/2 );
|
2018-05-09 13:57:47 +00:00
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
|
2018-05-09 15:43:34 +00:00
|
|
|
background: url('/asset/svg/switch.svg@#{$rd-form-primary-color}') center center no-repeat;
|
|
|
|
background-size: auto 80%;
|
2018-03-12 18:50:56 +00:00
|
|
|
}
|
|
|
|
|
2018-05-09 15:43:34 +00:00
|
|
|
// create icon specifications
|
|
|
|
&[data-id='-1']{
|
2018-05-09 13:57:47 +00:00
|
|
|
|
2018-05-09 15:43:34 +00:00
|
|
|
&:before{
|
|
|
|
background-image: url('/asset/svg/plus.svg@#{$rd-form-valid-color}');
|
|
|
|
background-size: auto 60%;
|
|
|
|
}
|
2018-05-09 13:57:47 +00:00
|
|
|
|
2018-03-12 18:50:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-05-12 14:42:46 +00:00
|
|
|
/* (2) Department | Version | Export layout */
|
2018-03-15 16:38:06 +00:00
|
|
|
& > div.departments > div.current{
|
|
|
|
margin-right: 0;
|
|
|
|
padding-left: 1em;
|
|
|
|
border-radius: 3px 0 0 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > div.versions > div.current{
|
2018-05-12 14:42:46 +00:00
|
|
|
margin-left: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
& > div.global-export > div.current{
|
2018-03-15 16:38:06 +00:00
|
|
|
margin-left: 0;
|
|
|
|
border-radius: 0 3px 3px 0;
|
|
|
|
border-left: 0;
|
|
|
|
}
|
|
|
|
|
2018-03-12 18:50:56 +00:00
|
|
|
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
}
|