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;
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
|
|
|
|
// card container
|
|
|
|
&.card{
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2018-03-01 12:16:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* [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
|
|
|
|
---------------------------------*/
|
2018-03-08 17:00:39 +00:00
|
|
|
#CONTAINER.card > div.card.container{
|
|
|
|
|
|
|
|
order: 2;
|
|
|
|
flex: 1 0 calc( 100% - 20em );
|
2018-03-03 18:37:38 +00:00
|
|
|
|
|
|
|
display: flex;
|
2018-03-08 17:00:39 +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;
|
2018-03-13 13:15:06 +00:00
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: stretch;
|
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;
|
2018-03-12 13:49:59 +00:00
|
|
|
overflow: auto;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
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
|
|
|
|
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-13 13:15:06 +00:00
|
|
|
flex: 1 1 20em;
|
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
|
|
|
&.invalid{ box-shadow: 0; border: 1px solid $form-invalid-color; }
|
|
|
|
&.valid{ box-shadow: 0; border: 1px solid $form-valid-color; }
|
2018-03-08 13:02:33 +00:00
|
|
|
&.search{ box-shadow: 0; border: 1px solid $form-search-color; }
|
2018-03-07 12:13:31 +00:00
|
|
|
|
2018-03-13 14:43:43 +00:00
|
|
|
// animation for incoming element
|
|
|
|
@keyframes incoming{
|
|
|
|
from{ transform: translateY(-2em); opacity: 0; }
|
|
|
|
to{ transform: translateY(0); opacity: 1; }
|
|
|
|
}
|
2018-03-13 14:02:41 +00:00
|
|
|
|
2018-03-13 14:43:43 +00:00
|
|
|
// animation for outgoing element
|
|
|
|
@keyframes outgoing{
|
|
|
|
from{ transform: translateY(0); opacity: 1; }
|
|
|
|
to{ transform: translateY(2em); opacity: 0; }
|
|
|
|
}
|
2018-03-13 14:02:41 +00:00
|
|
|
|
2018-03-13 14:43:43 +00:00
|
|
|
// animation to nav in
|
|
|
|
&[data-anim-outgoing='1']{ animation: outgoing .4s ease-in-out; }
|
|
|
|
&[data-anim-incoming='1']{ animation: incoming .4s ease-in-out; }
|
2018-03-13 14:02:41 +00:00
|
|
|
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
color: $primary-color;
|
|
|
|
|
2018-03-06 15:05:29 +00:00
|
|
|
// flex
|
2018-03-13 13:15:06 +00:00
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: nowrap;
|
2018-03-06 15:05:29 +00:00
|
|
|
|
2018-03-13 14:02:41 +00:00
|
|
|
z-index: 102;
|
|
|
|
|
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-08 11:12:12 +00:00
|
|
|
& > div.goo-menu{
|
|
|
|
|
2018-03-13 18:02:38 +00:00
|
|
|
$btn-size: 1.8em;
|
2018-03-08 11:12:12 +00:00
|
|
|
$btn-space: 0em;
|
|
|
|
$nb-btn: 3;
|
|
|
|
$nb-spc: $nb-btn - 1;
|
|
|
|
|
|
|
|
$cont-w: $btn-size * $nb-btn + $nb-spc * $btn-space;
|
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
2018-03-08 11:12:12 +00:00
|
|
|
top: 1em;
|
|
|
|
left: calc( 100% - 1em - #{$btn-size} - .5em );
|
|
|
|
width: $btn-size;
|
|
|
|
height: $btn-size;
|
2018-03-07 11:12:50 +00:00
|
|
|
|
2018-03-08 13:14:22 +00:00
|
|
|
-webkit-filter: url('/asset/svg/filter.svg#goo-menu') drop-shadow(-5px 0 0 #fff);
|
|
|
|
filter: url('/asset/svg/filter.svg#goo-menu') drop-shadow(-5px 0 0 #fff);
|
2018-03-07 18:13:05 +00:00
|
|
|
|
2018-03-07 11:12:50 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
z-index: 103;
|
2018-03-08 11:12:12 +00:00
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
/* (2.1) Pan all on hover */
|
2018-03-07 11:12:50 +00:00
|
|
|
&:hover{
|
2018-03-08 11:25:28 +00:00
|
|
|
left: calc( 100% - 1em - #{$cont-w} - .5em - 1em );
|
|
|
|
width: calc( #{$cont-w} + 1em );
|
|
|
|
|
|
|
|
/* (2.1.1) lighter color on hover */
|
|
|
|
& > div.remove[data-remove],
|
|
|
|
& > div.edit[data-edit],
|
2018-03-11 16:31:46 +00:00
|
|
|
& > div.enabled[data-enabled],
|
2018-03-08 11:25:28 +00:00
|
|
|
& > div.admin[data-admin]{
|
2018-03-08 12:07:15 +00:00
|
|
|
background-color: darken(#fff, 12%);
|
2018-03-08 11:25:28 +00:00
|
|
|
|
|
|
|
/* (2.1.2) displace all but 1st element */
|
|
|
|
&.edit[data-edit]{ left: calc( 100% - #{$btn-size * 2 + $btn-space} ); }
|
2018-03-08 12:12:29 +00:00
|
|
|
&.remove[data-remove]{ left: calc( 100% - #{$btn-size * 3 + $btn-space * 2} ); }
|
2018-03-07 11:12:50 +00:00
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
}
|
2018-03-07 11:12:50 +00:00
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* (2.2) Design elements */
|
2018-03-08 11:12:12 +00:00
|
|
|
& > div.remove[data-remove],
|
|
|
|
& > div.edit[data-edit],
|
2018-03-11 16:31:46 +00:00
|
|
|
& > div.enabled[data-enabled],
|
2018-03-08 11:12:12 +00:00
|
|
|
& > div.admin[data-admin]{
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: calc( 100% - #{$btn-size} );
|
|
|
|
width: $btn-size;
|
|
|
|
height: $btn-size;
|
2018-03-07 11:12:50 +00:00
|
|
|
|
|
|
|
|
2018-03-08 11:12:12 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
|
2018-03-08 12:07:15 +00:00
|
|
|
transition: background-color .1s ease-in-out,
|
|
|
|
left .2s ease-in-out;
|
2018-03-08 11:12:12 +00:00
|
|
|
|
2018-03-08 12:07:15 +00:00
|
|
|
background: #fff url('/asset/svg/cross.svg@aaaaaa') center center no-repeat;
|
|
|
|
background-size: auto 50%;
|
2018-03-08 11:12:12 +00:00
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
z-index: 103;
|
2018-03-08 11:12:12 +00:00
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
/* (2.1) Feedback */
|
2018-03-08 12:07:15 +00:00
|
|
|
&:hover{ background-image: url('/asset/svg/cross.svg@#{$rd-form-invalid-color}'); }
|
2018-03-08 11:12:12 +00:00
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
/* (2.2) EDIT button */
|
|
|
|
&.edit[data-edit]{
|
2018-03-08 12:07:15 +00:00
|
|
|
background-image: url('/asset/svg/a.svg@aaaaaa');
|
2018-03-08 11:25:28 +00:00
|
|
|
background-size: auto 60%;
|
|
|
|
z-index: 104;
|
2018-03-07 11:12:50 +00:00
|
|
|
|
2018-03-08 12:07:15 +00:00
|
|
|
&:hover{ background-image: url('/asset/svg/a.svg@#{$rd-form-search-color}'); }
|
2018-03-08 11:25:28 +00:00
|
|
|
}
|
2018-03-07 11:12:50 +00:00
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
/* (2.3) ADMIN switch */
|
|
|
|
&.admin[data-admin]{
|
2018-03-08 12:07:15 +00:00
|
|
|
background-image: url('/asset/svg/admin.svg@aaaaaa');
|
2018-03-08 11:25:28 +00:00
|
|
|
z-index: 105;
|
2018-03-07 13:34:44 +00:00
|
|
|
|
2018-03-08 11:25:28 +00:00
|
|
|
&:hover{ background-image: url('/asset/svg/admin.svg@555555'); }
|
|
|
|
&[data-active='1']{ background-image: url('/asset/svg/admin.svg@f4bd18'); }
|
2018-03-08 12:07:15 +00:00
|
|
|
&[data-active='1']:hover{ background-image: url('/asset/svg/admin.svg@f4a118'); }
|
2018-03-08 11:25:28 +00:00
|
|
|
}
|
2018-03-07 13:34:44 +00:00
|
|
|
|
2018-03-11 16:31:46 +00:00
|
|
|
/* (2.3) DISABLED switch */
|
|
|
|
&.enabled[data-enabled]{
|
|
|
|
background-image: url('/asset/svg/bell.svg@aaaaaa');
|
|
|
|
z-index: 105;
|
|
|
|
|
|
|
|
&:hover{ background-image: url('/asset/svg/bell.svg@555555'); }
|
|
|
|
&[data-active='1']{ background-image: url('/asset/svg/bell.svg@f4bd18'); }
|
|
|
|
&[data-active='1']:hover{ background-image: url('/asset/svg/bell.svg@f4a118'); }
|
|
|
|
}
|
2018-03-08 11:12:12 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-03-07 13:34:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
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-08 12:07:15 +00:00
|
|
|
width: calc( 100% - 1em );
|
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-08 11:25:28 +00:00
|
|
|
z-index: 102;
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
}
|
|
|
|
|
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-08 11:39:19 +00:00
|
|
|
height: 3em;
|
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
|
|
|
|
-webkit-appearance: none; /* Safari and Chrome */
|
2018-03-08 11:39:19 +00:00
|
|
|
-moz-appearance: none; /* Firefox */
|
|
|
|
appearance: none;
|
2018-03-06 15:05:29 +00:00
|
|
|
|
|
|
|
background: transparent url('/asset/svg/down_arrow.svg@bbbbbb') right .5em center no-repeat;
|
|
|
|
background-size: auto 80%;
|
|
|
|
|
2018-03-08 11:39:19 +00:00
|
|
|
font-size: .7em;
|
|
|
|
letter-spacing: .05em;
|
|
|
|
font-family: inherit;
|
|
|
|
|
|
|
|
|
2018-03-06 15:05:29 +00:00
|
|
|
}
|
|
|
|
|
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;
|
2018-03-12 10:14:46 +00:00
|
|
|
width: 1.2em;
|
2018-03-03 18:37:38 +00:00
|
|
|
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-08 11:39:19 +00:00
|
|
|
font-family: inherit;
|
|
|
|
|
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%);
|
2018-03-13 13:15:06 +00:00
|
|
|
&:last-of-type{ border-radius: 0 0 3px 3px; }
|
2018-03-03 18:37:38 +00:00
|
|
|
background-color: #fafbfd;
|
|
|
|
|
|
|
|
// flex properties
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2018-03-13 13:15:06 +00:00
|
|
|
align-content: center;
|
2018-03-03 18:37:38 +00:00
|
|
|
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-11 16:48:50 +00:00
|
|
|
/* (7.1-edit) Card footer input */
|
|
|
|
& > input{
|
|
|
|
width: 2.5em;
|
|
|
|
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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-13 18:23:22 +00:00
|
|
|
/* (9) Card tag list */
|
|
|
|
& > div.taglist{
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
margin-top: 1em;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: flex-start;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
|
|
|
|
|
|
/* (9.1) inner tags */
|
|
|
|
& > span{
|
|
|
|
padding: .2em .5em;
|
|
|
|
margin-right: .5em;
|
|
|
|
|
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
|
|
|
color: #999;
|
|
|
|
font-size: .8em;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-03 18:37:38 +00:00
|
|
|
}
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* [4] Card style -> filter
|
|
|
|
---------------------------------*/
|
2018-03-08 17:00:39 +00:00
|
|
|
#CONTAINER.card > div.card.filter{
|
|
|
|
|
|
|
|
order: 1;
|
|
|
|
flex: 1 0 calc( 90% );
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
display: flex;
|
2018-03-08 17:00:39 +00:00
|
|
|
min-height: calc( 4em - 2*.5em - 2*.5em );
|
|
|
|
|
|
|
|
margin: .5em;
|
|
|
|
padding: .5em;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
border-radius: 3px / 3px;
|
|
|
|
background-color: #fff;
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
// background-color: #0f0;
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
box-shadow: 0 2px 2px darken(#fff, 10%);
|
|
|
|
|
|
|
|
// flex
|
2018-03-08 17:00:39 +00:00
|
|
|
flex-direction: row;
|
2018-03-04 16:23:35 +00:00
|
|
|
justify-content: flex-start;
|
2018-03-08 17:00:39 +00:00
|
|
|
align-items: center;
|
|
|
|
flex-wrap: wrap;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
z-index: 110;
|
|
|
|
|
|
|
|
overflow: visible;
|
|
|
|
// overflow-y: visible;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
/* (1) Filter Group */
|
|
|
|
& > div[title]{
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
flex: 0 1 5em;
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
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-08 17:00:39 +00:00
|
|
|
& > div.fold-toggle{
|
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-08 17:00:39 +00:00
|
|
|
padding-right: 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;
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
transition: color .2s ease-in-out;
|
|
|
|
|
|
|
|
&:hover{
|
|
|
|
color: $primary-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&[data-count]:after{
|
|
|
|
content: attr(data-count);
|
|
|
|
|
|
|
|
display: inline-block;
|
|
|
|
position: absolute;
|
|
|
|
margin-top: -.1em;
|
|
|
|
margin-left: .5em;
|
|
|
|
width: 1em;
|
|
|
|
height: clac( 1.5em - 2*.2em );
|
|
|
|
|
|
|
|
padding: .2em .5em;
|
|
|
|
|
|
|
|
border-radius: 3px;
|
|
|
|
|
|
|
|
background: $form-valid-color;
|
|
|
|
|
|
|
|
color: #fff;
|
|
|
|
font-size: .8em;
|
|
|
|
text-align: center;
|
2018-03-05 10:46:01 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
// greyed when 0
|
|
|
|
&[data-count='0']:after{ background-color: #ddd; }
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
}
|
|
|
|
|
2018-03-05 10:46:01 +00:00
|
|
|
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
/* (1.2) Filter box */
|
|
|
|
& > div.fold{
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-05 10:46:01 +00:00
|
|
|
display: none;
|
2018-03-08 17:00:39 +00:00
|
|
|
position: absolute;
|
|
|
|
width: 15em;
|
|
|
|
height: 15em;
|
|
|
|
margin-top: 2em;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
border: 1px solid #ddd;
|
|
|
|
border-radius: 3px;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
background-color: #fff;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
align-items: stretch;
|
|
|
|
flex-wrap: nowrap;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
overflow: hidden;
|
|
|
|
overflow-y: auto;
|
2018-03-05 10:49:55 +00:00
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
/* (1.3) Filter item */
|
|
|
|
& > span{
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
display: block;
|
2018-03-08 17:00:39 +00:00
|
|
|
position: relative;
|
|
|
|
|
|
|
|
padding: .5em 0;
|
|
|
|
padding-left: 2em;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
background-color: #fff;
|
|
|
|
&:hover{ background-color: darken(#fff,5%); }
|
|
|
|
|
|
|
|
&:nth-child(2n){
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
&:hover{ background-color: darken(#f9f9f9,5%); }
|
|
|
|
}
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
user-select: none;
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
transition: background-color .2s ease-in-out;
|
|
|
|
|
|
|
|
/* (1.3.1) Pseudo-checkbox */
|
|
|
|
&:before{
|
|
|
|
content: '';
|
|
|
|
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
margin-top: .2em;
|
|
|
|
margin-left: calc( .5em - 2em );
|
|
|
|
width: calc( 1em - .2em );
|
|
|
|
height: calc( 1em - .2em );
|
2018-03-04 16:23:35 +00:00
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
border-radius: 50%;
|
|
|
|
background: $form-valid-color;
|
|
|
|
|
|
|
|
transform: scale(0);
|
|
|
|
transition: transform .1s ease-in-out;
|
|
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* (1.3.2) Active pseudo-checkbox */
|
|
|
|
&.active:before{
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
2018-03-04 16:23:35 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2018-03-08 17:00:39 +00:00
|
|
|
// only show item box if filter_group has 'data-show'
|
|
|
|
& > div.fold-toggle[data-show='1'] + div.fold{
|
|
|
|
display: flex;
|
2018-03-05 10:46:01 +00:00
|
|
|
}
|
|
|
|
|
2018-03-04 16:23:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-02-28 12:00:51 +00:00
|
|
|
}
|