Skip to content

Commit f18b640

Browse files
committed
sync
1 parent f1cf9cf commit f18b640

File tree

2 files changed

+54
-52
lines changed

2 files changed

+54
-52
lines changed

new/apps/web/src/lib/common/ModalWidget.svelte

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -21,49 +21,49 @@
2121
onclick={() => {
2222
expanded = true;
2323
}}
24-
class="widget">
24+
class="_widget">
2525
<h1>{title}</h1>
2626
<div class="widget-values">
2727
{@render widgetContents()}
2828
</div>
2929
</button>
3030

3131
{#if expanded}
32-
<span class="backdrop" onclick={() => {expanded = false}}>
32+
<span class="backdrop" onclick={() => {expanded = false}} role="none">
3333
</span>
34-
<div class="modal">
35-
<!-- modal header -->
36-
<div>
37-
<h5>{title}</h5>
38-
<button onclick={() => {expanded = false;}} type="button" aria-label="Close"
39-
></button>
40-
</div>
34+
<div class="_modal">
35+
<!-- modal header -->
36+
<div>
37+
<h5>{title}</h5>
38+
<button onclick={() => {expanded = false;}} type="button" aria-label="Close"
39+
></button>
40+
</div>
4141

42-
<div class="modal-body">
43-
{@render modalContents()}
44-
</div>
42+
<div class="modal-body">
43+
{@render modalContents()}
44+
</div>
4545

46-
<!-- more info -->
47-
<!-- <div class="modal-body">
48-
{@render extraModalContents()}
49-
</div> -->
46+
<!-- more info -->
47+
<!-- <div class="modal-body">
48+
{@render extraModalContents()}
49+
</div> -->
5050

51-
<!-- footer -->
52-
<div>
53-
<!-- {#if extraModalContents}
54-
<button
55-
type="button"
56-
class="btn btn-secondary"
57-
id={modalId + '-more-info-button'}
58-
onclick={() => infoClick(modalId)}>More Info</button
59-
>
60-
{/if} -->
61-
<button
62-
onclick={() => {expanded = false;}}
63-
type="button">Close</button
64-
>
65-
</div>
66-
</div>
51+
<!-- footer -->
52+
<div>
53+
<!-- {#if extraModalContents}
54+
<button
55+
type="button"
56+
class="btn btn-secondary"
57+
id={modalId + '-more-info-button'}
58+
onclick={() => infoClick(modalId)}>More Info</button
59+
>
60+
{/if} -->
61+
<button
62+
onclick={() => {expanded = false;}}
63+
type="button">Close</button
64+
>
65+
</div>
66+
</div>
6767
{/if}
6868
<style>
6969
.widget-values {
@@ -74,16 +74,11 @@
7474
font-size: 16pt;
7575
}
7676
77-
.widget h1 {
78-
font-size: 13pt;
79-
font-weight: 400;
80-
margin: 0;
81-
padding-top: 5px;
82-
padding-bottom: 8px;
83-
text-align: center;
84-
}
85-
86-
.widget {
77+
/*
78+
Underscore needed to stop bootstrap from interfering with css
79+
can be removed when bootstrap is
80+
*/
81+
._widget {
8782
cursor: pointer;
8883
/* TODO: rem-ify */
8984
width: 260px;
@@ -96,6 +91,16 @@
9691
color: var(--base-font-color-dark);
9792
}
9893
94+
._widget h1 {
95+
font-size: 13pt;
96+
font-weight: 400;
97+
margin: 0;
98+
padding-top: 5px;
99+
padding-bottom: 8px;
100+
text-align: center;
101+
color: var(--base-font-color-dark);
102+
}
103+
99104
.backdrop {
100105
z-index: 1054;
101106
position: absolute;
@@ -106,16 +111,11 @@
106111
background-color: #00000099;
107112
}
108113
109-
.modal {
114+
._modal {
110115
/* pending removal of bootstrap */
111-
display: inline !important;
112-
position: absolute;
113-
width: auto;
114-
top: 50%;
115-
left: 50%;
116-
transform: translate(-50%, -50);
117116
max-width: 500px;
118117
z-index: 1055;
119118
background-color: var(--color-surface-900);
119+
color: var(--base-font-color-dark);
120120
}
121121
</style>

new/apps/web/src/routes/+page.svelte

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,18 @@
2323
</div>
2424

2525
<style>
26+
2627
.vp {
2728
background-color: var(--color-surface-950);
2829
margin: 0;
2930
padding: 0;
30-
width: 100vw !important;
3131
/* flex-grow: 0;
3232
flex-shrink: 0; */
3333
}
3434
35-
:global(body) {
36-
width: 100vw !important;
35+
#legacy-content {
36+
/* Some legacy content is escaping and it should not
37+
be allowed to do so */
38+
overflow: hidden;
3739
}
3840
</style>

0 commit comments

Comments
 (0)