example.scss 7.0 KB

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