departr 0.4 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/README.md +8 -2
- data/bin/departr-images +78 -0
- data/chrome/logo.png +0 -0
- data/chrome/manifest.json +17 -0
- data/chrome/newtab.html +85 -0
- data/chrome/newtab.js +19 -0
- data/departr.gemspec +9 -8
- data/lib/departr/commands.rb +1 -9
- data/lib/departr/config.rb +1 -7
- data/lib/departr/server.rb +48 -42
- data/lib/departr/settings.rb +7 -5
- data/public/javascripts/2_autocomplete.js +6 -2
- data/public/javascripts/{5_appliction.js → 4_appliction.js} +0 -24
- data/public/javascripts/{6_command.js → 5_command.js} +26 -9
- data/public/javascripts/9_run.js +11 -0
- data/screenshot.jpg +0 -0
- data/views/help.haml +9 -6
- data/views/index.haml +3 -54
- data/views/layout.haml +1 -0
- data/views/settings.haml +0 -32
- data/views/style.sass +74 -147
- metadata +58 -51
- data/Gemfile.lock +0 -30
- data/public/javascripts/4_coolclock.js +0 -325
- data/screenshot.png +0 -0
data/lib/departr/settings.rb
CHANGED
@@ -3,17 +3,19 @@ module Departr
|
|
3
3
|
extend self
|
4
4
|
|
5
5
|
KEYS = [
|
6
|
-
:default_search, :open_in_new_page
|
7
|
-
:github, :calendar,
|
8
|
-
:clock1, :clock2, :clock3
|
6
|
+
:default_search, :open_in_new_page
|
9
7
|
]
|
10
8
|
|
11
9
|
def filename(provider, user)
|
12
10
|
File.join(Config.data_path, provider, user, 'settings')
|
13
11
|
end
|
14
12
|
|
15
|
-
def
|
16
|
-
|
13
|
+
def time(provider, user)
|
14
|
+
if File.exists? filename(provider, user)
|
15
|
+
File.mtime(filename(provider, user))
|
16
|
+
else
|
17
|
+
Time.at(0)
|
18
|
+
end
|
17
19
|
end
|
18
20
|
|
19
21
|
def get(provider, user)
|
@@ -118,8 +118,12 @@ var AutoComplete = new Class({
|
|
118
118
|
case 'tab':
|
119
119
|
if (!this.isHidden()) {
|
120
120
|
e.stop();
|
121
|
-
|
122
|
-
|
121
|
+
if (this.hover != false) {
|
122
|
+
this.fireEvent('complete', [this.hover.retrieve('value')]);
|
123
|
+
this.hide();
|
124
|
+
} else {
|
125
|
+
this.showHover(this.box.getFirst('.match'))
|
126
|
+
}
|
123
127
|
}
|
124
128
|
break;
|
125
129
|
}
|
@@ -113,30 +113,6 @@ var Application = {
|
|
113
113
|
Settings.open_in_new_page = !Settings.open_in_new_page;
|
114
114
|
})
|
115
115
|
$('setting_open_in_new_page').checked = (Settings.open_in_new_page === true);
|
116
|
-
|
117
|
-
$('setting_github').addEvent('click', function() {
|
118
|
-
Settings.github = !Settings.github;
|
119
|
-
$(window.parent.document).getElement('#github').setStyle('display', Settings.github === true ? 'block': 'none');
|
120
|
-
})
|
121
|
-
$('setting_github').checked = (Settings.github === true);
|
122
|
-
|
123
|
-
$('setting_calendar').addEvent('click', function() {
|
124
|
-
Settings.calendar = !Settings.calendar;
|
125
|
-
$(window.parent.document).getElement('#date').setStyle('display', Settings.calendar === true ? 'block': 'none');
|
126
|
-
})
|
127
|
-
$('setting_calendar').checked = (Settings.calendar === true);
|
128
|
-
|
129
|
-
$('setting_clock1').addEvent('change', function() {
|
130
|
-
Settings.clock1 = this.value;
|
131
|
-
});
|
132
|
-
|
133
|
-
$('setting_clock2').addEvent('change', function() {
|
134
|
-
Settings.clock2 = this.value;
|
135
|
-
});
|
136
|
-
|
137
|
-
$('setting_clock3').addEvent('change', function() {
|
138
|
-
Settings.clock3 = this.value;
|
139
|
-
});
|
140
116
|
}
|
141
117
|
}
|
142
118
|
});
|
@@ -165,7 +165,7 @@ var Command = {
|
|
165
165
|
var matches = $('input').value.match(Command.pattern);
|
166
166
|
if (matches) {
|
167
167
|
var answer = $('answer');
|
168
|
-
var label = matches[0].replace(Command.patternsCleaner, '')
|
168
|
+
var label = matches[0].replace(Command.patternsCleaner, '');
|
169
169
|
$('label').set('html', label + ' » ');
|
170
170
|
answer.value = '';
|
171
171
|
$('question').setStyle('display', 'block');
|
@@ -183,6 +183,29 @@ var Command = {
|
|
183
183
|
return;
|
184
184
|
}
|
185
185
|
|
186
|
+
// If it starts with ! find the corresponding command and go for it
|
187
|
+
if (this.input.value.charAt(0) == '!') {
|
188
|
+
// In reverse to find the biggest command matching
|
189
|
+
for (var i = Command.data.length - 1; i >= 0; i--) {
|
190
|
+
var patterns = new RegExp(Command.pattern.source, 'g');
|
191
|
+
var re = new RegExp(Command.data[i].name.replace(patterns, '(.*)'));
|
192
|
+
var values = this.input.value.substr(1).match(re);
|
193
|
+
if (values) {
|
194
|
+
var found = Command.data[i];
|
195
|
+
var keywords = found.name.match(patterns);
|
196
|
+
var url = found.url;
|
197
|
+
if (keywords) {
|
198
|
+
// Replace all {keyword} in the right order by the corresponding value
|
199
|
+
for (var j = 0; j < keywords.length; j++) {
|
200
|
+
url = url.replace(keywords[j], values[j+1]);
|
201
|
+
}
|
202
|
+
}
|
203
|
+
Command.go(url);
|
204
|
+
return;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
186
209
|
// Default command
|
187
210
|
if (!this.input.value.match(/^\s*$/)) {
|
188
211
|
if (this.input.value.match(/^\s*(ftp|http|https):\/\//i)) {
|
@@ -226,7 +249,8 @@ var Command = {
|
|
226
249
|
return command.name;
|
227
250
|
},
|
228
251
|
filters: [function(o,v) {
|
229
|
-
|
252
|
+
var re = new RegExp(v.escapeRegExp().replace(/\s+/, '.*'));
|
253
|
+
return o.match(re, 'i');
|
230
254
|
}]
|
231
255
|
}).addEvent('complete', function(value) {
|
232
256
|
Command.selected = value.url;
|
@@ -276,13 +300,6 @@ var Command = {
|
|
276
300
|
window.focus();
|
277
301
|
$('input').focus();
|
278
302
|
});
|
279
|
-
|
280
|
-
if ($('date')) {
|
281
|
-
var today = new Date;
|
282
|
-
var weekdays = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
|
283
|
-
$('date').getElement('.day').set('text', today.getDate());
|
284
|
-
$('date').getElement('.wday').set('text', weekdays[today.getDay()]);
|
285
|
-
}
|
286
303
|
}
|
287
304
|
};
|
288
305
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
window.addEvent('domready', function() {
|
2
|
+
Application.init();
|
3
|
+
Command.init();
|
4
|
+
if (Cookie.read('bg_id') && Cookie.read('bg_user')) {
|
5
|
+
var credits = $('credits');
|
6
|
+
var a = new Element('a', {
|
7
|
+
'href': 'http://500px.com/photo/' + Cookie.read('bg_id'),
|
8
|
+
'text': '© ' + Cookie.read('bg_user').replace(/\+/g," ")
|
9
|
+
}).inject(credits)
|
10
|
+
}
|
11
|
+
});
|
data/screenshot.jpg
ADDED
Binary file
|
data/views/help.haml
CHANGED
@@ -12,24 +12,27 @@
|
|
12
12
|
for example "netvibes", and instead hit RETURN, hit CONTROL+ENTER,
|
13
13
|
it will do a "I'm feelink lucky".
|
14
14
|
|
15
|
-
%p But there is more
|
15
|
+
%p But there is more!
|
16
16
|
|
17
17
|
%p
|
18
|
-
For example, start typing "map" and hit the RETURN key.
|
19
|
-
Then type "Paris, France" and RETURN again, nice
|
18
|
+
For example, start typing "map" and hit the TAB then then RETURN key.
|
19
|
+
Then type "Paris, France" and RETURN again, nice!
|
20
|
+
|
21
|
+
%p
|
22
|
+
You can also type "!maps to paris" then RETURN, it will be even quicker!
|
20
23
|
|
21
24
|
%p
|
22
25
|
Another example, start typing "twit", two results are
|
23
26
|
listed below, "twitter" and "twitter search for ?".
|
24
27
|
Hit the DOWN key and then the RETURN key. Type
|
25
28
|
"obama" in the input filed has just appeared, and
|
26
|
-
hit RETURN again. Voila
|
29
|
+
hit RETURN again. Voila!
|
27
30
|
|
28
31
|
%p
|
29
32
|
If your are too lazy or would like to be even faster
|
30
33
|
you can only specify partial command name. For example,
|
31
34
|
you have that command "images search for {words}", start
|
32
|
-
typing "go se" and it will be selected. Awesome isn't it
|
35
|
+
typing "go se" and it will be selected. Awesome isn't it!
|
33
36
|
|
34
37
|
%p
|
35
38
|
Many other commands are available by default, but if
|
@@ -38,7 +41,7 @@
|
|
38
41
|
add your own custom commands.
|
39
42
|
%p
|
40
43
|
So do not hesitate to set #{host} as you homepage
|
41
|
-
in your favorite browser
|
44
|
+
in your favorite browser:
|
42
45
|
%ul
|
43
46
|
%li
|
44
47
|
%a{:href => "http://support.mozilla.com/en-US/kb/How+to+set+the+home+page", :target => :_blank} Firefox
|
data/views/index.haml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
-# coding: utf-8
|
2
|
-
|
3
|
-
|
2
|
+
#background
|
3
|
+
|
4
|
+
#credits
|
4
5
|
|
5
6
|
#header
|
6
7
|
- if @config.get(:rpx)
|
@@ -12,60 +13,8 @@
|
|
12
13
|
%a{:id => :signout, :href => '#'} Sign Out
|
13
14
|
|
14
15
|
%form{:id => :commandline}
|
15
|
-
#logo= "depart<span>r</span>"
|
16
|
-
%img{:src => 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAcCAYAAAByDd+UAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAGFwAABhcBlmjpmQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIcSURBVEiJtZaxaxRREIe/d0aMQUUCz+ZZaidYCKJgI4rohYgQRUTRP0BQsA9iQK0EwVJsRfRMIJjLaZVGEKwsLGzEZrAYsDlziTl1LHYP9ta7vd3lduAV++O3+zHvzcxbJ2pUGcG7Y8AD4BCw4qoEBu8uAi+AbbHUrVUIqwPPEzCAz5VkGLw7CTSByYT8F5gde4bBu+PAcgr2B7ghas2J2HQUmBoDbxp4BuxKaFvAFVFb7AnzgFW0OsBZUaO3asAR4NcYskvHT6Auaq2kWBO1C8A+4CqwCGyMCXhT1NbS4n9VGrybAurAHDAD7C4JnBG1ZlqcSAui1gEaQCN4NwmcieHngb0l4cOBKfgmUYkvB++2A6di+GVKZp4JTMG7QAtoBe8CcK4MsHDjB+8elYUVBgbv5oE7CekNsF4JMHh3C1hISI+JCmmpCLDvDIN3O4DZtA4cBO4lnu+K2kL8TgO4VhgYw5bIPh8Dbovak4T2FmiTs2qTWzoN7AG6Gf77KVivdVbywPqAovZd1E4QNfdpYG2A/9uQ77wqDEyAO8An4MAA/7DsV8lZrcOq9DqwH/hKf6Zbg8yitkF0w5cGPiUaX4eBh6OAceTa1oGjTdTawEuA4N174HfszQI2ia62nVnAkY0vauvAR6Kp8m6Eb3XU9/JOmkvAnKhlZQg5tjXXbSFqksdH1I+bRH9sP0oD84aotYN3r4EvovZhkOcfNY7IMKY9rjcAAAAASUVORK5CYII='}
|
17
16
|
%input{:type => :text, :id => :input, :name => :input}
|
18
17
|
#question
|
19
18
|
%label#label Question
|
20
19
|
%input{:type => :text, :id => :answer, :name => :answer}
|
21
|
-
#special
|
22
|
-
#date.clock{:style => "display: #{@settings["calendar"] ? "block" : "none"}"}
|
23
|
-
.wday
|
24
|
-
.day
|
25
|
-
%canvas#clock1.clock{:style => "display: #{(@settings["clock1"] && @settings["clock1"] != "-none-") ? "block" : "none"}"}
|
26
|
-
%canvas#clock2.clock{:style => "display: #{(@settings["clock2"] && @settings["clock2"] != "-none-") ? "block" : "none"}"}
|
27
|
-
%canvas#clock3.clock{:style => "display: #{(@settings["clock3"] && @settings["clock3"] != "-none-") ? "block" : "none"}"}
|
28
|
-
|
29
|
-
:javascript
|
30
|
-
|
31
|
-
// Globals
|
32
|
-
Command.data = #{@commands.to_json};
|
33
|
-
Settings = #{@settings.to_json};
|
34
|
-
|
35
|
-
window.addEvent('domready', function() {
|
36
|
-
Application.init();
|
37
|
-
Command.init();
|
38
|
-
|
39
|
-
// Clock 1
|
40
|
-
if ($('clock1').getStyle('display') == 'block') {
|
41
|
-
new CoolClock({
|
42
|
-
canvasId: 'clock1',
|
43
|
-
displayRadius: 40,
|
44
|
-
gmtOffset: #{clock_offset(@settings["clock1"])},
|
45
|
-
label: #{clock_label(@settings["clock1"])},
|
46
|
-
fontSize: '30px'
|
47
|
-
});
|
48
|
-
}
|
49
|
-
|
50
|
-
// Clock 2
|
51
|
-
if ($('clock2').getStyle('display') == 'block') {
|
52
|
-
new CoolClock({
|
53
|
-
canvasId: 'clock2',
|
54
|
-
displayRadius: 40,
|
55
|
-
gmtOffset: #{clock_offset(@settings["clock2"])},
|
56
|
-
label: #{clock_label(@settings["clock2"])},
|
57
|
-
fontSize: '30px'
|
58
|
-
});
|
59
|
-
}
|
60
20
|
|
61
|
-
// Clock 3
|
62
|
-
if ($('clock3')) {
|
63
|
-
new CoolClock({
|
64
|
-
canvasId: 'clock3',
|
65
|
-
displayRadius: 40,
|
66
|
-
gmtOffset: #{clock_offset(@settings["clock3"])},
|
67
|
-
label: #{clock_label(@settings["clock3"])},
|
68
|
-
fontSize: '30px'
|
69
|
-
});
|
70
|
-
}
|
71
|
-
});
|
data/views/layout.haml
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
%meta{'http-equiv' => 'content-type', :content => 'text/html; charset=utf-8'}
|
7
7
|
%link{:rel => :stylesheet, :href => "/stylesheets/all.css", :type => "text/css"}
|
8
8
|
%script{:type => 'text/javascript', :src => '/javascripts/all.js'}
|
9
|
+
%script{:type => 'text/javascript', :src => '/javascripts/context.js'}
|
9
10
|
%body
|
10
11
|
= yield
|
11
12
|
|
data/views/settings.haml
CHANGED
@@ -10,36 +10,4 @@
|
|
10
10
|
|
11
11
|
%label{:for => "setting_open_in_new_page"} Open in a new page ?
|
12
12
|
%input{:id => "setting_open_in_new_page", :type => :checkbox}
|
13
|
-
%hr
|
14
|
-
|
15
|
-
%label{:for => "setting_github"} Show github ribbon ?
|
16
|
-
%input{:id => "setting_github", :type => :checkbox}
|
17
|
-
%hr
|
18
|
-
|
19
|
-
%label{:for => "setting_clalendar"} Show calendar ?
|
20
|
-
%input{:id => "setting_calendar", :type => :checkbox}
|
21
|
-
%hr
|
22
|
-
|
23
|
-
%label{:for => "setting_clock1"} First clock
|
24
|
-
%select{:id => "setting_clock1"}
|
25
|
-
%hr
|
26
|
-
|
27
|
-
%label{:for => "setting_clock2"} Second clock
|
28
|
-
%select{:id => "setting_clock2"}
|
29
|
-
%hr
|
30
|
-
|
31
|
-
%label{:for => "setting_clock3"} Third clock
|
32
|
-
%select{:id => "setting_clock3"}
|
33
|
-
|
34
|
-
:javascript
|
35
13
|
|
36
|
-
// Reduce page size by inlining only 1 time the zone list
|
37
|
-
var zones = #{TZInfo::Timezone.all.collect(&:identifier).to_json};
|
38
|
-
["clock1", "clock2", "clock3"].each(function(clock) {
|
39
|
-
new Element('option', {value: '-none', text: "Nothing"}).inject($('setting_' + clock));
|
40
|
-
zones.each(function(zone) {
|
41
|
-
var option = new Element('option', {value: zone, text: zone.replace(/_/g, ' ')})
|
42
|
-
if (Settings[clock] == zone) option.set('selected', 'selected');
|
43
|
-
option.inject($('setting_' + clock));
|
44
|
-
});
|
45
|
-
});
|
data/views/style.sass
CHANGED
@@ -1,11 +1,6 @@
|
|
1
1
|
|
2
|
-
$color1:
|
3
|
-
$color2:
|
4
|
-
$webkit_gradient: -webkit-gradient(linear, left top, left bottom, from($color1), to($color2))
|
5
|
-
$moz_gradient: -moz-linear-gradient(top,$color1,$color2)
|
6
|
-
|
7
|
-
$webkit_gradient_inverted: -webkit-gradient(linear, left top, left bottom, from($color2 / 1.4), to($color1 / 1.1))
|
8
|
-
$moz_gradient_inverted: -moz-linear-gradient(top,$color2 / 1.4,$color1 / 1.1)
|
2
|
+
$color1: rgba(238,238,238,0.8)
|
3
|
+
$color2: rgba(255,255,255,0.8)
|
9
4
|
|
10
5
|
*
|
11
6
|
font-family: "trebuchet MS", verdana, sans-serif
|
@@ -16,8 +11,6 @@ body
|
|
16
11
|
height: 100%
|
17
12
|
overflow: hidden
|
18
13
|
background-color: $color1
|
19
|
-
background: $webkit_gradient
|
20
|
-
background: $moz_gradient
|
21
14
|
|
22
15
|
html
|
23
16
|
height: 100%
|
@@ -26,69 +19,66 @@ html
|
|
26
19
|
a, a:hover, a:link, a:visited
|
27
20
|
color: inherit
|
28
21
|
|
29
|
-
#
|
30
|
-
|
31
|
-
|
32
|
-
font-size: 30px
|
33
|
-
text-align: right
|
34
|
-
text-shadow: white 1px 1px 0px
|
35
|
-
|
36
|
-
span
|
37
|
-
color: #54acff
|
38
|
-
|
39
|
-
.baseline
|
40
|
-
opacity: 0.3
|
41
|
-
filter: alpha(opacity=30)
|
42
|
-
font-size: 15pt
|
43
|
-
display: block
|
22
|
+
#background
|
23
|
+
width: 100%
|
24
|
+
height: 100%
|
44
25
|
position: absolute
|
45
|
-
top:
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
26
|
+
top: 0px
|
27
|
+
left: 0px
|
28
|
+
color: transparent
|
29
|
+
background-size: cover
|
30
|
+
background-position: 50% 50%
|
31
|
+
background-repeat: none
|
32
|
+
background-image: url(/background.jpg)
|
33
|
+
z-index: -1
|
34
|
+
|
35
|
+
#background:after
|
36
|
+
width: 100%
|
37
|
+
position: absolute
|
38
|
+
font-size: 14px
|
39
|
+
top: 2em
|
40
|
+
bottom: 2em
|
41
|
+
left: 0px
|
42
|
+
content: ''
|
43
|
+
background-image: url('data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABhJREFUeNpiYGBgePz//38GRhABAgABBgBFTAbfCBNE2AAAAABJRU5ErkJggg==')
|
44
|
+
|
45
|
+
|
46
|
+
#credits, #header
|
47
|
+
background-color: rgba(255,255,255,0.4)
|
48
|
+
color: black
|
49
|
+
opacity: 0.8
|
50
|
+
filter: alpha(opacity=80)
|
51
|
+
font-size: 14px
|
52
|
+
height: 2em
|
53
|
+
line-height: 2em
|
57
54
|
|
58
|
-
#
|
55
|
+
#credits
|
59
56
|
position: absolute
|
60
|
-
|
61
|
-
|
57
|
+
left: 0px
|
58
|
+
bottom: 0px
|
59
|
+
z-index: 0
|
60
|
+
width: 100%
|
61
|
+
text-align: right
|
62
62
|
|
63
|
-
|
64
|
-
|
63
|
+
a
|
64
|
+
text-decoration: none
|
65
|
+
padding-right: 1em
|
65
66
|
|
66
67
|
#header
|
67
|
-
height: 2em
|
68
|
-
line-height: 2em
|
69
68
|
text-align: center
|
70
69
|
z-index: 100
|
71
|
-
text-shadow: white 1px 1px 0px
|
72
70
|
|
73
71
|
a
|
74
72
|
padding: 0px 1em
|
75
73
|
margin: 0px
|
76
74
|
padding-left: 16px
|
77
|
-
color: black
|
78
75
|
text-decoration: none
|
79
76
|
background-position: center left
|
80
77
|
background-repeat: no-repeat
|
81
|
-
font-size: 14px
|
82
|
-
opacity: 0.3
|
83
|
-
filter: alpha(opacity=30)
|
84
78
|
|
85
79
|
#signin, #signout, #edit, #settings
|
86
80
|
display: none
|
87
81
|
|
88
|
-
#header a:hover
|
89
|
-
opacity: 1
|
90
|
-
filter: alpha(opacity=100)
|
91
|
-
|
92
82
|
#profile
|
93
83
|
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAYAAACwXJejAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAFBJREFUGNNjYEAAfSB+D8T/obQ+AxawH6oAhveTragfTVE/Aw6QD8T1UJo8IA/E69GsWw8Vhyt4j6YAht/DFK7HoQDZRLwKYJg4RecJKDgPAMVHQDY4+DlXAAAAAElFTkSuQmCC)
|
94
84
|
|
@@ -124,11 +114,10 @@ div#settings
|
|
124
114
|
|
125
115
|
.autocomplete
|
126
116
|
margin-top: 4px
|
127
|
-
border: 1px solid
|
128
|
-
background-color:
|
117
|
+
border: 1px solid white
|
118
|
+
background-color: rgba(0,0,0,0.4)
|
129
119
|
z-index: 50
|
130
|
-
|
131
|
-
-webkit-border-radius: 6px
|
120
|
+
color: white
|
132
121
|
|
133
122
|
div
|
134
123
|
margin: 1px
|
@@ -136,17 +125,15 @@ div#settings
|
|
136
125
|
cursor: pointer
|
137
126
|
font-weight: normal
|
138
127
|
white-space: nowrap
|
139
|
-
font-size:
|
128
|
+
font-size: 25px
|
140
129
|
font-style: italic
|
141
130
|
line-height: 1.5em
|
142
131
|
display: none
|
143
132
|
|
144
133
|
div.hovered
|
145
|
-
background:
|
146
|
-
background:
|
147
|
-
color:
|
148
|
-
-moz-border-radius: 6px
|
149
|
-
-webkit-border-radius: 6px
|
134
|
+
background: white
|
135
|
+
background: rgba(255,255,255,0.6)
|
136
|
+
color: black
|
150
137
|
|
151
138
|
|
152
139
|
div.match
|
@@ -156,19 +143,10 @@ div#settings
|
|
156
143
|
|
157
144
|
#commandline
|
158
145
|
margin: 200px auto auto auto
|
159
|
-
width:
|
146
|
+
width: 800px
|
160
147
|
height: auto
|
161
|
-
padding: 20px
|
162
148
|
text-align: center
|
163
|
-
|
164
|
-
-webkit-border-radius: 10px
|
165
|
-
-moz-border-radius: 10px 10px
|
166
|
-
background-color: $color1
|
167
|
-
background: $webkit_gradient
|
168
|
-
background: $moz_gradient
|
169
|
-
|
170
|
-
#commandline img
|
171
|
-
margin-right: 10px
|
149
|
+
background: transparent
|
172
150
|
|
173
151
|
#input
|
174
152
|
-webkit-appearance: textfield
|
@@ -176,12 +154,14 @@ div#settings
|
|
176
154
|
margin: 0px
|
177
155
|
top: 205px
|
178
156
|
left: 215px
|
179
|
-
width:
|
180
|
-
border: 0px
|
157
|
+
width: 780px
|
158
|
+
border: 0px
|
159
|
+
border-bottom: 1px dotted white
|
181
160
|
outline: none
|
182
|
-
font-size:
|
183
|
-
|
184
|
-
|
161
|
+
font-size: 45px
|
162
|
+
font-weight: bold
|
163
|
+
height: 50px
|
164
|
+
color: white
|
185
165
|
vertical-align: bottom
|
186
166
|
background-color: transparent
|
187
167
|
|
@@ -190,69 +170,31 @@ div#settings
|
|
190
170
|
width: 600px
|
191
171
|
text-align: center
|
192
172
|
margin: 10px auto auto auto
|
193
|
-
border: 0px
|
173
|
+
border: 0px
|
194
174
|
|
195
175
|
#label
|
196
|
-
color:
|
176
|
+
color: white
|
197
177
|
z-index: 2
|
198
|
-
|
199
|
-
|
200
|
-
|
178
|
+
width: 240px
|
179
|
+
height: 1.2em
|
180
|
+
overflow: hidden
|
181
|
+
display: inline-block
|
201
182
|
|
202
183
|
#answer
|
203
184
|
-webkit-appearance: textfield
|
204
185
|
-webkit-user-select: text
|
205
|
-
border: 0px
|
186
|
+
border: 0px
|
206
187
|
outline: none
|
207
188
|
padding: 0px
|
208
189
|
width: 350px
|
209
|
-
color:
|
190
|
+
color: white
|
210
191
|
z-index: 1
|
211
192
|
background-color: transparent
|
193
|
+
border-bottom: 1px dotted white
|
212
194
|
|
213
195
|
#label,#answer
|
214
|
-
font-size:
|
215
|
-
|
216
|
-
#special
|
217
|
-
display: block
|
218
|
-
width: 600px
|
219
|
-
margin: auto
|
220
|
-
text-align: center
|
221
|
-
position: relative
|
222
|
-
padding-top: 55px
|
223
|
-
|
224
|
-
.clock
|
225
|
-
margin-left: 50px
|
226
|
-
float: left
|
227
|
-
width: 100px
|
228
|
-
height: 140px
|
229
|
-
border: none
|
230
|
-
|
231
|
-
#date
|
232
|
-
height: 80px
|
233
|
-
text-align: center
|
234
|
-
border: 1px solid #ccc
|
235
|
-
-webkit-border-radius: 10px
|
236
|
-
-moz-border-radius: 10px 10px
|
237
|
-
background-color: $color1
|
238
|
-
background: $webkit_gradient
|
239
|
-
background: $moz_gradient
|
240
|
-
|
241
|
-
.wday
|
242
|
-
margin: 1px
|
243
|
-
padding: 2px
|
244
|
-
-webkit-border-top-left-radius: 10px
|
245
|
-
-webkit-border-top-right-radius: 10px
|
246
|
-
-moz-border-radius-topleft: 10px
|
247
|
-
-moz-border-radius-topright: 10px
|
248
|
-
background-color: $color2
|
249
|
-
background: $webkit_gradient_inverted
|
250
|
-
background: $moz_gradient_inverted
|
251
|
-
|
252
|
-
|
253
|
-
.day
|
254
|
-
font-size: 35pt
|
255
|
-
font-weight: bold
|
196
|
+
font-size: 45px
|
197
|
+
font-weight: bold
|
256
198
|
|
257
199
|
// --------------------- Edit Popup --------------------------
|
258
200
|
|
@@ -261,6 +203,7 @@ div#settings
|
|
261
203
|
padding: 3px 10px
|
262
204
|
-webkit-border-radius: 2px 2px
|
263
205
|
-moz-border-radius: 2px 2px
|
206
|
+
border-radius: 2px 2px
|
264
207
|
border: solid 1px rgb(153, 153, 153)
|
265
208
|
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(255, 255, 255)), to(rgb(221, 221, 221)))
|
266
209
|
background: -moz-linear-gradient(top, rgb(255, 255, 255), rgb(221, 221, 221))
|
@@ -361,13 +304,9 @@ div#settings
|
|
361
304
|
background-color: #FFFFFF
|
362
305
|
border: 1px solid #EAEEFA
|
363
306
|
border: 1px solid rgba(234, 238, 250, 0.6)
|
364
|
-
-webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.6)
|
365
|
-
-moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.6)
|
366
307
|
box-shadow: 0 0 3px rgba(0, 0, 0, 0.6)
|
367
308
|
z-index: 99999
|
368
|
-
border-radius:
|
369
|
-
-webkit-border-radius: 6px
|
370
|
-
-moz-border-radius: 6px
|
309
|
+
border-radius: 4px
|
371
310
|
|
372
311
|
.simple-modal .simple-modal-header
|
373
312
|
padding: 5px 15px
|
@@ -415,11 +354,7 @@ div#settings
|
|
415
354
|
background-color: #F5F5F5
|
416
355
|
padding: 14px 15px 15px
|
417
356
|
border-top: 1px solid #EEEEEE
|
418
|
-
|
419
|
-
-moz-border-radius: 0 0 6px 6px
|
420
|
-
border-radius: 0 0 6px 6px
|
421
|
-
-webkit-box-shadow: inset 0 1px 0 #FFF
|
422
|
-
-moz-box-shadow: inset 0 1px 0 #FFF
|
357
|
+
border-radius: 0 0 4px 4px
|
423
358
|
box-shadow: inset 0 1px 0 #FFF
|
424
359
|
zoom: 1
|
425
360
|
margin-bottom: 0
|
@@ -435,12 +370,8 @@ div#settings
|
|
435
370
|
font-size: 13px
|
436
371
|
line-height: normal
|
437
372
|
border: 1px solid transparent
|
438
|
-
-webkit-transition: 0.2s linear all
|
439
|
-
-moz-transition: 0.2s linear all
|
440
373
|
transition: 0.2s linear all
|
441
374
|
border-radius: 3px
|
442
|
-
-webkit-border-radius: 3px
|
443
|
-
-moz-border-radius: 3px
|
444
375
|
|
445
376
|
.simple-modal .simple-modal-footer a.btn.primary
|
446
377
|
color: #FFF
|
@@ -463,12 +394,8 @@ div#settings
|
|
463
394
|
.simple-modal.draggable .simple-modal-header:hover
|
464
395
|
cursor: move
|
465
396
|
background-color: #f8f8f8
|
466
|
-
|
467
|
-
|
468
|
-
-moz-border-radius-topleft: 6px
|
469
|
-
-moz-border-radius-topright: 6px
|
470
|
-
border-top-left-radius: 6px
|
471
|
-
border-top-right-radius: 6px
|
397
|
+
border-top-left-radius: 4px
|
398
|
+
border-top-right-radius: 4px
|
472
399
|
|
473
400
|
/* Loading style */
|
474
401
|
.simple-modal.loading .simple-modal-body
|