Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
leximpact-socio-fiscal-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
20e7fcc2
Commit
20e7fcc2
authored
Aug 5, 2021
by
Emmanuel Raviart
Browse files
Options
Downloads
Plain Diff
Merge branch 'ui-grid' into 'master'
Ui grid See merge request leximpact/leximpact-socio-fiscal-ui!33
parents
e531d913
6a9fc30b
No related branches found
No related tags found
1 merge request
!33
Ui grid
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/lib/components/NavBar.svelte
+9
-9
9 additions, 9 deletions
src/lib/components/NavBar.svelte
src/lib/components/test_cases/TestCasesPane.svelte
+1
-1
1 addition, 1 deletion
src/lib/components/test_cases/TestCasesPane.svelte
src/routes/index.svelte
+10
-7
10 additions, 7 deletions
src/routes/index.svelte
with
20 additions
and
17 deletions
src/lib/components/NavBar.svelte
+
9
−
9
View file @
20e7fcc2
...
...
@@ -22,9 +22,9 @@
</script>
<div
class=
"fixed top-0 w-full z-50"
>
<nav
class=
"bg-le-jaune h-14 shadow-md mx-auto px-
2 sm:px-6
lg:px-8 w-full"
>
<nav
class=
"bg-le-jaune h-14 shadow-md mx-auto px-
4
lg:px-8 w-full"
>
<!-- Création d'un div sur l'ensemble de la nav bar pour répartir les blocs-->
<div
class=
"hidden
s
m:flex justify-between"
>
<div
class=
"hidden m
d
:flex justify-between"
>
<!-- Premier div pour le logo AN et le menu A propos-->
<div
class=
"flex w-64 items-center"
>
<!-- logo assemblee nationale -->
...
...
@@ -120,7 +120,7 @@
</div>
<!-- Deuxième div pour le logo Contrib. & prestas sociales-->
<div
class=
"hidden
s
m:flex"
>
<div
class=
"hidden m
d
:flex"
>
<a
href=
"/"
>
<div
class=
"space-y-1 flex items-center h-14 gap-2 rounded text-white p-1"
...
...
@@ -144,7 +144,7 @@
<div
class=
"flex"
>
<a
href=
"/contribuer"
class=
"hidden
s
m:inline-flex text-white uppercase text-sm rounded-sm focus:outline-none hover:bg-gray-400 hover:bg-opacity-20 hover:text-white p-1"
class=
"hidden m
d
:inline-flex text-white uppercase text-sm rounded-sm focus:outline-none hover:bg-gray-400 hover:bg-opacity-20 hover:text-white p-1"
type=
"button"
>
<div
class=
"flex items-center"
>
...
...
@@ -271,7 +271,7 @@
<!--Menu écran téléphone-->
<div
class=
"
s
m:hidden flex justify-between items-center"
>
<div
class=
"m
d
:hidden flex justify-between items-center"
>
<!-- Premier div pour le logo AN et le menu A propos-->
<div
class=
"w-16"
>
<!-- logo assemblee nationale -->
...
...
@@ -299,11 +299,11 @@
</div>
<!-- Troisième div pour le bouton menu-->
<div
class=
"w-16 "
>
<div
class=
"w-16
flex justify-end
"
>
<button
aria-expanded=
{
openAproposMenu
}
aria-haspopup=
"true"
class=
"text-white uppercase text-sm rounded-sm focus:outline-none hover:bg-gray-400 hover:bg-opacity-20 hover:text-white p-1"
class=
"text-white uppercase text-sm rounded-sm focus:outline-none hover:bg-gray-400 hover:bg-opacity-20 hover:text-white p-1
justify-self-end
"
id=
"user-menu"
on:click=
{
()
=>
(
openAproposMenu
=
!
openAproposMenu
)
}
type=
"button"
...
...
@@ -311,7 +311,7 @@
<span
class=
"sr-only"
>
Open user menu
</span>
<!-- Material icon : menu -->
<svg
class=
"
s
m:hidden fill-current text-white"
class=
"m
d
:hidden fill-current text-white"
xmlns=
"http://www.w3.org/2000/svg"
height=
"24px"
viewBox=
"0 0 24 24"
...
...
This diff is collapsed.
Click to expand it.
src/lib/components/test_cases/TestCasesPane.svelte
+
1
−
1
View file @
20e7fcc2
...
...
@@ -86,7 +86,7 @@
}
</script>
<section
class=
"
grid grid-cols-1
md
:grid-cols-
2
gap-10"
>
<section
class=
"grid grid-cols-1
lg:grid-cols-2 2xl
:grid-cols-
3
gap-10"
>
{
#each
$testCases
as
situation
,
situationIndex
}
<TestCaseView
calculationName=
{
$calculationName
}
...
...
This diff is collapsed.
Click to expand it.
src/routes/index.svelte
+
10
−
7
View file @
20e7fcc2
...
...
@@ -535,10 +535,12 @@
<title>
Calculs |
{
$session
.
title
}
</title>
</svelte:head>
<main
class=
"fond flex flex-col
lg
:flex-row"
>
<main
class=
"fond flex flex-col
md
:flex-row"
>
<!-- Panneau de gauche les zones éditables par l'utilisateur (amendement et cas type)-->
{
#if
editionMode
!==
null
}
<div
class=
"bg-white flex-none pb-4 lg:pb-0 shadow-md w-full lg:w-1/3"
>
<div
class=
"bg-white flex-none pb-4 lg:pb-0 shadow-md w-full md:w-1/2 lg:w-1/3 2xl:w-1/4"
>
<div
class=
"flex justify-end pr-4 py-4 w-full"
>
<!-- Bouton de fermeture du panneau de gauche -->
<button
on:click=
{
closeEditionPane
}
>
...
...
@@ -673,9 +675,10 @@
{
/if
}
<!-- Panneau de droite pour les impacts et notamment le waterfall-->
<div
class=
"w-full {editionMode !== null ? 'hidden
lg
:block' : ''}"
>
<div
class=
"w-full {editionMode !== null ? 'hidden
md
:block' : ''}"
>
<div
class=
"mx-1 my-2 px-4"
>
<div
class=
"flex justify-between"
>
<!--
<label
><input bind:checked={$adaptAmountsScale} type="checkbox" />
<span class="hidden text-xs lg:inline text-gray-600">
...
...
@@ -685,9 +688,9 @@
Échelle unique
</span></label
>
-->
<select
class=
"
flex
rounded border-1
mx-auto
text-xs "
class=
" rounded border-1 text-xs "
required
bind:value=
{
$calculationName
}
>
...
...
@@ -703,7 +706,7 @@
>
<div
class=
"flex justify-center"
>
<!-- Material Icon Share -->
<svg
class=
"fill-current
md
:mr-2"
class=
"fill-current
lg
:mr-2"
xmlns=
"http://www.w3.org/2000/svg"
height=
"18px"
viewBox=
"0 0 24 24"
...
...
@@ -713,7 +716,7 @@
d=
"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92z"
/></svg
>
<span
class=
"hidden
md
:flex"
>
Sauvegarder / partager
</span>
<span
class=
"hidden
lg
:flex"
>
Sauvegarder / partager
</span>
</div>
</button>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment