example.css 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. @import url(http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,300);
  2. @import url(http://fonts.googleapis.com/css?family=Open+Sans+Condensed:700);
  3. body {
  4. background-color: #f2f4f6;
  5. font-family: 'Open Sans', sans-serif;
  6. text-align: center; }
  7. h1 {
  8. background-image: url("images/logo_big.png");
  9. background-image: -webkit-image-set(url("images/logo_big.png") 1x, url("images/logo_big@2x.png") 2x);
  10. width: 385px;
  11. height: 81px;
  12. text-indent: -9999px;
  13. white-space: nowrap;
  14. margin: 50px auto; }
  15. @media all and (max-width: 420px) {
  16. h1 {
  17. width: 300px;
  18. background-size: contain;
  19. background-repeat: no-repeat;
  20. background-position: center; } }
  21. @media all and (max-width: 330px) {
  22. h1 {
  23. width: 250px; } }
  24. h2 {
  25. font-size: 20px;
  26. color: #A9B2BC;
  27. line-height: 25px;
  28. text-transform: uppercase;
  29. font-weight: 300;
  30. text-align: center;
  31. display: block; }
  32. h3 {
  33. font-size: 28px;
  34. color: #C7CCD1;
  35. text-transform: uppercase;
  36. font-family: 'Open Sans Condensed', sans-serif;
  37. margin-top: 100px;
  38. text-align: center;
  39. position: relative; }
  40. h3#download-section {
  41. margin-top: 50px;
  42. padding-top: 40px; }
  43. h3::after {
  44. content: "";
  45. background-color: #e2e5e8;
  46. height: 4px;
  47. width: 700px;
  48. left: 50%;
  49. margin-left: -350px;
  50. position: absolute;
  51. margin-top: -50px;
  52. border-radius: 2px; }
  53. @media all and (max-width: 740px) {
  54. h3::after {
  55. width: auto;
  56. left: 20px;
  57. right: 20px;
  58. margin-left: 0; } }
  59. a {
  60. text-decoration: none; }
  61. p {
  62. max-width: 826px;
  63. margin: 30px auto;
  64. font-size: 17px;
  65. font-weight: 300;
  66. color: #848D94;
  67. line-height: 25px;
  68. text-align: left; }
  69. p.center {
  70. text-align: center; }
  71. p strong {
  72. color: #8A8F94;
  73. font-weight: 600; }
  74. p a {
  75. color: #9ECADF;
  76. font-weight: 600; }
  77. p a:hover {
  78. text-decoration: underline; }
  79. p a.twitter {
  80. color: #5eaade; }
  81. p a.dribbble {
  82. color: #f26798; }
  83. p a.github {
  84. color: #323131; }
  85. button, .button {
  86. background-color: #AEDEF4;
  87. color: white;
  88. border: none;
  89. box-shadow: none;
  90. font-size: 17px;
  91. font-weight: 500;
  92. font-weight: 600;
  93. border-radius: 3px;
  94. padding: 15px 35px;
  95. margin: 26px 5px 0 5px;
  96. cursor: pointer; }
  97. button:focus, .button:focus {
  98. outline: none; }
  99. button:hover, .button:hover {
  100. background-color: #a1d9f2; }
  101. button:active, .button:active {
  102. background-color: #81ccee; }
  103. button.cancel, .button.cancel {
  104. background-color: #D0D0D0; }
  105. button.cancel:hover, .button.cancel:hover {
  106. background-color: #c8c8c8; }
  107. button.cancel:active, .button.cancel:active {
  108. background-color: #b6b6b6; }
  109. button.download, .button.download {
  110. position: fixed;
  111. right: 30px;
  112. top: 0;
  113. background-color: rgba(255, 255, 255, 0.9);
  114. color: #ABCADA;
  115. font-weight: 500;
  116. text-transform: uppercase;
  117. z-index: 3; }
  118. @media all and (max-width: 1278px) {
  119. button.download, .button.download {
  120. display: none; } }
  121. .center-container {
  122. max-width: 700px;
  123. margin: 70px auto; }
  124. pre {
  125. background-color: #49483e;
  126. color: #f8f8f2;
  127. padding: 10px;
  128. border-radius: 5px;
  129. white-space: pre-line;
  130. text-align: left;
  131. font-size: 14px;
  132. max-width: 600px; }
  133. pre .str {
  134. color: #e6db74; }
  135. pre .func {
  136. color: #66d9ef; }
  137. pre .val {
  138. color: #a381ff; }
  139. pre .tag {
  140. color: #e92772; }
  141. pre .attr {
  142. color: #a6e22d; }
  143. .showcase {
  144. background-color: #eceef0;
  145. padding: 20px;
  146. display: inline-block;
  147. width: 383px;
  148. vertical-align: top;
  149. position: relative; }
  150. @media all and (max-width: 865px) {
  151. .showcase {
  152. margin: 5px auto;
  153. padding: 46px 20px; } }
  154. @media all and (max-width: 440px) {
  155. .showcase {
  156. width: auto; } }
  157. .showcase h4 {
  158. font-size: 16px;
  159. color: #BCBCBC;
  160. line-height: 22px;
  161. margin: 0 auto;
  162. font-weight: 400; }
  163. .showcase.sweet h4 {
  164. width: 117px;
  165. height: 25px;
  166. margin-top: -3px;
  167. text-indent: -9999px;
  168. background-image: url("images/logo_small.png");
  169. background-image: -webkit-image-set(url("images/logo_small.png") 1x, url("images/logo_small@2x.png") 2x); }
  170. .showcase h5 {
  171. margin-bottom: -7px;
  172. text-align: left;
  173. font-weight: 500;
  174. text-transform: uppercase;
  175. color: #c2c2c2; }
  176. .showcase button {
  177. margin-bottom: 10px; }
  178. .showcase .vs-icon {
  179. background-image: url("images/vs_icon.png");
  180. background-image: -webkit-image-set(url("images/vs_icon.png") 1x, url("images/vs_icon@2x.png") 2x);
  181. width: 69px;
  182. height: 69px;
  183. position: absolute;
  184. right: -34px;
  185. top: 60px;
  186. z-index: 2; }
  187. @media all and (max-width: 865px) {
  188. .showcase .vs-icon {
  189. margin: 5px auto;
  190. right: auto;
  191. left: 50%;
  192. margin-left: -35px;
  193. top: auto;
  194. bottom: -35px; } }
  195. ul.examples {
  196. list-style-type: none;
  197. width: 700px;
  198. margin: 0 auto;
  199. text-align: left;
  200. padding-left: 0; }
  201. @media all and (max-width: 758px) {
  202. ul.examples {
  203. width: auto; } }
  204. ul.examples li {
  205. padding-left: 0; }
  206. ul.examples .ui, ul.examples pre {
  207. display: inline-block;
  208. vertical-align: top; }
  209. @media all and (max-width: 758px) {
  210. ul.examples .ui, ul.examples pre {
  211. display: block;
  212. max-width: none;
  213. margin: 0 auto; } }
  214. ul.examples .ui {
  215. width: 300px;
  216. text-align: center; }
  217. ul.examples .ui button {
  218. margin-top: 12px; }
  219. ul.examples .ui p {
  220. text-align: center;
  221. margin-bottom: 0; }
  222. ul.examples pre {
  223. max-width: 370px;
  224. margin-top: 67px; }
  225. @media all and (max-width: 758px) {
  226. ul.examples pre {
  227. margin-top: 16px !important;
  228. margin-bottom: 60px; } }
  229. ul.examples .warning pre {
  230. margin-top: 93px; }
  231. ol {
  232. max-width: 700px;
  233. margin: 70px auto;
  234. list-style-position: inside;
  235. padding-left: 0; }
  236. ol li {
  237. color: #A7ADB2; }
  238. ol li p {
  239. margin-bottom: 10px; }
  240. table {
  241. width: 700px;
  242. font-size: 14px;
  243. color: #8a8f94;
  244. margin: 10px auto;
  245. text-align: left;
  246. border-collapse: collapse; }
  247. @media all and (max-width: 750px) {
  248. table {
  249. width: auto;
  250. margin: 10px 20px; } }
  251. table th {
  252. background-color: white;
  253. padding: 9px;
  254. color: #acb9be;
  255. font-weight: 400;
  256. text-align: center;
  257. position: relative; }
  258. table th .border-left, table th .border-right {
  259. position: absolute;
  260. background-color: white;
  261. border-radius: 50%;
  262. top: 0;
  263. left: -17px;
  264. width: 37px;
  265. height: 37px; }
  266. table th .border-right {
  267. left: auto;
  268. right: -17px; }
  269. @media all and (max-width: 750px) {
  270. table th:nth-child(2) {
  271. display: none; } }
  272. table td {
  273. padding: 10px 20px;
  274. vertical-align: top; }
  275. table td:first-child {
  276. padding-left: 0px; }
  277. table td:last-child {
  278. padding-right: 0px; }
  279. @media all and (max-width: 750px) {
  280. table td:nth-child(2) {
  281. display: none; } }
  282. @media all and (max-width: 360px) {
  283. table td {
  284. padding: 10px 4px; }
  285. table td b {
  286. font-size: 13px; } }
  287. footer {
  288. margin-top: 100px;
  289. padding-bottom: 30px;
  290. color: #9A999F;
  291. display: inline-block;
  292. position: relative;
  293. color: gray;
  294. font-weight: 400;
  295. color: #93a1aa;
  296. font-weight: 300; }
  297. footer .te-logo {
  298. text-indent: -99999px;
  299. background-size: contain;
  300. background-repeat: no-repeat;
  301. background-position: center center;
  302. height: 16px;
  303. width: 16px;
  304. display: inline-block;
  305. margin-right: 5px;
  306. background-image: url("images/te-logo-small.svg");
  307. position: absolute;
  308. left: -22px;
  309. top: 3px; }