forked from demarches-simplifiees/demarches-simplifiees.fr
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag '2024-06-25-01' into devpf
- Loading branch information
Showing
255 changed files
with
5,745 additions
and
2,220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-1.7 KB
(95%)
app/assets/images/faq/administrateur-procedure-test-usager.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,162 +1,13 @@ | ||
@import "colors"; | ||
@import "constants"; | ||
|
||
$dark-grey: #333333; | ||
$light-grey: #999999; | ||
|
||
$default-space: 15px; | ||
|
||
$new-h1-margin-bottom: 4 * $default-space; | ||
$new-h2-margin-bottom: 3 * $default-space; | ||
|
||
.new-h1, | ||
.new-h2 { | ||
color: $dark-grey; | ||
text-align: center; | ||
font-weight: bold; | ||
} | ||
|
||
.new-h1 { | ||
margin-bottom: 3.75rem; | ||
font-size: 2.5rem; | ||
} | ||
|
||
.new-h2 { | ||
margin-bottom: $new-h2-margin-bottom; | ||
font-size: 36px; | ||
} | ||
|
||
$statistiques-padding-top: $default-space * 2; | ||
|
||
.statistiques { | ||
width: 1040px; | ||
margin: 0 auto; | ||
padding-top: $statistiques-padding-top; | ||
} | ||
|
||
.stat-cards { | ||
.stat-card:nth-of-type(even) { | ||
margin-right: 0px; | ||
} | ||
} | ||
|
||
$stat-card-margin-bottom: 3 * $default-space; | ||
|
||
.stat-card { | ||
padding: 15px; | ||
margin-bottom: $stat-card-margin-bottom; | ||
border-radius: 5px; | ||
box-shadow: none; | ||
border: 1px solid rgba(0, 0, 0, 0.15); | ||
} | ||
|
||
$stat-card-half-horizontal-spacing: 4 * $default-space; | ||
|
||
.stat-card-half { | ||
width: calc((100% - #{$stat-card-half-horizontal-spacing}) / 2); | ||
margin-right: $stat-card-half-horizontal-spacing; | ||
} | ||
|
||
.stat-card-title { | ||
color: $dark-grey; | ||
font-size: 26px; | ||
font-weight: bold; | ||
width: 200px; | ||
text-transform: uppercase; | ||
} | ||
|
||
.stat-card-details { | ||
font-size: 13px; | ||
font-style: italic; | ||
} | ||
|
||
$segmented-control-margin-top: $default-space; | ||
|
||
.segmented-control { | ||
border-radius: 36px; | ||
height: 36px; | ||
line-height: 36px; | ||
font-size: 0; | ||
padding: 0; | ||
display: inline-block; | ||
margin-top: $segmented-control-margin-top; | ||
} | ||
|
||
$segmented-control-item-horizontal-padding: $default-space; | ||
$segmented-control-item-border-radius: 2 * $default-space; | ||
|
||
.segmented-control-item { | ||
display: inline-block; | ||
font-size: 15px; | ||
border: 2px solid $blue-france-700; | ||
margin-right: -2px; | ||
padding-top: var(--li-bottom); | ||
padding-left: $segmented-control-item-horizontal-padding; | ||
padding-right: $segmented-control-item-horizontal-padding; | ||
color: $blue-france-700; | ||
|
||
&:first-of-type { | ||
border-radius: $segmented-control-item-border-radius 0px 0px $segmented-control-item-border-radius; | ||
} | ||
|
||
&:last-of-type { | ||
border-radius: 0px $segmented-control-item-border-radius $segmented-control-item-border-radius 0px; | ||
margin-right: 0; | ||
} | ||
|
||
&:hover { | ||
background-color: $blue-france-500; | ||
color: #FFFFFF; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.segmented-control-item-active { | ||
background-color: $blue-france-700; | ||
color: #FFFFFF; | ||
} | ||
|
||
.chart-container { | ||
margin-top: 36px; | ||
} | ||
|
||
.chart { | ||
width: 100%; | ||
} | ||
|
||
$big-number-card-padding: 2 * $segmented-control-item-border-radius; | ||
|
||
.big-number-card { | ||
padding: $big-number-card-padding $segmented-control-item-horizontal-padding; | ||
} | ||
|
||
.big-number-card-title { | ||
display: block; | ||
text-align: center; | ||
margin: 0 auto; | ||
margin-bottom: 20px; | ||
color: $light-grey; | ||
text-transform: uppercase; | ||
|
||
&.long-title { | ||
margin-left: -30px; | ||
margin-right: -30px; | ||
} | ||
} | ||
|
||
.big-number-card-number { | ||
display: block; | ||
text-align: center; | ||
font-size: 80px; | ||
line-height: 1em; | ||
font-size: 4.5rem; | ||
line-height: 1.5em; | ||
font-weight: bold; | ||
color: $blue-france-500; | ||
color: var(--text-title-blue-france); | ||
white-space: nowrap; | ||
} | ||
|
||
.big-number-card-detail { | ||
display: block; | ||
margin-top: $default-padding; | ||
text-align: center; | ||
color: $blue-france-500; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@import "constants"; | ||
|
||
.fixed-footer { | ||
border-top: 2px solid var(--border-plain-blue-france); | ||
position: fixed; | ||
bottom: 0; | ||
left: 0; | ||
right: 0; | ||
padding-top: $default-padding; | ||
background-color: var(--background-default-grey); | ||
z-index: 2; | ||
} | ||
|
||
@media (max-width: 62em) { | ||
.padded-fixed-footer { | ||
padding-top: 120px; | ||
} | ||
} | ||
|
||
@media (min-width: 62em) { | ||
.padded-fixed-footer { | ||
padding-top: 60px; | ||
} | ||
} | ||
|
||
[data-fr-theme="dark"] .fixed-footer { | ||
background-color: var(--background-action-low-blue-france); | ||
} | ||
|
||
.sticky-header { | ||
padding-top: $default-padding; | ||
padding-bottom: $default-padding; | ||
|
||
&-container { | ||
position: sticky; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
z-index: 800; | ||
} | ||
|
||
&-warning { | ||
background-color: var(--background-contrast-warning); | ||
} | ||
|
||
p { | ||
margin: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
class AutosaveNoticeComponent < ApplicationComponent | ||
attr_reader :label_scope | ||
|
||
def initialize(success:, label_scope:) | ||
@success = success | ||
@label_scope = label_scope | ||
end | ||
|
||
def success? = @success | ||
|
||
def label | ||
success? ? t(".#{label_scope}.saved") : t(".#{label_scope}.error") | ||
end | ||
end |
8 changes: 8 additions & 0 deletions
8
app/components/autosave_notice_component/autosave_notice_component.en.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
en: | ||
form: | ||
saved: 'Form saved' | ||
error: 'Form in error' | ||
attestation: | ||
saved: 'Attestation saved' | ||
error: 'Attestation in error' |
Oops, something went wrong.