ldc-dam/resources/scss/partials/media.scss
2022-07-28 12:21:02 +02:00

998 lines
30 KiB
SCSS

.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,
svg {
margin-left: 10px;
}
&:last-child {
border: none;
}
.list {
position: absolute;
user-select: none;
top: 17px;
left: 50%;
background-color: #24272e;
padding: 9px;
min-width: 170px;
transform: translateX(-50%);
z-index: 55;
&.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,
svg {
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: 50px;
/*overflow: hidden;*/
& > #actionsBar {
float: left;
& > div > button {
@include resetButton;
font-size: 13px;
padding: 15px 13px;
display: inline-block;
border-right: 1px solid #505050;
transition: 0.3s ease-in-out;
color: $white;
cursor: pointer;
&:hover {
background-color: $grey3;
}
& svg {
background-color: $black;
border-radius: 20px;
margin-right: 5px;
padding: 5px 6px;
font-size: 11px;
}
&.action_download_media svg {
background-color: $orange;
}
&.action_add_basket svg {
background-color: $teal;
}
&.action_delete_media svg {
background-color: $red;
}
&.action_tag_media svg {
background-color: $cyan;
}
}
}
.display {
float: right;
padding: 7px;
button {
@include resetButton;
font-size: 17px;
color: $white;
padding: 10px;
cursor: pointer;
transition: 0.3s ease-in-out;
&:hover {
background-color: $lightorange;
}
&.selected {
background-color: $orange;
}
}
}
.order {
width: 240px;
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,
svg {
margin-right: 5px;
}
}
}
.media_container {
overflow-y: auto;
overflow-x: hidden;
scrollbar-color: #272626 #1a1a1a;
position: absolute;
height: calc(100% - 174px);
width: 100%;
.loader {
display: none;
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;
align-items: center;
justify-content: center;
top: 0;
}
&.loading {
overflow-y: hidden;
.loader {
display: flex;
}
}
.wrapper {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
.date-separator {
width: 100%;
font-size: 19px;
margin: 19px 0px;
font-weight: 700;
color: #fff;
padding: 0 0 0 10px;
border-bottom: 2px solid;
&.hide {
display: none;
}
}
.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;
&.locked {
background-color: $lockedMedia !important;
&::before {
content: "En attente de liaison Arcadia";
transition: 0.3s ease-in-out;
opacity: 0;
float: left;
z-index: 2;
background-color: #cd1d1d;
padding: 0.1rem 0.3rem;
border-radius: 0.3rem;
top: -0.8rem;
color: #000;
position: absolute;
}
&:hover {
background-color: lighten($color: $lockedMedia, $amount: 6) !important;
&::before {
opacity: 1;
}
}
}
.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,
svg {
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;
& svg {
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;
}
}
.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,
svg {
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;
}
}
& > .grabbed {
display: none;
font-weight: 900;
position: absolute;
left: 5px;
top: 5px;
text-align: center;
text-indent: 0;
color: $lightblue;
font-size: 25px;
z-index: 2;
}
&[aria-grabbed="true"] {
& > .grabbed {
display: block;
}
&::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;
}
&.not-last-version {
opacity: 0.5;
}
}
&.inline {
flex-direction: column;
align-items: center;
.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,
svg {
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);
position: relative;
& > .dd {
height: 100%;
scrollbar-color: #272626 #1a1a1a;
overflow-y: auto;
}
.loader {
display: none;
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;
svg {
margin-top: 232px;
}
}
&.loading {
& > .dd {
overflow-y: hidden;
}
.loader {
display: block;
}
}
.root_folder {
@include resetButton;
color: white;
font-weight: bold;
padding: 9px 11px;
margin-top: 13px;
font-size: 12px;
display: block;
height: 30px;
margin: 0;
padding: 5px 10px 5px 33px;
text-decoration: none;
color: #ffffff;
border-radius: 3px;
box-sizing: border-box;
-moz-box-sizing: border-box;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
width: 100%;
text-align: left;
padding-top: 0.5rem;
&: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: 1px 6px;
position: relative;
top: -5px;
margin-top: 0.2rem;
}
}
.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: -70px;
width: 70px;
border-radius: 3px 0 0 3px;
border-left: 2px solid white;
border-top: 2px solid white;
border-bottom: 2px solid white;
border-right: none;
color: white;
font-size: 25px;
}
&.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;
display: flex;
flex-direction: column;
align-items: center;
.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;
& svg {
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;
}
}
&: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
******************************************/
.high-level {
z-index: 150000 !important;
}
#form_media {
width: 100%;
height: 100%;
background-color: $grey3;
position: absolute;
z-index: 100000;
left: 0;
top: 0;
header {
background-color: $grey;
& > div {
display: inline;
}
button {
@include resetButton;
font-size: 13px;
padding: 15px 17px;
display: inline-block;
border-right: 1px solid #505050;
transition: 0.3s ease-in-out;
color: darken($color: $white, $amount: 30);
cursor: pointer;
&:hover,
&.active {
background-color: $lightdark;
color: $white;
}
}
.form_media_close {
@include resetButton;
float: right;
font-size: 18px;
position: relative;
padding: 12px;
border: none;
color: white;
background-color: #e74c3c;
border-radius: 36px;
cursor: pointer;
&:hover {
background-color: $lightblue;
}
}
.form_media_download,
.form_media_replace,
.copyclipboard {
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 {
.is-locked {
color: red;
}
.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,
svg {
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 {
@include resetButton;
cursor: pointer;
color: $grey2;
}
}
}
}
}
}