_base.scss 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493
  1. body {
  2. background: $secondary-bg;
  3. color: $text;
  4. font: normal #{$base-font-size}/#{$base-line-height} $base-font-family;
  5. height: 100vh;
  6. text-align: left;
  7. text-rendering: optimizeLegibility;
  8. }
  9. img {
  10. max-width: 100%;
  11. }
  12. article {
  13. p {
  14. img {
  15. max-width: 100%;
  16. display:block;
  17. margin-left: auto;
  18. margin-right: auto;
  19. }
  20. }
  21. }
  22. a {
  23. border-bottom: 1px dotted $primary-bg;
  24. color: $text;
  25. text-decoration: none;
  26. -webkit-transition: background 0.3s, color 0.3s;
  27. transition: background 0.3s, color 0.3s;
  28. }
  29. blockquote {
  30. padding: 15px 30px 15px 15px;
  31. margin: 20px 0 0 10px;
  32. background-color: rgba(204, 122, 111, 0.1);
  33. border-left: 10px solid rgba(191, 87, 73, 0.2);
  34. }
  35. #fb_oss a {
  36. border: 0;
  37. }
  38. h1, h2, h3, h4 {
  39. font-family: $header-font-family;
  40. font-weight: 900;
  41. }
  42. .navPusher {
  43. border-top: $header-height + $header-ptop + $header-pbot solid $primary-bg;
  44. height: 100%;
  45. left: 0;
  46. position: relative;
  47. z-index: 99;
  48. }
  49. .homeContainer {
  50. background: $primary-bg;
  51. color: $primary-overlay;
  52. a {
  53. color: $primary-overlay;
  54. }
  55. .homeSplashFade {
  56. color: white;
  57. }
  58. .homeWrapper {
  59. padding: 2em 10px;
  60. text-align: left;
  61. .wrapper {
  62. margin: 0px auto;
  63. max-width: $content-width;
  64. padding: 0 20px;
  65. }
  66. .projectLogo {
  67. img {
  68. height: 100px;
  69. margin-bottom: 0px;
  70. }
  71. }
  72. h1#project_title {
  73. font-family: $header-font-family;
  74. font-size: 300%;
  75. letter-spacing: -0.08em;
  76. line-height: 1em;
  77. margin-bottom: 80px;
  78. }
  79. h2#project_tagline {
  80. font-family: $header-font-family;
  81. font-size: 200%;
  82. letter-spacing: -0.04em;
  83. line-height: 1em;
  84. }
  85. }
  86. }
  87. .wrapper {
  88. margin: 0px auto;
  89. max-width: $content-width;
  90. padding: 0 10px;
  91. }
  92. .projectLogo {
  93. display: none;
  94. img {
  95. height: 100px;
  96. margin-bottom: 0px;
  97. }
  98. }
  99. section#intro {
  100. margin: 40px 0;
  101. }
  102. .fbossFontLight {
  103. font-family: $base-font-family;
  104. font-weight: 300;
  105. font-style: normal;
  106. }
  107. .fb-like {
  108. display: block;
  109. margin-bottom: 20px;
  110. width: 100%;
  111. }
  112. .center {
  113. display: block;
  114. text-align: center;
  115. }
  116. .mainContainer {
  117. background: $secondary-bg;
  118. overflow: auto;
  119. .mainWrapper {
  120. padding: 4vh 10px;
  121. text-align: left;
  122. .allShareBlock {
  123. padding: 10px 0;
  124. .pluginBlock {
  125. margin: 12px 0;
  126. padding: 0;
  127. }
  128. }
  129. a {
  130. &:hover,
  131. &:focus {
  132. background: $primary-bg;
  133. color: $primary-overlay;
  134. }
  135. }
  136. em, i {
  137. font-style: italic;
  138. }
  139. strong, b {
  140. font-weight: bold;
  141. }
  142. h1 {
  143. font-size: 300%;
  144. line-height: 1em;
  145. padding: 1.4em 0 1em;
  146. text-align: left;
  147. }
  148. h2 {
  149. font-size: 250%;
  150. line-height: 1em;
  151. margin-bottom: 20px;
  152. padding: 1.4em 0 20px;
  153. text-align: left;
  154. & {
  155. border-bottom: 1px solid darken($primary-bg, 10%);
  156. color: darken($primary-bg, 10%);
  157. font-size: 22px;
  158. padding: 10px 0;
  159. }
  160. &.blockHeader {
  161. border-bottom: 1px solid white;
  162. color: white;
  163. font-size: 22px;
  164. margin-bottom: 20px;
  165. padding: 10px 0;
  166. }
  167. }
  168. h3 {
  169. font-size: 150%;
  170. line-height: 1.2em;
  171. padding: 1em 0 0.8em;
  172. }
  173. h4 {
  174. font-size: 130%;
  175. line-height: 1.2em;
  176. padding: 1em 0 0.8em;
  177. }
  178. p {
  179. padding: 0.8em 0;
  180. }
  181. ul {
  182. list-style: disc;
  183. }
  184. ol, ul {
  185. padding-left: 24px;
  186. li {
  187. padding-bottom: 4px;
  188. padding-left: 6px;
  189. }
  190. }
  191. strong {
  192. font-weight: bold;
  193. }
  194. .post {
  195. position: relative;
  196. .katex {
  197. font-weight: 700;
  198. }
  199. &.basicPost {
  200. margin-top: 30px;
  201. }
  202. a {
  203. color: $primary-bg;
  204. &:hover,
  205. &:focus {
  206. color: #fff;
  207. }
  208. }
  209. h2 {
  210. border-bottom: 4px solid $primary-bg;
  211. font-size: 130%;
  212. }
  213. h3 {
  214. border-bottom: 1px solid $primary-bg;
  215. font-size: 110%;
  216. }
  217. ol {
  218. list-style: decimal outside none;
  219. }
  220. .post-header {
  221. padding: 1em 0;
  222. h1 {
  223. font-size: 150%;
  224. line-height: 1em;
  225. padding: 0.4em 0 0;
  226. a {
  227. border: none;
  228. }
  229. }
  230. .post-meta {
  231. color: $primary-bg;
  232. font-family: $header-font-family;
  233. text-align: center;
  234. }
  235. }
  236. .postSocialPlugins {
  237. padding-top: 1em;
  238. }
  239. .docPagination {
  240. background: $primary-bg;
  241. bottom: 0px;
  242. left: 0px;
  243. position: absolute;
  244. right: 0px;
  245. .pager {
  246. display: inline-block;
  247. width: 50%;
  248. }
  249. .pagingNext {
  250. float: right;
  251. text-align: right;
  252. }
  253. a {
  254. border: none;
  255. color: $primary-overlay;
  256. display: block;
  257. padding: 4px 12px;
  258. &:hover {
  259. background-color: $secondary-bg;
  260. color: $text;
  261. }
  262. .pagerLabel {
  263. display: inline;
  264. }
  265. .pagerTitle {
  266. display: none;
  267. }
  268. }
  269. }
  270. }
  271. .posts {
  272. .post {
  273. margin-bottom: 6vh;
  274. }
  275. }
  276. }
  277. }
  278. #integrations_title {
  279. font-size: 250%;
  280. margin: 80px 0;
  281. }
  282. .ytVideo {
  283. height: 0;
  284. overflow: hidden;
  285. padding-bottom: 53.4%; /* 16:9 */
  286. padding-top: 25px;
  287. position: relative;
  288. }
  289. .ytVideo iframe,
  290. .ytVideo object,
  291. .ytVideo embed {
  292. height: 100%;
  293. left: 0;
  294. position: absolute;
  295. top: 0;
  296. width: 100%;
  297. }
  298. @media only screen and (min-width: 480px) {
  299. h1#project_title {
  300. font-size: 500%;
  301. }
  302. h2#project_tagline {
  303. font-size: 250%;
  304. }
  305. .projectLogo {
  306. img {
  307. margin-bottom: 10px;
  308. height: 200px;
  309. }
  310. }
  311. .homeContainer .homeWrapper {
  312. padding-left: 10px;
  313. padding-right: 10px;
  314. }
  315. .mainContainer {
  316. .mainWrapper {
  317. .post {
  318. h2 {
  319. font-size: 180%;
  320. }
  321. h3 {
  322. font-size: 120%;
  323. }
  324. .docPagination {
  325. a {
  326. .pagerLabel {
  327. display: none;
  328. }
  329. .pagerTitle {
  330. display: inline;
  331. }
  332. }
  333. }
  334. }
  335. }
  336. }
  337. }
  338. @media only screen and (min-width: 900px) {
  339. .homeContainer {
  340. .homeWrapper {
  341. position: relative;
  342. #inner {
  343. box-sizing: border-box;
  344. max-width: 600px;
  345. padding-right: 40px;
  346. }
  347. .projectLogo {
  348. align-items: center;
  349. bottom: 0;
  350. display: flex;
  351. justify-content: flex-end;
  352. left: 0;
  353. padding: 2em 20px 4em;
  354. position: absolute;
  355. right: 20px;
  356. top: 0;
  357. img {
  358. height: 100%;
  359. max-height: 250px;
  360. }
  361. }
  362. }
  363. }
  364. }
  365. @media only screen and (min-width: 1024px) {
  366. .mainContainer {
  367. .mainWrapper {
  368. .post {
  369. box-sizing: border-box;
  370. display: block;
  371. .post-header {
  372. h1 {
  373. font-size: 250%;
  374. }
  375. }
  376. }
  377. .posts {
  378. .post {
  379. margin-bottom: 4vh;
  380. width: 100%;
  381. }
  382. }
  383. }
  384. }
  385. }
  386. @media only screen and (min-width: 1200px) {
  387. .homeContainer {
  388. .homeWrapper {
  389. #inner {
  390. max-width: 750px;
  391. }
  392. }
  393. }
  394. .wrapper {
  395. max-width: 1100px;
  396. }
  397. }
  398. @media only screen and (min-width: 1500px) {
  399. .homeContainer {
  400. .homeWrapper {
  401. #inner {
  402. max-width: 1100px;
  403. padding-bottom: 40px;
  404. padding-top: 40px;
  405. }
  406. }
  407. }
  408. .wrapper {
  409. max-width: 1400px;
  410. }
  411. }