tests.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. body {
  2. font-family: sans-serif;
  3. width: 400px;
  4. padding: 20px;
  5. }
  6. .container {
  7. width: 400px;
  8. height: 200px;
  9. background: #333;
  10. margin-bottom: 20px;
  11. }
  12. .box {
  13. background: #0AE;
  14. color: #F90;
  15. border-color: #F90;
  16. }
  17. /* align to right side */
  18. #qunit {
  19. position: absolute;
  20. left: 0;
  21. top: 20px;
  22. margin-left: 440px;
  23. margin-right: 10px;
  24. }
  25. /* Boxes
  26. ------------------------- */
  27. #ex2 .box {
  28. height: 100%;
  29. }
  30. #ex3 .box {
  31. width: 50%;
  32. height: 50%;
  33. }
  34. #ex4 .box,
  35. #ex5 .box {
  36. width: 200px;
  37. height: 100px;
  38. border: 10px solid;
  39. }
  40. #ex5 .box {
  41. margin: 10px 20px 30px 40px;
  42. }
  43. #ex6 .box {
  44. width: 200px;
  45. height: 100px;
  46. padding: 10px 20px 30px 40px;
  47. }
  48. #ex7 .box {
  49. height: 100px;
  50. padding: 10px 20px 30px 40px;
  51. }
  52. #ex8 .box {
  53. position: relative;
  54. width: 66.6666%;
  55. height: 66.666%;
  56. }
  57. /* border box */
  58. #ex9 .box {
  59. -webkit-box-sizing: border-box;
  60. -moz-box-sizing: border-box;
  61. box-sizing: border-box;
  62. height: 100%;
  63. border-style: solid;
  64. border-width: 10px 20px 30px 40px;
  65. padding: 10px 20px 30px 40px;
  66. }
  67. #hidden .box {
  68. display: none;
  69. width: 200px;
  70. height: 100px;
  71. padding: 10px 20px 30px 40px;
  72. margin: 10px 20px 30px 40px;
  73. }
  74. #percent .box {
  75. width: 200px;
  76. height: 100px;
  77. margin-top: 20%;
  78. margin-left: 10%;
  79. }