Skip to content

Commit 5044a08

Browse files
authored
✨ Feat(bo): bump bootstrap (#898)
* ✨ Feat(bo): bump bootstrap * 🐛 Bug(bo): display analysis report user explanation on guarantor Problem comes from merge
1 parent 59a78d9 commit 5044a08

30 files changed

+805
-931
lines changed

dossierfacile-api-owner/src/main/java/fr/dossierfacile/api/dossierfacileapiowner/property/LightPropertyModel.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
import lombok.Data;
1010
import lombok.NoArgsConstructor;
1111

12-
import java.util.Date;
13-
1412
@Data
1513
@Builder
1614
@NoArgsConstructor

dossierfacile-bo/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
<dependency>
128128
<groupId>org.webjars</groupId>
129129
<artifactId>bootstrap</artifactId>
130-
<version>3.4.1</version>
130+
<version>5.3.3</version>
131131
</dependency>
132132
<dependency>
133133
<groupId>org.webjars</groupId>

dossierfacile-bo/src/main/java/fr/gouv/bo/configuration/WebSecurityConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
4848
.contentTypeOptions(withDefaults())
4949
.xssProtection(withDefaults())
5050
.cacheControl(withDefaults())
51-
.contentSecurityPolicy(csp -> csp.policyDirectives("frame-ancestors *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; frame-src *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; child-src 'none'; upgrade-insecure-requests; default-src 'none'; script-src 'self'; style-src 'self' fonts.googleapis.com 'unsafe-inline'; object-src *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; img-src 'self' *.dossierfacile.fr *.dossierfacile.logement.gouv.fr data:; font-src 'self' fonts.gstatic.com; connect-src *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; base-uri 'self'; media-src 'none'; worker-src *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; manifest-src 'none';"))
51+
.contentSecurityPolicy(csp -> csp.policyDirectives("frame-ancestors *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; frame-src *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; child-src 'none'; upgrade-insecure-requests; default-src 'none'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' fonts.googleapis.com 'unsafe-inline'; object-src *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; img-src 'self' *.dossierfacile.fr *.dossierfacile.logement.gouv.fr data:; font-src 'self' fonts.gstatic.com; connect-src *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; base-uri 'self'; media-src 'none'; worker-src *.dossierfacile.fr *.dossierfacile.logement.gouv.fr; manifest-src 'none';"))
5252
.httpStrictTransportSecurity(HeadersConfigurer.HstsConfig::disable) // Scalingo force https and add this policy
5353
.frameOptions(HeadersConfigurer.FrameOptionsConfig::sameOrigin)
5454
)

dossierfacile-bo/src/main/resources/static/css/fix.css

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,10 @@
1-
#tabs .nav-tabs > li.active > a {
2-
background: lightgray;
3-
}
4-
5-
@media (max-width: 991px) {
6-
7-
.footer_logo {
8-
display: none;
9-
}
10-
11-
.footer_content {
12-
text-align: center;
13-
font-size: 14px;
14-
}
15-
}
161

172
.fixed-header {
18-
position: fixed;
3+
position: sticky;
194
left: 0;
205
right: 0;
216
top: 0;
22-
height: 36px;
23-
z-index: 500;
7+
z-index: 50;
248
}
259

2610
.fixed-header-link-container {
@@ -76,10 +60,6 @@
7660
font-weight: bold;
7761
}
7862

79-
body {
80-
margin-top: 73px;
81-
}
82-
8363
.link-file {
8464
background-color: #eee;
8565
opacity: 1;
@@ -197,16 +177,15 @@ body {
197177
cursor: pointer;
198178
}
199179

200-
.nav-tabs > li > a,
201-
.nav-tabs > li > a:hover,
202-
.nav-tabs > li > a:focus {
203-
background-color: lightgray;
180+
.nav-tabs .nav-link,
181+
.nav-tabs .nav-link:hover,
182+
.nav-tabs .nav-link:focus {
183+
margin-right: 2px;
204184
}
205185

206-
.nav-tabs > li.active > a,
207-
.nav-tabs > li.active > a:hover,
208-
.nav-tabs > li.active > a:focus {
209-
background-color: rgb(212, 227, 252);
186+
.nav-tabs .nav-link.active,
187+
.nav-tabs .nav-link.active:hover,
188+
.nav-tabs .nav-link.active:focus {
210189
cursor: pointer;
211190
}
212191

@@ -312,3 +291,31 @@ span.ocr-result {
312291
overflow: auto;
313292
}
314293

294+
295+
/* style from bootstrap 3 migration */
296+
.panel-primary > .card-header {
297+
color: #fff;
298+
background-color: #337ab7;
299+
border-color: #337ab7;
300+
}
301+
302+
.card-header {
303+
padding: 5px 15px;
304+
border-bottom: 1px solid transparent;
305+
border-top-left-radius: 3px;
306+
border-top-right-radius: 3px;
307+
}
308+
309+
.form-check-input[type="checkbox"] {
310+
width: 1.25rem;
311+
height: 1.25rem;
312+
margin-left: -1.75em;
313+
}
314+
315+
.width--fit-content {
316+
width: fit-content;
317+
}
318+
319+
.w-600 {
320+
max-width: 600px;
321+
}

dossierfacile-bo/src/main/resources/static/css/main.css

Lines changed: 16 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
11

2-
* {
3-
line-height: 1;
4-
}
5-
62
p {
73
line-height: 1.5;
84
}
95

10-
body {
11-
padding: 0;
12-
margin: 0;
13-
height: 100%;
14-
width: 100%;
15-
background-color: #eeeeee;
16-
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
17-
font-size: 16px;
18-
color: #333333;
19-
}
20-
html[data-fr-theme="dark"] body {
21-
background-color: #454545;
22-
color: #ababab;
23-
}
24-
256
.logo {
267
background-image: url('/assets/images/logo.png');
278
background-size: contain;
289
background-repeat: no-repeat;
2910
min-height:38px;
3011
min-width: 250px;
12+
max-width: 300px;
3113
}
3214
html[data-fr-theme="dark"] .logo{
3315
background-image: url('/assets/images/logo-dark.png');
@@ -49,15 +31,11 @@ html[data-fr-theme="dark"] .table-hover > tbody > tr:hover {
4931
color: #666666;
5032
}
5133

52-
.panel {
34+
/*
35+
.card {
5336
background-color: inherit;
5437
}
55-
.btn {
56-
border-radius: 50px;
57-
padding: 10px 50px 12px;
58-
font-size: 24px;
59-
line-height: 1;
60-
}
38+
*/
6139

6240
@media (max-width: 700px) {
6341
.btn-responsive {
@@ -154,11 +132,11 @@ html[data-fr-theme="dark"] .table-hover > tbody > tr:hover {
154132
}
155133

156134

157-
html[data-fr-theme="dark"] .bg-white {
135+
html[data-fr-theme="dark"] .header-bg {
158136
background-color: black;
159137
}
160138

161-
.bg-white {
139+
.header-bg {
162140
background-color: white;
163141
}
164142

@@ -285,12 +263,6 @@ textarea {
285263
line-height: 1.5;
286264
}
287265

288-
input, select.rounded-select {
289-
border: 1px solid #003189 !important;
290-
padding-left: 20px !important;
291-
padding-right: 20px;
292-
}
293-
294266
input.form-control {
295267
height: 40px;
296268
}
@@ -321,10 +293,12 @@ input.form-control {
321293
color: #b6caee;
322294
}
323295

296+
/*
324297
label {
325298
color: #003189;
326299
opacity: 0.8;
327300
}
301+
*/
328302

329303
.formatted-label {
330304
padding-left: 20px;
@@ -431,11 +405,6 @@ input::-webkit-inner-spin-button {
431405
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
432406
}
433407

434-
#chat-page {
435-
position: relative;
436-
height: 100%;
437-
}
438-
439408
.chat-page-user {
440409
width: 75%;
441410
}
@@ -451,7 +420,6 @@ input::-webkit-inner-spin-button {
451420

452421
#chat-page ul {
453422
list-style-type: none;
454-
background-color: #FFF;
455423
margin: 0;
456424
overflow: auto;
457425
overflow-y: scroll;
@@ -467,7 +435,10 @@ input::-webkit-inner-spin-button {
467435
line-height: 1.5rem;
468436
padding: 10px 20px;
469437
margin: 0;
470-
border-bottom: 1px solid #f4f4f4;
438+
}
439+
440+
ul.customMessage li:not(:last-child) {
441+
border-bottom: 1px solid var(--bs-secondary-bg-subtle);
471442
}
472443

473444
#chat-page ul li p {
@@ -487,12 +458,10 @@ input::-webkit-inner-spin-button {
487458
}
488459

489460
#chat-page .chat-message {
490-
/*padding-left: 68px;*/
491461
position: relative;
492462
}
493463

494464
#chat-page .chat-message i {
495-
/*position: absolute;*/
496465
width: 42px;
497466
height: 42px;
498467
overflow: hidden;
@@ -501,22 +470,16 @@ input::-webkit-inner-spin-button {
501470
vertical-align: middle;
502471
font-size: 18px;
503472
line-height: 42px;
504-
color: #fff;
505473
text-align: center;
506474
border-radius: 50%;
507475
font-style: normal;
508476
text-transform: uppercase;
509477
}
510478

511479
#chat-page .chat-message span {
512-
color: #333;
513480
font-weight: 600;
514481
}
515482

516-
#chat-page .chat-message p {
517-
color: #43464b;
518-
}
519-
520483
#messageForm .input-group input {
521484
float: left;
522485
width: calc(100% - 85px);
@@ -563,6 +526,7 @@ input::-webkit-inner-spin-button {
563526
.customMessage {
564527
height: auto !important;
565528
overflow-y: hidden !important;
529+
background-color: var(--bs-light-bg-subtle);
566530
}
567531

568532
.message-you {
@@ -579,14 +543,14 @@ input::-webkit-inner-spin-button {
579543
width: 100%;
580544
margin-left: 2rem;
581545
text-align: left;
582-
font-size: 12px;
546+
font-size: 1rem;
583547
}
584548

585549
.container-message {
586550
width: 100%;
587551
margin-left: 2rem;
588552
text-align: left;
589-
font-size: 12px;
553+
font-size: 1rem;
590554
}
591555

592556
.title-header-you {
@@ -597,28 +561,17 @@ input::-webkit-inner-spin-button {
597561
.date-you {
598562
text-align: right;
599563
font-style: normal;
600-
color: #062218;
601564
}
602565
.date-you-two {
603566
text-align: right;
604567
font-style: normal;
605-
color: #062218;
606-
607568
}
608569

609570
.title-header {
610-
margin-bottom: 20px;
571+
margin-bottom: 1rem;
611572
padding-left: revert;
612573
}
613574

614-
.letter-bo{
615-
color: #000000;
616-
}
617-
618-
.content-you {
619-
620-
}
621-
622575
.message-admin {
623576
background-color: #fffefe !important;
624577
}
@@ -674,7 +627,6 @@ form-search{}
674627
.search {
675628
display: flex;
676629
background: #f2f2f2;
677-
margin-left: 350px;
678630
}
679631

680632
.searchTerm {
@@ -718,23 +670,3 @@ html[data-fr-theme="dark"] .searchTerm:focus {
718670
.btn-right-pull{
719671
margin-right: 5px;
720672
}
721-
.text-area-bo{
722-
border-image: none;
723-
border-radius: 6px 6px 6px 6px;
724-
border-style: none none solid none;
725-
border-width: medium 1px 1px medium;
726-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
727-
font-size: 1em;
728-
line-height: 1.4em;
729-
padding: 5px 8px;
730-
transition: background-color 0.2s ease 0s;
731-
background: none repeat scroll 0 0 rgba(0, 0, 0, 0.07);
732-
}
733-
734-
.btn-regenerate-pdf {
735-
color: black;
736-
font-size: smaller;
737-
font-weight: normal;
738-
margin-left: 2%;
739-
margin-top: 7px;
740-
}

0 commit comments

Comments
 (0)