Isoraqathedh

LASS

Jul 14th, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.00 KB | None | 0 0
  1. (lass:compile-and-write
  2.  '((:and
  3.     (:or article section)
  4.     (:= data-author (:or yukari ran chen))
  5.     (:nth-child (:or 1 2 3)))
  6.    :display none))
  7.  
  8. ; =>
  9.  
  10. "article[data-author=\"yukari\"]:nth-child(1),
  11. article[data-author=\"yukari\"]:nth-child(2),
  12. article[data-author=\"yukari\"]:nth-child(3),
  13. article[data-author=\"ran\"]:nth-child(1),
  14. article[data-author=\"ran\"]:nth-child(2),
  15. article[data-author=\"ran\"]:nth-child(3),
  16. article[data-author=\"chen\"]:nth-child(1),
  17. article[data-author=\"chen\"]:nth-child(2),
  18. article[data-author=\"chen\"]:nth-child(3),
  19. section[data-author=\"yukari\"]:nth-child(1),
  20. section[data-author=\"yukari\"]:nth-child(2),
  21. section[data-author=\"yukari\"]:nth-child(3),
  22. section[data-author=\"ran\"]:nth-child(1),
  23. section[data-author=\"ran\"]:nth-child(2),
  24. section[data-author=\"ran\"]:nth-child(3),
  25. section[data-author=\"chen\"]:nth-child(1),
  26. section[data-author=\"chen\"]:nth-child(2),
  27. section[data-author=\"chen\"]:nth-child(3){
  28.    display: none;
  29. }"
Advertisement
Add Comment
Please, Sign In to add comment