pen-top.css 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pen_top {
  2. color: #fff;
  3. position: relative;
  4. text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
  5. z-index: 100;
  6. }
  7. #pen_top .widget {
  8. float: left;
  9. width: 100%;
  10. }
  11. @media only screen and (min-width:728px) {
  12. #pen_top .widget:nth-child(1):nth-last-child(5),
  13. #pen_top .widget:nth-child(2):nth-last-child(4),
  14. #pen_top .widget:nth-child(3):nth-last-child(3),
  15. #pen_top .widget:nth-child(4):nth-last-child(2),
  16. #pen_top .widget:nth-child(5):nth-last-child(1) {
  17. margin-left: 1%;
  18. margin-right: 1%;
  19. width: 18%;
  20. }
  21. #pen_top .widget:nth-child(1):nth-last-child(4),
  22. #pen_top .widget:nth-child(2):nth-last-child(3),
  23. #pen_top .widget:nth-child(3):nth-last-child(2),
  24. #pen_top .widget:nth-child(4):nth-last-child(1) {
  25. margin-left: 1%;
  26. margin-right: 1%;
  27. width: 23%;
  28. }
  29. #pen_top .widget:nth-child(1):nth-last-child(3),
  30. #pen_top .widget:nth-child(2):nth-last-child(2),
  31. #pen_top .widget:nth-child(3):nth-last-child(1) {
  32. margin-left: 1%;
  33. margin-right: 1%;
  34. width: 31.33%;
  35. }
  36. #pen_top .widget:nth-child(1):nth-last-child(2),
  37. #pen_top .widget:nth-child(2):nth-last-child(1) {
  38. margin-left: 1%;
  39. margin-right: 1%;
  40. width: 47.9%;
  41. }
  42. }
  43. #pen_top .widget h3 {
  44. color: #fefefe;
  45. margin-top: 0;
  46. }
  47. #pen_top .widget ul {
  48. margin: 0;
  49. padding: 0 0 0 1em;
  50. }