Advertisement
cornetespoir

blacklist box part 2

May 9th, 2016
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. /* this goes under <style> or <style type="text/css"> */
  2.  
  3. /*this is just the container of the whole thing */
  4. .con{
  5. position:fixed;
  6. margin-top:10px; /*the larger the number, the further down the blacklist box will be */
  7. right:40px; /*you can change right to left if you want the box to appear on the left of the screen instead */
  8. width:130px;
  9.  
  10. }
  11.  
  12. /*this is the box with the title/the thing you click to reveal the list */
  13.  
  14. .box{
  15. width:120px; /*width of the box */
  16. padding:8px;
  17. border:4px /*this is the border width*/ double /*you can change this to dotted, dashed, inset, outset, or double */ #ddd /*color of the border */;
  18. height:auto;
  19. position:relative;
  20. top:10px;
  21. cursor:pointer;
  22. text-align:center;
  23. letter-spacing:2px;
  24. transition:.6s;
  25. background:white; /*color of the box */
  26. /* you can also add a box shadow by adding something like:
  27.  
  28. box-shadow: 4px 4px 0px rgba(50, 50, 50, .12);
  29. */
  30.  
  31. }
  32.  
  33. /*this is the list that shows up after you click the box */
  34.  
  35. .thing {
  36. top:8px; /*the bigger the number, the further down it is from the box */
  37. display:none; /*don't touch this, it's what makes it invisible until you click on the box */
  38. position:relative;
  39. transition:.6s;
  40. font-family:arial; /*font of the list */
  41. font-size:12px;
  42. border:4px double #ddd; /*looks best if it matches the box's border */
  43. padding:8px;
  44. height:auto;
  45. width:120px;
  46. transition:.6s;
  47. background:white; /*background of list */
  48. /* you can also add a box shadow by adding something like:
  49.  
  50. box-shadow:4px 4px 0px rgba(50, 50, 50, .12);
  51. */
  52.  
  53. }
  54.  
  55. /*this is the css for the actual list */
  56. .thing li {
  57. list-style:none;
  58. margin-top:4px;
  59.  
  60. }
  61. .thing li:before{
  62. content:'■ '; /*this is the symbol that will appear before the words of the list. make sure to put a space after the symbol, otherwise the symbol appears too close to the words */
  63. color:#B40404; /*color of the symbol */
  64. }
  65.  
  66. /* end of blacklist box css */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement