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 {
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 ;
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 ;
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 >
0 commit comments