forked from mozilla-b2g/gaia
/
rocketbar.css
128 lines (107 loc) · 2.11 KB
/
rocketbar.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
#rocketbar {
position: fixed;
width: 100%;
height: 4.8rem;
left: 0;
top: 0;
transition: transform 0.5s;
transform: scale(0.5);
transform-origin: left top;
}
*[dir=rtl] #rocketbar {
left: auto;
right: 0;
transform-origin: right top;
}
#rocketbar.expanded {
transform: scale(1);
}
body.rb-enabled #screen:not(.cards-view) #rocketbar.on-homescreen:not(.active) {
transform: scale(1) translateY(2.4rem);
}
#screen.locked:not(.attention) #rocketbar {
display: none;
}
body:not(.rb-enabled) #rocketbar {
display: none;
}
#rocketbar-title, #rocketbar-form {
position: absolute;
height: 3.6rem;
background-color: #333;
border-radius: 1.8rem;
padding: 0 1rem;
margin: 0.6rem;
overflow: hidden;
white-space: nowrap;
}
#rocketbar-title {
width: calc(100% - 3.2rem);
}
#rocketbar-form {
display: flex;
flex-direction: row;
}
#rocketbar-title-content, #rocketbar-input {
display: block;
width: 100%;
height: 3.6rem;
color: #fff;
padding: 0.6rem;
text-overflow: ellipsis;
}
#rocketbar-title-content {
font-size: 1.8rem;
font-style: italic;
transform: scale(1.33);
transform-origin: left center;
transition: transform 0.5s;
overflow: hidden;
}
*[dir=rtl] #rocketbar-title-content {
transform-origin: right center;
}
#rocketbar.expanded #rocketbar-title-content {
transform: scale(1);
}
#rocketbar-input {
font-size: 1.8rem;
background: none;
border: none;
}
#rocketbar-input, #rocketbar-cancel {
flex: auto;
}
#rocketbar-cancel {
background: none;
border: none;
border-left: solid 1px rgba(255, 255, 255, 0.08);
color: #00AACC;
font-size: 1.4rem;
line-height: 1.8rem;
}
#rocketbar-title.hidden, #rocketbar-form.hidden {
display: none;
}
#rocketbar-results {
position: fixed;
width: 100%;
height: calc(100% - 4.8rem);
top: 4.8rem;
left: 0;
background-color: #212121;
}
#screen.software-button-enabled #rocketbar-results {
height: calc(100% - 9.8rem);
}
#rocketbar-results iframe {
border: 0;
width: 100%;
height: 100%;
}
#rocketbar-results.hidden, #rocketbar-results iframe.hidden {
display: none;
}
#search.appWindow {
top: 0;
}