main.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. *, *:after, *:before { -webkit-box-sizing: border-box; box-sizing: border-box; }
  2. .clearfix:before, .clearfix:after {display: table; content: ''; }
  3. .clearfix:after { clear: both; }
  4. body {
  5. font-family: Avenir, 'Helvetica Neue', 'Lato', 'Segoe UI', Helvetica, Arial, sans-serif;
  6. color: #444;
  7. background: #E5E8EF;
  8. -webkit-font-smoothing: antialiased;
  9. -moz-osx-font-smoothing: grayscale;
  10. }
  11. a {
  12. outline: none;
  13. color: #DF7932;
  14. text-decoration: none;
  15. }
  16. a:hover, a:focus {
  17. color: #333;
  18. }
  19. .hidden {
  20. position: absolute;
  21. overflow: hidden;
  22. width: 0;
  23. height: 0;
  24. pointer-events: none;
  25. }
  26. /* Header */
  27. .codrops-header {
  28. padding: 2em 1em 4em;
  29. text-align: center;
  30. }
  31. .codrops-header h1 {
  32. margin: 0.5em 0 0;
  33. letter-spacing: -1px;
  34. font-size: 3em;
  35. line-height: 1;
  36. }
  37. .codrops-header h1 span {
  38. text-transform: uppercase;
  39. letter-spacing: 3px;
  40. display: block;
  41. padding: 2em 0 0;
  42. color: #BBBFCB;
  43. font-size: 0.285em;
  44. }
  45. /* Top Navigation Style */
  46. .codrops-links {
  47. position: relative;
  48. display: inline-block;
  49. text-align: center;
  50. white-space: nowrap;
  51. }
  52. .codrops-links::after {
  53. position: absolute;
  54. top: 0;
  55. left: 50%;
  56. width: 1px;
  57. height: 100%;
  58. background: rgba(0,0,0,0.1);
  59. content: '';
  60. -webkit-transform: rotate3d(0,0,1,22.5deg);
  61. transform: rotate3d(0,0,1,22.5deg);
  62. }
  63. .codrops-icon {
  64. display: inline-block;
  65. margin: 0.5em;
  66. padding: 0em 0;
  67. width: 1.5em;
  68. text-decoration: none;
  69. }
  70. .codrops-icon span {
  71. display: none;
  72. }
  73. .codrops-icon:before {
  74. margin: 0 5px;
  75. text-transform: none;
  76. font-weight: normal;
  77. font-style: normal;
  78. font-variant: normal;
  79. font-family: 'codropsicons';
  80. line-height: 1;
  81. speak: none;
  82. -webkit-font-smoothing: antialiased;
  83. }
  84. .codrops-icon--drop:before {
  85. content: "\e001";
  86. }
  87. .codrops-icon--prev:before {
  88. content: "\e004";
  89. }
  90. /* Demo links */
  91. .codrops-demos {
  92. margin: 2em 0 0;
  93. }
  94. .codrops-demos a {
  95. display: inline-block;
  96. margin: 0 0.5em;
  97. font-weight: bold;
  98. }
  99. .codrops-demos a.current-demo {
  100. color: #333;
  101. }
  102. /* Content */
  103. .content {
  104. padding: 3em 0;
  105. }
  106. /* Related demos */
  107. .content--related {
  108. text-align: center;
  109. font-weight: bold;
  110. }
  111. .media-item {
  112. display: inline-block;
  113. padding: 1em;
  114. vertical-align: top;
  115. -webkit-transition: color 0.3s;
  116. transition: color 0.3s;
  117. }
  118. .media-item__img {
  119. max-width: 100%;
  120. opacity: 0.5;
  121. -webkit-transition: opacity 0.3s;
  122. transition: opacity 0.3s;
  123. }
  124. .media-item:hover .media-item__img,
  125. .media-item:focus .media-item__img {
  126. opacity: 1;
  127. }
  128. .media-item__title {
  129. margin: 0;
  130. padding: 0.5em;
  131. font-size: 1em;
  132. }
  133. @media screen and (max-width: 50em) {
  134. .codrops-header {
  135. padding: 3em 10% 4em;
  136. }
  137. }
  138. @media screen and (max-width: 40em) {
  139. .codrops-header h1 {
  140. font-size: 2.8em;
  141. }
  142. }