2018-03-21 17:44:27 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
#WRAPPER > div.dialog{
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: $menu-width;
|
|
|
|
width: $dialog-width;
|
|
|
|
height: 100%;
|
|
|
|
|
|
|
|
background-color: $dialog-bg;
|
|
|
|
|
2018-03-22 17:15:57 +00:00
|
|
|
/* (2) Container HEADER */
|
2018-03-21 17:44:27 +00:00
|
|
|
& > div.header{
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
2018-03-21 19:37:03 +00:00
|
|
|
width: calc( 100% - 2*1em );
|
|
|
|
height: calc( #{$header-height} - #{$header-height/2} );
|
2018-03-21 17:44:27 +00:00
|
|
|
|
|
|
|
border-bottom: #{$bb-height} solid darken($dialog-header-bg, 5%);
|
|
|
|
box-shadow: 0 #{$bb-offset - $bb-height} 0 darken($dialog-header-bg, 2%);
|
|
|
|
|
|
|
|
z-index: 200;
|
|
|
|
|
2018-03-21 19:37:03 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
padding: #{$header-height/4} 1em;
|
|
|
|
|
2018-03-22 17:15:57 +00:00
|
|
|
background: url('../asset/svg/arrow.down@hover.svg') right .7em center no-repeat;
|
|
|
|
background-size: auto 1.2em;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
2018-03-28 18:06:26 +00:00
|
|
|
&[data-open='1']{
|
|
|
|
background-image: url('../asset/svg/cross.svg');
|
|
|
|
}
|
|
|
|
|
2018-03-21 17:44:27 +00:00
|
|
|
}
|
|
|
|
|
2018-03-22 17:15:57 +00:00
|
|
|
/* (3) Container BODY */
|
2018-03-21 17:44:27 +00:00
|
|
|
& > div.body{
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: calc( #{$header-height} + #{$bb-offset} );
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: calc( 100% - #{$header-height} - #{$bb-offset} );
|
|
|
|
|
|
|
|
background-color: $dialog-bg;
|
|
|
|
|
2018-03-21 21:44:49 +00:00
|
|
|
color: #72767d;
|
|
|
|
|
2018-03-21 17:44:27 +00:00
|
|
|
z-index: 100;
|
2018-03-21 21:44:49 +00:00
|
|
|
|
|
|
|
// overflow: hidden;
|
|
|
|
|
|
|
|
/* (3) Toggle label */
|
|
|
|
& div.toggle{
|
2018-03-22 17:15:57 +00:00
|
|
|
display: inline-block;
|
|
|
|
width: calc( 100% - 2*.5em - 3em );
|
2018-03-21 21:44:49 +00:00
|
|
|
|
|
|
|
margin: 0 .5em;
|
|
|
|
margin-top: 2em;
|
|
|
|
padding-left: 1em;
|
|
|
|
|
|
|
|
background: left center no-repeat;
|
|
|
|
background-size: auto 60%;
|
|
|
|
|
|
|
|
color: #72767d;
|
|
|
|
font-size: .7em;
|
|
|
|
letter-spacing: .05em;
|
|
|
|
font-weight: bold;
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
|
|
transition: color .2s ease-in-out;
|
|
|
|
|
|
|
|
&:hover{ color: #b9bbbe; }
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
// when not toggle-active
|
|
|
|
&[data-toggle],
|
|
|
|
&[data-toggle='0']{
|
|
|
|
background-image: url('../asset/svg/arrow.right.svg');
|
|
|
|
&:hover{ background-image: url('../asset/svg/arrow.right@hover.svg'); }
|
|
|
|
}
|
|
|
|
|
|
|
|
// when toggle-active
|
|
|
|
&[data-toggle='1']{
|
|
|
|
background-image: url('../asset/svg/arrow.down.svg');
|
|
|
|
&:hover{ background-image: url('../asset/svg/arrow.down@hover.svg'); }
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-22 17:15:57 +00:00
|
|
|
/* (4) Add button */
|
|
|
|
& div.add{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
top: .15em;
|
|
|
|
left: -.5em;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
|
|
|
|
background: url('../asset/svg/dialog.add.svg') center center no-repeat;
|
|
|
|
background-size: auto 100%;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover{ background-image: url('../asset/svg/dialog.add@hover.svg'); }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* (5) UL after toggle label */
|
|
|
|
& div.toggle ~ ul,
|
|
|
|
& div.toggle:not([data-toggle='1']) ~ ul{
|
2018-03-21 21:44:49 +00:00
|
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
/* (5) List items */
|
|
|
|
li{
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
margin: .1em .5em;
|
|
|
|
padding: .3em .5em;
|
|
|
|
|
|
|
|
padding-left: 1.6em;
|
|
|
|
|
|
|
|
border-radius: 3px / 3px;
|
|
|
|
|
|
|
|
background-color: transition;
|
|
|
|
|
|
|
|
transition: color .2s ease-in-out,
|
|
|
|
background-color .2s ease-in-out;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
color: #ddd;
|
|
|
|
background-color: #36393f;
|
|
|
|
}
|
|
|
|
|
|
|
|
// {1} Trailing icon //
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
margin-left: -1.3em;
|
|
|
|
width: 1.3em;
|
|
|
|
height: 1.3em;
|
|
|
|
|
|
|
|
background: center center no-repeat;
|
|
|
|
background-size: auto 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
// for 'text'
|
2018-03-21 23:09:29 +00:00
|
|
|
&[data-type='text']{
|
|
|
|
&:before{ background-image: url('../asset/svg/dialog.text.svg'); }
|
|
|
|
&.active{
|
|
|
|
color: #ddd;
|
|
|
|
background-color: rgba(79,84,92,.6);
|
|
|
|
}
|
|
|
|
}
|
2018-03-21 21:44:49 +00:00
|
|
|
|
|
|
|
// for 'voice'
|
2018-03-21 23:09:29 +00:00
|
|
|
&[data-type='voice']{
|
|
|
|
&:before{ background-image: url('../asset/svg/dialog.voice.svg'); }
|
|
|
|
&.active{ color: #ddd; }
|
|
|
|
}
|
2018-03-21 21:44:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// when visible
|
2018-03-22 17:15:57 +00:00
|
|
|
& div.toggle[data-toggle='1'] ~ ul{ display: block; }
|
2018-03-21 21:44:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-21 17:44:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|