Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. /* Hide "color" 4 items or more */
  2. .palette li:first-child:nth-last-child(n+4) .color-options a:after,
  3. .palette li:first-child:nth-last-child(n+4) ~ li .color-options a:after {
  4. content: none;
  5. }
  6.  
  7. /* Hide word when 6 items or more */
  8. .palette li:first-child:nth-last-child(n+6) .color-options a,
  9. .palette li:first-child:nth-last-child(n+6) ~ li .color-options a {
  10. color: transparent;
  11. font-size: 0;
  12. }
  13.  
  14. .palette li:only-child .delete {
  15. display:none;
  16. }
  17.  
  18. /* From this point it’s just styling */
  19. .palette {
  20. display: flex;
  21. height: 200px;
  22. max-width:900px;
  23. font: bold 90%/1 sans-serif;
  24. }
  25.  
  26. .palette li {
  27. flex: 1;
  28. list-style: none;
  29. background: #D6E055;
  30. }
  31.  
  32. .color-options {
  33. background: rgba(0,0,0,.5);
  34. padding: 10px;
  35. margin: 0 10px;
  36. overflow:hidden;
  37. border-radius:0 0 10px 10px;
  38. }
  39.  
  40. .color-options .add { float:left; }
  41. .color-options .delete { float:right; }
  42.  
  43. .color-options a {
  44. color: white;
  45. text-decoration:none;
  46. }
  47.  
  48. .color-options a:before {
  49. display:inline-block;
  50. font-size: 1rem;
  51. width:1.3rem;
  52. margin-right:.3rem;
  53. text-align: center;
  54. line-height: 1.3;
  55. background:white;
  56. border-radius: 50%;
  57. letter-spacing: normal;
  58. }
  59.  
  60. .color-options .add:before {
  61. content:'✚';
  62. color:#590;
  63. }
  64.  
  65. .color-options .delete:before {
  66. content:'βœ–';
  67. color:#b00;
  68. }
  69.  
  70. .color-options a:after {
  71. content: ' color';
  72. font-weight: normal;
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement