ldc-dam/resources/scss/partials/common.scss
Jérémy Munsch 9767e62c72
Update NPM deps and webpack.mix.js
composer require ldc/web-status-checker-laravel remove Old static status checker

Fix ImportMedia

WIP commands OK

many fixes

Fix and try to optimize folder component

Fix front icons + actions based on icons

Favico

front fix alert

Fix Media upload on depot

fix folder component buttons

Full front fix with perf due tu vuejs

Download medias

Navigate within medias superfix

Move media + loader

isLocked boolean and remove media fix

Folder scroll fix

arcadia link color red

Fix panier show external

Tons of fixes back as front

REwrited all
2022-07-22 17:00:48 +02:00

693 lines
15 KiB
SCSS

/******************************************
HEADER
******************************************/
.mainheader {
background-color: $grey;
height: 48px;
width: 100%;
position: relative;
z-index: 51;
nav {
a {
font-size: 14px;
padding: 13px;
display: inline-block;
position: relative;
transition: color 100ms ease-in;
&:hover {
color: $white;
}
i,
svg {
font-size: 19px;
margin-right: 5px;
}
&:first-child {
i,
svg {
font-size: 23px;
margin-right: 0;
}
}
&.active {
color: $white;
background-color: $grey3;
&:after {
content: "";
position: absolute;
width: 100%;
height: 3px;
background-color: $blue;
bottom: 0;
left: 0;
}
}
}
}
.userbar {
position: absolute;
cursor: pointer;
right: 0;
top: 0;
font-size: 14px;
color: $white;
display: flex;
align-items: center;
padding: 0.8rem;
width: 15rem;
justify-content: end;
svg.fa-circle-user {
font-size: 28px;
margin-right: 10px;
}
svg.fa-caret-down {
margin-left: 10px;
}
.submenu {
background-color: $grey3;
position: absolute;
top: 3.2rem;
width: 15rem;
right: 0;
z-index: 2;
display: none;
border: 1px solid gray;
border-top: 0;
a {
padding: 15px;
border-bottom: 1px solid #505050;
display: block;
font-size: 13px;
transition: background-color 200ms ease-in;
&:last-of-type {
border: none;
}
&:hover {
background-color: #505050;
}
}
}
}
}
/******************************************
FANCYBOX
******************************************/
.fancybox-container {
z-index: 1000000;
}
.fancybox-active {
height: inherit;
}
.fancybox-content {
background-color: #24272e;
max-width: 700px;
border-radius: 5px;
}
.fc-content {
padding: 30px;
h3 {
font-size: 14px;
margin-bottom: 12px;
font-weight: bold;
color: $white;
}
hr {
color: #24272e;
border-bottom: 1px solid #2c2f36;
margin-bottom: 12px;
}
i,
svg {
display: block;
color: #0a6fb7;
font-size: 71px;
margin-bottom: 20px;
}
p {
color: white;
margin: 37px;
font-weight: bold;
font-size: 12px;
}
p.button_bar {
text-align: right;
margin: 0;
}
&.info {
.fa-exclamation-triangle {
display: none;
}
.fa-info-circle {
display: block;
}
}
&.error {
.fa-exclamation-triangle {
display: block;
color: $red;
}
.fa-info-circle {
display: none;
}
}
}
#form_contact {
padding: 30px;
h3 {
font-size: 14px;
margin-bottom: 12px;
font-weight: bold;
color: $white;
}
hr {
color: #24272e;
border-bottom: 1px solid #2c2f36;
margin-bottom: 20px;
}
.desc {
text-align: justify;
margin-bottom: 20px;
}
p.button_bar {
text-align: right;
margin: 0;
}
select,
input,
textarea {
width: 100%;
}
textarea {
margin-bottom: 20px;
}
.btn {
margin-right: 10px;
}
.form_contact_send {
.fa-spinner-third {
display: none;
}
&.loading {
.fa-spinner-third {
display: inline-block;
}
.fa-share {
display: none;
}
}
}
.form_contact_ok {
display: none;
background-color: $green;
padding: 15px;
color: $white;
font-size: 15px;
i,
svg {
font-size: 22px;
margin-right: 10px;
vertical-align: middle;
}
}
.form_contact_ko,
.form_contact_check_ko,
.form_contact_ko_custom {
display: none;
background-color: $red;
padding: 15px;
color: $white;
font-size: 15px;
i,
svg {
font-size: 22px;
margin-right: 10px;
vertical-align: middle;
}
}
}
#form_folder_property {
padding: 30px;
min-width: 550px;
h3 {
font-size: 14px;
margin-bottom: 12px;
font-weight: bold;
color: $white;
}
hr {
color: #24272e;
border-bottom: 1px solid #2c2f36;
margin-bottom: 20px;
}
p.button_bar {
text-align: right;
margin: 0;
}
select,
input,
textarea {
width: 100%;
}
textarea {
margin-bottom: 20px;
min-height: 200px;
}
.btn {
margin-right: 10px;
}
.form_folder_save {
.fa-spinner-third {
display: none;
}
&.loading {
.fa-spinner-third {
display: inline-block;
}
.fa-share {
display: none;
}
}
}
}
#form_basket_property {
padding: 30px;
min-width: 550px;
h3 {
font-size: 14px;
margin-bottom: 12px;
font-weight: bold;
color: $white;
}
hr {
color: #24272e;
border-bottom: 1px solid #2c2f36;
margin-bottom: 20px;
}
p.button_bar {
text-align: right;
margin: 0;
}
select,
input,
textarea {
width: 100%;
}
textarea {
min-height: 200px;
}
.btn {
margin-right: 10px;
}
.form_basket_save {
.fa-spinner-third {
display: none;
}
&.loading {
.fa-spinner-third {
display: inline-block;
}
.fa-share {
display: none;
}
}
}
}
#form_etiquette {
padding: 30px;
min-width: 340px;
h3 {
font-size: 14px;
margin-bottom: 12px;
font-weight: bold;
color: $white;
}
hr {
color: #24272e;
border-bottom: 1px solid #2c2f36;
margin-bottom: 20px;
}
li {
margin-bottom: 5px;
.etiquette {
@include resetButton;
cursor: pointer;
position: relative;
color: $white;
padding: 4px;
display: inline-block;
&:hover {
background-color: #2d3139;
}
&:disabled:hover {
background-color: inherit;
cursor: not-allowed;
}
&::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;
}
}
}
}
#form_download {
padding: 30px;
min-width: 300px;
h3 {
font-size: 14px;
margin-bottom: 12px;
font-weight: bold;
color: $white;
}
hr {
color: #24272e;
border-bottom: 1px solid #2c2f36;
margin-bottom: 20px;
}
p {
margin-bottom: 40px;
}
}
#form_select_add_media {
padding: 30px;
min-width: 340px;
h3 {
font-size: 14px;
margin-bottom: 12px;
font-weight: bold;
color: $white;
}
hr {
color: #24272e;
border-bottom: 1px solid #2c2f36;
margin-bottom: 20px;
}
.content {
margin: 10px 0;
a {
display: block;
color: $white;
border-radius: 5px;
border: 1px solid $white;
padding: 15px 15px;
margin-bottom: 5px;
font-size: 15px;
transition: background-color 200ms ease-in;
i,
svg {
margin-right: 10px;
font-size: 20px;
}
&:hover {
background-color: $blue;
}
}
}
}
/******************************************
TEMPLATE
******************************************/
.template_2col {
display: flex;
flex-direction: row;
min-height: calc(100% - 48px);
.main_content {
padding: 15px 30px;
width: 100%;
}
}
/******************************************
UPLOADER
******************************************/
.uploader-window {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 86, 132, 0.9);
z-index: 250000;
display: none;
text-align: center;
.uploader-window-content {
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
border: 1px dashed #fff;
pointer-events: none;
h1 {
margin: -0.5em 0 0;
position: absolute;
font-weight: bold;
top: 50%;
left: 0;
right: 0;
transform: translateY(-50%);
font-size: 37px;
color: #fff;
padding: 0;
pointer-events: none;
}
}
}
/******************************************
SIDE MENU
******************************************/
.side_menu {
background-color: $dark;
width: 300px;
min-height: calc(100% - 48px);
a {
padding: 20px 15px;
border-bottom: 1px solid #505050;
display: block;
font-size: 14px;
transition: background-color 200ms ease-in;
&:last-of-type {
border: none;
}
&:hover {
background-color: $lightdark;
}
i,
svg {
float: right;
font-size: 18px;
}
&.active {
background-color: $blue;
color: white;
}
}
}
/******************************************
HOME
******************************************/
.home {
.search {
background: url("~@/images/home_bg.jpg");
background-size: cover;
width: 100%;
height: 380px;
position: relative;
.container {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: absolute;
text-align: center;
width: 700px;
h1 {
color: $white;
font-size: 71px;
}
.input_search {
margin-top: 20px;
display: flex;
flex-direction: row;
position: relative;
&::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
border-radius: 3px;
box-shadow: inset 0 0 0 1px #dfdfdf;
content: "";
z-index: 2;
}
input {
width: 66%;
font-size: 17px;
padding: 12px;
border-radius: 0;
color: #4a4a4a;
&::placeholder {
color: rgba(74, 74, 74, 0.4);
}
}
button {
border: none;
width: 8%;
background-color: $white;
border-radius: 0 3px 3px 0;
color: #374957;
font-size: 25px;
padding: 8px;
cursor: pointer;
box-shadow: inset 0 0 0 1px #e3e3e3;
&:hover {
background-color: $blue;
color: $white;
}
}
.select_container {
width: 26%;
position: relative;
overflow: hidden;
&::after {
/* Le pointeur du select */
content: "";
position: absolute;
top: 50%;
margin-top: -3px;
right: 0.75em;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-top-color: #444;
border-width: 5px;
border-style: solid;
pointer-events: none;
}
&::before {
position: absolute;
top: 50%;
width: 1px;
height: 60%;
transform: translateY(-50%);
background-color: #dfdfdf;
content: "";
right: 0;
z-index: 10;
}
select {
position: relative;
appearance: none;
width: 110%;
height: auto;
color: #4a4a4a;
border: 0;
margin: 0;
padding: 14px 48px 16px 14px;
border-radius: 0;
overflow: hidden;
text-overflow: ellipsis;
/*
border-radius: 3px 0 0 3px;
border-left: 1px solid #E1E1E1;*/
}
}
}
}
}
.widget {
display: flex;
flex-direction: row;
justify-content: space-around;
margin-top: 80px;
.item {
box-shadow: 0px 0px 4px 0px $dark;
width: 300px;
min-height: 200px;
background-color: $grey3;
header {
background-color: $lightdark;
padding: 10px;
font-size: 14px;
color: $white;
}
.content {
padding: 10px;
overflow-y: auto;
max-height: 282px;
a {
font-size: 14px;
color: $white;
display: block;
margin-bottom: 7px;
i,
svg {
margin-right: 5px;
}
&:hover {
text-decoration: underline;
}
}
}
}
}
}