default.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. /* General Demo Style */
  2. @font-face {
  3. font-family: 'codropsicons';
  4. src:url('../fonts/codropsicons/codropsicons.eot');
  5. src:url('../fonts/codropsicons/codropsicons.eot?#iefix') format('embedded-opentype'),
  6. url('../fonts/codropsicons/codropsicons.woff') format('woff'),
  7. url('../fonts/codropsicons/codropsicons.ttf') format('truetype'),
  8. url('../fonts/codropsicons/codropsicons.svg#codropsicons') format('svg');
  9. font-weight: normal;
  10. font-style: normal;
  11. }
  12. *, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
  13. body, html { font-size: 100%; padding: 0; margin: 0; }
  14. /* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
  15. .clearfix:before, .clearfix:after { content: " "; display: table; }
  16. .clearfix:after { clear: both; }
  17. body {
  18. font-family: 'Lato', Calibri, Arial, sans-serif;
  19. color: #fff;
  20. background: #e74c3c;
  21. }
  22. a {
  23. color: #c0392b;
  24. text-decoration: none;
  25. }
  26. a:hover,
  27. a:active {
  28. color: #333;
  29. }
  30. /* Header Style */
  31. .main,
  32. .container > header {
  33. margin: 0 auto;
  34. padding: 2em;
  35. }
  36. .container > header {
  37. text-align: center;
  38. background: #d94839;
  39. padding: 3em;
  40. }
  41. .container > header h1 {
  42. font-size: 2.625em;
  43. line-height: 1.3;
  44. margin: 0;
  45. font-weight: 300;
  46. }
  47. .container > header span {
  48. display: block;
  49. font-size: 60%;
  50. opacity: 0.7;
  51. padding: 0 0 0.6em 0.1em;
  52. }
  53. /* Main Content */
  54. .main {
  55. max-width: 69em;
  56. }
  57. .column {
  58. float: left;
  59. width: 50%;
  60. padding: 0 2em;
  61. min-height: 300px;
  62. position: relative;
  63. }
  64. .column:nth-child(2) {
  65. box-shadow: -1px 0 0 rgba(0,0,0,0.1);
  66. }
  67. .column p {
  68. font-weight: 300;
  69. font-size: 2em;
  70. padding: 0;
  71. margin: 0;
  72. text-align: right;
  73. line-height: 1.5;
  74. }
  75. /* To Navigation Style */
  76. .codrops-top {
  77. background: #fff;
  78. background: rgba(255, 255, 255, 0.2);
  79. text-transform: uppercase;
  80. width: 100%;
  81. font-size: 0.69em;
  82. line-height: 2.2;
  83. }
  84. .codrops-top a {
  85. padding: 0 1em;
  86. letter-spacing: 0.1em;
  87. display: inline-block;
  88. }
  89. .codrops-top a:hover {
  90. color: #e74c3c;
  91. background: rgba(255,255,255,0.6);
  92. }
  93. .codrops-top span.right {
  94. float: right;
  95. }
  96. .codrops-top span.right a {
  97. float: left;
  98. display: block;
  99. }
  100. .codrops-icon:before {
  101. font-family: 'codropsicons';
  102. margin: 0 4px;
  103. speak: none;
  104. font-style: normal;
  105. font-weight: normal;
  106. font-variant: normal;
  107. text-transform: none;
  108. line-height: 1;
  109. -webkit-font-smoothing: antialiased;
  110. }
  111. .codrops-icon-drop:before {
  112. content: "\e001";
  113. }
  114. .codrops-icon-prev:before {
  115. content: "\e004";
  116. }
  117. button {
  118. border: none;
  119. padding: 0.6em 1.2em;
  120. background: #c0392b;
  121. color: #fff;
  122. font-family: 'Lato', Calibri, Arial, sans-serif;
  123. font-size: 1em;
  124. letter-spacing: 1px;
  125. text-transform: uppercase;
  126. cursor: pointer;
  127. display: inline-block;
  128. margin: 3px 2px;
  129. border-radius: 2px;
  130. }
  131. button:hover {
  132. background: #A5281B;
  133. }
  134. @media screen and (max-width: 46.0625em) {
  135. .column {
  136. width: 100%;
  137. min-width: auto;
  138. min-height: auto;
  139. padding: 1em;
  140. }
  141. .column p {
  142. text-align: left;
  143. font-size: 1.5em;
  144. }
  145. .column:nth-child(2) {
  146. box-shadow: 0 -1px 0 rgba(0,0,0,0.1);
  147. }
  148. }
  149. @media screen and (max-width: 25em) {
  150. .codrops-icon span {
  151. display: none;
  152. }
  153. }