Skip to content
Snippets Groups Projects
Commit 7dab1b93 authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

Merge branch 'fix/css' into 'dev'

fix: consents & popups

See merge request web-et-numerique/llle_project/backoffice-client!69
parents 44c251bc 9410962e
No related branches found
No related tags found
6 merge requests!96Deploy OpenShift v2,!95MEP fix liens undefined,!91MEP: removed Meilisearch,!79Fix: nginx unprivileged image,!77Back-office SGE before canary release,!69fix: consents & popups
Pipeline #43208 passed
...@@ -61,6 +61,7 @@ const Consents: React.FC = () => { ...@@ -61,6 +61,7 @@ const Consents: React.FC = () => {
{ {
field: 'pointID', field: 'pointID',
headerName: 'N° PDL', headerName: 'N° PDL',
initialWidth: 150,
filter: true, filter: true,
checkboxSelection: true, checkboxSelection: true,
}, },
...@@ -283,7 +284,7 @@ const Consents: React.FC = () => { ...@@ -283,7 +284,7 @@ const Consents: React.FC = () => {
</div> </div>
<div <div
className="ag-theme-alpine-dark" className="ag-theme-alpine-dark"
style={{ width: '100%', height: '80vh' }} style={{ width: '100%', height: '75vh' }}
> >
<AgGridReact <AgGridReact
onGridReady={onGridReady} onGridReady={onGridReady}
......
...@@ -290,9 +290,8 @@ const Editing: React.FC = () => { ...@@ -290,9 +290,8 @@ const Editing: React.FC = () => {
<p className="title pagetitle">Édition de la newsletter</p> <p className="title pagetitle">Édition de la newsletter</p>
<DateSelector date={date} setDate={setDate} isEmpty={isEmpty} /> <DateSelector date={date} setDate={setDate} isEmpty={isEmpty} />
</div> </div>
{isLoading ? ( {isLoading && <Loader />}
<Loader /> {!isLoading && (
) : (
<div className="content"> <div className="content">
<MailSubject <MailSubject
onSave={handleSaveSubject} onSave={handleSaveSubject}
...@@ -335,7 +334,7 @@ const Editing: React.FC = () => { ...@@ -335,7 +334,7 @@ const Editing: React.FC = () => {
<> <>
<div className="modal-text"> <div className="modal-text">
Etes-vous sûr de vouloir supprimer{' '} Etes-vous sûr de vouloir supprimer{' '}
{getContentItemString(toDelete)} ? {getContentItemString(toDelete)}&nbsp;?
</div> </div>
<div className="buttons"> <div className="buttons">
<button <button
......
...@@ -146,7 +146,7 @@ const Settings: React.FC = () => { ...@@ -146,7 +146,7 @@ const Settings: React.FC = () => {
<p className="title pagetitle">Paramètres de l&apos;appli</p> <p className="title pagetitle">Paramètres de l&apos;appli</p>
</div> </div>
<div className="content"> <div className="content settings">
{isLoading && <Loader />} {isLoading && <Loader />}
{!isLoading && ( {!isLoading && (
<> <>
......
@import '../../styles/config/colors'; @import '../../styles/config/colors';
h2.title { .settings {
margin: 1rem 0; .partnersInfo,
} .customInfo {
h2.title {
.partnersInfo { margin: 1rem 0;
margin: 2rem 0; }
h1 {
margin-bottom: 1rem;
}
p {
color: $text-grey;
} }
}
.popupTitle {
margin-bottom: 1.5rem;
}
.popupTitle, .partnersInfo {
.popupDescription { margin: 2rem 0;
display: flex; h1 {
flex-direction: column; margin-bottom: 1rem;
gap: 0.5rem; }
label { p {
text-transform: uppercase; color: $text-grey;
font-weight: 700; }
} }
input, .popupTitle {
textarea { margin-bottom: 1.5rem;
background: inherit;
border-radius: 4px;
border: 1px solid $text-chart;
max-width: 600px;
padding: 1rem;
color: $text-grey;
font-size: 1rem;
} }
.count { .popupTitle,
color: $text-dark; .popupDescription {
max-width: 600px;
height: 19px;
font-weight: 400;
font-size: 0.8rem;
display: flex; display: flex;
justify-content: flex-end; flex-direction: column;
} gap: 0.5rem;
}
label {
.buttons { text-transform: uppercase;
position: fixed; font-weight: 700;
bottom: 1rem; }
display: flex;
transform: translate(-25%); input,
left: 50%; textarea {
} background: inherit;
border-radius: 4px;
.switch_div { border: 1px solid $text-chart;
display: inline-block; max-width: 600px;
padding: 1rem 1rem; padding: 1rem;
min-width: 135px; color: $text-grey;
font-size: 1rem;
span { }
color: $text-dark;
.count {
color: $text-dark;
max-width: 600px;
height: 19px;
font-weight: 400;
font-size: 0.8rem;
display: flex;
justify-content: flex-end;
}
} }
input[type='checkbox'] { .buttons {
width: 0; position: fixed;
height: 0; bottom: 1rem;
visibility: hidden; display: flex;
margin-bottom: 15px; transform: translate(-25%);
} left: 50%;
gap: 1rem;
label { button {
display: block; margin: 0;
width: 50px; }
height: 20px;
background-color: grey;
border-radius: 15px;
position: relative;
cursor: pointer;
transition: 0.5s;
box-shadow: 0 0 20px #80808050;
}
label::after {
content: '';
width: 17px;
height: 17px;
background-color: #e8f5f7;
position: absolute;
border-radius: 13px;
top: 2px;
left: 2px;
transition: 0.5s;
}
input:checked + label:after {
left: calc(100% - 3px);
transform: translateX(-100%);
}
input:checked + label {
background-color: #e3b82a;
} }
label:active:after { .switch_div {
width: 34px; display: inline-block;
padding: 1rem 1rem;
min-width: 135px;
span {
color: $text-dark;
}
input[type='checkbox'] {
width: 0;
height: 0;
visibility: hidden;
margin-bottom: 15px;
}
label {
display: block;
width: 50px;
height: 20px;
background-color: grey;
border-radius: 15px;
position: relative;
cursor: pointer;
transition: 0.5s;
box-shadow: 0 0 20px #80808050;
}
label::after {
content: '';
width: 17px;
height: 17px;
background-color: #e8f5f7;
position: absolute;
border-radius: 13px;
top: 2px;
left: 2px;
transition: 0.5s;
}
input:checked + label:after {
left: calc(100% - 3px);
transform: translateX(-100%);
}
input:checked + label {
background-color: #e3b82a;
}
label:active:after {
width: 34px;
}
} }
}
.customInfo { .customInfo {
.switch_div { .switch_div {
padding-top: 0; padding-top: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment