X Tutup
Skip to content

Commit cf028aa

Browse files
committed
Added missing examples for Linux 32-bit. These examples were
already available in the 64-bit release.
1 parent 0ae23f2 commit cf028aa

File tree

7 files changed

+12047
-0
lines changed

7 files changed

+12047
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset=utf-8>
5+
<title>CEF Python 3 example (utf-8: ąś)</title>
6+
<style>
7+
body { font: 13px Segoe UI, Arial; line-height: 1.4em; }
8+
pre { background: #ddd; font: 12px Consolas, Courier New; }
9+
</style>
10+
</head>
11+
<body>
12+
13+
14+
15+
<p>Use mouse context menu to go Back/Forward in history navigation.</p>
16+
17+
18+
19+
<h3>Google Search</h3>
20+
<a href="https://www.google.com/">https://www.google.com/</a>
21+
22+
23+
24+
<h3>User agent</h3>
25+
<script>document.write(navigator.userAgent)</script>
26+
27+
28+
29+
<h3>Popup</h3>
30+
<a href="javascript:window.open('example.html')">
31+
window.open('example.html')</a>
32+
33+
34+
35+
<h3>HTML5 video and accelerated content</h3>
36+
<a href="http://www.youtube.com/watch?v=siOHh0uzcuY&html5=True">
37+
HTML 5 video</a><br>
38+
<a href="http://mudcu.be/labs/JS1k/BreathingGalaxies.html">
39+
Accelerated canvas</a><br>
40+
<a href="http://www.webkit.org/blog-files/3d-transforms/poster-circle.html">
41+
Accelerated layers</a><br>
42+
43+
44+
45+
<h3>Advanced example</h3>
46+
47+
See the wxpython.py script for an advanced usage of CEF Python 3
48+
features - including javascript bindings, js and python callbacks,
49+
client handlers and others.
50+
51+
52+
<br><br><br><br>
53+
<br><br><br><br>
54+
<br><br><br><br>
55+
<br><br><br><br>
56+
57+
</body>
58+
</html>
Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
/*
2+
IMPORTANT:
3+
1. DO NOT USE DOUBLE QUOTES HERE!
4+
This file contents is included on page using document.write:
5+
| (DQ = double quote)
6+
| document.write(DQ<style type=text/css>%(css_content)s</style>DQ);
7+
2. Each attribute must end with a semicolon, as newlines are removed
8+
from this file.
9+
*/
10+
11+
/* Dropdown control */
12+
.__kivy__selectBox-dropdown {
13+
min-width: 150px;
14+
position: relative;
15+
border: solid 1px #BBB;
16+
line-height: 1.5;
17+
text-decoration: none;
18+
text-align: left;
19+
color: #000;
20+
outline: none;
21+
vertical-align: middle;
22+
background: #F2F2F2;
23+
background: -moz-linear-gradient(top, #F8F8F8 1%, #E1E1E1 100%);
24+
background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #F8F8F8), color-stop(100%, #E1E1E1));
25+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F8F8F8', endColorstr='#E1E1E1', GradientType=0);
26+
-moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
27+
-webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
28+
box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
29+
-webkit-border-radius: 4px;
30+
-moz-border-radius: 4px;
31+
border-radius: 4px;
32+
display: inline-block;
33+
cursor: default;
34+
}
35+
36+
.__kivy__selectBox-dropdown:focus,
37+
.__kivy__selectBox-dropdown:focus .__kivy__selectBox-arrow {
38+
border-color: #666;
39+
}
40+
41+
.__kivy__selectBox-dropdown.__kivy__selectBox-menuShowing-bottom {
42+
-moz-border-radius-bottomleft: 0;
43+
-moz-border-radius-bottomright: 0;
44+
-webkit-border-bottom-left-radius: 0;
45+
-webkit-border-bottom-right-radius: 0;
46+
border-bottom-left-radius: 0;
47+
border-bottom-right-radius: 0;
48+
}
49+
50+
.__kivy__selectBox-dropdown.__kivy__selectBox-menuShowing-top {
51+
-moz-border-radius-topleft: 0;
52+
-moz-border-radius-topright: 0;
53+
-webkit-border-top-left-radius: 0;
54+
-webkit-border-top-right-radius: 0;
55+
border-top-left-radius: 0;
56+
border-top-right-radius: 0;
57+
}
58+
59+
.__kivy__selectBox-dropdown .__kivy__selectBox-label {
60+
padding: 2px 8px;
61+
display: inline-block;
62+
white-space: nowrap;
63+
overflow: hidden;
64+
}
65+
66+
.__kivy__selectBox-dropdown .__kivy__selectBox-arrow {
67+
position: absolute;
68+
top: 0;
69+
right: 0;
70+
width: 23px;
71+
height: 100%;
72+
background: url(data:image/gif;base64,R0lGODlhCQAOAIABAAAAAP///yH5BAEAAAEALAAAAAAJAA4AAAIXjAOnwIrcDJxvQoez3tUmn0jUEjmhUQAAOw==) 50% center no-repeat;
73+
border-left: solid 1px #BBB;
74+
}
75+
76+
/* Dropdown menu */
77+
.__kivy__selectBox-dropdown-menu {
78+
position: absolute;
79+
z-index: 99999;
80+
max-height: 200px;
81+
min-height: 1em;
82+
border: solid 1px #BBB; /* should be the same border width as .__kivy__selectBox-dropdown */
83+
background: #FFF;
84+
-moz-box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
85+
-webkit-box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
86+
box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
87+
overflow: auto;
88+
-webkit-overflow-scrolling: touch;
89+
}
90+
91+
/* Inline control */
92+
.__kivy__selectBox-inline {
93+
min-width: 150px;
94+
outline: none;
95+
border: solid 1px #BBB;
96+
background: #FFF;
97+
display: inline-block;
98+
-webkit-border-radius: 4px;
99+
-moz-border-radius: 4px;
100+
border-radius: 4px;
101+
overflow: auto;
102+
}
103+
104+
.__kivy__selectBox-inline:focus {
105+
border-color: #666;
106+
}
107+
108+
/* Options */
109+
.__kivy__selectBox-options,
110+
.__kivy__selectBox-options LI,
111+
.__kivy__selectBox-options LI A {
112+
list-style: none;
113+
display: block;
114+
cursor: default;
115+
padding: 0;
116+
margin: 0;
117+
}
118+
119+
.__kivy__selectBox-options.__kivy__selectBox-options-top{
120+
border-bottom:none;
121+
margin-top:1px;
122+
-moz-border-radius-topleft: 5px;
123+
-moz-border-radius-topright: 5px;
124+
-webkit-border-top-left-radius: 5px;
125+
-webkit-border-top-right-radius: 5px;
126+
border-top-left-radius: 5px;
127+
border-top-right-radius: 5px;
128+
}
129+
.__kivy__selectBox-options.__kivy__selectBox-options-bottom{
130+
border-top:none;
131+
-moz-border-radius-bottomleft: 5px;
132+
-moz-border-radius-bottomright: 5px;
133+
-webkit-border-bottom-left-radius: 5px;
134+
-webkit-border-bottom-right-radius: 5px;
135+
border-bottom-left-radius: 5px;
136+
border-bottom-right-radius: 5px;
137+
}
138+
139+
.__kivy__selectBox-options LI A {
140+
line-height: 1.5;
141+
padding: 0 .5em;
142+
white-space: nowrap;
143+
overflow: hidden;
144+
background: 6px center no-repeat;
145+
}
146+
147+
.__kivy__selectBox-options LI.__kivy__selectBox-hover A {
148+
background-color: #EEE;
149+
}
150+
151+
.__kivy__selectBox-options LI.__kivy__selectBox-disabled A {
152+
color: #888;
153+
background-color: transparent;
154+
}
155+
156+
.__kivy__selectBox-options LI.__kivy__selectBox-selected A {
157+
background-color: #C8DEF4;
158+
}
159+
160+
.__kivy__selectBox-options .__kivy__selectBox-optgroup {
161+
color: #666;
162+
background: #EEE;
163+
font-weight: bold;
164+
line-height: 1.5;
165+
padding: 0 .3em;
166+
white-space: nowrap;
167+
}
168+
169+
/* Disabled state */
170+
.__kivy__selectBox.__kivy__selectBox-disabled {
171+
color: #888 !important;
172+
}
173+
174+
.__kivy__selectBox-dropdown.__kivy__selectBox-disabled .__kivy__selectBox-arrow {
175+
opacity: .5;
176+
filter: alpha(opacity=50);
177+
border-color: #666;
178+
}
179+
180+
.__kivy__selectBox-inline.__kivy__selectBox-disabled {
181+
color: #888 !important;
182+
}
183+
184+
.__kivy__selectBox-inline.__kivy__selectBox-disabled .__kivy__selectBox-options A {
185+
background-color: transparent !important;
186+
}

0 commit comments

Comments
 (0)
X Tutup