Permalink
Browse files

Stylesheet tweak: Coloring for post result, Eliminate border for link…

… box
  • Loading branch information...
1 parent 0105f0e commit a48b3166d1cdfc6cfe98f859a78f9b2355444aa4 @brucehsu committed Feb 6, 2012
Showing with 40 additions and 6 deletions.
  1. +2 −2 main.rb
  2. +1 −1 public/s2sync.js
  3. +37 −3 views/stylesheet.scss
View
@@ -105,9 +105,9 @@
}
if stat == "" then
- return "Successfully posted"
+ return '<div class="success_box">' + "Successfully posted" + '</div>'
end
- return stat
+ return '<div class="failed_box">' + stat + '</div>'
end
get '/get_page_title/:url' do |url|
View
@@ -13,7 +13,7 @@ $(document).ready(function() {
url: "/post",
data: formdata,
success: function(msg) {
- $('#post_result').text(msg).fadeIn("slow");
+ $('#post_result').html(msg).fadeIn("slow");
$('#content').val('');
$('#word_count_indicator').html('0');
}
View
@@ -1,9 +1,10 @@
$radius: 4px;
$color: blue;
$width: 400px;
-$link_width: $width - 100;
+$link_width: $width - 86;
$height: 400px;
-$border: 2px solid;
+$border: 1px solid;
+
.rounded {
border-radius: $radius;
}
@@ -67,20 +68,53 @@ $border: 2px solid;
@include widget;
margin-top: 0px;
margin-bottom: 0px;
- float: center;
+ width: $width;
+}
+
+.success_box {
+ @include widget;
+ margin-top: 0px;
+ margin-bottom: 3px;
+ text-align: center;
+
+ margin-top: 0px;
+ margin-bottom: 0px;
border-radius: $radius;
border: $border;
+ border-color: lighten(#66CC00,8%);
+ background-color: lighten(#99FF66,20%);
width: $width;
}
+.failed_box {
+ @include widget;
+ margin-top: 0px;
+ margin-bottom: 3px;
+ text-align: center;
+
+ margin-top: 0px;
+ margin-bottom: 0px;
+ border-radius: $radius;
+ border: $border;
+ border-color: lighten(#FF0000,25%);
+ background-color: lighten(#FF6666,20%);
+ width: $width;
+}
+
.link_url {
margin: 3px;
+ margin-bottom: 5px;
+ margin-left: 0px;
+ margin-right: 0px;
align: center;
width: $link_width;
}
.link_btn {
margin: 3px;
+ margin-bottom: 5px;
+ margin-left: 1px;
+ margin-right: 0px;
align: center;
width: 80px;
}

0 comments on commit a48b316

Please sign in to comment.