ldc-dam/resources/sass/partials/panier.scss

262 lines
4.5 KiB
SCSS
Vendored

/*********************
Widget Panier
**********************/
.panier_manager{
.side_menu{
header{
padding: 13px;
h1{
font-size: 18px;
margin: 20px 0;
}
p{
color: white;
font-size: 14px;
}
}
.form_search_basket{
}
}
.main_content{
.panier_list{
display: flex;
flex-wrap: wrap;
.panier_item{
display: inline-block;
border: 1px solid grey;
width: 202px;
margin: 8px 10px;
background-color: $grey3;
transition: 0.3s ease-in-out;
position: relative;
padding-bottom: 25px;
height: 200px;
background-size: cover;
background-position: center;
cursor: pointer;
&::before{
content: '';
background-color: rgba(255,255,255,0.6);
position: absolute;
width: 100%;
height: 100%;
left: 3px;
top: 3px;
z-index: -1;
}
&::after{
content: '';
background-color: rgba(255,255,255,0.3);
position: absolute;
z-index: 1;
width: 100%;
height: 100%;
}
.title{
position: absolute;
top: 0;
z-index: 2;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
padding: 5px;
i{
color: $yellow;
margin-right: 10px;
}
p{
margin: 0;
color: black;
}
}
.bar{
position: absolute;
bottom: 0;
padding: 4px;
font-size: 11px;
z-index: 2;
text-align: right;
width: 100%;
padding: 3px 8px;
.action_delete_basket{
color: black;
margin-right: 6px;
font-size: 16px;
}
.count{
background-color: $lightorange;
color: $white;
font-size: 14px;
font-weight: bold;
padding: 5px 6px;
border-radius: 10px;
display: inline-block;
}
}
}
}
}
}
/********************************
Page publique d'un panier
*********************************/
.public_basket{
height: 100%;
overflow: hidden;
.main_content{
height: 100%;
padding: 0;
position: relative;
overflow: hidden;
header{
height: 48px;
background-color: $grey;
display: flex;
align-items: center;
justify-content: space-between;
.basket_title{
margin-left: 10px;
font-size: 17px;
}
.basket_Info{
margin-right: 10px;
font-size: 27px;
a{
margin-right: 5px;
}
}
}
.media_container{
overflow-y: auto;
overflow-x: hidden;
scrollbar-color: #272626 #1a1a1a;
position: relative;
height: calc(100% - 48px);
.wrapper{
display: flex;
flex-wrap: wrap;
.imageItem{
display: inline-block;
border: 1px solid grey;
width: 202px;
margin: 8px 10px;
background-color: $grey3;
transition: 0.3s ease-in-out;
position: relative;
padding-bottom: 25px;
cursor: pointer;
.media{
height: 200px;
background-size: contain;
background-repeat: no-repeat;
background-position: center;
position: relative;
&::before {
transform: translate(-50%,-50%);
display: block;
position: absolute;
left: 50%;
top: 50%;
text-align: center;
text-indent: 0;
color: $white;
font-size: 59px;
z-index: 1;
}
&.video{
&::before {
content: "\f167";
font-family: "Font Awesome 5 Brands";
}
}
&.son{
&::before {
content: "\f58f";
font-family: "Font Awesome 5 Pro";
font-weight: 900;
}
}
&.doc{
&::before {
content: "\f15c";
font-family: "Font Awesome 5 Pro";
font-weight: 900;
}
}
}
.libelle{
padding: 4px;
text-align: center;
color: $white;
margin: 0;
word-wrap: break-word;
}
.info{
position: absolute;
bottom: 0;
padding: 4px;
font-size: 11px;
i{
margin-right: 7px;
}
}
&[aria-grabbed="true"] {
&::before {
content: "\f058";
font-family: "Font Awesome 5 Pro";
font-weight: 900;
display: block;
position: absolute;
left: 5px;
top: 5px;
text-align: center;
text-indent: 0;
color: $lightblue;
font-size: 25px;
z-index: 2;
}
&::after {
content: "";
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
position: absolute;
left: 0px;
top: 0px;
z-index: 1;
}
}
&:hover{
background-color: $grey;
}
}
}
}
}
}