2018-02-28 12:00:51 +00:00
|
|
|
@import 'constants';
|
|
|
|
|
|
|
|
|
|
|
|
#CONTAINER{
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2018-03-01 12:16:22 +00:00
|
|
|
top: $header-height;
|
|
|
|
left: $menu-width;
|
2018-03-04 16:23:35 +00:00
|
|
|
height: calc( 100% - #{$header-height} );
|
2018-03-01 12:16:22 +00:00
|
|
|
width: calc( 100% - #{$menu-width} );
|
|
|
|
|
2018-02-28 12:00:51 +00:00
|
|
|
|
|
|
|
background-color: $bg-color;
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
overflow: hidden;
|
2018-03-04 16:23:35 +00:00
|
|
|
overflow-y: auto;
|
2018-03-01 12:16:22 +00:00
|
|
|
|
|
|
|
z-index: 100;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* [1] List style
|
|
|
|
---------------------------------*/
|
2018-03-04 16:23:35 +00:00
|
|
|
#CONTAINER > div.list{
|
2018-03-01 12:16:22 +00:00
|
|
|
display: flex;
|
|
|
|
|
|
|
|
// flex properties
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
|
|
|
& > *:first-child{ margin-top: 1em; }
|
|
|
|
& > *:last-child{ margin-bottom: 3em; }
|
|
|
|
|
|
|
|
/* (1) List element */
|
|
|
|
& > section{
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
margin: .3em 1em;
|
|
|
|
padding: .8em 1em;
|
|
|
|
|
|
|
|
border-radius: 5px / 5px;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (2) List title */
|
|
|
|
& > h1{
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
margin: 0 1.2em;
|
|
|
|
margin-top: .8em;
|
|
|
|
|
|
|
|
font-size: inherit;
|
|
|
|
color: darken($secondary-color, 5%);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (3) List separator */
|
|
|
|
& > hr{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
margin: 1em 1.5em;
|
|
|
|
|
|
|
|
border: 0;
|
|
|
|
border-bottom: 2px solid darken($bg-color, 5%);
|
|
|
|
}
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* [3] Card style -> container
|
|
|
|
---------------------------------*/
|
|
|
|
#CONTAINER > div.card.container{
|
2018-03-03 18:37:38 +00:00
|
|
|
|
|
|
|
display: flex;
|
2018-03-04 16:23:35 +00:00
|
|
|
position: absolute;
|
2018-03-07 17:49:28 +00:00
|
|
|
top: 0;
|
2018-03-04 16:23:35 +00:00
|
|
|
left: 0;
|
|
|
|
width: calc( 100% - 20em );
|
2018-03-07 17:49:28 +00:00
|
|
|
min-height: 100%;
|
2018-03-03 18:37:38 +00:00
|
|
|
|
|
|
|
// flex properties
|
2018-03-03 21:18:36 +00:00
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: flex-start;
|
2018-03-07 18:06:21 +00:00
|
|
|
align-content: flex-start;
|
2018-03-03 21:18:36 +00:00
|
|
|
flex-wrap: wrap;
|
2018-03-03 18:37:38 +00:00
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
z-index: 101;
|
|
|
|
overflow: hidden;
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
|
2018-03-07 17:49:28 +00:00
|
|
|
/* [3.1] Card style -> instant-search
|
|
|
|
---------------------------------*/
|
|
|
|
& > input.instant-search{
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
// - marg - padd - [NEW] - separ
|
|
|
|
flex: 0 1 calc( 100% - 2*1em - 2*.5em - 2em - 2*1em );
|
|
|
|
|
|
|
|
margin: 1em .5em;
|
|
|
|
padding: .5em 1em;
|
|
|
|
|
2018-03-07 18:00:21 +00:00
|
|
|
margin-right: 0;
|
|
|
|
|
2018-03-07 17:49:28 +00:00
|
|
|
border-radius: 3px / 3px;
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
box-shadow: 0 2px 2px darken(#fff, 10%);
|
|
|
|
|
|
|
|
& + button.card.toggle{
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
2018-03-07 18:00:21 +00:00
|
|
|
flex: 0 0 calc( 2em - 2*.5em );
|
2018-03-07 17:49:28 +00:00
|
|
|
|
|
|
|
margin: 1em .5em;
|
2018-03-07 18:00:21 +00:00
|
|
|
margin-left: 0;
|
|
|
|
|
2018-03-07 17:49:28 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
/* (1) Card container */
|
|
|
|
& > section{
|
|
|
|
|
2018-03-07 17:49:28 +00:00
|
|
|
flex: 1 1 0;
|
2018-03-03 21:18:36 +00:00
|
|
|
|
2018-03-06 15:05:29 +00:00
|
|
|
display: flex;
|
2018-03-03 18:37:38 +00:00
|
|
|
position: relative;
|
|
|
|
|
2018-03-03 21:30:26 +00:00
|
|
|
margin: 1em .5em;
|
2018-03-03 18:37:38 +00:00
|
|
|
padding: 1.5em;
|
|
|
|
|
|
|
|
border-radius: 3px / 3px;
|
2018-03-07 17:49:28 +00:00
|
|
|
border: 1px solid transparent;
|
2018-03-03 18:37:38 +00:00
|
|
|
box-shadow: 0 1px 1px darken(#fff, 20%);
|
|
|
|
|
2018-03-07 12:13:31 +00:00
|
|
|
box-shadow: 0 1px 1px darken(#fff, 20%);
|
|
|
|
&.invalid{ box-shadow: 0; border: 1px solid $form-invalid-color; }
|
|
|
|
&.valid{ box-shadow: 0; border: 1px solid $form-valid-color; }
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
color: $primary-color;
|
|
|
|
|
2018-03-06 15:05:29 +00:00
|
|
|
// flex
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
2018-03-06 15:34:30 +00:00
|
|
|
|
|
|
|
&[data-create]{
|
|
|
|
border: 1px solid $form-valid-color;
|
|
|
|
}
|
|
|
|
|
2018-03-04 17:15:48 +00:00
|
|
|
// hidden mode
|
2018-03-05 17:20:40 +00:00
|
|
|
&.search-hidden,
|
|
|
|
&.filter-hidden{ display: none; }
|
2018-03-04 17:15:48 +00:00
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
|
2018-03-07 13:34:44 +00:00
|
|
|
/* (2) REMOVE+EDIT+ADMIN button */
|
2018-03-07 11:12:50 +00:00
|
|
|
& > div.remove[data-remove],
|
2018-03-07 13:34:44 +00:00
|
|
|
& > div.edit[data-edit],
|
|
|
|
& > div.admin[data-admin]{
|
2018-03-07 11:12:50 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 1.3em;
|
|
|
|
left: calc( 100% - 2em );
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
|
|
|
|
background: url('/asset/svg/remove.svg@bbbbbb') center center no-repeat;
|
|
|
|
background-size: auto 100%;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
background-image: url('/asset/svg/remove.svg@#{$rd-form-invalid-color}');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-07 13:34:44 +00:00
|
|
|
/* (2.1) EDIT button */
|
2018-03-07 11:12:50 +00:00
|
|
|
& > div.edit[data-edit]{
|
|
|
|
left: calc( 100% - 2em - 1.3em );
|
|
|
|
|
|
|
|
background-image: url('/asset/svg/td.svg@bbbbbb');
|
|
|
|
background-size: 80% auto;
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
background-image: url('/asset/svg/td.svg@#{$rd-form-search-color}');
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-07 13:34:44 +00:00
|
|
|
/* (2.2) ADMIN switch */
|
|
|
|
& > div.admin[data-admin]{
|
|
|
|
left: calc( 100% - 2em - 1.3em - 1.3em );
|
|
|
|
|
|
|
|
background-image: url('/asset/svg/admin.svg@bbbbbb');
|
|
|
|
background-size: 85% auto;
|
|
|
|
|
|
|
|
&:hover{ background-image: url('/asset/svg/admin.svg@bbbbbb'); }
|
|
|
|
|
|
|
|
&[data-active='1']{ background-image: url('/asset/svg/admin.svg@f4bd18'); }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (4) Card generic title */
|
2018-03-06 15:05:29 +00:00
|
|
|
& > span.category,
|
|
|
|
& > select.category{
|
2018-03-03 18:37:38 +00:00
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
2018-03-07 13:34:44 +00:00
|
|
|
width: calc( 100% - 5em );
|
2018-03-03 18:37:38 +00:00
|
|
|
|
|
|
|
margin-bottom: .5em;
|
|
|
|
|
|
|
|
font-size: .7em;
|
|
|
|
color: darken($secondary-color, 10%);
|
|
|
|
text-transform: uppercase;
|
|
|
|
letter-spacing: .05em;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (4-edit) Card generic title (select) */
|
2018-03-06 15:05:29 +00:00
|
|
|
& > select.category{
|
|
|
|
|
2018-03-07 13:34:44 +00:00
|
|
|
width: calc( 100% + 1em );
|
2018-03-06 15:05:29 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
margin-left: -.4em; // emulate no <select>
|
2018-03-07 17:49:28 +00:00
|
|
|
margin-top: -1em; // replace as if not a select
|
|
|
|
margin-bottom: -.3em; // fix layout for following elements
|
2018-03-06 15:05:29 +00:00
|
|
|
|
|
|
|
// remove border
|
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
// remove arrow
|
|
|
|
appearance: none;
|
|
|
|
-moz-appearance: none; /* Firefox */
|
|
|
|
-webkit-appearance: none; /* Safari and Chrome */
|
|
|
|
|
|
|
|
background: transparent url('/asset/svg/down_arrow.svg@bbbbbb') right .5em center no-repeat;
|
|
|
|
background-size: auto 80%;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (5) Card title */
|
2018-03-03 18:37:38 +00:00
|
|
|
& > h1{
|
|
|
|
|
2018-03-06 15:05:29 +00:00
|
|
|
display: flex;
|
2018-03-03 18:37:38 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
color: darken($primary-color, 5%);
|
|
|
|
font-size: 1em;
|
|
|
|
|
2018-03-06 15:05:29 +00:00
|
|
|
// flex
|
2018-03-07 18:00:21 +00:00
|
|
|
flex-direction: row;
|
2018-03-06 15:05:29 +00:00
|
|
|
justify-content: flex-start;
|
2018-03-07 18:00:21 +00:00
|
|
|
flex-wrap: nowrap;
|
2018-03-06 15:05:29 +00:00
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
&.warning:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 1em;
|
|
|
|
height: 1em;
|
|
|
|
|
|
|
|
margin-right: .3em;
|
|
|
|
|
|
|
|
background: url('/asset/svg/warning_radio.svg@#{$rd-form-invalid-color}') center bottom no-repeat;
|
|
|
|
background-size: auto 90%;
|
|
|
|
|
|
|
|
text-anchor: center;
|
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (5-edit) Card title -> edit inputs */
|
2018-03-07 13:34:44 +00:00
|
|
|
& input{
|
2018-03-06 15:05:29 +00:00
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
width: 10em;
|
|
|
|
flex-shrink: 1;
|
|
|
|
flex-grow: 1;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
border-radius: 0;
|
|
|
|
border: 0;
|
|
|
|
|
|
|
|
color: darken($primary-color, 5%);
|
|
|
|
font-size: 1em;
|
|
|
|
font-weight: bold;
|
2018-03-06 15:22:07 +00:00
|
|
|
|
|
|
|
background: transparent;
|
2018-03-06 15:05:29 +00:00
|
|
|
}
|
|
|
|
|
2018-03-07 13:34:44 +00:00
|
|
|
/* (5.1) Sub-content */
|
|
|
|
& > span[data-visible]{
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
color: $secondary-color;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
margin-left: .5em;
|
|
|
|
|
|
|
|
transform: scale(.9);
|
|
|
|
|
2018-03-07 18:00:21 +00:00
|
|
|
white-space: nowrap;
|
2018-03-07 13:34:44 +00:00
|
|
|
|
|
|
|
&[data-visible='0']{ display: none; }
|
|
|
|
|
|
|
|
/* (5.1-edit) input*/
|
|
|
|
& > input{
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (6) Card 2-column array */
|
2018-03-03 18:37:38 +00:00
|
|
|
& > div.table{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
margin-top: 1em;
|
|
|
|
padding: .5em;
|
|
|
|
|
|
|
|
border-radius: 3px / 3px;
|
|
|
|
border: 1px solid darken(#fff, 15%);
|
|
|
|
|
|
|
|
// flex properties
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-around;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (6.1) Column */
|
2018-03-03 18:37:38 +00:00
|
|
|
& > div{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
height: 2.3em;
|
|
|
|
|
|
|
|
padding: 0 .4em;
|
|
|
|
|
|
|
|
border-left: 1px solid darken(#fff, 15%);
|
|
|
|
|
|
|
|
color: darken($secondary-color, 20%);
|
|
|
|
|
|
|
|
&:first-child{ border-left: 0; }
|
|
|
|
|
|
|
|
// flex properties
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (6.1.1) Column Emphasis */
|
2018-03-06 15:05:29 +00:00
|
|
|
& > span,
|
2018-03-03 18:37:38 +00:00
|
|
|
& > span:first-child{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
margin-right: .3em;
|
|
|
|
|
|
|
|
font-size: 1.5em;
|
|
|
|
letter-spacing: .05em;
|
2018-03-06 15:05:29 +00:00
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (6.1.1-edit) Editable text entry */
|
2018-03-06 15:05:29 +00:00
|
|
|
& > input{
|
|
|
|
display: inline-block;
|
|
|
|
width: 2em;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
font-size: .9em;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
border-radius: 0;
|
|
|
|
border: 0;
|
|
|
|
}
|
2018-03-03 18:37:38 +00:00
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (6.2) Column Emphasis */
|
2018-03-03 18:37:38 +00:00
|
|
|
& > span:last-child{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
min-width: 4em;
|
|
|
|
max-width: 6em;
|
|
|
|
|
|
|
|
font-size: .8em;
|
|
|
|
letter-spacing: .05em;
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2018-03-06 15:05:29 +00:00
|
|
|
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (7) Card footer */
|
2018-03-03 18:37:38 +00:00
|
|
|
& > div.footer{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
margin-top: 1.3em;
|
|
|
|
margin-left: -1.5em;
|
|
|
|
height: 3.5em;
|
|
|
|
// 100% + parent.margin - padding
|
|
|
|
width: calc( 100% + 2*1.5em - 2*2em );
|
|
|
|
|
|
|
|
// remove card bottom padding
|
|
|
|
margin-bottom: -1.5em;
|
|
|
|
|
|
|
|
padding: 0 2em;
|
|
|
|
|
|
|
|
border-top: 1px solid darken(#fff, 10%);
|
|
|
|
border-radius: 0 0 3px 3px;
|
|
|
|
background-color: #fafbfd;
|
|
|
|
|
|
|
|
// flex properties
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (7.1) Card footer element */
|
2018-03-03 18:37:38 +00:00
|
|
|
& > span{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
position: relative;
|
|
|
|
height: 1.3em;
|
|
|
|
|
|
|
|
color: darken($secondary-color, 20%);
|
|
|
|
|
|
|
|
// center text
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 1.3em;
|
|
|
|
height: 1.3em;
|
|
|
|
|
|
|
|
margin-right: .4em;
|
|
|
|
|
|
|
|
background: transparent center center no-repeat;
|
|
|
|
background-size: 80% auto;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// specific icons
|
|
|
|
&.course:before{ background-image: url('/asset/svg/course.svg@#{$menu-item-inactive}'); }
|
|
|
|
&.td:before{ background-image: url('/asset/svg/td.svg@#{$menu-item-inactive}'); }
|
|
|
|
&.tp:before{ background-image: url('/asset/svg/tp.svg@#{$menu-item-inactive}'); }
|
|
|
|
|
|
|
|
// hover icons
|
|
|
|
&.course.active:before{ background-image: url('/asset/svg/course.svg@5bb8f0'); }
|
|
|
|
&.td.active:before{ background-image: url('/asset/svg/td.svg@20b565'); }
|
|
|
|
&.tp.active:before{ background-image: url('/asset/svg/tp.svg@e85456'); }
|
|
|
|
|
2018-03-06 14:02:36 +00:00
|
|
|
& > span{
|
|
|
|
display: inline;
|
|
|
|
|
|
|
|
padding-left: .5em;
|
|
|
|
color: #bbb;
|
|
|
|
|
|
|
|
font-size: .9em;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (7.1-edit) Card button submit */
|
|
|
|
& > button{
|
|
|
|
margin: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (7.2) Card footer separator */
|
2018-03-03 18:37:38 +00:00
|
|
|
& > hr{
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
width: 1px;
|
|
|
|
height: 1em;
|
|
|
|
|
|
|
|
border: 0;
|
|
|
|
background-color: darken(#fff, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
/* (8) Card sub */
|
2018-03-04 11:46:47 +00:00
|
|
|
& > div.sub{
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: 1em;
|
|
|
|
|
|
|
|
color: lighten($primary-color, 20%);
|
|
|
|
|
2018-03-07 13:34:44 +00:00
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 0em;
|
|
|
|
height: 1em;
|
|
|
|
|
|
|
|
background: center bottom -.1em no-repeat;
|
|
|
|
background-size: auto .9em;
|
|
|
|
|
|
|
|
text-anchor: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.warning{
|
|
|
|
|
|
|
|
color: $form-invalid-color;
|
|
|
|
|
|
|
|
&:before{
|
|
|
|
width: 1em;
|
|
|
|
margin-right: .3em;
|
|
|
|
background-image: url('/asset/svg/warning_radio.svg@#{$rd-form-invalid-color}');
|
|
|
|
}
|
|
|
|
|
2018-03-07 13:43:04 +00:00
|
|
|
&[data-valid='1']{
|
|
|
|
color: $form-valid-color;
|
|
|
|
}
|
|
|
|
|
2018-03-07 13:34:44 +00:00
|
|
|
}
|
|
|
|
|
2018-03-04 11:46:47 +00:00
|
|
|
}
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
}
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* [4] Card style -> filter
|
|
|
|
---------------------------------*/
|
|
|
|
#CONTAINER > div.card.filter{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
position: fixed;
|
2018-03-04 17:52:36 +00:00
|
|
|
top: #{$header-height + .5em };
|
|
|
|
left: calc( 100% - 20em );
|
2018-03-04 16:23:35 +00:00
|
|
|
// deflt - marg - scrollBarOffset
|
2018-03-04 17:52:36 +00:00
|
|
|
width: calc( 20em - 2*.5em - .5em );
|
|
|
|
height: calc( 100% - 2*.5em - #{$header-height} );
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
border-radius: 3px / 3px;
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
box-shadow: 0 2px 2px darken(#fff, 10%);
|
|
|
|
|
|
|
|
// flex
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: flex-start;
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
2018-03-04 17:52:36 +00:00
|
|
|
overflow: hidden;
|
|
|
|
overflow-y: auto;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
/* (1) Filter Group */
|
|
|
|
& > div[title]{
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: relative;
|
|
|
|
|
2018-03-05 10:49:55 +00:00
|
|
|
margin: .5em 1em;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
/* (1.1) Title content */
|
2018-03-05 10:46:01 +00:00
|
|
|
& > div.fold{
|
2018-03-04 16:23:35 +00:00
|
|
|
content: attr(title);
|
|
|
|
|
2018-03-05 10:46:01 +00:00
|
|
|
display: inline-block;
|
2018-03-04 16:23:35 +00:00
|
|
|
position: relative;
|
|
|
|
|
2018-03-05 10:49:55 +00:00
|
|
|
padding-right: 1.4em;
|
2018-03-05 10:46:01 +00:00
|
|
|
|
|
|
|
background: transparent url('/asset/svg/down_arrow.svg@bbbbbb') right center no-repeat;
|
|
|
|
background-size: 1em 1em;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
font-size: .8em;
|
|
|
|
color: darken($secondary-color, 10%);
|
|
|
|
text-transform: uppercase;
|
|
|
|
letter-spacing: .05em;
|
|
|
|
|
2018-03-05 10:46:01 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
&[data-show='1']{
|
|
|
|
background-image: url('/asset/svg/up_arrow.svg@bbbbbb');
|
|
|
|
}
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
}
|
|
|
|
|
2018-03-05 10:46:01 +00:00
|
|
|
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
/* (1.2) Filter element */
|
|
|
|
& > span{
|
|
|
|
|
2018-03-05 10:46:01 +00:00
|
|
|
display: none;
|
2018-03-04 16:23:35 +00:00
|
|
|
position: relative;
|
|
|
|
|
2018-03-05 17:20:40 +00:00
|
|
|
text-indent: 2em;
|
2018-03-04 16:23:35 +00:00
|
|
|
margin-bottom: 1em;
|
|
|
|
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
&:hover{ text-decoration: underline; }
|
|
|
|
|
2018-03-05 10:49:55 +00:00
|
|
|
&:nth-child(2){
|
|
|
|
margin-top: .5em;
|
|
|
|
}
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
/* (1.3) Pseudo-checkbox */
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
2018-03-05 17:20:40 +00:00
|
|
|
margin-left: .5em;
|
2018-03-04 16:23:35 +00:00
|
|
|
width: calc( 1em - 2*2px );
|
|
|
|
height: calc( 1em - 2*2px );
|
|
|
|
|
|
|
|
border-radius: 3px / 3px;
|
|
|
|
border: 2px solid $secondary-color;
|
|
|
|
|
|
|
|
background: #fff center center no-repeat;
|
|
|
|
background-size: auto 80%;
|
|
|
|
|
|
|
|
transition: background .2s ease-in-out,
|
|
|
|
border-color .2s ease-in-out;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (1.4) Active pseudo-checkbox */
|
|
|
|
&.active:before{
|
|
|
|
|
|
|
|
background-image: url('/asset/svg/checkbox.svg@ffffff');
|
|
|
|
background-color: $form-valid-color;
|
|
|
|
border-color: $form-valid-color;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-05 10:46:01 +00:00
|
|
|
// only show items if filter_group has 'data-show'
|
|
|
|
& > div.fold[data-show='1'] ~ span{
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-02-28 12:00:51 +00:00
|
|
|
}
|