|
1 | 1 | html, body { |
2 | | - height: 100%; |
| 2 | + height: 100%; |
3 | 3 | } |
4 | 4 |
|
5 | 5 | body { |
6 | | - max-width: 100%; |
7 | | - padding: 0; |
8 | | - margin: 0; |
9 | | - overflow: hidden; |
| 6 | + max-width: 100%; |
| 7 | + padding: 0; |
| 8 | + margin: 0; |
| 9 | + overflow: hidden; |
10 | 10 | } |
11 | 11 |
|
12 | 12 | body:not(.toc-inline) { |
13 | 13 | padding: 0; |
14 | 14 | } |
15 | 15 |
|
16 | 16 | #base_window_layer { |
17 | | - box-sizing: border-box; |
18 | | - height: 100%; |
19 | | - width: 100%; |
20 | | - /* Use overflow scroll and webkit-overflow-scrolling to add momentum scroll*/ |
21 | | - overflow: scroll; |
22 | | - -webkit-overflow-scrolling: touch; |
23 | | - padding: 1.6em 0 2em; |
| 17 | + box-sizing: border-box; |
| 18 | + height: 100%; |
| 19 | + width: 100%; |
| 20 | + /* Use overflow scroll and webkit-overflow-scrolling to add momentum scroll*/ |
| 21 | + overflow: scroll; |
| 22 | + -webkit-overflow-scrolling: touch; |
| 23 | + padding: 1.6em 0 2em; |
24 | 24 | } |
25 | 25 |
|
26 | 26 | #base_window_layer main, #base_window_layer nav { |
27 | | - max-width: 50em; |
28 | | - margin: auto; |
29 | | - padding-right: 1.5em; |
30 | | - padding-left: 50px; |
31 | | - padding-left: calc(26px + 1.5em); |
| 27 | + max-width: 50em; |
| 28 | + margin: auto; |
| 29 | + padding-right: 1.5em; |
| 30 | + padding-left: 50px; |
| 31 | + padding-left: calc(26px + 1.5em); |
32 | 32 | } |
33 | 33 |
|
34 | 34 | @media screen and (min-width: 78em) { |
35 | | - body:not(.toc-inline) #base_window_layer main, body:not(.toc-inline) #base_window_layer nav { |
36 | | - padding-left: 29em; |
37 | | - } |
| 35 | + body:not(.toc-inline) #base_window_layer main, body:not(.toc-inline) #base_window_layer nav { |
| 36 | + padding-left: 29em; |
| 37 | + } |
38 | 38 |
|
39 | | - body:not(.toc-inline) { |
40 | | - padding: 0; |
41 | | - } |
| 39 | + body:not(.toc-inline) { |
| 40 | + padding: 0; |
| 41 | + } |
42 | 42 | } |
43 | 43 |
|
44 | 44 | body:not(.toc-inline) #main_content main, body:not(.toc-inline) #main_content nav { |
45 | | - padding-left: 1.5em; |
| 45 | + padding-left: 1.5em; |
46 | 46 | } |
47 | 47 |
|
48 | 48 |
|
49 | 49 | .hidden { |
50 | | - display: none |
51 | | -} |
52 | | - |
53 | | -#dialog_layer.showing { |
54 | | - position: absolute; |
55 | | - width: 100%; |
56 | | - height: 100vh; |
57 | | - top: 0; |
58 | | - left: 0; |
59 | | - overflow: scroll; |
60 | | - -webkit-overflow-scrolling: touch; |
61 | | - background: rgba(0, 0, 0, 0.3); |
62 | | -} |
63 | | - |
64 | | -div.default_dialog { |
65 | | - display: block; |
66 | | - width: 50%; |
67 | | - margin-bottom: 100px; |
68 | | - margin-left: auto; |
69 | | - margin-right: auto; |
70 | | - padding: 5px; |
71 | | - border: thin #000 solid; |
72 | | - background-color: #fff; |
73 | | - position: absolute; |
74 | | - top: 25%; |
75 | | - left: 25%; |
| 50 | + display: none |
| 51 | +} |
| 52 | + |
| 53 | +[role="dialog"] { |
| 54 | + width: 50%; |
| 55 | + margin: 10vh auto; |
| 56 | + padding: 5px; |
| 57 | + border: thin #000 solid; |
| 58 | + background-color: #fff; |
76 | 59 | } |
77 | 60 |
|
78 | 61 | @media screen and (max-width: 640px) { |
79 | | - div.default_dialog { |
80 | | - box-sizing: border-box; |
81 | | - top: 0px; |
82 | | - left: 0px; |
83 | | - margin-bottom: 0px; |
84 | | - min-height: 100%; |
85 | | - width: 100%; |
86 | | - } |
| 62 | + [role="dialog"] { |
| 63 | + box-sizing: border-box; |
| 64 | + top: 0px; |
| 65 | + left: 0px; |
| 66 | + margin: 0 auto; |
| 67 | + min-height: 100%; |
| 68 | + width: 100%; |
| 69 | + } |
87 | 70 | } |
88 | 71 |
|
89 | | -.default_dialog h2:first-of-type { |
90 | | - text-align:center; |
| 72 | +[role="dialog"] h2:first-of-type { |
| 73 | + text-align:center; |
91 | 74 | } |
92 | 75 |
|
93 | 76 | .dialog_form { |
94 | | - margin: 15px; |
| 77 | + margin: 15px; |
95 | 78 | } |
96 | 79 |
|
97 | 80 | .dialog_form .label_text { |
98 | | - box-sizing: border-box; |
99 | | - padding-right: 0.5em; |
100 | | - display: inline-block; |
101 | | - font-size: 16px; |
102 | | - font-weight: bold; |
103 | | - width: 30%; |
104 | | - text-align: right; |
| 81 | + box-sizing: border-box; |
| 82 | + padding-right: 0.5em; |
| 83 | + display: inline-block; |
| 84 | + font-size: 16px; |
| 85 | + font-weight: bold; |
| 86 | + width: 30%; |
| 87 | + text-align: right; |
105 | 88 | } |
106 | 89 |
|
107 | 90 | .dialog_form .label_info { |
108 | | - box-sizing: border-box; |
109 | | - padding-right: 0.5em; |
110 | | - font-size: 12px; |
| 91 | + box-sizing: border-box; |
| 92 | + padding-right: 0.5em; |
| 93 | + font-size: 12px; |
111 | 94 | width: 30%; |
112 | 95 | text-align: right; |
113 | 96 | display: inline-block; |
114 | 97 | } |
115 | 98 |
|
116 | 99 | .dialog_form_item { |
117 | | - margin: 10px 0; |
118 | | - font-size: 0; |
| 100 | + margin: 10px 0; |
| 101 | + font-size: 0; |
119 | 102 | } |
120 | 103 |
|
121 | 104 | .dialog_form_item .wide_input { |
122 | | - box-sizing: border-box; |
123 | | - max-width: 70%; |
124 | | - width: 27em; |
| 105 | + box-sizing: border-box; |
| 106 | + max-width: 70%; |
| 107 | + width: 27em; |
125 | 108 | } |
126 | 109 |
|
127 | 110 | .dialog_form_item .city_input { |
128 | | - box-sizing: border-box; |
129 | | - max-width: 70%; |
130 | | - width: 17em; |
| 111 | + box-sizing: border-box; |
| 112 | + max-width: 70%; |
| 113 | + width: 17em; |
131 | 114 | } |
132 | 115 |
|
133 | 116 | .dialog_form_item .state_input { |
134 | | - box-sizing: border-box; |
135 | | - max-width: 70%; |
136 | | - width: 15em; |
| 117 | + box-sizing: border-box; |
| 118 | + max-width: 70%; |
| 119 | + width: 15em; |
137 | 120 | } |
138 | 121 |
|
139 | 122 | .dialog_form_item .zip_input { |
140 | | - box-sizing: border-box; |
141 | | - max-width: 70%; |
142 | | - width: 9em; |
| 123 | + box-sizing: border-box; |
| 124 | + max-width: 70%; |
| 125 | + width: 9em; |
143 | 126 | } |
144 | 127 |
|
145 | 128 | .dialog_form_actions { |
146 | | - text-align: right; |
| 129 | + text-align: right; |
147 | 130 | padding: 0 20px 20px; |
148 | 131 | } |
149 | 132 |
|
150 | 133 | .dialog_close_button { |
151 | | - float:right; |
152 | | - position:absolute; |
153 | | - top:10px; |
154 | | - left:92%; |
155 | | - height:25px; |
| 134 | + float:right; |
| 135 | + position:absolute; |
| 136 | + top:10px; |
| 137 | + left:92%; |
| 138 | + height:25px; |
156 | 139 | } |
157 | 140 |
|
158 | 141 | .dialog_close_button img { |
159 | | - border:0; |
| 142 | + border:0; |
160 | 143 | } |
161 | 144 |
|
162 | 145 | .dialog_desc { |
163 | | - padding: 10px 20px; |
| 146 | + padding: 10px 20px; |
| 147 | +} |
| 148 | + |
| 149 | +/* native <dialog> element uses the ::backdrop pseudo-element */ |
| 150 | +/*dialog::backdrop,*/ |
| 151 | +.dialog-backdrop.active { |
| 152 | + position: fixed; |
| 153 | + overflow-y: scroll; |
| 154 | + top: 0px; |
| 155 | + right: 0px; |
| 156 | + bottom: 0px; |
| 157 | + left: 0px; |
| 158 | + background: rgba(0, 0, 0, 0.3); |
164 | 159 | } |
0 commit comments