A clean, Markdown-based publishing platform made for writers. Write together, and build a community. https://writefreely.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1540 lines
23 KiB

  1. @primary: rgb(114, 120, 191);
  2. @secondary: rgb(114, 191, 133);
  3. @subheaders: #444;
  4. @headerTextColor: black;
  5. @sansFont: 'Open Sans', 'Segoe UI', Tahoma, Arial, sans-serif;
  6. @serifFont: Lora, 'Palatino Linotype', 'Book Antiqua', 'New York', 'DejaVu serif', serif;
  7. @monoFont: Hack, consolas, Menlo-Regular, Menlo, Monaco, 'ubuntu mono', monospace, monospace;
  8. @dangerCol: #e21d27;
  9. @errUrgentCol: #ecc63c;
  10. @proSelectedCol: #71D571;
  11. @textLinkColor: rgb(0, 0, 238);
  12. body {
  13. font-family: @serifFont;
  14. font-size-adjust: 0.5;
  15. -webkit-font-smoothing: antialiased;
  16. -moz-osx-font-smoothing: grayscale;
  17. background-color: white;
  18. color: #111;
  19. h1, header h2 {
  20. a {
  21. color: @headerTextColor;
  22. .transition-duration(0.2s);
  23. &:hover {
  24. color: #303030;
  25. text-decoration: none;
  26. }
  27. }
  28. }
  29. h1, h2, h3 {
  30. line-height: 1.2;
  31. }
  32. &#post article, &#collection article p, &#subpage article p {
  33. display: block;
  34. unicode-bidi: embed;
  35. white-space: pre;
  36. }
  37. &#post {
  38. #wrapper, pre {
  39. max-width: 40em;
  40. margin: 0 auto;
  41. a:hover {
  42. text-decoration: underline;
  43. }
  44. }
  45. blockquote {
  46. p + p {
  47. margin: -2em 0 0.5em;
  48. }
  49. }
  50. article {
  51. margin-bottom: 2em !important;
  52. h1, h2, h3, h4, h5, h6, p, ul, ol, code {
  53. display: inline;
  54. margin: 0;
  55. }
  56. hr + p, ol, ul {
  57. display: block;
  58. margin-top: -1rem;
  59. margin-bottom: -1rem;
  60. }
  61. ol, ul {
  62. margin: 2rem 0 -1rem;
  63. ol, ul {
  64. margin: 1.25rem 0 -0.5rem;
  65. }
  66. }
  67. li {
  68. margin-top: -0.5rem;
  69. margin-bottom: -0.5rem;
  70. }
  71. h2#title {
  72. .article-title;
  73. }
  74. h1 {
  75. font-size: 1.5em;
  76. }
  77. h2 {
  78. font-size: 1.17em;
  79. }
  80. }
  81. header {
  82. nav {
  83. span, a {
  84. &.pinned {
  85. &.selected {
  86. font-weight: bold;
  87. }
  88. &+.views {
  89. margin-left: 2em;
  90. }
  91. }
  92. }
  93. }
  94. }
  95. .owner-visible {
  96. display: none;
  97. }
  98. }
  99. &#post, &#collection, &#subpage {
  100. code {
  101. .article-code;
  102. }
  103. img, video, audio {
  104. max-width: 100%;
  105. }
  106. audio {
  107. width: 100%;
  108. white-space: initial;
  109. }
  110. pre {
  111. .code-block;
  112. code {
  113. background: transparent;
  114. border: 0;
  115. padding: 0;
  116. font-size: 1em;
  117. white-space: pre-wrap; /* CSS 3 */
  118. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  119. white-space: -pre-wrap; /* Opera 4-6 */
  120. white-space: -o-pre-wrap; /* Opera 7 */
  121. word-wrap: break-word; /* Internet Explorer 5.5+ */
  122. }
  123. }
  124. blockquote {
  125. .article-blockquote;
  126. }
  127. article {
  128. hr {
  129. margin-top: 0;
  130. margin-bottom: 0;
  131. }
  132. p.badge {
  133. background-color: #aaa;
  134. display: inline-block;
  135. padding: 0.25em 0.5em;
  136. margin: 0;
  137. float: right;
  138. color: white;
  139. .rounded(.25em);
  140. }
  141. }
  142. header {
  143. nav {
  144. span, a {
  145. &.pinned {
  146. &+.pinned {
  147. margin-left: 1.5em;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. footer {
  154. nav {
  155. a {
  156. margin-top: 0;
  157. }
  158. }
  159. }
  160. }
  161. &#collection {
  162. #welcome, .access {
  163. margin: 0 auto;
  164. max-width: 35em;
  165. h2 {
  166. font-weight: normal;
  167. margin-bottom: 1em;
  168. }
  169. p {
  170. font-size: 1.2em;
  171. line-height: 1.6;
  172. }
  173. }
  174. .access {
  175. margin: 8em auto;
  176. text-align: center;
  177. h2, ul.errors {
  178. font-size: 1.2em;
  179. margin-bottom: 1.5em !important;
  180. }
  181. }
  182. header {
  183. padding: 0 1em;
  184. text-align: center;
  185. max-width: 50em;
  186. margin: 3em auto 4em;
  187. .writeas-prefix {
  188. a {
  189. color: #aaa;
  190. }
  191. display: block;
  192. margin-bottom: 0.5em;
  193. }
  194. nav {
  195. display: block;
  196. margin: 1em 0;
  197. a:first-child {
  198. margin: 0;
  199. }
  200. }
  201. }
  202. nav#manage {
  203. position: absolute;
  204. top: 1em;
  205. left: 1.5em;
  206. li a.write {
  207. font-family: @serifFont;
  208. padding-top: 0.2em;
  209. padding-bottom: 0.2em;
  210. }
  211. }
  212. pre {
  213. line-height: 1.5;
  214. }
  215. }
  216. &#subpage {
  217. #wrapper {
  218. h1 {
  219. font-size: 2.5em;
  220. letter-spacing: -2px;
  221. padding: 0 2rem 2rem;
  222. }
  223. }
  224. }
  225. &#post {
  226. pre {
  227. font-size: 0.75em;
  228. }
  229. }
  230. &#collection, &#subpage {
  231. #wrapper {
  232. margin-left: auto;
  233. margin-right: auto;
  234. article {
  235. margin-bottom: 4em;
  236. &:hover {
  237. .hidden {
  238. .opacity(1);
  239. }
  240. }
  241. }
  242. h2 {
  243. margin-top: 0em;
  244. margin-bottom: 0.25em;
  245. &+time {
  246. display: block;
  247. margin-top: 0.25em;
  248. margin-bottom: 0.25em;
  249. }
  250. }
  251. time {
  252. font-size: 1.1em;
  253. &+p {
  254. margin-top: 0.25em;
  255. }
  256. }
  257. footer {
  258. text-align: left;
  259. padding: 0;
  260. }
  261. }
  262. #paging {
  263. overflow: visible;
  264. padding: 1em 6em 0;
  265. }
  266. a.read-more {
  267. color: #666;
  268. }
  269. }
  270. &#me #official-writing {
  271. h2 {
  272. font-weight: normal;
  273. a {
  274. font-size: 0.6em;
  275. margin-left: 1em;
  276. }
  277. a[name] {
  278. margin-left: 0;
  279. }
  280. a:link, a:visited {
  281. color: @textLinkColor;
  282. }
  283. a:hover {
  284. text-decoration: underline;
  285. }
  286. }
  287. }
  288. &#promo {
  289. div.heading {
  290. margin: 8em 0;
  291. }
  292. div.heading, div.attention-form {
  293. h1 {
  294. font-size: 3.5em;
  295. }
  296. input {
  297. padding-left: 0.75em;
  298. padding-right: 0.75em;
  299. &[type=email] {
  300. max-width: 16em;
  301. }
  302. &[type=submit] {
  303. padding-left: 1.5em;
  304. padding-right: 1.5em;
  305. }
  306. }
  307. }
  308. h2 {
  309. margin-bottom: 0;
  310. font-size: 1.8em;
  311. font-weight: normal;
  312. span.write-as {
  313. color: black;
  314. }
  315. &.soon {
  316. color: lighten(@subheaders, 50%);
  317. span {
  318. &.write-as {
  319. color: lighten(#000, 50%);
  320. }
  321. &.note {
  322. color: lighten(#333, 50%);
  323. font-variant: small-caps;
  324. margin-left: 0.5em;
  325. }
  326. }
  327. }
  328. }
  329. .half-col a {
  330. margin-left: 1em;
  331. margin-right: 1em;
  332. }
  333. }
  334. nav#top-nav {
  335. display: inline;
  336. position: absolute;
  337. top: 1.5em;
  338. right: 1.5em;
  339. font-size: 0.95rem;
  340. font-family: @sansFont;
  341. text-transform: uppercase;
  342. a {
  343. color: #777;
  344. }
  345. a + a {
  346. margin-left: 1em;
  347. }
  348. }
  349. footer {
  350. nav, ul {
  351. a {
  352. display: inline-block;
  353. margin-top: 0.8em;
  354. .transition-duration(0.1s);
  355. text-decoration: none;
  356. + a {
  357. margin-left: 0.8em;
  358. }
  359. &:link, &:visited {
  360. color: #999;
  361. }
  362. &:hover {
  363. color: #666;
  364. text-decoration: none;
  365. }
  366. }
  367. }
  368. a.home {
  369. &:link, &:visited {
  370. color: #333;
  371. }
  372. font-weight: bold;
  373. text-decoration: none;
  374. &:hover {
  375. color: #000;
  376. }
  377. }
  378. ul {
  379. list-style: none;
  380. text-align: left;
  381. padding-left: 0 !important;
  382. margin-left: 0 !important;
  383. .icons img {
  384. height: 16px;
  385. width: 16px;
  386. fill: #999;
  387. }
  388. }
  389. }
  390. }
  391. nav#full-nav {
  392. margin: 0;
  393. .left-side {
  394. display: inline-block;
  395. a:first-child {
  396. margin-left: 0;
  397. }
  398. }
  399. .right-side {
  400. float: right;
  401. }
  402. }
  403. nav#full-nav a.simple-btn, .tool button {
  404. font-family: @sansFont;
  405. border: 1px solid #ccc !important;
  406. padding: .5rem 1rem;
  407. margin: 0;
  408. .rounded(.25em);
  409. text-decoration: none;
  410. }
  411. .post-title {
  412. a {
  413. &:link {
  414. color: #333;
  415. }
  416. &:visited {
  417. color: #444;
  418. }
  419. }
  420. time, time a:link, time a:visited, &+.time {
  421. color: #999;
  422. }
  423. }
  424. .hidden {
  425. -moz-transition-property: opacity;
  426. -webkit-transition-property: opacity;
  427. -o-transition-property: opacity;
  428. transition-property: opacity;
  429. .transition-duration(0.4s);
  430. .opacity(0);
  431. }
  432. a {
  433. text-decoration: none;
  434. &:hover {
  435. text-decoration: underline;
  436. }
  437. &.subdued {
  438. color: #999;
  439. &:hover {
  440. border-bottom: 1px solid #999;
  441. text-decoration: none;
  442. }
  443. }
  444. &.danger {
  445. color: @dangerCol;
  446. font-size: 0.86em;
  447. }
  448. &.simple-cta {
  449. text-decoration: none;
  450. border-bottom: 1px solid #ccc;
  451. color: #333;
  452. padding-bottom: 2px;
  453. &:hover {
  454. text-decoration: none;
  455. }
  456. }
  457. &.action-btn {
  458. font-family: @sansFont;
  459. text-transform: uppercase;
  460. .rounded(.25em);
  461. background-color: red;
  462. color: white;
  463. font-weight: bold;
  464. padding: 0.5em 0.75em;
  465. &:hover {
  466. background-color: lighten(#f00, 5%);
  467. text-decoration: none;
  468. }
  469. }
  470. &.hashtag:hover {
  471. text-decoration: none;
  472. span + span {
  473. text-decoration: underline;
  474. }
  475. }
  476. &.hashtag {
  477. span:first-child {
  478. color: #999;
  479. margin-right: 0.1em;
  480. font-size: 0.86em;
  481. text-decoration: none;
  482. }
  483. }
  484. }
  485. abbr {
  486. border-bottom: 1px dotted #999;
  487. text-decoration: none;
  488. cursor: help;
  489. }
  490. body#collection article p, body#subpage article p {
  491. .article-p;
  492. }
  493. pre, body#post article, #post .alert, #subpage .alert, body#collection article, body#subpage article, body#subpage #wrapper h1 {
  494. max-width: 40rem;
  495. margin: 0 auto;
  496. }
  497. #collection header .alert, #post .alert, #subpage .alert {
  498. margin-bottom: 1em;
  499. p {
  500. text-align: left;
  501. line-height: 1.4;
  502. }
  503. }
  504. textarea, pre, body#post article, body#collection article p {
  505. &.norm, &.sans, &.wrap {
  506. line-height: 1.4em;
  507. white-space: pre-wrap; /* CSS 3 */
  508. white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
  509. white-space: -pre-wrap; /* Opera 4-6 */
  510. white-space: -o-pre-wrap; /* Opera 7 */
  511. word-wrap: break-word; /* Internet Explorer 5.5+ */
  512. }
  513. }
  514. textarea, pre, body#post article, body#collection article, body#subpage article, span, .font {
  515. &.norm {
  516. font-family: @serifFont;
  517. }
  518. &.sans {
  519. font-family: @sansFont;
  520. }
  521. &.mono, &.wrap, &.code {
  522. font-family: @monoFont;
  523. }
  524. &.mono, &.code {
  525. max-width: none !important;
  526. }
  527. }
  528. textarea {
  529. &.section {
  530. border: 1px solid #ccc;
  531. padding: 0.65em 0.75em;
  532. .rounded(.25em);
  533. &.codable {
  534. height: 12em;
  535. resize: vertical;
  536. }
  537. }
  538. }
  539. .ace_editor {
  540. height: 12em;
  541. border: 1px solid #333;
  542. max-width: initial;
  543. width: 100%;
  544. font-size: 0.86em !important;
  545. border: 1px solid #ccc;
  546. padding: 0.65em 0.75em;
  547. margin: 0;
  548. .rounded(.25em);
  549. }
  550. p {
  551. -webkit-font-smoothing: antialiased;
  552. -moz-osx-font-smoothing: grayscale;
  553. &.intro {
  554. font-size: 1.25em;
  555. text-align: center;
  556. }
  557. &.upgrade-prompt {
  558. font-size: 0.9em;
  559. color: #444;
  560. }
  561. &.text-cta {
  562. font-size: 1.2em;
  563. text-align: center;
  564. margin-bottom: 0.5em;
  565. &+ p {
  566. text-align: center;
  567. font-size: 0.7em;
  568. margin-top: 0;
  569. color: #666;
  570. }
  571. }
  572. &.error {
  573. font-style: italic;
  574. color: @errUrgentCol;
  575. }
  576. &.headeresque {
  577. font-size: 2em;
  578. }
  579. }
  580. table.classy {
  581. width: 95%;
  582. border-collapse: collapse;
  583. margin-bottom: 2em;
  584. tr + tr {
  585. border-top: 1px solid #ccc;
  586. }
  587. th {
  588. text-transform: uppercase;
  589. font-weight: normal;
  590. font-size: 95%;
  591. font-family: @sansFont;
  592. padding: 1rem 0.75rem;
  593. text-align: center;
  594. }
  595. td {
  596. height: 3.5rem;
  597. }
  598. p {
  599. margin-top: 0 !important;
  600. margin-bottom: 0 !important;
  601. }
  602. &.export {
  603. .disabled {
  604. color: #999;
  605. }
  606. .disabled, a {
  607. text-transform: lowercase;
  608. }
  609. }
  610. }
  611. body#collection article, body#subpage article {
  612. padding-top: 0;
  613. padding-bottom: 0;
  614. .book {
  615. h2 {
  616. font-size: 1.4em;
  617. }
  618. a.hidden.action {
  619. color: #666;
  620. float: right;
  621. font-size: 1em;
  622. margin-left: 1em;
  623. margin-bottom: 1em;
  624. }
  625. }
  626. }
  627. body#post article {
  628. p.badge {
  629. font-size: 0.9em;
  630. }
  631. }
  632. article {
  633. h2.post-title a[rel=nofollow]::after {
  634. content: '\a0 \2934';
  635. }
  636. }
  637. table.downloads {
  638. width: 100%;
  639. td {
  640. text-align: center;
  641. }
  642. img.os {
  643. width: 48px;
  644. vertical-align: middle;
  645. margin-bottom: 6px;
  646. }
  647. }
  648. select.inputform, textarea.inputform {
  649. border: 1px solid #999;
  650. }
  651. input, button, select.inputform, textarea.inputform, a.btn {
  652. padding: 0.5em;
  653. font-family: @serifFont;
  654. font-size: 100%;
  655. .rounded(.25em);
  656. &[type=submit], &.submit, &.cta {
  657. border: 1px solid @primary;
  658. background: @primary;
  659. color: white;
  660. .transition(0.2s);
  661. &:hover {
  662. background-color: lighten(@primary, 3%);
  663. text-decoration: none;
  664. }
  665. &:disabled {
  666. cursor: default;
  667. background-color: desaturate(@primary, 100%) !important;
  668. border-color: desaturate(@primary, 100%) !important;
  669. }
  670. }
  671. &.error[type=text], textarea.error {
  672. -webkit-transition: all 0.30s ease-in-out;
  673. -moz-transition: all 0.30s ease-in-out;
  674. -ms-transition: all 0.30s ease-in-out;
  675. -o-transition: all 0.30s ease-in-out;
  676. outline: none;
  677. }
  678. &.danger {
  679. border: 1px solid @dangerCol;
  680. background: @dangerCol;
  681. color: white;
  682. &:hover {
  683. background-color: lighten(@dangerCol, 3%);
  684. }
  685. }
  686. &.error[type=text]:focus, textarea.error:focus {
  687. box-shadow: 0 0 5px @errUrgentCol;
  688. border: 1px solid @errUrgentCol;
  689. }
  690. }
  691. div.flat-select {
  692. display: inline-block;
  693. position: relative;
  694. select {
  695. border: 0;
  696. background: 0;
  697. -webkit-appearance: none;
  698. -moz-appearance: none;
  699. appearance: none;
  700. position: absolute;
  701. top: 0;
  702. left: 0;
  703. right: 0;
  704. bottom: 0;
  705. width: 100%;
  706. height: 100%;
  707. opacity: 0;
  708. }
  709. &.action {
  710. &:hover {
  711. label {
  712. text-decoration: underline;
  713. }
  714. }
  715. label, select {
  716. cursor: pointer;
  717. }
  718. }
  719. }
  720. input {
  721. &.underline{
  722. border: none;
  723. border-bottom: 1px solid #ccc;
  724. padding: 0 .2em .2em;
  725. font-size: 0.9em;
  726. color: #333;
  727. }
  728. &.inline {
  729. padding: 0.2rem 0.2rem;
  730. margin-left: 0;
  731. font-size: 1em;
  732. border: 0 !important;
  733. border-bottom: 1px solid #999 !important;
  734. width: 7em;
  735. .rounded(0);
  736. }
  737. &[type=tel], &[type=text], &[type=email], &[type=password] {
  738. border: 1px solid #999;
  739. }
  740. &.boxy {
  741. border: 1px solid #999 !important;
  742. }
  743. }
  744. #beta, .content-container {
  745. max-width: 50em;
  746. margin: 0 auto 3em;
  747. font-size: 1.2em;
  748. &.tight {
  749. max-width: 30em;
  750. }
  751. &.snug {
  752. max-width: 40em;
  753. }
  754. &.regular {
  755. font-size: 1em;
  756. }
  757. .app {
  758. + .app {
  759. margin-top: 1.5em;
  760. }
  761. h2 {
  762. margin-bottom: 0.25em;
  763. }
  764. p {
  765. margin-top: 0.25em;
  766. }
  767. }
  768. h2.intro {
  769. font-weight: normal;
  770. }
  771. p {
  772. line-height: 1.4;
  773. }
  774. li {
  775. margin: 0.3em 0;
  776. }
  777. h2 {
  778. &.light {
  779. font-weight: normal;
  780. }
  781. a {
  782. .transition-duration(0.2s);
  783. -moz-transition-property: color;
  784. -webkit-transition-property: color;
  785. -o-transition-property: color;
  786. transition-property: color;
  787. &:link, &:visited, &:hover {
  788. color: @subheaders;
  789. }
  790. &:hover {
  791. color: lighten(@subheaders, 10%);
  792. text-decoration: none;
  793. }
  794. }
  795. }
  796. }
  797. .content-container {
  798. &#pricing {
  799. button {
  800. cursor: pointer;
  801. color: white;
  802. margin-top: 1em;
  803. margin-bottom: 1em;
  804. padding-left: 1.5em;
  805. padding-right: 1.5em;
  806. border: 0;
  807. background: @primary;
  808. .rounded(.25em);
  809. .transition(0.2s);
  810. &:hover {
  811. background-color: lighten(@primary, 5%);
  812. }
  813. &.unselected {
  814. cursor: pointer;
  815. }
  816. }
  817. h2 span {
  818. font-weight: normal;
  819. }
  820. .half {
  821. margin: 0 0 1em 0;
  822. text-align: center;
  823. }
  824. }
  825. div.features {
  826. margin-top: 1.5em;
  827. text-align: center;
  828. font-size: 0.86em;
  829. ul {
  830. text-align: left;
  831. max-width: 26em;
  832. margin-left: auto !important;
  833. margin-right: auto !important;
  834. li.soon, span.soon {
  835. color: lighten(#111, 40%);
  836. }
  837. }
  838. }
  839. div.blurbs {
  840. >h2 {
  841. text-align: center;
  842. color: #333;
  843. font-weight: normal;
  844. }
  845. p.price {
  846. font-size: 1.2em;
  847. margin-bottom: 0;
  848. color: #333;
  849. margin-top: 0.5em;
  850. &+p {
  851. margin-top: 0;
  852. font-size: 0.8em;
  853. }
  854. }
  855. p.text-cta {
  856. font-size: 1em;
  857. }
  858. }
  859. }
  860. footer div.blurbs {
  861. display: flex;
  862. flex-flow: row;
  863. flex-wrap: wrap;
  864. }
  865. div.blurbs {
  866. .half, .third, .fourth {
  867. font-size: 0.86em;
  868. h3 {
  869. font-weight: normal;
  870. }
  871. p, ul {
  872. color: #595959;
  873. }
  874. hr {
  875. margin: 1em 0;
  876. }
  877. }
  878. .half {
  879. padding: 0 1em 0 0;
  880. width: ~"calc(50% - 1em)";
  881. &+.half {
  882. padding: 0 0 0 1em;
  883. }
  884. }
  885. .third {
  886. padding: 0;
  887. width: ~"calc(33% - 1em)";
  888. &+.third {
  889. padding: 0 0 0 1em;
  890. }
  891. }
  892. .fourth {
  893. flex: 1 1 25%;
  894. -webkit-flex: 1 1 25%;
  895. h3 {
  896. margin-bottom: 0.5em;
  897. }
  898. ul {
  899. margin-top: 0.5em;
  900. }
  901. }
  902. }
  903. .contain-me {
  904. text-align: left;
  905. margin: 0 auto 4em;
  906. max-width: 50em;
  907. h2 + p, h2 + p + p, p.describe-me {
  908. margin-left: 1.5em;
  909. margin-right: 1.5em;
  910. color: #333;
  911. }
  912. }
  913. footer.contain-me {
  914. font-size: 1.1em;
  915. }
  916. #official-writing, #wrapper {
  917. h2, h3, h4 {
  918. color: @subheaders;
  919. }
  920. ul {
  921. &.collections {
  922. margin-left: 0;
  923. li {
  924. &.collection {
  925. a.title {
  926. &:link, &:visited {
  927. color: @headerTextColor;
  928. }
  929. }
  930. }
  931. a.create {
  932. color: #444;
  933. }
  934. }
  935. & + p {
  936. margin-top: 2em;
  937. margin-left: 1em;
  938. }
  939. }
  940. }
  941. }
  942. #official-writing, #wrapper {
  943. h2 {
  944. &.major {
  945. color: #222;
  946. }
  947. &.bugfix {
  948. color: #666;
  949. }
  950. +.android-version {
  951. a {
  952. color: #999;
  953. &:hover {
  954. text-decoration: underline;
  955. }
  956. }
  957. }
  958. }
  959. }
  960. li {
  961. line-height: 1.4;
  962. .item-desc, .prog-lang {
  963. font-size: 0.6em;
  964. font-family: 'Open Sans', sans-serif;
  965. font-weight: bold;
  966. margin-left: 0.5em;
  967. margin-right: 0.5em;
  968. text-transform: uppercase;
  969. color: #999;
  970. }
  971. }
  972. .success {
  973. color: darken(@proSelectedCol, 20%);
  974. }
  975. .alert {
  976. padding: 1em;
  977. margin-bottom: 1.25em;
  978. border: 1px solid transparent;
  979. .rounded(.25em);
  980. &.info {
  981. color: #31708f;
  982. background-color: #d9edf7;
  983. border-color: #bce8f1;
  984. }
  985. &.success {
  986. color: #3c763d;
  987. background-color: #dff0d8;
  988. border-color: #d6e9c6;
  989. }
  990. p {
  991. margin: 0;
  992. &+p {
  993. margin-top: 0.5em;
  994. }
  995. }
  996. p.dismiss {
  997. font-family: @sansFont;
  998. text-align: right;
  999. font-size: 0.86em;
  1000. text-transform: uppercase;
  1001. }
  1002. }
  1003. ul.errors {
  1004. padding: 0;
  1005. text-indent: 0;
  1006. li.urgent {
  1007. list-style: none;
  1008. font-style: italic;
  1009. text-align: center;
  1010. color: @errUrgentCol;
  1011. a:link, a:visited {
  1012. color: purple;
  1013. }
  1014. }
  1015. li.info {
  1016. list-style: none;
  1017. font-size: 1.1em;
  1018. text-align: center;
  1019. }
  1020. }
  1021. body#pad #target a.upgrade-prompt {
  1022. padding-left: 1em;
  1023. padding-right: 1em;
  1024. text-align: center;
  1025. font-style: italic;
  1026. color: @primary;
  1027. }
  1028. body#pad-sub #posts, .atoms {
  1029. margin-top: 1.5em;
  1030. h3 {
  1031. margin-bottom: 0.25em;
  1032. &+ h4 {
  1033. margin-top: 0.25em;
  1034. margin-bottom: 0.5em;
  1035. &+ p {
  1036. margin-top: 0.5em;
  1037. }
  1038. }
  1039. .electron {
  1040. font-weight: normal;
  1041. margin-left: 0.5em;
  1042. }
  1043. }
  1044. h3, h4 {
  1045. a {
  1046. .transition-duration(0.2s);
  1047. -moz-transition-property: color;
  1048. -webkit-transition-property: color;
  1049. -o-transition-property: color;
  1050. transition-property: color;
  1051. }
  1052. }
  1053. h4 {
  1054. font-size: 0.9em;
  1055. font-weight: normal;
  1056. }
  1057. date, .electron {
  1058. margin-right: 0.5em;
  1059. }
  1060. .action {
  1061. font-size: 1em;
  1062. }
  1063. #more-posts p {
  1064. text-align: center;
  1065. font-size: 1.1em;
  1066. }
  1067. p {
  1068. font-size: 0.86em;
  1069. }
  1070. .error {
  1071. display: inline-block;
  1072. font-size: 0.8em;
  1073. font-style: italic;
  1074. color: @errUrgentCol;
  1075. strong {
  1076. font-style: normal;
  1077. }
  1078. }
  1079. .error + nav {
  1080. display: inline-block;
  1081. font-size: 0.8em;
  1082. margin-left: 1em;
  1083. a + a {
  1084. margin-left: 0.75em;
  1085. }
  1086. }
  1087. }
  1088. h2 {
  1089. a, time {
  1090. &+.action {
  1091. margin-left: 0.5em;
  1092. }
  1093. }
  1094. }
  1095. .action {
  1096. font-size: 0.7em;
  1097. font-weight: normal;
  1098. font-family: @serifFont;
  1099. &+ .action {
  1100. margin-left: 0.5em;
  1101. }
  1102. &.new-post {
  1103. font-weight: bold;
  1104. }
  1105. }
  1106. article.moved {
  1107. p {
  1108. font-size: 1.2em;
  1109. color: #999;
  1110. }
  1111. }
  1112. span.as {
  1113. .opacity(0.2);
  1114. font-weight: normal;
  1115. }
  1116. span.ras {
  1117. .opacity(0.6);
  1118. font-weight: normal;
  1119. }
  1120. header {
  1121. nav {
  1122. .username {
  1123. font-size: 2em;
  1124. font-weight: normal;
  1125. color: #555;
  1126. }
  1127. &#user-nav {
  1128. margin-left: 0;
  1129. & > a, .tabs > a {
  1130. &.selected {
  1131. cursor: default;
  1132. font-weight: bold;
  1133. &:hover {
  1134. text-decoration: none;
  1135. }
  1136. }
  1137. & + a {
  1138. margin-left: 2em;
  1139. }
  1140. }
  1141. a {
  1142. font-size: 1.2em;
  1143. font-family: @sansFont;
  1144. span {
  1145. font-size: 0.7em;
  1146. color: #999;
  1147. text-transform: uppercase;
  1148. margin-left: 0.5em;
  1149. margin-right: 0.5em;
  1150. }
  1151. &.title {
  1152. font-size: 1.6em;
  1153. font-family: @serifFont;
  1154. font-weight: bold;
  1155. }
  1156. }
  1157. nav > ul > li:first-child {
  1158. &> a {
  1159. display: inline-block;
  1160. }
  1161. img {
  1162. position: relative;
  1163. top: -0.5em;
  1164. right: 0.3em;
  1165. }
  1166. }
  1167. ul ul {
  1168. font-size: 0.8em;
  1169. a {
  1170. padding-top: 0.25em;
  1171. padding-bottom: 0.25em;
  1172. }
  1173. }
  1174. li {
  1175. line-height: 1.5;
  1176. }
  1177. }
  1178. &.tabs {
  1179. margin: 0 0 0 1em;
  1180. }
  1181. &+ nav.tabs {
  1182. margin: 0;
  1183. }
  1184. }
  1185. &.singleuser {
  1186. margin: 0.5em 0.25em;
  1187. nav#user-nav {
  1188. nav > ul > li:first-child {
  1189. img {
  1190. top: -0.75em;
  1191. }
  1192. }
  1193. }
  1194. }
  1195. .dash-nav {
  1196. font-weight: bold;
  1197. }
  1198. }
  1199. li#create-collection {
  1200. display: none;
  1201. h4 {
  1202. margin-top: 0px;
  1203. margin-bottom: 0px;
  1204. }
  1205. input[type=submit] {
  1206. margin-left: 0.5em;
  1207. }
  1208. }
  1209. #collection-options {
  1210. .option {
  1211. textarea {
  1212. font-size: 0.86em;
  1213. font-family: @monoFont;
  1214. }
  1215. .section > p.explain {
  1216. font-size: 0.8em;
  1217. }
  1218. }
  1219. }
  1220. .img-placeholder {
  1221. text-align: center;
  1222. img {
  1223. max-width: 100%;
  1224. }
  1225. }
  1226. dl {
  1227. &.admin-dl-horizontal {
  1228. dt {
  1229. font-weight: bolder;
  1230. width: 360px;
  1231. }
  1232. dd {
  1233. line-height: 1.5;
  1234. }
  1235. }
  1236. }
  1237. dt {
  1238. float: left;
  1239. clear: left;
  1240. overflow: hidden;
  1241. text-overflow: ellipsis;
  1242. white-space: nowrap;
  1243. }
  1244. form {
  1245. dt, dd {
  1246. padding: 0.5rem 0;
  1247. }
  1248. dt {
  1249. line-height: 1.8;
  1250. }
  1251. dd {
  1252. font-size: 0.86em;
  1253. line-height: 2;
  1254. }
  1255. &.prominent {
  1256. margin: 1em 0;
  1257. label {
  1258. font-weight: bold;
  1259. }
  1260. input, select {
  1261. width: 100%;
  1262. }
  1263. select {
  1264. font-size: 1em;
  1265. padding: 0.5rem;
  1266. display: block;
  1267. border-radius: 0.25rem;
  1268. margin: 0.5rem 0;
  1269. }
  1270. }
  1271. }
  1272. div.row {
  1273. display: flex;
  1274. align-items: center;
  1275. > div {
  1276. flex: 1;
  1277. }
  1278. }
  1279. @media all and (max-width: 450px) {
  1280. body#post {
  1281. header {
  1282. nav {
  1283. .xtra-feature {
  1284. display: none;
  1285. }
  1286. }
  1287. }
  1288. }
  1289. }
  1290. @media all and (min-width: 1280px) {
  1291. body#promo {
  1292. div.heading {
  1293. margin: 10em 0;
  1294. }
  1295. }
  1296. }
  1297. @media all and (min-width: 1600px) {
  1298. body#promo {
  1299. div.heading {
  1300. margin: 14em 0;
  1301. }
  1302. }
  1303. }
  1304. @media all and (max-width: 900px) {
  1305. .half.big {
  1306. padding: 0 !important;
  1307. width: 100% !important;
  1308. }
  1309. .third {
  1310. padding: 0 !important;
  1311. float: none;
  1312. width: 100% !important;
  1313. p.introduction {
  1314. font-size: 0.86em;
  1315. }
  1316. }
  1317. div.blurbs {
  1318. .fourth {
  1319. flex: 1 1 15em;
  1320. -webkit-flex: 1 1 15em;
  1321. }
  1322. }
  1323. .blurbs .third, .blurbs .half {
  1324. p, ul {
  1325. text-align: left;
  1326. }
  1327. }
  1328. .half-col, .big {
  1329. float: none;
  1330. text-align: center;
  1331. &+.half-col, &+.big {
  1332. margin-top: 4em !important;
  1333. margin-left: 0;
  1334. }
  1335. }
  1336. #beta, .content-container {
  1337. font-size: 1.15em;
  1338. }
  1339. }
  1340. @media all and (max-width: 600px) {
  1341. div.row {
  1342. flex-direction: column;
  1343. }
  1344. .half {
  1345. padding: 0 !important;
  1346. width: 100% !important;
  1347. }
  1348. .third {
  1349. width: 100% !important;
  1350. float: none;
  1351. }
  1352. body#promo {
  1353. div.heading {
  1354. margin: 6em 0;
  1355. }
  1356. h2 {
  1357. font-size: 1.6em;
  1358. }
  1359. .half-col a + a {
  1360. margin-left: 1em;
  1361. }
  1362. .half-col a.channel {
  1363. margin-left: auto !important;
  1364. margin-right: auto !important;
  1365. }
  1366. }
  1367. ul.add-integrations {
  1368. li {
  1369. display: list-item;
  1370. &+ li {
  1371. margin-left: 0;
  1372. }
  1373. }
  1374. }
  1375. }
  1376. @media all and (max-height: 500px) {
  1377. body#promo {
  1378. div.heading {
  1379. margin: 5em 0;
  1380. }
  1381. }
  1382. }
  1383. @media all and (max-height: 400px) {
  1384. body#promo {
  1385. div.heading {
  1386. margin: 0em 0;
  1387. }
  1388. }
  1389. }
  1390. /* Smartphones (portrait and landscape) ----------- */
  1391. @media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
  1392. header {
  1393. .opacity(1);
  1394. }
  1395. }
  1396. /* Smartphones (portrait) ----------- */
  1397. @media only screen and (max-width : 320px) {
  1398. .content-container#pricing {
  1399. .half {
  1400. float: none;
  1401. width: 100%;
  1402. }
  1403. }
  1404. header {
  1405. .opacity(1);
  1406. }
  1407. }
  1408. /* iPads (portrait and landscape) ----------- */
  1409. @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
  1410. header {
  1411. .opacity(1);
  1412. }
  1413. }
  1414. @media (pointer: coarse) {
  1415. body footer nav a:not(.pubd) {
  1416. padding: 0.8em 1em;
  1417. margin-left: 0;
  1418. margin-top: 0;
  1419. }
  1420. }
  1421. @media print {
  1422. h1 {
  1423. page-break-before: always;
  1424. }
  1425. h1, h2, h3, h4, h5, h6 {
  1426. page-break-after: avoid;
  1427. }
  1428. table, figure {
  1429. page-break-inside: avoid;
  1430. }
  1431. header, footer {
  1432. display: none;
  1433. }
  1434. article#post-body {
  1435. margin-top: 2em;
  1436. margin-left: 0;
  1437. margin-right: 0;
  1438. }
  1439. hr {
  1440. border: 1px solid #ccc;
  1441. }
  1442. }
  1443. .code-block {
  1444. padding: 0;
  1445. max-width: 100%;
  1446. margin: 0;
  1447. background: #f8f8f8;
  1448. border: 1px solid #ccc;
  1449. padding: 0.375em 0.625em;
  1450. font-size: 0.86em;
  1451. .rounded(.25em);
  1452. }
  1453. pre.code-block {
  1454. overflow-x: auto;
  1455. }