style.less 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. @import "variables.less";
  2. html, body {
  3. width: 100%;
  4. height: 100%;
  5. }
  6. h1,
  7. h2,
  8. h3,
  9. h4,
  10. h5,
  11. h6 {
  12. font-weight: 300;
  13. line-height: 1.1;
  14. }
  15. h1{
  16. font-size: 2.4em
  17. }
  18. h2 {
  19. font-size: 2em
  20. }
  21. h3 {
  22. font-size: 1.6em
  23. }
  24. h4 {
  25. font-size: 1.36em
  26. }
  27. h5 {
  28. font-size: 1.2em
  29. }
  30. h6 {
  31. font-size: 1.1em
  32. }
  33. body {
  34. margin: 0;
  35. padding: 0;
  36. background-color: @body-bg;
  37. color: @text-color;
  38. font-family: @sans;
  39. font-size: 1.02em;
  40. line-height: 1.2em;
  41. }
  42. a {
  43. color: @link-color;
  44. text-decoration: none;
  45. }
  46. a:hover {
  47. color: @link-hover-color;
  48. }
  49. hr {
  50. color: @light-grey;
  51. background-color: @light-grey;
  52. height: 1px;
  53. border: none;
  54. margin-top: 40px;
  55. margin-bottom: 40px;
  56. }
  57. img {
  58. max-width: 100%;
  59. }
  60. aside {
  61. background-color: @sidebar-bg;
  62. color: @sidebar-text-color;
  63. text-align: center;
  64. a {
  65. color: @sidebar-link-color;
  66. }
  67. a:hover {
  68. color: @sidebar-link-hover-color;
  69. }
  70. div {
  71. padding: 20px;
  72. margin: 0;
  73. img {
  74. border-radius: 50%;
  75. max-width: 140px;
  76. }
  77. h1 {
  78. margin: 15px 0 5px 0;
  79. }
  80. p {
  81. margin: 0 0 15px 0;
  82. font-size: .92em;
  83. }
  84. }
  85. nav {
  86. ul {
  87. li {
  88. display: inline;
  89. line-height: 1.6em;
  90. font-size: 1.28em;
  91. text-transform: lowercase;
  92. }
  93. }
  94. }
  95. }
  96. main {
  97. nav {
  98. text-align: center;
  99. text-transform: uppercase;
  100. font-size: .72em;
  101. padding: 14px 0 14px 0;
  102. border-bottom: @nav-border-color 1px solid;
  103. }
  104. nav, .translations {
  105. a {
  106. padding: 0 4px 0 4px;
  107. border-left: @nav-border-color 1px solid;
  108. border-right: @nav-border-color 1px solid;
  109. }
  110. :first-child {
  111. border-left: none;
  112. }
  113. :last-child {
  114. border-right: none;
  115. }
  116. }
  117. .neighbors {
  118. margin: 4% 0% 4% 0%;
  119. height: 20px;
  120. }
  121. .pagination {
  122. margin: 4% 8% 4% 8%;
  123. height: 20px;
  124. }
  125. .social-share {
  126. p {
  127. font-size: .8em;
  128. }
  129. }
  130. article {
  131. margin: 0 8% 2% 8%;
  132. header {
  133. h1, h2 {
  134. margin-bottom: 0;
  135. }
  136. p {
  137. color: @header-text-color;
  138. font-size: 0.86em;
  139. }
  140. .translations {
  141. float: right;
  142. .active {
  143. font-weight: 600;
  144. }
  145. }
  146. }
  147. code, kbd, samp, pre {
  148. font-family: @mono;
  149. }
  150. blockquote, pre {
  151. background-color: rgba(128,128,128,0.05);
  152. border-top-right-radius: 5px;
  153. border-bottom-right-radius: 5px;
  154. border-left: 8px solid rgba(128,128,128,0.075);
  155. border-left-width: 10px;
  156. }
  157. blockquote {
  158. padding: 10px 20px;
  159. font-weight: 300;
  160. font-size: 1.1em;
  161. }
  162. pre {
  163. padding: 4px;
  164. font-size: .9em;
  165. overflow-x: auto;
  166. }
  167. samp {
  168. white-space: pre;
  169. display: block;
  170. overflow-x: auto;
  171. }
  172. kbd {
  173. padding: .1em .6em;
  174. border: 1px solid rgba(63,63,63,0.25);
  175. box-shadow: 0 1px 0 rgba(63,63,63,0.25);
  176. background-color: #fff;
  177. color: #333;
  178. border-radius: 3px;
  179. display: inline-block;
  180. margin: 0 .1em;
  181. white-space: nowrap;
  182. font-size: .78em;
  183. }
  184. *:not(pre) > code {
  185. font-size: .8em;
  186. white-space: nowrap;
  187. color: #c25;
  188. padding: 1px 3px;
  189. background-color: #f7f7f9;
  190. border: 1px solid #e1e1e8;
  191. border-radius: 3px;
  192. }
  193. .comment-count {
  194. font-size: .8em;
  195. }
  196. table {
  197. border-collapse: collapse;
  198. border-spacing: 0;
  199. thead:first-child tr:first-child th {
  200. border-top: 0;
  201. }
  202. th, td {
  203. padding: 8px;
  204. line-height: 20px;
  205. vertical-align: top;
  206. border-top: 1px solid #ddd;
  207. }
  208. }
  209. }
  210. footer {
  211. padding-top: 4px;
  212. border-top: @footer-border-color 1px solid;
  213. p {
  214. margin: 2px;
  215. text-align: center;
  216. padding: 0 40px 0 40px;
  217. color: @footer-text-color;
  218. font-size: 11px;
  219. }
  220. }
  221. }
  222. .tag-cloud {
  223. a {
  224. background-color: @tag-bg;
  225. padding: .2em .6em .2em;
  226. font-size: .74em;
  227. line-height: 1;
  228. color: @tag-text-color;
  229. text-align: center;
  230. white-space: nowrap;
  231. vertical-align: baseline;
  232. border-radius: .25em;
  233. }
  234. a:hover {
  235. background-color: @tag-hover-color;
  236. }
  237. }
  238. a.btn {
  239. background-color: @btn-bg;
  240. padding: .6em .6em;
  241. font-size: .8em;
  242. line-height: 1;
  243. color: @btn-text-color;
  244. text-align: center;
  245. white-space: nowrap;
  246. vertical-align: baseline;
  247. border-radius: .25em;
  248. }
  249. a.btn:hover {
  250. background-color: @btn-hover-color;
  251. }
  252. .center, .text-center {
  253. text-align: center;
  254. }
  255. .img-center {
  256. margin-left: auto;
  257. margin-right: auto;
  258. display: block;
  259. }
  260. .align-center {
  261. margin-left: auto;
  262. margin-right: auto;
  263. display: block;
  264. }
  265. .float-left {
  266. float: left;
  267. }
  268. .float-right {
  269. float: right;
  270. }
  271. div.related-posts {
  272. margin: 15px 0 15px 0;
  273. padding-bottom: 20px;
  274. border-top: @rel-post-border-color 1px solid;
  275. border-bottom: @rel-post-border-color 1px solid;
  276. h4 {
  277. margin: 20px 0 25px 0;
  278. }
  279. ul {
  280. font-size: 1.1em;
  281. padding-left: 12px;
  282. li {
  283. padding: 4px 0 4px 0;
  284. }
  285. }
  286. }
  287. ul.list, ul.social, ul.related-posts {
  288. list-style-type: none;
  289. margin: 0;
  290. padding: 0;
  291. }
  292. ul.list {
  293. padding: 1em 0 1em 0;
  294. li {
  295. padding: 4px;
  296. }
  297. }
  298. ul.social {
  299. font-size: 1.6em;
  300. padding-top: 20px;
  301. li {
  302. display: inline;
  303. }
  304. a:hover {
  305. z-index: 2;
  306. -webkit-transform: translateY(-5px);
  307. transform: translateY(-5px);
  308. }
  309. a {
  310. display: inline-block;
  311. width: 36px;
  312. height: 36px;
  313. border-radius: 100%;
  314. text-align: center;
  315. font-size: .8em;
  316. line-height: 36px;
  317. }
  318. a.sc-facebook {
  319. background-color: @facebook-bg-color;
  320. }
  321. a.sc-google {
  322. background-color: @google-bg-color;
  323. }
  324. a.sc-instagram {
  325. background-color: @instagram-bg-color;
  326. }
  327. a.sc-pinterest {
  328. background-color: @pinterest-bg-color;
  329. }
  330. a.sc-linkedin {
  331. background-color: @linkedin-bg-color;
  332. }
  333. a.sc-medium {
  334. background-color: @medium-bg-color;
  335. }
  336. a.sc-rss {
  337. background-color: @rss-bg-color;
  338. }
  339. a.sc-stack-overflow {
  340. background-color: @stack-overflow-bg-color;
  341. }
  342. a.sc-tumblr {
  343. background-color: @tumblr-bg-color;
  344. }
  345. a.sc-twitter {
  346. background-color: @twitter-bg-color;
  347. }
  348. a.sc-youtube {
  349. background-color: @youtube-bg-color;
  350. }
  351. a.sc-github, a.sc-github-alt {
  352. background-color: @github-bg-color;
  353. }
  354. a.sc-envelope-o {
  355. background-color: @email-bg-color;
  356. }
  357. a.sc-reddit {
  358. background-color: @reddit-bg-color;
  359. }
  360. a.sc-soundcloud {
  361. background-color: @soundcloud-bg-color;
  362. }
  363. a.sc-gitlab {
  364. background-color: @gitlab-bg-color;
  365. }
  366. a.sc-xing {
  367. background-color: @xing-bg-color;
  368. }
  369. a.sc-bitbucket {
  370. background-color: @bitbucket-bg-color;
  371. }
  372. }
  373. .ads-aside {
  374. display: inline-block;
  375. height: 90px;
  376. width: 70%;
  377. }
  378. .ads-responsive {
  379. display: inline-block;
  380. margin: 6px 0 6px 0;
  381. width: 90%;
  382. height: 70px;
  383. margin-left: 5%;
  384. }
  385. //
  386. // Desktop
  387. //
  388. @media screen and (min-width: 768px) {
  389. aside {
  390. width: 25%;
  391. height: 100%;
  392. position: fixed;
  393. top: 0;
  394. left: 0;
  395. overflow-y: auto;
  396. div {
  397. padding: 36px 18px;
  398. nav {
  399. ul {
  400. li {
  401. padding: 0 !important;
  402. display: block;
  403. }
  404. }
  405. }
  406. ul.social {
  407. padding-top: 32px;
  408. }
  409. }
  410. }
  411. main {
  412. width: 75%;
  413. height: 100%;
  414. position: absolute;
  415. top: 0;
  416. left: 25%;
  417. article {
  418. &.single {
  419. min-height: 80%;
  420. }
  421. ul.list {
  422. li {
  423. padding: 2px;
  424. }
  425. }
  426. }
  427. }
  428. .ads-aside {
  429. height: 250px;
  430. }
  431. .ads-responsive {
  432. height: 90px;
  433. }
  434. }