Advertisement
decembre

STY - Flickr Photo Page Comments Reverse Order + Counter v.2

Jun 17th, 2014
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.92 KB | None | 0 0
  1. @namespace url(http://www.w3.org/1999/xhtml);
  2.  
  3. @-moz-document domain("flickr.com") {
  4.  
  5. /* ===== FLICKR - PHOTO PAGE COMMENTS - REVERSE ORDER + COUNTER  V2(new2) -
  6. (flex-direction: row-reverse;)
  7. INFOS : http://css-tricks.com/snippets/css/a-guide-to-flexbox/
  8. DEMO : http://codepen.io/HugoGiraudel/pen/LklCv
  9. =========
  10. #invites-and-comments
  11. #photo-activity
  12. #comments
  13. === */
  14. /* (new2) COMMENTS CONTAINER - === */
  15. #photo-activity  {
  16. /* position: relative !important; */
  17. /* width: 100% ! important; */
  18. /* left: 50px ! important; */
  19. /* flex-direction: column-reverse ! important; */
  20. /* justify-content: flex-start; */
  21. /* align-items: flex-start ; */
  22.  
  23.     display: flex ! important;
  24.     flex-direction: row-reverse;
  25.     flex-wrap: wrap-reverse;
  26.     justify-content: space-around;
  27. }
  28.  
  29. /*(new2) COMMENTS ITEMS - === */
  30. #comments .comment-block {
  31.     height: 58px ! important;
  32.     margin-right: 15px ! important;
  33.     margin-left: 15px ! important;
  34.     margin-bottom: 3px ! important;
  35.     flex-basis: 250px; /* default auto */
  36.     flex-grow: 2 ! important;
  37.     overflow: hidden ! important;
  38.     overflow-y: auto ! important;
  39.     border: 1px solid gray ! important;
  40. }
  41.  
  42. /* (new2) COUNTER COMMENTS ITEMS - ===  */
  43. #photo-activity{
  44.     counter-increment: myIndex ! important;
  45. }
  46. #comments #comments-list .comment-block:before {
  47.     counter-increment: myIndex ! important;
  48.     content: counter(myIndex, decimal-leading-zero);
  49.     position: absolute ! important;
  50.     width: 15px ! important;
  51.     min-width: 17px !important;
  52.     margin-left: 1px ! important;
  53.     margin-top: -5px ! important;
  54.     background: none repeat scroll 0 0 rgba(62, 59, 59, 0.6) !important;
  55.     border-radius: 10px !important;
  56.     box-shadow: 0 0 2px rgba(162, 160, 160, 0.6) inset !important;
  57.     font-size: 10px ! important;
  58.     text-align: center ! important;
  59.     color: white ! important;
  60.     z-index: 10 !important;
  61. }
  62.  
  63. /* ===== END ======  */
  64.  
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement