Skip to content

Commit

Permalink
css: update UI
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Dec 3, 2024
1 parent e99d67c commit e9688fe
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
3 changes: 3 additions & 0 deletions src/css/assets/checkmark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 20 additions & 6 deletions src/css/my-account.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

#myAccountImportBtnRoutes,
#myAccountImportBtnLandmarks {
margin-top: 10px;
margin-top: 20px;
padding: 13px 20px 13px 50px;
background-image: url("assets/import-file.svg");
background-repeat: no-repeat;
Expand Down Expand Up @@ -237,20 +237,34 @@
width: 100%;
}

.actionSheetTabOption {
[class^="actionSheetTabOption"] {
height: 40px;
display: flex;
align-items: center;
font-size: 14px;
padding-left: 20px;
padding-left: 40px;
border-radius: 20px;
background-position: center left 15px;
background-repeat: no-repeat;
}

body:has(#myAccountBody > .tabs-wrap > .tabs-wrap-tabs > .tabs-input:nth-of-type(1):checked) .actionSheetTabOptionRoutes {
background-image: url(assets/checkmark.svg);
}

body:has(#myAccountBody > .tabs-wrap > .tabs-wrap-tabs > .tabs-input:nth-of-type(2):checked) .actionSheetTabOptionLandmarks {
background-image: url(assets/checkmark.svg);
}

body:has(#myAccountBody > .tabs-wrap > .tabs-wrap-tabs > .tabs-input:nth-of-type(3):checked) .actionSheetTabOptionCompareLandmarks {
background-image: url(assets/checkmark.svg);
}

#myaccountRouteList:not(:has(*))::before {
content: "Aucun itinéraire enregistré";
font-size: 15px;
color: var(--mid-grey);
margin-top: 20px;
margin-top: 80px;
width: 100%;
display: block;
text-align: center;
Expand All @@ -270,7 +284,7 @@
content: "Aucun point de repère";
font-size: 15px;
color: var(--mid-grey);
margin-top: 20px;
margin-top: 80px;
width: 100%;
display: block;
text-align: center;
Expand All @@ -290,7 +304,7 @@
content: "Aucun repère Comparer";
font-size: 15px;
color: var(--mid-grey);
margin-top: 20px;
margin-top: 80px;
width: 100%;
display: block;
text-align: center;
Expand Down
2 changes: 1 addition & 1 deletion src/css/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
background-image: url(./assets/close.svg);
flex-shrink: 0;
position: absolute;
right: 0px;
right: 4px;
top: 5px;
}

Expand Down
6 changes: 3 additions & 3 deletions src/js/my-account/my-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,17 +186,17 @@ class MyAccount {
{
text: "Itinéraires",
value: "routes",
class: "actionSheetTabOption",
class: "actionSheetTabOptionRoutes",
},
{
text: "Points de repère",
value: "landmarks",
class: "actionSheetTabOption",
class: "actionSheetTabOptionLandmarks",
},
{
text: "Repères Comparer",
value: "compare-landmarks",
class: "actionSheetTabOption",
class: "actionSheetTabOptionCompareLandmarks",
}
]
}).then(() => {
Expand Down

0 comments on commit e9688fe

Please sign in to comment.