1. @import url(http://fonts.googleapis.com/css?family=Lato:300,400,700|Montserrat);
    2. @font-face {
    3. font-weight: normal;
    4. font-style: normal;
    5. font-family: 'codropsicons';
    6. src:url('../fonts/codropsicons/codropsicons.eot');
    7. src:url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'),
    8. url('../fonts/codropsicons/codropsicons.woff') format('woff'),
    9. url('../fonts/codropsicons/codropsicons.ttf') format('truetype'),
    10. url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
    11. }
    12. *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
    13. .clearfix:before, .clearfix:after { content: ''; display: table; }
    14. .clearfix:after { clear: both; }
    15. body {
    16. background: #f9f9f9;
    17. color: #62706c;
    18. font-size: 100%;
    19. line-height: 1.25;
    20. padding: 25px 0;
    21. border-right: 25px solid #fff;
    22. border-left: 25px solid #fff;
    23. font-family: 'Lato', Arial, sans-serif;
    24. }
    25. body::before,
    26. body::after {
    27. content: '';
    28. position: fixed;
    29. left: 0;
    30. top: 0;
    31. width: 100%;
    32. height: 25px;
    33. background: #fff;
    34. z-index: 99;
    35. }
    36. body::after {
    37. top: auto;
    38. bottom: 0;
    39. }
    40. a {
    41. color: rgba(0,0,0,0.3);
    42. text-decoration: none;
    43. outline: none;
    44. }
    45. a:hover, a:focus {
    46. color: rgba(0,0,0,0.6);
    47. }
    48. .codrops-header {
    49. margin: 0 auto;
    50. padding: 4em 1em;
    51. text-align: center;
    52. }
    53. .codrops-header h1 {
    54. margin: 0;
    55. font-weight: 300;
    56. font-size: 2.5em;
    57. position: relative;
    58. }
    59. .codrops-header h1 span {
    60. display: block;
    61. padding: 0 0 0.6em 0.1em;
    62. font-size: 0.6em;
    63. color: #aaa;
    64. }
    65. .codrops-header a {
    66. color: #1ECD97;
    67. }
    68. .codrops-header a:hover {
    69. color: #44524e;
    70. }
    71. /* To Navigation Style */
    72. .codrops-top {
    73. width: 100%;
    74. top: 0;
    75. left: 0;
    76. text-transform: uppercase;
    77. font-weight: 700;
    78. font-size: 0.69em;
    79. line-height: 2.2;
    80. z-index: 1000;
    81. padding-top: 3px;
    82. }
    83. .codrops-top a {
    84. display: inline-block;
    85. padding: 0 1em;
    86. text-decoration: none;
    87. letter-spacing: 1px;
    88. }
    89. .codrops-top span.right {
    90. float: right;
    91. }
    92. .codrops-top span.right a {
    93. display: block;
    94. float: left;
    95. }
    96. .codrops-icon:before {
    97. margin: 0 4px;
    98. text-transform: none;
    99. font-weight: normal;
    100. font-style: normal;
    101. font-variant: normal;
    102. font-family: 'codropsicons';
    103. line-height: 1;
    104. speak: none;
    105. -webkit-font-smoothing: antialiased;
    106. }
    107. .codrops-icon-drop:before {
    108. content: "\e001";
    109. }
    110. .codrops-icon-prev:before {
    111. content: "\e004";
    112. }
    113. section {
    114. text-align: center;
    115. position: relative;
    116. }
    117. section h2 {
    118. color: #ccc;
    119. font-weight: 400;
    120. margin: 2em 0 0;
    121. font-size: 1.15em;
    122. padding: 0 1em;
    123. }
    124. .box {
    125. width: 100%;
    126. max-width: 720px;
    127. display: inline-block;
    128. padding: 3em 1em;
    129. }
    130. .box h3 {
    131. color: #aaa;
    132. font-size: 1em;
    133. text-transform: uppercase;
    134. letter-spacing: 1px;
    135. font-weight: 400;
    136. padding: 2em 0;
    137. }
    138. .related {
    139. padding: 10em 0;
    140. }
    141. .related p {
    142. font-size: 1.5em;
    143. }
    144. .related > a {
    145. border: 2px solid rgba(0,0,0,0.3);
    146. display: inline-block;
    147. text-align: center;
    148. margin: 20px 10px;
    149. padding: 25px;
    150. -webkit-transition: color 0.3s, border-color 0.3s;
    151. transition: color 0.3s, border-color 0.3s;
    152. }
    153. .related a:hover {
    154. border-color: rgba(0,0,0,0.6);
    155. }
    156. .related a img {
    157. max-width: 100%;
    158. opacity: 0.8;
    159. -webkit-transition: opacity 0.3s;
    160. transition: opacity 0.3s;
    161. }
    162. .related a:hover img,
    163. .related a:active img {
    164. opacity: 1;
    165. }
    166. .related a h3 {
    167. margin: 0;
    168. padding: 0.5em 0 0.3em;
    169. max-width: 300px;
    170. text-align: left;
    171. }
    172. @media screen and (max-width: 26em) {
    173. .codrops-icon span {
    174. display: none;
    175. }
    176. }