@import '../constants'; /* [3] List style -> container ---------------------------------*/ #CONTAINER.list{ animation: bg-fade .2s ease-out forwards; } #CONTAINER > div.list.container{ display: flex; // flex properties flex-direction: row; justify-content: stretch; align-items: flex-start; flex-wrap: wrap; /* (1) List element */ & > section{ flex: 1 1 90%; display: flex; margin: 0; padding: .8em 1em; border-bottom: 1px solid #eee; background-color: #fff; // no border-bottom for last child &:last-of-type{ border-bottom: 0; } // flex properties flex-direction: row; justify-content: space-between; align-items: center; flex-wrap: nowrap; /* (1.1) Element item */ & > div{ flex: 1 1 0; // fix &.taglist{ margin: 0; } } /* (1.2) Hover animation */ transition: border-left-color .3s ease-in-out; &:not(.filter){ border-left: .2em solid #fff; &:hover{ background-color: darken(#fff,1%); } &:hover, &.cours:hover{ border-left-color: $form-search-color; } &.td:hover{ border-left-color: $form-valid-color; } &.tp:hover{ border-left-color: $form-invalid-color; } } /* (1.3) Select elements*/ & > select{ display: inline-block; position: relative; height: 1.8em; width: auto; margin: 0; margin-right: 1em; padding: .2em .5em; padding-right: 1em; border: 1px solid lighten($form-neutral-color, 5%); border-radius: 3px; background: transparent url('/asset/svg/down_arrow.svg@bbbbbb') right .5em bottom .1em no-repeat; background-size: auto 80%; color: #999; font-size: .8em; cursor: default; -webkit-appearance: none; -moz-appearance: none; appearance: none; justify-self: space-around; flex: 0 1 20em; } } /* (2) Filter */ & > section.filter{ // padding-bottom: 0; background-color: transparent; text-transform: uppercase; color: #aaa; font-size: .8em; font-weight: bold; text-shadow: 1px 1px 2px #fff; & > div:after{ content: ''; display: inline-block; position: absolute; width: 1.5em; height: 1.5em; margin-top: -.25em; margin-left: .5em; background: url('/asset/svg/down_arrow.svg@aaaaaa') center center no-repeat; background-size: auto 100%; &[data-filter='up']{ background-image: url('/asset/svg/up_arrow.svg@aaaaaa'); } } & > div.null:after{ content: none; } } /* Tags color -> darker */ .tag, & > section > select{ color: $primary-color; } }