1- import type { Component } from "dreamland/core" ;
1+ import { css , type Component } from "dreamland/core" ;
22import iconBack from "@ktibow/iconset-ion/arrow-back" ;
33import iconForwards from "@ktibow/iconset-ion/arrow-forward" ;
44import iconRefresh from "@ktibow/iconset-ion/refresh" ;
@@ -14,10 +14,10 @@ import { IconButton } from "./IconButton";
1414export const Spacer : Component = function ( cx ) {
1515 return < div > </ div > ;
1616} ;
17- Spacer . css = `
18- :scope {
19- width: 2em;
20- }
17+ Spacer . style = css `
18+ : scope {
19+ width : 2em ;
20+ }
2121` ;
2222
2323export const UrlInput : Component <
@@ -164,70 +164,70 @@ export const UrlInput: Component<
164164 </ div >
165165 ) ;
166166} ;
167- UrlInput . css = `
168- :scope {
169- position: relative;
170- flex: 1;
171- display: flex;
172- height: 100%;
173- }
174- .overflow {
175- position: absolute;
176- display: none;
177- background: var(--aboutbrowser-omnibox-bg);
178- width: 100%;
179- border-radius: 4px;
180- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
181- }
182- .overflow .spacer {
183- display: block;
184- height: 2.5em;
185- }
186- .overflowitem {
187- display: flex;
188- align-items: center;
189- height: 2.5em;
190- cursor: pointer;
191- }
192- .overflowitem.focused {
193- background: blue;
194- }
195-
196- .overflow.active {
197- display: block;
198- }
199- .inactivebar {
200- background: white;
201- width: 100%;
202- border: none;
203- outline: none;
204- border-radius: 4px;
205- margin: 0.25em;
206- }
207- input, .inactiveurl {
208- background: none;
209- border: none;
210- outline: none;
167+ UrlInput . style = css `
168+ : scope {
169+ position : relative;
170+ flex : 1 ;
171+ display : flex;
172+ height : 100% ;
173+ }
174+ .overflow {
175+ position : absolute;
176+ display : none;
177+ background : var (--aboutbrowser-omnibox-bg );
178+ width : 100% ;
179+ border-radius : 4px ;
180+ box-shadow : 0 2px 8px rgba (0 , 0 , 0 , 0.15 );
181+ }
182+ .overflow .spacer {
183+ display : block;
184+ height : 2.5em ;
185+ }
186+ .overflowitem {
187+ display : flex;
188+ align-items : center;
189+ height : 2.5em ;
190+ cursor : pointer;
191+ }
192+ .overflowitem .focused {
193+ background : blue;
194+ }
211195
212- font-size: 1.00em;
196+ .overflow .active {
197+ display : block;
198+ }
199+ .inactivebar {
200+ background : white;
201+ width : 100% ;
202+ border : none;
203+ outline : none;
204+ border-radius : 4px ;
205+ margin : 0.25em ;
206+ }
207+ input ,
208+ .inactiveurl {
209+ background : none;
210+ border : none;
211+ outline : none;
213212
214- height: 100%;
215- width: 100%;
216- }
217- .inactiveurl {
218- display: flex;
219- align-items: center;
220- }
213+ font-size : 1em ;
221214
215+ height : 100% ;
216+ width : 100% ;
217+ }
218+ .inactiveurl {
219+ display : flex;
220+ align-items : center;
221+ }
222222
223- .realbar {
224- position: absolute;
225- width: 100%;
226- height: 100%;
227- display: flex;
228- z-index: 1;
229- align-items: center;
230- }
223+ .realbar {
224+ position : absolute;
225+ width : 100% ;
226+ height : 100% ;
227+ display : flex;
228+ z-index : 1 ;
229+ align-items : center;
230+ }
231231` ;
232232
233233export const Omnibox : Component < {
@@ -270,13 +270,13 @@ export const Omnibox: Component<{
270270 </ div >
271271 ) ;
272272} ;
273- Omnibox . css = `
274- :scope {
275- background: var(--aboutbrowser-omnibox-bg);
276- display: flex;
277- padding: 0px 7px 0px 7px;
278- height: 2.5em;
279- align-items: center;
280- position: relative;
281- }
273+ Omnibox . style = css `
274+ : scope {
275+ background : var (--aboutbrowser-omnibox-bg );
276+ display : flex;
277+ padding : 0px 7px 0px 7px ;
278+ height : 2.5em ;
279+ align-items : center;
280+ position : relative;
281+ }
282282` ;
0 commit comments