demo.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /* General Demo Style */
  2. @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700);
  3. html { height: 100%; }
  4. *,
  5. *:after,
  6. *:before {
  7. -webkit-box-sizing: border-box;
  8. -moz-box-sizing: border-box;
  9. box-sizing: border-box;
  10. padding: 0;
  11. margin: 0;
  12. }
  13. /* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
  14. .clearfix:before,
  15. .clearfix:after {
  16. content: " "; /* 1 */
  17. display: table; /* 2 */
  18. }
  19. .clearfix:after {
  20. clear: both;
  21. }
  22. .clearfix {
  23. *zoom: 1;
  24. }
  25. body {
  26. font-family: 'Lato', Calibri, Arial, sans-serif;
  27. font-weight: 300;
  28. font-size: 15px;
  29. color: #333;
  30. height: 100%;
  31. }
  32. a {
  33. color: #555;
  34. text-decoration: none;
  35. }
  36. .container {
  37. width: 100%;
  38. height: 100%;
  39. position: relative;
  40. }
  41. .container > header,
  42. .main {
  43. padding: 0 30px 50px 30px;
  44. width: 100%;
  45. max-width: 600px;
  46. margin: 0 auto;
  47. }
  48. .container > header {
  49. padding: 30px;
  50. }
  51. .container > header h1 {
  52. font-size: 34px;
  53. line-height: 38px;
  54. margin: 0;
  55. font-weight: 700;
  56. color: #fff;
  57. float: left;
  58. text-shadow: 0 1px 1px rgba(0,0,0,0.3);
  59. }
  60. .container > header h1 span {
  61. font-size: 18px;
  62. font-weight: 300;
  63. display: block;
  64. }
  65. /* Header Style */
  66. .codrops-top {
  67. line-height: 24px;
  68. font-size: 11px;
  69. background: #fff;
  70. background: rgba(255, 255, 255, 0.5);
  71. text-transform: uppercase;
  72. z-index: 9999;
  73. position: relative;
  74. box-shadow: 1px 0px 2px rgba(0,0,0,0.2);
  75. }
  76. .codrops-top a {
  77. padding: 0px 10px;
  78. letter-spacing: 1px;
  79. color: #333;
  80. display: inline-block;
  81. }
  82. .codrops-top a:hover {
  83. background: rgba(255,255,255,0.8);
  84. color: #000;
  85. }
  86. .codrops-top span.right {
  87. float: right;
  88. }
  89. .codrops-top span.right a {
  90. float: left;
  91. display: block;
  92. }
  93. /* Demo Buttons Style */
  94. .codrops-demos {
  95. float: right;
  96. }
  97. .codrops-demos a {
  98. display: inline-block;
  99. margin: 10px;
  100. color: #fff;
  101. font-weight: 700;
  102. line-height: 30px;
  103. border-bottom: 4px solid transparent;
  104. }
  105. .codrops-demos a:hover {
  106. color: #000;
  107. border-color: #000;
  108. }
  109. .codrops-demos a.current-demo,
  110. .codrops-demos a.current-demo:hover {
  111. color: rgba(255,255,255,0.5);
  112. border-color: rgba(255,255,255,0.5);
  113. }