Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

QMAPS-3075 Change style for survey #1435

Merged
merged 2 commits into from
Dec 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"dependencies": {
"@qwant/map-style-builder": "github:Qwant/map-style-builder#81eebb0",
"@qwant/qwant-basic-gl-style": "^1.4.0",
"@qwant/qwant-ponents": "^0.2.4",
"@qwant/qwant-ponents": "^0.2.8",
"@turf/along": "^6.0.1",
"@turf/bbox": "^6.0.1",
"@turf/bearing": "^6.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/components/Survey.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const Survey = () => {
<div className="survey">
{survey && enabled && (
<Notification
variant="green"
title={survey.person_name}
titleSecondary={survey.title}
icon={survey.image}
Expand Down
30 changes: 2 additions & 28 deletions src/scss/includes/survey.scss
Original file line number Diff line number Diff line change
@@ -1,35 +1,9 @@
.survey aside {
background: var(--grey-000) !important;
top: 80px;
right: 10px;
bottom: auto;
box-shadow: rgb(0 0 0 / 20%) 0 2px 12px 0 !important;

div img {
border-radius: 8px;
}

div + div + div a {
background: var(--green-400);

&:hover {
background: var(--green-300);
}
}

button svg {
width: 24px;
height: 24px;
}

* {
color: var(--grey-900);
}
}

@media (max-width: 640px) {
.survey aside {
top: 77px;
@media (max-width: 640px) {
top: 90px;
max-width: none;
height: auto;
left: 10px;
Expand Down