ptut-vhost/webpack/scss/container/list.scss

159 lines
2.9 KiB
SCSS
Raw Permalink Normal View History

2018-03-14 16:43:44 +00:00
@import '../constants';
2018-03-14 16:43:44 +00:00
/* [3] List style -> container
---------------------------------*/
#CONTAINER.list{
animation: bg-fade .2s ease-out forwards;
}
#CONTAINER > div.list.container{
2018-03-14 16:43:44 +00:00
display: flex;
// flex properties
flex-direction: row;
justify-content: stretch;
align-items: flex-start;
flex-wrap: wrap;
2018-03-14 16:43:44 +00:00
/* (1) List element */
& > section{
flex: 1 1 90%;
2018-03-14 16:43:44 +00:00
display: flex;
2018-03-14 16:43:44 +00:00
margin: 0;
padding: .8em 1em;
2018-03-14 16:43:44 +00:00
border-bottom: 1px solid #eee;
2018-03-14 16:43:44 +00:00
background-color: #fff;
// no border-bottom for last child
&:last-of-type{ border-bottom: 0; }
// flex properties
flex-direction: row;
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
/* (1.1) Element item */
& > div:not(.icon){
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;
2018-03-15 19:14:56 +00:00
&: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;
}
/* (1.4) Icon (remove) */
& > div.icon{
display: inline-block;
width: 1.2em;
height: 1.2em;
margin-right: 1em;
background: url('/asset/svg/cross.svg@aaaaaa') center center no-repeat;
background-size: 60% auto;
overflow: hidden;
cursor: pointer;
&:hover{ background-image: url('/asset/svg/cross.svg@#{$rd-form-invalid-color}'); }
}
2018-03-14 16:43:44 +00:00
}
/* (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'); }
}
2018-03-14 16:43:44 +00:00
& > div.null:after{ content: none; }
2018-03-14 16:43:44 +00:00
}
/* Tags color -> darker */
.tag,
& > section > select{
color: $primary-color;
}
2018-03-14 16:43:44 +00:00
}