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

944 lines
16 KiB
SCSS
Vendored

.media_manager{
height: calc(100% - 48px);
position: relative;
overflow: hidden;
.main_content{
height: 100%;
padding: 0;
position: relative;
overflow: hidden;
header{
.search_wrapper{
padding: 30px 5px 10px 40px;
min-height: 129px;
.search_filters{
display: inline-flex;
align-items: center;
>div{
display: flex;
align-items: center;
padding: 1px 8px;
border-right: 1px solid $grey2;
position: relative;
user-select: none;
i{
margin-left: 10px;
}
&:last-child{
border: none;
}
.list{
position: absolute;
user-select: none;
top: 17px;
left: 50%;
background-color: #24272e;
padding: 9px;
min-width: 163px;
transform: translateX(-50%);
z-index: 2;
&.list_etiquette li label{
color: $white;
padding: 4px;
display: inline-block;
position: relative;
&::before {
border-color: inherit;
content: "";
top: 0;
border-style: solid;
border-width: 11px;
border-bottom-color: transparent;
border-right-color: transparent;
border-top-color: transparent;
position: absolute;
right: -22px;
}
}
}
}
}
.filter_wrapper{
display: flex;
flex-direction: row;
margin-top: 18px;
align-items: center;
> span{
color : $lightorange;
font-weight: bold;
margin-right: 3px;
}
.search_filters_list{
display: inline-flex;
.filter_item{
border: 1px solid $grey2;
border-radius: 3px;
padding: 3px 3px;
font-size: 11px;
margin: 0 1px;
display: inline-block;
&:hover{
color: $white;
border: 1px solid $white;
}
i{
margin-left: 6px;
}
}
}
.reinit_search_btn{
display: none;
color: #2ea8e5;
margin-left: 4px;
font-size: 11px;
&:hover{
color: $lightblue;
text-decoration: underline;
}
}
}
}
.action_wrapper{
background-color: $grey;
width: 100%;
height: 45px;
overflow: hidden;
a{
font-size: 13px;
padding: 15px 13px;
display: inline-block;
border-right: 1px solid #505050;
float: left;
transition: 0.3s ease-in-out;
&:hover{
background-color: $grey3;
}
i{
background-color: $black;
border-radius: 20px;
margin-right: 5px;
padding: 5px 6px;
font-size: 11px;
color: $white;
}
&.action_download_media i{
background-color: $orange;
}
&.action_add_basket i{
background-color: $teal;
}
&.action_delete_media i{
background-color: $red;
}
&.action_tag_media i{
background-color: $cyan;
}
}
.display{
float: right;
padding: 7px;
i{
font-size: 17px;
color: $white;
padding: 10px;
cursor: pointer;
transition: 0.3s ease-in-out;
&:hover{
background-color: $lightorange;
}
&.selected{
background-color: $orange;
}
}
}
.order{
float: right;
padding: 11px;
span{
@media screen and (max-width: 1400px) {
display: none;
}
}
select{
padding: 5px 0px;
color: $grey;
}
}
}
}
.scrollLoader{
position: absolute;
border-bottom: 0;
bottom: 0;
left: 50%;
transform: translateX(-50%);
z-index: 1;
>div{
background-color: $dark;
font-size: 14px;
padding: 13px;
border-radius: 3px 3px 0 0;
animation-duration: 200ms;
i{
margin-right: 5px;
}
}
}
.media_container{
overflow-y: auto;
overflow-x: hidden;
scrollbar-color: #272626 #1a1a1a;
position: relative;
height: calc(100% - 174px);
.loader{
position: sticky;
font-size: 20px;
color: $white;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
z-index: 50;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
top: 0;
}
.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;
.etiquette{
position: absolute;
display: inline;
top: 38px;
left:0;
z-index: 2;
color: $white;
padding: 2px;
&[data-id='0']{
display: none;
}
&::before {
border-color: inherit;
content: "";
top: 0;
border-style: solid;
border-width: 9px;
border-bottom-color: transparent;
border-right-color: transparent;
border-top-color: transparent;
position: absolute;
right: -18px;
}
}
.contextMenu{
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.9);
left: 0px;
top: 0px;
z-index: 2;
display: none;
transform: rotateY(180deg);
color: $white;
justify-content: center;
align-items: center;
.menu-option{
padding: 10px;
transition: 0.3s ease-in-out;
i{
margin-right: 5px;
}
&:hover{
background-color: #2ea8e5;
}
}
}
&.flip{
transform: rotateY(180deg);
.contextMenu{
display: flex;
}
}
.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;
}
}
.statut{
position: absolute;
top: 7px;
right: 3px;
border-radius: 2px;
padding: 2px 2px;
color: $white;
font-size: 9px;
z-index: 1;
&.stat0{
background-color: $darkorange;
}
&.stat1, &.stat2{
background-color: $darkgreen;
}
}
&[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;
}
}
&.inline{
flex-direction: column;
.imageItem{
width: 96%;
padding: 4px 10px;
align-items: center;
display: flex;
.media{
height: 60px;
width: 60px;
display: inline-block;
}
.libelle{
display: inline-block;
min-width: 350px;
}
.info{
position: static;
display: inline-block;
color: white;
font-size: 13px;
}
.contextMenu{
ul{
display: flex;
justify-content: space-around;
width: 100%;
}
}
}
}
}
}
}
[draggable] {
user-select: none;
}
.side_menu{
background-color: $grey;
position: relative;
width: 450px;
height: 100%;
transition: 0.3s ease-in-out;
z-index: 1;
&.collapse{
transform: translateX(-100%);
position: absolute;
}
&::before{
content: '';
background-color: $grey3;
width: 100%;
position: absolute;
height: 3px;
top : 0;
}
header{
padding: 12px;
position: relative;
h1{
font-size: 19px;
margin: 19px 0px;
i{
background-color: $orange;
padding: 10px;
border-radius: 50%;
}
}
select{
width: 100%;
}
.close_side_menu{
background-color: $grey;
position: absolute;
right: -17px;
top: 40px;
width: 17px;
height: 40px;
z-index: 2;
border-radius : 0 3px 3px 0;
border-top: 1px solid #505050;
border-right: 1px solid #505050;
border-bottom: 1px solid #505050;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
}
.folder_container{
background-color: $grey3;
height: calc(100% - 129px);
scrollbar-color: #272626 #1a1a1a;
overflow-y: auto;
position: relative;
.loader{
position: absolute;
font-size: 20px;
color: $white;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
z-index: 50;
text-align: center;
i{
margin-top: 232px;
}
}
.root_folder{
color: white;
font-weight: bold;
padding: 9px 11px;
margin-top: 13px;
font-size: 12px;
&:hover {
color: #2ea8e5;
}
&.selected, &.dragged{
color:$white;
background-color: #2ea8e5;
&:hover {
color:$white;
}
}
.count{
float: right;
display: inline;
background-color: $dark;
color: $grey2;
border-radius: 11px;
padding: 5px 8px;
position: relative;
top: -5px;
}
}
.folder_menu {
width: 140px;
box-shadow: 0 4px 5px 3px rgba(0, 0, 0, 0.2);
position: absolute;
display: none;
background-color: $grey3;
z-index: 1;
.menu-options {
list-style: none;
padding: 10px 0;
.menu-option {
font-weight: 500;
font-size: 13px;
padding: 10px;
cursor: pointer;
&:hover {
background: rgba(0, 0, 0, 0.2);
}
}
}
}
}
&.panier_side_menu{
width: 380px;
.close_side_menu{
left: -17px;
border-radius : 3px 0 0 3px;
border-left: 1px solid #505050;
border-right: none;
}
&.collapse{
transform: translateX(100%);
position: absolute;
right: 0;
}
header{
display: flex;
a{
margin-left: 5px;
position: relative;
}
.panier_menu {
width: 140px;
box-shadow: 0 4px 5px 3px rgba(0, 0, 0, 0.2);
position: absolute;
display: none;
background-color: $grey3;
z-index: 2;
right: 12px;
top: 48px;
.menu-options {
list-style: none;
padding: 10px 0;
.menu-option {
font-weight: 500;
font-size: 13px;
padding: 10px;
cursor: pointer;
&:hover {
background: rgba(0, 0, 0, 0.2);
}
}
}
}
}
.panier_content{
height: calc(100% - 59px);
overflow-y: auto;
scrollbar-color: #272626 #1a1a1a;
.imageItem{
display: inline-block;
border: 1px solid grey;
width: 202px;
margin: 2px 5px;
background-color: $grey3;
transition: 0.3s ease-in-out;
position: relative;
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;
}
}
}
&:hover{
background-color: $grey;
}
.bar{
position: absolute;
opacity: 0;
transition: opacity 0.5s;
bottom: 0;
height: 29px;
width: 100%;
background-color: rgba(0,0,0,0.7);
text-align: right;
a{
display: inline-block;
padding: 5px;
border: none;
}
}
&:hover{
.bar{
opacity: 1;
}
}
}
}
}
}
}
/******************************************
POPUP EDITION MEDIA
******************************************/
#form_media{
width: 100%;
height: 100%;
background-color: $grey3;
position: absolute;
z-index: 99;
left: 0;
top: 0;
header{
background-color: $grey;
a{
font-size: 13px;
padding: 15px 17px;
display: inline-block;
border-right: 1px solid #505050;
float: left;
transition: 0.3s ease-in-out;
&:hover, &.active{
background-color: $lightdark;
color: $white;
}
}
.form_media_close{
float: right;
font-size: 18px;
position: relative;
padding: 12px;
border: none;
&:after{
content: '';
position: absolute;
top: 50%;
left: 50%;
background-color: $lightdark;
transform: translate(-50%,-50%);
transition: 0.2s ease-in-out;
border-radius: 36px;
padding: 15px;
}
&:hover{
background-color: transparent;
color: $white;
&:after{
background-color: $lightblue;
}
}
i{
position: relative;
z-index: 1;
}
}
.form_media_download, .form_media_replace{
float: right;
font-size: 26px;
margin-right: 5px;
position: relative;
padding: 8px;
border: none;
color: $white;
&:hover{
background-color: transparent;
color: $grey2;
}
}
}
.main_content{
height: calc(100% - 43px);
.tab{
height: 100%;
display: none;
overflow: auto;
position: relative;
&.tab_preview{
text-align: center;
.controlDiv > div{
margin: 0 7px !important;
}
audio, video{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 80%;
}
.svgElt{
width: auto;
height: 100%;
}
embed {
width: 66%;
height: 99%;
}
}
&.tab_edit{
.tab_content{
overflow: auto;
height: calc(100% - 50px);
}
.button_bar{
position: absolute;
bottom: 0;
left: 0;
width: 100%;
padding: 8px 50px;
text-align: right;
background-color: $lightdark;
a{
display: inline-block;
}
}
.cloud_tag_plugin{
position: relative;
}
table td{
padding: 9px 7px;
text-align: left;
}
}
&.tab_links{
table{
margin: 0 auto;
width: 950px;
}
th{
&:first-child{
width: 270px;
}
}
i{
font-size: 18px;
margin-left: 10px;
color: $white;
cursor: pointer;
}
input{
width: 625px;
}
}
&.tab_history {
table{
margin: 0 auto;
width: 950px;
}
}
&.active{
display: block;
}
.wrapper{
width: 100%;
padding: 30px 10px;
&:nth-child(even){
background-color: $grey;
}
h3{
margin-bottom: 25px;
display: block;
text-align: center;
}
.row, .row_xl{
display: flex;
flex-direction: column;
width: 530px;
margin: 0 auto 15px auto;
label{
margin-bottom: 10px;
color: $white;
span{
color: $red;
font-weight: bold;
font-size: 14px;
}
}
}
.row_xl{
width: 100%;
}
.article_selector{
.remove_article{
color: $grey2;
}
}
}
}
}
}