site.less 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. @import "twbs-203/bootstrap.less";
  2. @import "mixins.less";
  3. @import "variables.less";
  4. @import "font-site.less";
  5. @import "font-awesome.less";
  6. // These accomodate navbar-fixed-top
  7. #overview { padding-top: 60px; }
  8. #new-icons, #all-icons, #examples, #integration, #code, #roadmap {
  9. padding-top: 40px;
  10. }
  11. .navbar .brand {
  12. padding: 11px 20px 9px;
  13. color: @white;
  14. }
  15. .navbar-inner { .border-radius(0); }
  16. .navbar .nav > li > a { padding: 12px 10px 9px; }
  17. h1, h2, h3, h4, h5, h6 { font-family: @serifFontFamily; }
  18. #iconCarousel {
  19. a { color: @white; }
  20. @size: 275px;
  21. float: right;
  22. width: @size * .9 + 20;
  23. height: @size * .75;
  24. margin-right: 10px;
  25. margin-top: -20px;
  26. font-size: @size;
  27. text-align: center;
  28. text-shadow: 2px 2px 3px @grayDarker;
  29. .carousel-control {
  30. top: @size + 5;
  31. .square(23px);
  32. border-width: 3px;
  33. font-size: 17px;
  34. line-height: 28px;
  35. left: @size / 3 + 9;
  36. &.right {
  37. left: auto;
  38. right: @size / 3 + 9;
  39. }
  40. }
  41. }
  42. //a[href^='http://'] {
  43. // &:after {
  44. // font-family: FontAwesome;
  45. // content: "\0020 \f08e";
  46. // &:hover {
  47. // text-decoration: none;
  48. // }
  49. // }
  50. //}
  51. .hero-unit {
  52. margin-bottom: 20px;
  53. .border-radius(20px);
  54. // #gradient > .radial( lighten(@red, 10%), @red);
  55. background-color: @red;
  56. &, h1 { color: @white; }
  57. h1 {
  58. font-size: 70px;
  59. letter-spacing: -1px;
  60. line-height: 1.2;
  61. }
  62. p {
  63. margin-top: 10px;
  64. margin-bottom: 15px;
  65. font-size: 28px;
  66. line-height: 34px;
  67. }
  68. text-shadow: 2px 2px 2px @grayDark;
  69. ul {
  70. margin-left: 50px;
  71. li {
  72. &.icon-large:before {
  73. text-indent: -2em;
  74. vertical-align: baseline;
  75. }
  76. font-size: 15px;
  77. line-height: 30px;
  78. text-shadow: 1px 1px 1px @grayDark;
  79. }
  80. }
  81. a { color: #fffeb8; }
  82. .btn-large {
  83. .buttonBackground(@white, #bbb);
  84. font-family: @serifFontFamily;
  85. color: @grayDark;
  86. margin-top: 15px;
  87. font-weight: bold;
  88. font-size: 18px;
  89. padding: 13px 22px;
  90. padding-left: 24px + 44;
  91. margin-right: 10px;
  92. .border-radius(6px);
  93. position: relative;
  94. text-align: left;
  95. i {
  96. position: absolute;
  97. // top: 13px;
  98. left: 22px;
  99. font-size: 46px;
  100. }
  101. &.btn-github {
  102. padding-left: 30px + 44;
  103. }
  104. }
  105. .hero-content {
  106. width: 500px;
  107. text-align: center;
  108. }
  109. }
  110. .btn-primary, .hero-unit .btn-primary {
  111. .buttonBackground(#fffeb8, #c49c38);
  112. *background-color: #e7d785;
  113. color: @grayDark;
  114. text-shadow: 0 -1px 0 rgba(255,255,255,.25);
  115. &:hover {
  116. text-shadow: 0 -1px 0 rgba(255,255,255,.25);
  117. color: @grayDark;
  118. }
  119. }
  120. #social-buttons {
  121. margin-bottom: 30px;
  122. text-align: center;
  123. .btn {
  124. font-family: @serifFontFamily;
  125. font-weight: bold;
  126. font-size: @baseFontSize;
  127. padding: 4px 10px 1px;
  128. line-height: @baseLineHeight;
  129. }
  130. .count.btn {
  131. font-family: @sansFontFamily;
  132. font-weight: normal;
  133. .buttonBackground(@white, @white);
  134. }
  135. .watch, .fork {
  136. margin-right: 30px;
  137. }
  138. }
  139. .the-icons {
  140. list-style-type: none;
  141. margin-left: 0;
  142. li {
  143. cursor: pointer;
  144. line-height: 42px;
  145. height: 42px;
  146. padding-left: 12px;
  147. .border-radius(12px);
  148. [class^="icon-"],
  149. [class*=" icon-"] {
  150. width: 32px;
  151. font-size: 16px;
  152. }
  153. &:hover {
  154. background-color: lighten(@errorBackground, 6%);
  155. [class^="icon-"], [class*=" icon-"] { *font-size: 24px; *vertical-align: middle; }
  156. [class^="icon-"]:before,
  157. [class*=" icon-"]:before {
  158. font-size: 24px;
  159. vertical-align: middle;
  160. }
  161. }
  162. }
  163. }
  164. #all-icons, #new-icons {
  165. h3 {
  166. margin-top: 10px;
  167. }
  168. }
  169. #why {
  170. .row {
  171. margin-bottom: 20px;
  172. }
  173. .icon-large {
  174. font-size: 22px;
  175. text-align: center;
  176. padding-right: 4px;
  177. }
  178. }
  179. #examples {
  180. .btn-toolbar {
  181. margin-top: 0;
  182. margin-bottom: 20px;
  183. }
  184. }
  185. #integration {
  186. .row { margin-bottom: 40px; }
  187. }
  188. #examples, #code {
  189. form {
  190. margin-bottom: 25px;
  191. input {
  192. line-height: 1; // fixes a safari placeholder alignment issue
  193. }
  194. }
  195. .rating {
  196. unicode-bidi: bidi-override;
  197. direction: rtl;
  198. font-size: 30px;
  199. span.star {
  200. font-family: FontAwesome;
  201. font-weight: normal;
  202. font-style: normal;
  203. display: inline-block;
  204. &:hover {
  205. cursor: pointer;
  206. }
  207. }
  208. span.star:before {
  209. content: "\f006"; // empty star
  210. padding-right: 5px;
  211. color: @grayLight;
  212. }
  213. span.star:hover:before, span.star:hover ~ span.star:before {
  214. content: "\f005"; // solid star
  215. color: #e3cf7a;
  216. }
  217. }
  218. }
  219. .modal {
  220. width: 560px;
  221. max-height: 600px;
  222. .modal-body {
  223. *overflow: hidden; // ie7 fix
  224. max-height: none;
  225. padding-bottom: 0;
  226. .row { margin-bottom: 15px; }
  227. div.thumbnail {
  228. text-align: center;
  229. div { margin-bottom: 5px; }
  230. }
  231. .icon6 {
  232. width: 325px;
  233. > div.thumbnail > div { .icon-size(340px); }
  234. }
  235. .icon5 {
  236. width: 185px;
  237. > div.thumbnail > div { .icon-size(180px); }
  238. }
  239. .icon4 {
  240. width: 215px;
  241. > div.thumbnail > div { .icon-size(100px); }
  242. }
  243. .icon3 {
  244. width: 120px;
  245. > div.thumbnail > div { .icon-size(50px); }
  246. }
  247. .icon2 {
  248. width: 75px;
  249. > div.thumbnail > div { .icon-size(20px); }
  250. }
  251. .icon1 {
  252. width: 60px;
  253. > div.thumbnail > div { .icon-size(12px); }
  254. }
  255. }
  256. }
  257. .label,
  258. .badge {
  259. background-color: @grayLighter;
  260. }
  261. footer {
  262. color: @gray;
  263. border-top: 1px solid @grayLighter;
  264. margin-top: 60px;
  265. padding-top: 20px;
  266. padding-bottom: 60px;
  267. *zoom: 1; // ie7 hack
  268. ul {
  269. margin-left: 30px;
  270. line-height: 25px;
  271. }
  272. }