Update report-window styles

This commit is contained in:
Arkadiusz Wieczorek 2022-04-25 20:02:20 +02:00
parent 291189bda4
commit 7cf70b0b0c
12 changed files with 232 additions and 87 deletions

View File

@ -176,7 +176,7 @@ export default function generateSurveyQuestions(hosts: string[]) {
], ],
}, },
{ {
title: 'Obowiązek informacyjny i machanizm pozyskiwania zgody', title: 'Obowiązek informacyjny i mechanizm pozyskiwania zgody',
elements: [ elements: [
{ {
type: 'radiogroup', type: 'radiogroup',

View File

@ -13,7 +13,7 @@ export default function Questions({
onComplete: (sender) => onComplete(sender.data), onComplete: (sender) => onComplete(sender.data),
}); });
if (!survey) { if (!survey) {
return <div>Wczytywanie....</div>; return <div>Wczytywanie...</div>;
} }
return <Survey.Survey model={survey} />; return <Survey.Survey model={survey} />;
} }

View File

@ -1,17 +1,33 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<meta charset="utf-8" />
<title>Treść maila do zgłoszenia</title>
<link rel="stylesheet" href="/lib/components/report-window/report-window.css" />
<!-- <link rel="stylesheet" href="/node_modules/survey-react/survey.css" />
<link rel="stylesheet" href="/node_modules/survey-react/modern.css" /> -->
</head>
<body> <head>
<div id="app"></div> <meta charset="utf-8" />
<script src="/node_modules/react/umd/react.development.js"></script> <title>Treść maila do zgłoszenia</title>
<script src="/node_modules/react-dom/umd/react-dom.development.js"></script> <link
<script src="/lib/components/report-window/report-window.js"></script> rel="stylesheet"
</body> href="/lib/styles/fonts.css"
>
<link
rel="stylesheet"
href="/node_modules/survey-react/survey.css"
/>
<link
rel="stylesheet"
href="/node_modules/survey-react/modern.css"
/>
<link
rel="stylesheet"
href="/lib/components/report-window/report-window.css"
/>
</head>
<body>
<div id="app"></div>
<script src="/node_modules/react/umd/react.development.js"></script>
<script src="/node_modules/react-dom/umd/react-dom.development.js"></script>
<script src="/lib/components/report-window/report-window.js"></script>
</body>
</html> </html>

View File

@ -1,20 +1,22 @@
@import './../../styles/colors.scss'; @import './../../styles/colors.scss';
* {
font-family: 'OpenSans' !important;
}
html { html {
font-size: 1rem; font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
'Open Sans', 'Helvetica Neue', sans-serif;
} }
body { body {
background-color: #fff; background-color: #f9f9fa;
margin: 3rem 3rem; margin: 3rem 3rem;
} }
nav { nav {
position: sticky; position: sticky;
top: 0; top: 0;
background-color: #fff; // background-color: #fff;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: left; justify-content: left;
@ -42,10 +44,10 @@ h3 {
align-items: center; align-items: center;
max-height: 3.5rem; max-height: 3.5rem;
min-height: 3.5rem; min-height: 3.5rem;
border-bottom: 1px solid $light-grey; // border-bottom: 1px solid $light-grey;
position: sticky; position: sticky;
top: 0; top: 0;
background: #ffffff; // background: #ffffff;
z-index: 1; z-index: 1;
.webpage-metadata { .webpage-metadata {
@ -69,68 +71,193 @@ h3 {
} }
.sv_main { .sv_main {
font-family: 'OpenSans' !important;
background-color: transparent;
.sv_p_root {
& > .sv_row:nth-child(2n) {
// background-color: hsl(217.5, 7.8%, 96%);
background-color: #fff;
}
& > .sv_row:nth-child(2n + 1) {
background-color: #fff;
}
& > .sv_row {
// border-bottom: 1px solid #d1d1d1;
border-bottom: none;
background-color: #fff;
box-shadow: rgba(12, 12, 13, 0.1) 0px 1px 4px 0px;
}
& > .sv_row:last-child {
border-bottom: none;
}
}
.sv_container { .sv_container {
color: #000; color: rgb(12, 12, 13);
padding: 1rem 0; padding: 0;
.sv_body {
padding: 0;
.sv_p_root {
& > .sv_row {
padding: 0.75rem 1.5rem;
margin-bottom: 1rem;
border-radius: 3px;
}
.sv_page_title {
font-weight: bold;
font-size: calc(15 / 16 * 1rem);
}
.sv_q {
padding: 0;
}
}
.sv_progress {
height: 0.25rem;
.sv_progress_bar {
margin-top: 0;
margin-bottom: 0.5rem;
}
}
}
} }
.sv_body { .sv_body {
border: none !important; border: none !important;
background-color: transparent;
}
.sv_progress {
background-color: hsl(240, 9.1%, 87.8%);
margin-bottom: 4rem;
transition: all 200ms;
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
& > span {
font-weight: 600;
}
}
.sv_progress_bar {
background-color: #000;
transition: all 200ms;
transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
} }
} }
.sv_q_radiogroup { .sv_main .sv_container .sv_body .sv_p_root .sv_page_title {
margin-bottom: .5rem; font-size: 1.1rem;
font-weight: bold;
} }
.sv_row { .sv_q_radiogroup {
background-color: #fff !important; margin-top: 0.25rem;
}
.sv_main .sv_q_other input,
.sv_main .sv_q_text_root,
.sv_main .sv_q_dropdown_control,
.sv_main
input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']),
.sv_main select,
.sv_main textarea {
border: 1px solid #6d7072;
color: #000;
padding-left: 0.25rem !important;
margin-top: 0.5rem;
margin-bottom: 0.5rem;
} }
.sv_nav { .sv_nav {
display: grid; display: flex;
grid-template-columns: 1fr 1fr;
margin: 2rem 0; margin: 2rem 0;
} justify-content: flex-end;
.sv_prev_btn {
grid-column-start: 0;
justify-self: flex-start;
}
.sv_next_btn {
grid-column-start: 2;
justify-self: flex-end;
} }
.sv_prev_btn, .sv_prev_btn,
.sv_next_btn { .sv_next_btn {
border: 0; border: 0;
outline: 0; outline: 0;
height: 3rem; font-size: 0.875rem !important;
font-size: 0.875rem; line-height: 0.875rem !important;
line-height: 0.875rem;
height: 2.5rem; height: 2.5rem;
cursor: pointer; cursor: pointer;
}
.sv_next_btn {
background-color: #000 !important; background-color: #000 !important;
font-weight: 800; font-weight: 800 !important;
padding: 0 1.5rem; padding: 0 1.5rem;
background-color: #000; background-color: #000;
color: $icd-rentgen-color; margin: 0 !important;
color: #fff !important;
// &:hover { &:hover {
// background-image: linear-gradient( color: $icd-rentgen-color !important;
// to right, background-image: linear-gradient(
// $icd-rentgen-color 0%, to right,
// $icd-rentgen-color 4%, $icd-rentgen-color 0%,
// #000 4%, $icd-rentgen-color 4%,
// #000 100% #000 4%,
// ); #000 100%
// animation: slidebg 1s cubic-bezier(0.19, 1, 0.22, 1) infinite; );
// } animation: slidebg 1s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}
// @keyframes slidebg { @keyframes slidebg {
// to { to {
// background-position: 155px; background-position: 155px;
// } }
// } }
}
.sv_prev_btn {
margin-right: 0.5rem !important;
color: #000 !important;
text-decoration: underline !important;
background-color: transparent !important;
font-weight: 700 !important;
}
.sv_main .sv_q_erbox:not([style*='display: none']):not([style*='display:none']) {
color: $dark-red;
}
.sv_main .sv_q_erbox:not([style*='display: none']):not([style*='display:none']) {
border: 1px solid $dark-red;
background-color: $pale-red;
}
.sv_main
.sv_container
.sv_body
.sv_p_root
.sv_q
.sv_q_erbox:not([style*='display: none']):not([style*='display:none']) {
margin: 0.5rem 0;
padding: 1rem;
}
.sv_qstn fieldset {
margin: 0px;
padding: 0px;
font-size: calc(14 / 16 * 1rem);
}
.sv_main .sv_custom_header {
background-color: transparent;
}
.sv_main .sv_q_other input:focus,
.sv_main .sv_q_text_root:focus,
.sv_main .sv_q_dropdown_control:focus,
.sv_main
input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']):focus,
.sv_main select:focus,
.sv_main textarea:focus {
border: 1px solid #000;
}
.sv_main .sv_container .sv_body .sv_p_root .sv_q_title {
font-weight: 600;
font-size: calc(14 / 16 * 1rem);
} }

View File

@ -3,13 +3,6 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<style>
</style>
</head>
<body>
<div id="app"></div>
<link <link
rel="stylesheet" rel="stylesheet"
href="/lib/styles/global.css" href="/lib/styles/global.css"
@ -18,8 +11,13 @@
rel="stylesheet" rel="stylesheet"
href="/lib/components/sidebar/sidebar.css" href="/lib/components/sidebar/sidebar.css"
> >
<script src="/node_modules/react/umd/react.production.min.js"></script> </head>
<script src="/node_modules/react-dom/umd/react-dom.production.min.js"></script>
<body>
<div id="app"></div>
<script src="/node_modules/react/umd/react.production.min.js"></script>
<script src="/node_modules/react-dom/umd/react-dom.production.min.js"></script>
<script src="/lib/components/sidebar/sidebar.js"></script> <script src="/lib/components/sidebar/sidebar.js"></script>
</body> </body>

View File

@ -125,9 +125,10 @@
padding: 0 1.5rem; padding: 0 1.5rem;
margin-left: 0.5rem; margin-left: 0.5rem;
background-color: #000; background-color: #000;
color: $icd-rentgen-color; color: #fff;
&:hover { &:hover {
color: $icd-rentgen-color;
background-image: linear-gradient( background-image: linear-gradient(
to right, to right,
$icd-rentgen-color 0%, $icd-rentgen-color 0%,

View File

@ -3,13 +3,6 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<style>
</style>
</head>
<body>
<div id="toolbar"></div>
<link <link
rel="stylesheet" rel="stylesheet"
href="/lib/styles/global.css" href="/lib/styles/global.css"
@ -18,8 +11,13 @@
rel="stylesheet" rel="stylesheet"
href="/lib/components/toolbar/toolbar.css" href="/lib/components/toolbar/toolbar.css"
> >
<script src="/node_modules/react/umd/react.production.min.js"></script> </head>
<script src="/node_modules/react-dom/umd/react-dom.production.min.js"></script>
<body>
<div id="toolbar"></div>
<script src="/node_modules/react/umd/react.production.min.js"></script>
<script src="/node_modules/react-dom/umd/react-dom.production.min.js"></script>
<script src="/lib/components/toolbar/toolbar.js"></script> <script src="/lib/components/toolbar/toolbar.js"></script>
</body> </body>

View File

@ -149,9 +149,10 @@ body {
padding: 0 1.5rem; padding: 0 1.5rem;
margin-left: 0.5rem; margin-left: 0.5rem;
background-color: #000; background-color: #000;
color: $icd-rentgen-color; color: #fff;
&:hover { &:hover {
color: $icd-rentgen-color;
background-image: linear-gradient( background-image: linear-gradient(
to right, to right,
$icd-rentgen-color 0%, $icd-rentgen-color 0%,

View File

@ -49,6 +49,8 @@ esbuild
'test.ts', 'test.ts',
'components/report-window/report-window.tsx', 'components/report-window/report-window.tsx',
'background.ts', 'background.ts',
'styles/global.scss',
'styles/fonts.scss'
], ],
bundle: true, bundle: true,
// minify: true, // minify: true,

View File

@ -7,5 +7,9 @@ $blue: #0048d9;
$icd-yellow: #ffee2c; $icd-yellow: #ffee2c;
$icd-rentgen-color: #99ffdd; $icd-rentgen-color: #99ffdd;
$highlight-color: #ccffee; $highlight-color: #ccffee;
$row-color: hsl(160, 100%, 94%);
$pale-yellow: #fff8e5; $pale-yellow: #fff8e5;
$pale-red: hsl(10.8, 100%, 94.9%);
$contrast-yellow: #ffb900; $contrast-yellow: #ffb900;
$contrast-red: #ff726b;
$dark-red: hsl(2.8, 100%, 34%);

View File

@ -1,7 +1,7 @@
@font-face { @font-face {
font-family: 'Fira Code'; font-family: 'Fira Code';
src: url('../assets/fonts/fira-code/woff2/FiraCode-Light.woff2') format('woff2'), src: url('../assets/fonts/fira-code/woff2/FiraCode-Light.woff2') format('woff2'),
url('../assets/fonts/fira-code/woff/FiraCode-Light.woff') format('woff'); url('../assets/fonts/fira-code/woff/FiraCode-Light.woff') format('woff');
font-weight: 300; font-weight: 300;
font-style: normal; font-style: normal;
} }

View File

@ -10,8 +10,6 @@
user-select: none; user-select: none;
} }
html { html {
font-size: 1rem; font-size: 1rem;
font-family: 'OpenSans'; font-family: 'OpenSans';