Follow.css 1.6 KB

12345678910111213141516171819202122232425262728
  1. .icon-feed {
  2. width: 3px; height: 3px; display: inline-block; border-radius: 10px; background-color: #333;
  3. position: relative; margin-right: 10px; margin-top: 10px; margin-left: 5px; transition: all 0.3s
  4. }
  5. .icon-feed:after {
  6. content: ""; width: 5px; height: 5px; border-top: 2px solid #333; border-right: 2px solid #333; border-radius: 0px 6px 0px 0px;
  7. display: block; border-right: 2px solid #333; bottom: 0px; position: absolute; transition: all 0.3s
  8. }
  9. .icon-feed:before{
  10. content: ""; width: 9px; height: 9px; border-top: 2px solid #333; border-right: 2px solid #333; border-radius: 0px 10px 0px 0px;
  11. display: block; bottom: 0px; position: absolute; transition: all 0.3s
  12. }
  13. .feed-follow {
  14. font-size: 14px; display: inline-block; padding: 7px 14px; font-weight: normal; display: none;
  15. border-radius: 4px; border: 1px solid #EEE; border-bottom: 1px solid #DDD; transition: all 0.3s
  16. }
  17. .feed-follow .text-follow, .feed-follow .text-following {
  18. max-width: 0px; opacity: 0; overflow: hidden; display: inline-block; vertical-align: bottom; transition: all 0.3s; white-space: nowrap;
  19. }
  20. .feed-follow .text-follow { max-width: 170px; opacity: 1 }
  21. .feed-follow.following .text-following { max-width: 60px; opacity: 1; color: #7A26E2; }
  22. .feed-follow.following .text-follow { max-width: 0px; opacity: 0 }
  23. .feed-follow:hover { background-color: #FEFEFE; transition: none; border-color: #C392FF; color: black }
  24. .feed-follow:active { border-color: #7A26E2 }
  25. .feed-follow.following .icon-feed { background-color: #7A26E2; transition: none }
  26. .feed-follow.following .icon-feed:after, .feed-follow.following .icon-feed:before { border-color: #7A26E2; transition: none }