Skip to content

Commit

Permalink
CSS for unread button
Browse files Browse the repository at this point in the history
  • Loading branch information
nono committed Apr 24, 2011
1 parent f9a4969 commit ca4fafe
Show file tree
Hide file tree
Showing 14 changed files with 139 additions and 22 deletions.
2 changes: 1 addition & 1 deletion app/models/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def threads

def self.readings_of(account_id)
ids = $redis.keys("readings/*/#{account_id}").map {|x| x.scan(/\/(\d+)\//).first.first }
where(:id => ids)
visible.where(:id => ids)
end

def read_by(account_id)
Expand Down
14 changes: 14 additions & 0 deletions public/stylesheets/contrib/black_bling.css
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,20 @@ section#container div.vote input {
outline-width: 0;
}

/* Le bouton oublier */
.action form.button_to,
.action form.button_to div {
display: inline;
}
section#container .action form.button_to input {
border-width: 0;
background: #000000;
margin: 0;
padding: 0;
outline-width: 0;
text-decoration: underline;
}

/* Tout les commentaires */
div#comments {
margin: 4em auto;
Expand Down
19 changes: 19 additions & 0 deletions public/stylesheets/contrib/cascade-alternative.css
Original file line number Diff line number Diff line change
Expand Up @@ -789,6 +789,25 @@ section#container div.vote input:hover {
color: #B64545;
cursor: pointer;
}
/* Le bouton oublier */
.action form.button_to,
.action form.button_to div {
display: inline;
}
section#container .action form.button_to input {
border: thin solid transparent;
background: none;
color: #36598E;
margin:0;
padding:0;
font-style: italic;
}
section#container .action form.button_to input:hover {
border: thin solid transparent;
background: none;
color: #B64545;
cursor: pointer;
}
/* Tout les commentaires */
div#comments {
margin: 4em auto;
Expand Down
19 changes: 19 additions & 0 deletions public/stylesheets/contrib/cascade.css
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,25 @@ section#container div.vote input:hover {
color: #B64545;
cursor: pointer;
}
/* Le bouton oublier */
.action form.button_to,
.action form.button_to div {
display: inline;
}
section#container .action form.button_to input {
border: thin solid transparent;
background: none;
color: #36598E;
margin:0;
padding:0;
font-style: italic;
}
section#container .action form.button_to input:hover {
border: thin solid transparent;
background: none;
color: #B64545;
cursor: pointer;
}
/* Tout les commentaires */
div#comments {
margin: 4em auto;
Expand Down
19 changes: 19 additions & 0 deletions public/stylesheets/contrib/edition_papier.css
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,25 @@ section#container div.vote input:hover {
cursor: pointer;
}

/* Le bouton oublier */
.action form.button_to,
.action form.button_to div {
display: inline;
}
section#container .action form.button_to input {
border: none;
background: #FFFFFF;
margin:0;
padding:0;
font-style: italic;
color: #000000;
text-decoration: underline;
}
section#container .action form.button_to input:hover {
background: #F2F2F2;
cursor: pointer;
}

/* Tout les commentaires */
div#comments {
margin: 4em auto;
Expand Down
8 changes: 7 additions & 1 deletion public/stylesheets/contrib/grayscale.css
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ li > h2 > a {
.tag_in_place {
display: inline;
}
.action, .vote > form > div > input {
.action, .vote > form > div > input, input.unread {
-webkit-transition-property: color;
-webkit-transition-duration: 0.15s;
-moz-transition-duration: 0.15s;
Expand All @@ -729,6 +729,12 @@ li > h2 > a {
.action:hover {
color: black;
}
.action .button_to, .action .button_to div {
display: inline;
}
.action .button_to input.unread {
border: none;
}
.comment .action:hover {
color: grey;
}
Expand Down
20 changes: 20 additions & 0 deletions public/stylesheets/contrib/grises.css
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,26 @@ section#container div.vote input:hover {
color: #444444;
cursor: pointer;
}
/* Le bouton oublier */
.action form.button_to,
.action form.button_to div {
display: inline;
}
section#container .action form.button_to input {
border: thin solid transparent;
background: none;
color: #006699;
margin:0;
padding:0;
}
section#container .action form.button_to input:hover {
border: thin solid transparent;
background: none;
color: #444444;
cursor: pointer;
text-decoration: underline;
}

/* Tout les commentaires */
div#comments {
margin: 4em auto;
Expand Down
8 changes: 4 additions & 4 deletions public/stylesheets/contrib/kaiska-new.css
Original file line number Diff line number Diff line change
Expand Up @@ -490,21 +490,21 @@ li.comment footer a.action:before {
li.comment footer a.action:after {
content: " ]";
}
div.vote > form.button_to {
div.vote > form.button_to, span.action > form.button_to {
display: inline;
}
div.vote > form.button_to div {
div.vote > form.button_to div, span.action > form.button_to div {
display: inline;
}
div.vote > form.button_to div input {
div.vote > form.button_to div input, span.action > form.button_to div input {
display: inline-block;
border: none;
background: none;
padding: 0px;
color: #36598E;
cursor: pointer;
}
div.vote > form.button_to div input:hover {
div.vote > form.button_to div input:hover, span.action > form.button_to div input:hover {
text-decoration: underline;
}
.fold > p.meta,
Expand Down
8 changes: 4 additions & 4 deletions public/stylesheets/contrib/kitch.css
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ del.diffdel, del.diffmod { background-color: #f33; }
/* Footers */
#container article footer, .comment footer { background:#080000 url(/images/contrib/kitch/fond_contenu.png) repeat-y -25px 0; font-size:0.8em; padding:0 1em 1em 3em;}
#container article footer a, #container article footer .tag_in_place, .comment footer a {display:inline-block; padding: 0 0.5em 0 0.5em;}
#container article footer .vote, .comment footer .vote { display:inline; }
#container article footer .vote form, .comment footer .vote form { display:inline-block; }
#container article footer .vote form input[type=submit], .comment footer .vote form input[type=submit] { background:#D60948;border:1px solid #D60948;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;color:black;}
#container article footer .vote form input[type=submit]:hover, .comment footer .vote form input[type=submit]:hover { background:#FF775F;border-color:#FF775F;}
#container article footer .vote, #container article footer span.action, .comment footer .vote { display:inline; }
#container article footer .vote form, #container article footer span.action form, .comment footer .vote form { display:inline-block; }
#container article footer .vote form input[type=submit], #container article footer span.action input, .comment footer .vote form input[type=submit] { background:#D60948;border:1px solid #D60948;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;color:black;}
#container article footer .vote form input[type=submit]:hover, #container article footer span.action input:hover, .comment footer .vote form input[type=submit]:hover { background:#FF775F;border-color:#FF775F;}
#container article footer .tag_in_place { display:inline-block;}

/* Toolbar */
Expand Down
9 changes: 5 additions & 4 deletions public/stylesheets/contrib/nightgrey.css
Original file line number Diff line number Diff line change
Expand Up @@ -825,7 +825,7 @@ footer.actions:before {
border: 1px solid red;
}

.vote form {
.vote form, .action form.button_to {
display: inline-block;
}

Expand Down Expand Up @@ -960,19 +960,20 @@ footer.actions .tag_in_place {
height: 3.5em !important;
}

footer .vote {
footer .vote, footer span.action {
margin-left: 5px;
}

div.vote input {
div.vote input, span.action input {
background: none repeat scroll 0 0 transparent;
border: thin solid transparent;
color: #605C50;
font-style: italic;
cursor: pointer;
}

div.vote, div.vote form.button_to, div.vote form.button_to div {
div.vote, div.vote form.button_to, div.vote form.button_to div,
span.action, span.action form.button_to, span.action form.button_to div {
display: inline;
}

Expand Down
19 changes: 19 additions & 0 deletions public/stylesheets/contrib/opensuse.css
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,25 @@ section#container div.vote input:hover {
color: #669900;
cursor: pointer;
}
/* Le bouton oublier */
.action form.button_to,
.action form.button_to div {
display: inline;
}
section#container .action form.button_to input {
border: thin solid transparent;
background: none;
color: #006699;
margin:0;
padding:0;
}
section#container .action form.button_to input:hover {
border: thin solid transparent;
background: none;
color: #669900;
cursor: pointer;
text-decoration: underline;
}
/* Tout les commentaires */
div#comments {
margin: 4em auto;
Expand Down
8 changes: 4 additions & 4 deletions public/stylesheets/contrib/retro.css
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ del.diffdel, del.diffmod { background-color: #f33; }
/* Footers */
#container article footer, .comment footer { background:#F5F5F5 url(/images/contrib/retro/fond_contenu.png) repeat-y -25px 0; font-size:0.8em; padding:0 1em 1em 3em;}
#container article footer a, #container article footer .tag_in_place, .comment footer a {display:inline-block; padding: 0 0.5em 0 0.5em;}
#container article footer .vote, .comment footer .vote { display:inline; }
#container article footer .vote form, .comment footer .vote form { display:inline-block; }
#container article footer .vote form input[type=submit], .comment footer .vote form input[type=submit] { background:#cac1a5;border:1px solid #cac1a5;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;color:black;}
#container article footer .vote form input[type=submit]:hover, .comment footer .vote form input[type=submit]:hover { background:#d4d1b6;border-color:#d4d1b6;}
#container article footer .vote, #container article footer span.action, .comment footer .vote { display:inline; }
#container article footer .vote form, #container article footer span.action form, .comment footer .vote form { display:inline-block; }
#container article footer .vote form input[type=submit], #container article footer span.action input, .comment footer .vote form input[type=submit] { background:#cac1a5;border:1px solid #cac1a5;border-radius:3px;-webkit-border-radius:3px;-moz-border-radius:3px;color:black;}
#container article footer .vote form input[type=submit]:hover, #container article footer span.action input:hover, .comment footer .vote form input[type=submit]:hover { background:#d4d1b6;border-color:#d4d1b6;}
#container article footer .tag_in_place { display:inline-block;}

/* Toolbar */
Expand Down
Binary file added public/stylesheets/contrib/spasibo-mobile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions public/stylesheets/contrib/spasibo.css
Original file line number Diff line number Diff line change
Expand Up @@ -610,19 +610,19 @@ footer.actions > .new_comments:before, footer.actions > .not_read:after {
z-index: 15;
}

footer.actions .vote {
footer.actions .vote, footer.actions span.action {
font-size: .8em;
}

footer.actions .vote {
footer.actions .vote, footer.actions span.action {
display: inline;
}

footer.actions .vote * {
footer.actions .vote *, footer.actions span.action * {
display: inline;
}

footer.actions .vote input[value=pertinent], #comment_preview, #news_preview, button, #account_submit, #stylesheets-edit input[type=submit] {
footer.actions .vote input[value=pertinent], #comment_preview, #news_preview, button, #account_submit, #stylesheets-edit input[type=submit], footer.actions input.unread {
border: solid 1px green;
background-color: #007000;
color: #FFFFFF;
Expand Down

0 comments on commit ca4fafe

Please sign in to comment.