@import 'constants'; #CONTAINER{ display: block; position: absolute; top: $header-height; left: $menu-width; height: calc( 100% - #{$header-height} ); width: calc( 100% - #{$menu-width} ); background-color: $bg-color; overflow: hidden; overflow-y: auto; z-index: 100; } /* [1] List style ---------------------------------*/ #CONTAINER.list{ display: flex; // flex properties flex-direction: column; justify-content: flex-start; & > *:first-child{ margin-top: 1em; } & > *:last-child{ margin-bottom: 3em; } /* (1) List line */ & > section{ display: flex; margin: .3em 1em; padding: .5em 1em; border-radius: 5px / 5px; background-color: #fff; // flex flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: nowrap; /* (2) List item */ & > div{ display: inline-block; position: relative; flex: 1 1 0; margin: .5em .5em; font-size: .9em; /* (3) Tag List */ &.tag.list[data-count]{ display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; border-radius: 3px / 3px; padding: .5em; background-color: #ccc; &:before{ content: attr(data-count); } /* (3.1) Visible tags */ & > div.tag{ display: block; position: relative; margin: 0 .2em; padding: .2em .5em; // border-radius: 3px / 3px; // background-color: #f4f8f9; color: #999; font-size: .8em; white-space: nowrap; } /* (3.2) Hidden view */ &.hidden{ height: 1.4em; flex: 0 0 1.4em; border-radius: 50% / 50%; & > div.tag{ display: none; } } } } } // /* (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%); // } } /* [2] Card style -> instant-search ---------------------------------*/ #CONTAINER > input.card.instant-search{ display: block; position: absolute; top: .5em; left: .5em; // 100% - filtr - padding - border width: calc( 100% - 20em - 1em - 6*1em ); height: calc( 3em - 2*.5em - 2*1px); margin: 0; padding: .5em 1em; border-radius: 3px / 3px; background-color: #fff; box-shadow: 0 2px 2px darken(#fff, 10%); } /* [3] Card style -> container ---------------------------------*/ #CONTAINER > div.card.container{ display: flex; position: absolute; top: 3em; left: 0; width: calc( 100% - 20em ); min-height: calc( 100% - 3em ); // flex properties flex-direction: row; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; z-index: 101; overflow: hidden; /* (1) Card container */ & > section{ // flex-grow: 1; flex-basis: 15em; flex-shrink: 1; flex-grow: 1; display: flex; position: relative; margin: 1em .5em; padding: 1.5em; border-radius: 3px / 3px; // border: 1px solid darken(#fff, 10%); box-shadow: 0 1px 1px darken(#fff, 20%); background-color: #fff; color: $primary-color; // flex flex-direction: column; justify-content: flex-start; flex-wrap: nowrap; &[data-create]{ border: 1px solid $form-valid-color; } // hidden mode &.search-hidden, &.filter-hidden{ display: none; } /* (2) Card generic title */ & > span.category, & > select.category{ display: block; position: relative; margin-bottom: .5em; font-size: .7em; color: darken($secondary-color, 10%); text-transform: uppercase; letter-spacing: .05em; } /* (2-edot) Card generic title (select) */ & > select.category{ margin: 0; padding: 0; margin-left: -.4em; // emulate no